/* Ilanthamizhar Ezhuchi Iyakkam — brand stylesheet
   Colours taken from the organisation's flag and poster. */

@font-face {
  font-family: "Noto Sans Tamil";
  src: url("../fonts/NotoSansTamil-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Tamil";
  src: url("../fonts/NotoSansTamil-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Tamil";
  src: url("../fonts/NotoSansTamil-Bold.ttf") format("truetype");
  font-weight: 700 900; font-style: normal; font-display: swap;
  unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC;
}

:root {
  --iei-maroon: #7a0e12;
  --iei-maroon-dark: #540810;
  --iei-maroon-light: #9c1c22;
  --iei-gold: #f2c14e;
  --iei-gold-dark: #b8860b;
  --iei-cream: #fff8ec;
  --iei-cream-2: #fdf1dc;
  --iei-charcoal: #222222;
  --iei-muted: #5f5a55;
  --iei-radius: .9rem;
  --iei-shadow: 0 .4rem 1.4rem rgba(84, 8, 16, .08);
  --bs-body-font-family: "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--iei-charcoal);
  --bs-body-bg: #ffffff;
  --bs-link-color: var(--iei-maroon);
  --bs-link-color-rgb: 122, 14, 18;
  --bs-link-hover-color: var(--iei-maroon-dark);
  --bs-link-hover-color-rgb: 84, 8, 16;
  --bs-primary: var(--iei-maroon);
  --bs-primary-rgb: 122, 14, 18;
  --bs-focus-ring-color: rgba(242, 193, 78, .55);
}

body { line-height: 1.75; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4, h5, .display-5, .display-6 { line-height: 1.45; font-weight: 700; color: var(--iei-maroon-dark); }
.lead { line-height: 1.8; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--iei-gold) !important; outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: .6rem 1rem; background: var(--iei-gold); color: #000; font-weight: 700; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* Buttons */
.btn { border-radius: .6rem; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--iei-maroon); --bs-btn-border-color: var(--iei-maroon); --bs-btn-hover-bg: var(--iei-maroon-dark); --bs-btn-hover-border-color: var(--iei-maroon-dark); --bs-btn-active-bg: var(--iei-maroon-dark); --bs-btn-disabled-bg: var(--iei-maroon); --bs-btn-disabled-border-color: var(--iei-maroon); --bs-btn-focus-shadow-rgb: 242, 193, 78; }
.btn-gold { --bs-btn-color: #2b1700; --bs-btn-bg: var(--iei-gold); --bs-btn-border-color: var(--iei-gold); --bs-btn-hover-bg: #e5ae2c; --bs-btn-hover-border-color: #e5ae2c; --bs-btn-hover-color: #000; --bs-btn-active-bg: #d9a020; --bs-btn-focus-shadow-rgb: 242, 193, 78; }
.btn-outline-primary { --bs-btn-color: var(--iei-maroon); --bs-btn-border-color: var(--iei-maroon); --bs-btn-hover-bg: var(--iei-maroon); --bs-btn-hover-border-color: var(--iei-maroon); --bs-btn-active-bg: var(--iei-maroon-dark); }
.btn-outline-light:hover { color: var(--iei-maroon-dark); }
.text-maroon { color: var(--iei-maroon) !important; }
.text-gold { color: var(--iei-gold) !important; }
.bg-maroon { background: var(--iei-maroon) !important; }
.bg-cream { background: var(--iei-cream) !important; }

/* Top strip + header */
.top-strip { background: var(--iei-maroon-dark); color: #f8e7c2; font-size: .82rem; line-height: 1.5; }
.top-strip a, .top-strip button { color: #f8e7c2; text-decoration: none; }
.top-strip .lang-btn { background: none; border: 1px solid transparent; border-radius: .4rem; padding: 0 .5rem; line-height: 1.6; }
.top-strip .lang-btn[aria-pressed="true"] { border-color: var(--iei-gold); color: var(--iei-gold); font-weight: 700; }
.site-header { background: #fff; border-bottom: 4px solid var(--iei-gold); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand img { width: 56px; height: 56px; flex: none; }
.brand-name { color: var(--iei-maroon); font-weight: 800; font-size: 1.25rem; line-height: 1.3; display: block; }
.brand-sub { color: var(--iei-muted); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; display: block; }
.site-header .nav-link { color: var(--iei-charcoal); font-weight: 600; padding: .55rem .75rem !important; border-radius: .5rem; white-space: nowrap; }
/* Desktop header: brand + Join button on the first row, menu centred on the second
   row, so the long Tamil labels never collide with the organisation name. */
@media (min-width: 1200px) {
  .site-header .navbar { padding-block: .4rem .1rem; }
  .site-header .navbar > .container { flex-wrap: wrap; row-gap: .2rem; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.15rem; line-height: 1.25; }
  .brand { flex-shrink: 0; }
  .brand-name, .brand-sub { white-space: nowrap; }
  .header-join { white-space: nowrap; }
  .site-header .navbar-expand-xl .navbar-collapse { order: 3; flex-basis: 100%; justify-content: center;
    border-top: 1px solid #f3e6cc; padding-top: .15rem; }
  .site-header .navbar-nav { flex-wrap: wrap; justify-content: center; }
  .site-header .nav-link { white-space: nowrap; padding: .3rem .8rem !important; }
}

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(circle at 75% 30%, var(--iei-maroon-light) 0%, var(--iei-maroon) 45%, var(--iei-maroon-dark) 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--iei-gold), #ffe29a, var(--iei-gold)); }
.hero-inner { padding-block: 1.75rem 2rem; }
.hero-kicker { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; color: #fde9c0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { color: var(--iei-gold); font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.3; margin-bottom: .6rem; }
.hero .tagline { color: #ffe8b0; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; line-height: 1.6; margin-bottom: 1rem; }
.hero-lead { color: #fdf3df; font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.1rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-actions .btn-lg { font-size: 1.05rem; padding: .6rem 1.15rem; }
.hero-meta { margin: 1rem 0 0; font-size: .85rem; color: #fde9c0; }
.hero-flag { border-radius: 1rem; box-shadow: 0 1.2rem 2.6rem rgba(0,0,0,.35); border: 3px solid rgba(242,193,78,.6); transform: rotate(-1.5deg); transition: transform .4s ease; }
.hero-flag:hover { transform: rotate(0) scale(1.01); }

/* Hero with a portrait photograph (Site settings → hero photograph).
   The photo keeps its native 3:4 ratio (never cropped). On laptops/desktops its
   HEIGHT follows the viewport so header + hero fit on one screen; below 992 px
   its width follows the screen and the page scrolls naturally. */
.hero-with-photo { background: radial-gradient(circle at 80% 35%, #a3222a 0%, var(--iei-maroon) 42%, var(--iei-maroon-dark) 100%); }
.hero-seal { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 .25rem .5rem rgba(0,0,0,.35)); }
.hero-portrait { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
/* Organisation flag beside the photo. Both images share one gold frame (.hero-framed) so they match.
   Each is width- or height-driven with the other dimension auto, so neither is stretched or cropped. */
.hero-visual { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.hero-org-flag { flex: 0 1 230px; min-width: 0; }
.hero-org-flag img, .hero-portrait .hero-photo { border-radius: .8rem; border: 3px solid rgba(242,193,78,.75);
  box-shadow: 0 .9rem 2rem rgba(0,0,0,.4); }
.hero-org-flag img { display: block; width: 100%; height: auto; }
.hero-portrait .hero-photo { position: relative; display: block; width: 340px; max-width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--iei-maroon-dark); }
.hero-portrait figcaption { position: relative; margin-top: 1rem; font-size: .75rem; color: #f8e7c2; text-align: right; opacity: .85; }
@media (min-width: 992px) {
  .hero-with-photo .hero-visual { justify-content: flex-end; }
  .hero-with-photo .hero-portrait { margin: 0; flex: none; }
  /* 100vh minus header (~142 px), hero padding (~60 px), frame offset and breathing room. */
  .hero-with-photo .hero-photo { width: auto; height: clamp(300px, calc(100vh - 240px), 385px); height: clamp(300px, calc(100svh - 240px), 385px); }
  /* Flag: a little larger (uses part of the column gutter on its left) and raised slightly above centre. */
  .hero-with-photo .hero-visual { gap: .75rem; margin-left: -1rem; }
  .hero-with-photo .hero-org-flag { flex-basis: 310px; transform: translateY(-50px); }
  /* Half-width text column: slightly smaller buttons keep both on one row in Tamil. */
  .hero-with-photo .hero-actions .btn-lg { font-size: 1rem; padding: .55rem .95rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-actions .btn-lg { font-size: .95rem; padding: .5rem .9rem; }
  .hero-with-photo .hero-org-flag { flex-basis: 210px; }
  .hero-with-photo .hero-photo { height: clamp(300px, calc(100vh - 240px), 360px); }
  .hero-with-photo .hero-actions .btn-lg { font-size: .92rem; padding: .5rem .8rem; }
}
@media (max-width: 991.98px) {
  .hero-with-photo .hero-text { text-align: center; }
  .hero-with-photo .hero-kicker, .hero-with-photo .hero-actions { justify-content: center; }
  .hero-with-photo .hero-lead { margin-inline: auto; }
}
@media (max-width: 575.98px) {
  .hero-visual { gap: .8rem; }
  .hero-portrait .hero-photo { width: 200px; }
  .hero-portrait { margin: 0; flex: none; }
  .hero-org-flag { flex: 1 1 auto; max-width: 150px; }
  .hero-org-flag img, .hero-portrait .hero-photo { border-width: 2px; border-radius: .5rem; }
  .hero-actions .btn-lg { font-size: 1rem; }
}

.page-hero { background: linear-gradient(120deg, var(--iei-maroon-dark), var(--iei-maroon)); color: #fff; padding: 2.4rem 0 2rem; border-bottom: 4px solid var(--iei-gold); }
.page-hero h1 { color: var(--iei-gold); margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.page-hero p { color: #fde9c0; margin: .4rem 0 0; }
.breadcrumb { --bs-breadcrumb-divider-color: #f8e7c2; --bs-breadcrumb-item-active-color: #fff; margin: 0 0 .4rem; font-size: .85rem; }
.breadcrumb a { color: #fde9c0; }

/* Large gutters are wider than the container padding on phones; avoid side scrolling. */
@media (max-width: 767.98px) {
  .row.g-5, .row.g-4 { --bs-gutter-x: 1.5rem; }
}

/* Sections and cards */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--iei-cream); }
.section-title { position: relative; padding-bottom: .6rem; margin-bottom: 1.6rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--iei-gold); }
.text-center .section-title::after, .section-title.text-center::after { left: 50%; transform: translateX(-50%); }
.card { border: 1px solid #f0e3c9; border-radius: var(--iei-radius); box-shadow: var(--iei-shadow); }
.card-lift { transition: transform .2s ease, box-shadow .2s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 .8rem 2rem rgba(84, 8, 16, .14); }
.card-img-top { border-top-left-radius: var(--iei-radius); border-top-right-radius: var(--iei-radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--iei-cream-2); }
.placeholder-img { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--iei-cream-2), #f6dcb0); color: var(--iei-maroon); font-size: 2.4rem; border-top-left-radius: var(--iei-radius); border-top-right-radius: var(--iei-radius); }
.badge-pinned { background: var(--iei-gold); color: #2b1700; }
.objective-list { list-style: none; padding: 0; }
.objective-list li { position: relative; padding: .55rem 0 .55rem 2.1rem; border-bottom: 1px dashed #ecd9b5; }
.objective-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .55rem; color: var(--iei-maroon); }
.feature-icon { width: 3rem; height: 3rem; border-radius: .8rem; display: inline-grid; place-items: center; background: var(--iei-cream-2); color: var(--iei-maroon); font-size: 1.4rem; }
.cta-band { background: linear-gradient(110deg, var(--iei-maroon-dark), var(--iei-maroon)); color: #fff; border-radius: 1.2rem; }
.cta-band h2 { color: var(--iei-gold); }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--iei-muted); border: 2px dashed #ecd9b5; border-radius: var(--iei-radius); background: #fffdf8; }
.empty-state .bi { font-size: 2.2rem; color: var(--iei-gold-dark); display: block; margin-bottom: .4rem; }
.staff-hint { border-left: 4px solid var(--iei-gold); background: #fffbea; padding: .7rem 1rem; border-radius: .5rem; font-size: .9rem; }

/* Leadership */
.leader-card { text-align: center; height: 100%; }
.leader-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid var(--iei-gold); margin: 1.4rem auto .6rem; background: var(--iei-cream-2); display: grid; place-items: center; color: var(--iei-maroon); font-size: 2.8rem; }
.leader-name { font-size: 1.08rem; font-weight: 700; color: var(--iei-charcoal); margin-bottom: .1rem; }
.leader-role { color: var(--iei-maroon); font-weight: 600; font-size: .95rem; }
.leader-meta { color: var(--iei-muted); font-size: .85rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: .8rem; overflow: hidden; aspect-ratio: 4 / 3; background: var(--iei-cream-2); border: 0; padding: 0; display: block; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.05); }
.gallery-item .caption { position: absolute; inset: auto 0 0 0; padding: .5rem .7rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: .85rem; text-align: left; }
.gallery-item .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.ratio iframe { border: 0; }

/* Forms */
.form-label { font-weight: 600; margin-bottom: .3rem; }
.form-control, .form-select { border-radius: .6rem; padding: .62rem .8rem; border-color: #d9c9ad; }
.form-control:focus, .form-select:focus { border-color: var(--iei-gold-dark); box-shadow: 0 0 0 .22rem rgba(242, 193, 78, .35); }
.form-check-input:checked { background-color: var(--iei-maroon); border-color: var(--iei-maroon); }
.form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(242, 193, 78, .45); }
.form-text { color: var(--iei-muted); }
.required-mark { color: #b00020; margin-left: .15rem; }
.form-section { border: 1px solid #f0e3c9; border-radius: var(--iei-radius); padding: 1.3rem; background: #fff; }
.form-section legend { font-size: 1.05rem; font-weight: 700; color: var(--iei-maroon); float: none; width: auto; padding: 0 .4rem; margin-bottom: .6rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.photo-preview { width: 120px; height: 150px; border-radius: .6rem; object-fit: cover; border: 2px dashed #d9c9ad; background: var(--iei-cream); }
.reference-box { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(1.3rem, 5vw, 2rem); letter-spacing: .08em; color: var(--iei-maroon); background: var(--iei-cream); border: 2px dashed var(--iei-gold-dark); border-radius: .8rem; padding: .8rem 1.2rem; display: inline-block; word-break: break-all; }

/* Status pills */
.status-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; border-radius: 999px; font-weight: 600; font-size: .85rem; border: 1px solid transparent; white-space: nowrap; }
.status-submitted, .status-draft { background: #eef3ff; color: #1f3a8a; border-color: #cdd9fb; }
.status-under_review { background: #fff6dd; color: #7a5200; border-color: #f4dc95; }
.status-more_info { background: #fff0e0; color: #8a3b00; border-color: #f5c99a; }
.status-approved, .status-active, .status-valid, .status-published { background: #e6f5ec; color: #11592f; border-color: #b8e0c6; }
.status-rejected, .status-revoked, .status-deactivated, .status-invalid { background: #fde8ea; color: #8f0016; border-color: #f4bcc3; }
.status-suspended { background: #fff3d6; color: #7a4a00; border-color: #f2d083; }
.status-expired, .status-replaced { background: #eeeeee; color: #444; border-color: #d4d4d4; }
.status-open { background: #eef3ff; color: #1f3a8a; }
.status-completed { background: #e6f5ec; color: #11592f; }

/* Timeline */
.timeline { list-style: none; padding-left: 1.2rem; border-left: 3px solid #f0dcb4; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem .8rem; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .45rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--iei-gold); border: 3px solid #fff; box-shadow: 0 0 0 1px #e4c88a; }
.timeline time { display: block; font-size: .8rem; color: var(--iei-muted); }

/* Verification */
.verify-card { max-width: 560px; margin: 0 auto; }
.verify-state { font-size: 1.6rem; font-weight: 800; padding: 1.2rem; border-radius: var(--iei-radius) var(--iei-radius) 0 0; text-align: center; }
.verify-state .bi { font-size: 2.8rem; display: block; }
.verify-valid { background: #11592f; color: #fff; }
.verify-suspended { background: #b06d00; color: #fff; }
.verify-expired { background: #555; color: #fff; }
.verify-revoked, .verify-invalid { background: #8f0016; color: #fff; }

/* ID card preview (HTML version of the PDF) */
.id-card-wrap { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.id-card { width: min(100%, 428px); aspect-ratio: 85.6 / 54; position: relative; border-radius: 14px; overflow: hidden; background: #fffbf0; box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.18); font-size: clamp(7px, 2.2vw, 10px); color: #222; container-type: inline-size; }
.id-card .ic-head { position: absolute; inset: 0 0 auto 0; height: 24%; background: var(--iei-maroon); border-bottom: 1.5cqi solid var(--iei-gold); display: flex; align-items: center; gap: 2.5cqi; padding: 0 2.5cqi; }
.id-card .ic-head img { width: 11.5cqi; height: 11.5cqi; }
.id-card .ic-org-ta { color: var(--iei-gold); font-weight: 800; font-size: 4.6cqi; line-height: 1.25; }
.id-card .ic-org-en { color: #fff; font-size: 2.5cqi; letter-spacing: .05em; font-weight: 700; }
.id-card .ic-title { position: absolute; top: 26.5%; left: 28.5%; right: 24%; color: var(--iei-maroon); font-weight: 800; font-size: 2.2cqi; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-card .ic-photo { position: absolute; left: 3.5%; top: 29.6%; width: 22.2%; height: 44.4%; object-fit: cover; border: .6cqi solid var(--iei-gold); background: #ebe6dc; }
.id-card .ic-body { position: absolute; left: 28.6%; top: 33%; width: 45%; line-height: 1.35; }
.id-card .ic-name { font-size: 3.9cqi; font-weight: 800; }
.id-card .ic-name-en { font-size: 2.6cqi; color: #5f5a55; text-transform: uppercase; margin-bottom: 1cqi; }
.id-card .ic-row { display: grid; grid-template-columns: 42% 58%; font-size: 2.4cqi; gap: 1cqi; }
.id-card .ic-row span:first-child { color: #5f5a55; font-size: 1.9cqi; }
.id-card .ic-row span:last-child { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-card .ic-qr { position: absolute; right: 2.5%; top: 29.6%; width: 20%; aspect-ratio: 1; background: #fff; padding: .6cqi; }
.id-card .ic-qr svg, .id-card .ic-qr img { width: 100%; height: 100%; display: block; }
.id-card .ic-qr-label { position: absolute; right: 1.5%; top: 64%; width: 23%; text-align: center; font-size: 1.8cqi; color: #5f5a55; line-height: 1.3; }
.id-card .ic-foot { position: absolute; inset: auto 0 0 0; height: 8.3%; background: var(--iei-maroon-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 3.5%; font-size: 2.5cqi; font-weight: 700; }
.id-card .ic-status { padding: .2cqi 2cqi; border-radius: .6cqi; background: #19763c; }
.id-card .ic-status.st-suspended { background: #c47800; }
.id-card .ic-status.st-expired { background: #6e6e6e; }
.id-card .ic-status.st-revoked { background: #b00020; }
.id-card.back .ic-band { position: absolute; inset: 0 0 auto 0; height: 11%; background: var(--iei-maroon); color: var(--iei-gold); font-weight: 800; font-size: 2.3cqi; display: grid; place-items: center; text-align: center; padding: 0 2cqi; white-space: nowrap; overflow: hidden; }
.id-card.back .ic-back-body { position: absolute; top: 15%; left: 4.5%; right: 4.5%; font-size: 2.3cqi; line-height: 1.45; }
.id-card.back .ic-watermark { position: absolute; left: 25%; top: 18%; width: 50%; opacity: .08; }
.id-card.back .ic-sign { position: absolute; right: 6%; bottom: 13%; width: 33%; text-align: center; font-size: 2.1cqi; border-top: .25cqi solid #222; padding-top: .5cqi; }
.id-card .ic-void { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14cqi; font-weight: 900; color: rgba(176, 0, 32, .22); transform: rotate(-16deg); pointer-events: none; }

/* Footer */
.site-footer { background: var(--iei-maroon-dark); color: #f3dfb8; padding-top: 3rem; border-top: 5px solid var(--iei-gold); }
.site-footer h2 { color: var(--iei-gold); font-size: 1.05rem; }
.site-footer a { color: #f8e7c2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(242,193,78,.25); padding: 1rem 0; margin-top: 2rem; font-size: .85rem; }
.social-btn { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid rgba(242,193,78,.55); color: var(--iei-gold) !important; transition: background .2s, color .2s; }
.social-btn:hover { background: var(--iei-gold); color: var(--iei-maroon-dark) !important; text-decoration: none !important; }
.slogan-bar { background: var(--iei-maroon); color: var(--iei-gold); font-weight: 700; text-align: center; padding: .7rem 1rem; letter-spacing: .02em; }

/* Prose from admin-entered content */
.prose { white-space: pre-line; }
.prose p:last-child { margin-bottom: 0; }

/* Messages */
.alert { border-radius: .7rem; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Print: card preview pages print just the cards */
@media print {
  .no-print, .site-header, .top-strip, .site-footer, .slogan-bar, .page-hero, .dash-sidebar, .dash-topbar { display: none !important; }
  body { background: #fff; }
  .id-card { box-shadow: none; width: 85.6mm; border-radius: 3mm; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .id-card-wrap { gap: 6mm; justify-content: flex-start; }
}
