/* === Global Typography Baseline (Roboto / Modern / Responsive) === */

/* Base reset */
body, html {
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: transparent;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fluid responsive text scaling */
@media (max-width: 1024px) {
  body { font-size: 15px; }
}
@media (max-width: 768px) {
  body { font-size: 14.5px; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a202c;
  margin: 0 0 1rem 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1rem; }
}

/* Paragraphs */
p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #2c3e50;
}

/* Lists */
ul, ol {
  padding: 0;
  font-size: 1rem;
}
li { margin-bottom: 0.5rem; }

/* Links */
a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: #3730a3;
  text-decoration: underline;
}

/* Strong / Emphasis */
strong { font-weight: 600; color: #1a202c; }
em { font-style: italic; }

/* Buttons & form fields inherit typography */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

/* Field placeholders */
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* Blockquotes */
blockquote {
  font-style: italic;
  color: #4a5568;
  border-left: 4px solid #e2e8f0;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* Tables (optional — clean, readable) */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}
th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
th {
  background: #f7fafc;
  color: #374151;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive container utility (optional) */
.top-menu,
.container, .main-content, main[role="main"] {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem 1rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-top {
  display: flex;
  padding-top: 4px;
}
.top-menu li {
  list-style: none;
}
.top-menu a {
  color: #004B9C;
  font-weight: 500;
  text-transform: lowercase;
  margin-right: 20px;
  line-height: 18px;
  font-size: 16px;
  line-height: 26px;
}


/* Layout wrapper to mimic .sap-plugin container */
main[role="main"] .main-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  color: #2c3e50;
}

/* Headline styled like .sap-header (we can't wrap, so style the h2 itself) */
.wp-block-heading {
  background: #4f46e5;
  color: #fff !important;
  padding: 2rem;
  border-radius: 4px;
  margin: 0 0 2rem 0;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
  font-size: 2rem;
  font-weight: 700;
}

/* UM login card -> .sap-info-card look */
.um-1493.um .um-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  max-width: 760px;
}

/* Remove unused image area spacing */
.um-1493.um .um-misc-with-img {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}
.um-1493.um .um-misc-img { display: none; }

/* Email line */
.um-1493.um .um-misc-with-img > div strong {
  color: #1a202c;
  font-weight: 600;
  font-size: 1rem;
}

/* List -> neat rows like info list */
.um-1493.um .um-misc-ul {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
}
.um-1493.um .um-misc-ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eef2f7;
  padding: 0.75rem 0;
}
.um-1493.um .um-misc-ul li:first-child { border-top: 0; }

/* "Je account" link -> .sap-edit-link style */
.um-1493.um .um-misc-ul a[href*="gegevens-wijzigingen"] {
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  color: #111827;
}
.um-1493.um .um-misc-ul a[href*="gegevens-wijzigingen"]:hover {
  background: #f6f8fa;
}

/* "Uitloggen" link -> .sap-button style */
.um-1493.um .um-misc-ul a[href*="uitgelogd"] {
  background: #E63329;
  color: #fff !important;
  border: none;
  padding: 0.675rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform .2s, background .2s, color .2s;
}
.um-1493.um .um-misc-ul a[href*="uitgelogd"]:hover {
  background: #FAD6D4;
  color: #E63329 !important;
  transform: translateY(-1px);
}

/* Spacer elements keep a slimmer rhythm */
.wp-block-spacer[style*="height:50px"] { height: 32px !important; }

/* Registration paragraph card like .sap-form-section */
.wp-block-buttons + *,
.um-1493.um ~ p + .wp-block-buttons,
.um-1493.um ~ p,
body .um-login.um-logout {
  max-width: 760px !important;
}
.um-1493.um ~ p {
  background: #fff;
  padding: 1.25rem 1.5rem;
  /* border-radius: 4px; */
  /* border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); */
  margin: 2rem 0 1rem;
}

/* "Registreren" button -> .sap-button look */
.wp-block-button .wp-block-button__link {
  background: #E63329;
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform .2s, background .2s, color .2s;
}
.wp-block-button .wp-block-button__link:hover {
  background: #FAD6D4;
  color: #E63329;
  transform: translateY(-1px);
}

/* Notices (reuse your palette) */
.notice {
  background: #dcfce7;
  color: #166534;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #22c55e;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.notice.notice-error {
  background: #fee2e2;
  color: #991b1b;
  border-left-color: #ef4444;
}

/* Responsive tweaks to mirror your system */
@media (max-width: 768px) {
  main[role="main"] .main-content { padding: 1rem; }
  .wp-block-heading { padding: 1.25rem; font-size: 1.6rem; }
  .um-1493.um .um-form { padding: 1rem; }
}
