/* public/css/style.css — KSATRIA public site */
/* Palette ONLY: #F5F5F5  |  #303841  |  #FF5722  |  #ffffff */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary:   #303841;
  --secondary: #FF5722;
  --bg:        #F5F5F5;
  --white:     #ffffff;
  --font:      Inter, system-ui, -apple-system, sans-serif;
  --radius:    16px;
  --radius-sm: 10px;
  --muted:     rgba(48,56,65,.55);
  --border:    rgba(48,56,65,.1);
  --shadow:    0 1px 4px rgba(48,56,65,.08), 0 4px 16px rgba(48,56,65,.06);
  --shadow-md: 0 8px 32px rgba(48,56,65,.12);
}

body { font-family: var(--font); color: var(--primary); line-height: 1.6; background: var(--bg); }
a { color: var(--secondary); text-decoration: none; transition: color .15s; }
a:hover { color: #d44a1a; }
img { max-width: 100%; height: auto; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 rgba(48,56,65,.07);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem; gap: 1rem;
}
.brand-name {
  font-size: 1.35rem; font-weight: 800;
  color: var(--primary); letter-spacing: -.5px;
}
.logo { max-height: 40px; }

.main-nav { display: flex; align-items: center; gap: .2rem; }
.main-nav > a {
  color: var(--primary); font-weight: 500; font-size: .9rem; opacity: .7;
  padding: .42rem .75rem; border-radius: 8px;
  transition: background .15s, color .15s, opacity .15s;
}
.main-nav > a:hover { background: rgba(48,56,65,.06); opacity: 1; text-decoration: none; }
.main-nav > a.active { opacity: 1; font-weight: 600; }

.btn-nav {
  background: var(--secondary) !important; color: #fff !important;
  padding: .45rem 1.1rem !important; border-radius: 999px !important;
  font-size: .88rem !important; font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(255,87,34,.25);
  transition: transform .15s, box-shadow .15s !important;
  margin-left: .4rem; opacity: 1 !important;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,87,34,.3) !important; text-decoration: none !important; }
.nav-login-link { color: var(--primary); font-weight: 500; padding: .42rem .75rem; border-radius: 8px; opacity: .7; transition: opacity .15s, background .15s; }
.nav-login-link:hover { opacity: 1; background: rgba(48,56,65,.06); color: var(--primary); text-decoration: none; }

/* ── Status pending di navbar (member belum aktif) ── */
.nav-pending-wrap {
  display: flex; align-items: center; gap: .55rem;
  margin-left: .5rem; flex-wrap: wrap;
}
.nav-pending-badge {
  display: flex; align-items: center; gap: .35rem;
  background: rgba(48,56,65,.07); border: 1px solid rgba(48,56,65,.14);
  border-radius: 999px; padding: .3rem .75rem;
  font-size: .78rem; font-weight: 600; color: var(--primary);
  white-space: nowrap;
}
.nav-pending-actions { display: flex; align-items: center; gap: .35rem; }
.nav-pending-link {
  font-size: .8rem; font-weight: 500; color: var(--primary);
  padding: .28rem .65rem; border-radius: 7px;
  background: rgba(48,56,65,.07); border: 1px solid rgba(48,56,65,.12);
  text-decoration: none; transition: background .15s;
}
.nav-pending-link:hover { background: rgba(48,56,65,.12); color: var(--primary); text-decoration: none; }
.nav-pending-logout {
  font-size: .8rem; font-weight: 500; color: var(--secondary);
  padding: .28rem .65rem; border-radius: 7px;
  background: rgba(255,87,34,.08); border: 1px solid rgba(255,87,34,.2);
  text-decoration: none; transition: background .15s;
}
.nav-pending-logout:hover { background: rgba(255,87,34,.15); color: var(--secondary); text-decoration: none; }

/* ── Profile dropdown di navbar ── */
.nav-profile { position: relative; margin-left: .5rem; }
.nav-profile-btn {
  display: flex; align-items: center; gap: .5rem;
  background: none; border: 1.5px solid var(--border);
  border-radius: 999px; padding: .3rem .6rem .3rem .35rem;
  cursor: pointer; font-family: inherit; font-size: .88rem;
  font-weight: 500; color: var(--primary);
  transition: border-color .15s, background .15s;
}
.nav-profile-btn:hover { border-color: rgba(48,56,65,.25); background: rgba(48,56,65,.05); }
.nav-profile-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; background: var(--secondary);
  color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: .8rem; font-weight: 700;
  flex-shrink: 0; overflow: hidden;
}
.nav-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-profile-chevron {
  width: 14px; height: 14px; transition: transform .2s;
  stroke: var(--muted);
}
.nav-profile-btn[aria-expanded="true"] .nav-profile-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(48,56,65,.13);
  min-width: 200px; padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 300;
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-header {
  padding: .55rem .7rem .4rem;
  border-bottom: 1px solid rgba(48,56,65,.06); margin-bottom: .3rem;
}
.nav-dropdown-header strong { display: block; font-size: .9rem; color: var(--primary); }
.nav-dropdown-header span { font-size: .78rem; color: var(--muted); }
.nav-dropdown a {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .7rem; border-radius: 7px;
  color: var(--primary); font-size: .88rem; font-weight: 500;
  transition: background .12s; text-decoration: none; opacity: .8;
}
.nav-dropdown a:hover { background: rgba(48,56,65,.06); opacity: 1; }
.nav-dropdown a.danger { color: var(--secondary); opacity: 1; }
.nav-dropdown a.danger:hover { background: rgba(255,87,34,.08); }
.nav-dropdown-divider { border: none; border-top: 1px solid rgba(48,56,65,.07); margin: .3rem 0; }

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--primary); padding: .3rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.4rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white); color: var(--primary);
  cursor: pointer; font-size: .92rem; font-family: inherit; font-weight: 500;
  transition: all .18s; text-decoration: none; line-height: 1.4;
}
.btn:hover { text-decoration: none; background: var(--bg); border-color: rgba(48,56,65,.25); transform: translateY(-1px); }
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(48,56,65,.2);
}
.btn-primary:hover {
  background: #232b32; border-color: #232b32; color: #fff;
  box-shadow: 0 4px 14px rgba(48,56,65,.28); transform: translateY(-1px);
}
.btn-secondary {
  background: var(--secondary); color: #fff; border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(255,87,34,.2);
}
.btn-secondary:hover {
  background: #d44a1a; border-color: #d44a1a; color: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,87,34,.28);
}
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-outline-accent {
  background: transparent; color: var(--secondary); border-color: var(--secondary);
}
.btn-outline-accent:hover { background: var(--secondary); color: #fff; transform: translateY(-1px); }

/* ── Blocks ── */
.block-hero {
  background: var(--primary); color: #fff;
  background-size: cover; background-position: center;
  padding: 6rem 2rem; text-align: center;
  border-radius: var(--radius); margin: 1.5rem 0;
  position: relative; overflow: hidden;
}
.block-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(48,56,65,.45); pointer-events: none;
}
.block-hero > * { position: relative; }
.block-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 1rem; font-weight: 800; }
.block-hero p { font-size: 1.1rem; opacity: .9; max-width: 620px; margin: 0 auto 1.8rem; }

.block-text { margin: 2rem 0; line-height: 1.78; }
.block-text h1 { font-size: 1.9rem; margin: 1.2rem 0 .6rem; font-weight: 800; }
.block-text h2 { font-size: 1.5rem; margin: 1.2rem 0 .6rem; font-weight: 700; }
.block-text h3 { font-size: 1.2rem; margin: 1rem 0 .5rem; font-weight: 600; }
.block-text p { margin-bottom: 1rem; }
.block-text ul, .block-text ol { margin: .5rem 0 1rem 1.5rem; }
.block-text li { margin-bottom: .3rem; }
.block-text a { color: var(--secondary); }

.block-image { margin: 2rem 0; text-align: center; }
.block-image img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.block-image figcaption { color: var(--muted); font-size: .875rem; margin-top: .6rem; font-style: italic; }

.block-gallery {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 1rem; margin: 2rem 0;
}
.block-gallery img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-sm); transition: transform .25s, box-shadow .25s;
}
.block-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

.block-cards { margin: 2rem 0; }
.cards-title { text-align: center; margin: 0 0 1.5rem; font-size: 1.6rem; font-weight: 700; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1.5rem; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; background: var(--white); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: .9rem; }

.block-cta {
  background: var(--primary); color: #fff;
  padding: 4rem 2rem; text-align: center;
  border-radius: var(--radius); margin: 2rem 0;
}
.block-cta h2 { font-size: 1.9rem; margin-bottom: .8rem; }
.block-cta p { margin-bottom: 1.6rem; opacity: .85; font-size: 1.05rem; max-width: 580px; margin-left: auto; margin-right: auto; }

/* Columns block */
.block-columns { display: grid; gap: 2rem; margin: 2rem 0; align-items: start; }
.block-columns.cols-2 { grid-template-columns: 1fr 1fr; }
.block-columns.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.block-columns.cols-60-40 { grid-template-columns: 3fr 2fr; }
.block-columns.cols-40-60 { grid-template-columns: 2fr 3fr; }
.block-column { min-width: 0; }

/* ── Footer ── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.55); margin-top: 5rem; padding: 3.5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2.5rem; }
.site-footer h3 { color: #fff; margin-bottom: .8rem; font-size: 1rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; }
.site-footer p { font-size: .88rem; line-height: 1.7; }
.site-footer .social a { display: block; color: rgba(255,255,255,.45); margin-bottom: .35rem; font-size: .88rem; transition: color .15s; }
.site-footer .social a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 2.5rem; padding: 1.25rem 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.4); }

/* ── News ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.news-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white); transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card-body { padding: 1.25rem; }
.news-card h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.news-meta { color: var(--muted); font-size: .82rem; margin-bottom: .6rem; }
.read-more { font-weight: 600; font-size: .9rem; color: var(--secondary); }
.news-detail { max-width: 780px; margin: 0 auto; padding: 1.75rem 0; }
.news-detail h1 { font-size: 1.8rem; margin-bottom: .4rem; line-height: 1.3; }
.news-cover { width: 100%; border-radius: var(--radius); margin: 1rem 0; }
.news-body { margin-top: 1.25rem; }
.news-body p { margin-bottom: 1rem; }

/* ── Members ── */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.member-card {
  text-align: center; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; background: var(--white);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.member-photo img, .member-avatar {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem;
}
.member-avatar {
  background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
}
.member-id { color: var(--secondary); font-weight: 600; font-size: .88rem; }
.member-inst, .member-city { color: var(--muted); font-size: .82rem; }

/* ── Forms ── */
.form-page { max-width: 580px; margin: 2.5rem auto; }
.form-page.narrow { max-width: 440px; }
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.2rem 2rem; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-card h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.form-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.login-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: .25rem; }
.login-tab { background: none; border: none; border-bottom: 2.5px solid transparent; margin-bottom: -2px; padding: .55rem 1.2rem; font-size: .92rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.form label { display: block; margin-bottom: 1rem; font-weight: 500; font-size: .9rem; color: var(--primary); }
.form input, .form textarea, .form select {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; margin-top: .3rem;
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
  background: var(--bg); color: var(--primary);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--primary); background: var(--white);
  box-shadow: 0 0 0 3px rgba(48,56,65,.08);
}
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.alert-error   { background: rgba(255,87,34,.08); color: #b91c1c; border: 1px solid rgba(255,87,34,.25); }
.alert-success { background: rgba(48,56,65,.06); color: #15803d; border: 1px solid rgba(48,56,65,.15); }

/* ── Member dashboard ── */
.member-portal { max-width: 900px; margin: 2.5rem auto; }
.portal-header {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; box-shadow: var(--shadow);
  border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.portal-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-name { font-size: 1.25rem; font-weight: 700; margin-bottom: .15rem; }
.portal-status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; padding: .22rem .65rem;
  border-radius: 999px; margin-top: .2rem;
}
.status-active     { background: rgba(255,87,34,.12); color: var(--secondary); }
.status-pending    { background: rgba(48,56,65,.08); color: var(--primary); }
.status-unverified { background: rgba(48,56,65,.07); color: var(--muted); }
.status-rejected   { background: rgba(255,87,34,.1); color: #b91c1c; }
.status-suspended  { background: rgba(48,56,65,.08); color: var(--primary); }

.portal-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1.2rem; margin-bottom: 1.5rem; }
.portal-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: box-shadow .2s;
}
.portal-card:hover { box-shadow: var(--shadow-md); }
.portal-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(48,56,65,.07); display: flex; align-items: center;
  justify-content: center; margin-bottom: .9rem;
}
.portal-card h3 { font-size: .95rem; margin-bottom: .3rem; }
.portal-card p { font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.portal-card .big { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin: .3rem 0 .7rem; }

.portal-notice {
  background: rgba(255,87,34,.06); border: 1px solid rgba(255,87,34,.2);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  color: var(--primary); font-size: .9rem; margin-bottom: 1.2rem;
}

/* ── Profile page ── */
.profile-page { max-width: 660px; margin: 2.5rem auto; }
.profile-section { background: var(--white); border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 1.2rem; }
.profile-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.profile-photo-wrap { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.profile-photo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Message page ── */
.message-page { text-align: center; max-width: 520px; margin: 4rem auto; }
.message-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; font-size: 1.8rem; }
.message-icon.success { background: rgba(48,56,65,.08); }
.message-icon.error   { background: rgba(255,87,34,.1); }
.message-page h1 { font-size: 1.5rem; margin-bottom: .6rem; }
.message-page p  { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }

/* ── ID Card ── */
.idcard-page { max-width: 640px; margin: 2rem auto; text-align: center; }
.id-card {
  width: 400px; margin: 1.5rem auto; background: var(--white);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(48,56,65,.18); text-align: left;
}
.id-card-header {
  background: var(--primary); color: #fff;
  padding: .9rem 1.25rem; display: flex;
  justify-content: space-between; align-items: center;
}
.id-logo { max-height: 30px; }
.id-org { font-weight: 800; }
.id-type {
  font-size: .68rem; background: rgba(255,255,255,.18);
  padding: .2rem .5rem; border-radius: 6px;
}
.id-card-body { display: flex; gap: 1rem; padding: 1.25rem; align-items: center; }
.id-photo img, .id-photo-placeholder { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.id-photo-placeholder {
  background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
}
.id-info { flex: 1; }
.id-info h2 { font-size: 1.05rem; }
.id-number { color: var(--secondary); font-weight: 700; font-size: .9rem; margin: .2rem 0; }
.id-info p { font-size: .8rem; color: var(--muted); }
.id-qr { text-align: center; }
.id-qr img { width: 80px; height: 80px; }
.id-qr span { font-size: .6rem; color: var(--muted); display: block; }
.id-card-footer { background: var(--bg); padding: .6rem 1.25rem; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--border); }
.idcard-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.idcard-hint { font-size: .85rem; color: var(--muted); }

/* ── Verify ── */
.verify-page { max-width: 460px; margin: 3rem auto; }
.verify-card {
  border-radius: 20px; padding: 2.2rem 2rem; text-align: center;
  box-shadow: var(--shadow-md); background: var(--white);
}
.verify-card.valid   { border-top: 5px solid #16a34a; }
.verify-card.invalid { border-top: 5px solid var(--secondary); }
.verify-badge {
  display: inline-block; background: #16a34a; color: #fff;
  padding: .4rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem; margin-bottom: 1rem;
}
.verify-badge.invalid { background: var(--secondary); }
.verify-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 1rem auto; }
.verify-id { color: var(--secondary); font-weight: 700; font-size: 1.05rem; }
.verify-table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; }
.verify-table td { padding: .5rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .9rem; }
.verify-table td:first-child { color: var(--muted); width: 40%; }
.verify-note { color: #16a34a; font-size: .88rem; }

/* ── Section utilities ── */
.section-pad    { padding: 3.5rem 0; }
.section-pad-sm { padding: 1.5rem 0; }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%;
    left: 0; right: 0; background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px); flex-direction: column;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
    gap: .3rem; box-shadow: 0 8px 24px rgba(48,56,65,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { width: 100%; }
  .header-inner { position: relative; }
  .nav-dropdown { position: fixed; left: 1rem; right: 1rem; top: auto; }
  .block-hero { padding: 4rem 1.25rem; }
  .block-columns.cols-2, .block-columns.cols-3,
  .block-columns.cols-60-40, .block-columns.cols-40-60 { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .id-card { width: 100%; max-width: 400px; }
  .form-card { padding: 1.5rem 1.2rem; }
  .portal-header { flex-direction: column; text-align: center; }
}

@media print {
  .site-header, .site-footer, .idcard-actions, .idcard-hint, h1, p { display: none !important; }
  .id-card { box-shadow: none; border: 1px solid var(--border); margin: 0; }
  body { background: var(--white); }
}
