/* ============================================================
   ICCTAC 2027 — Site styles
   ============================================================ */

/* Playfair Display is loaded by a <link> in each page's <head>. */

:root{
  --navy:#16332B;
  --navy-deep:#102720;
  --gold:#C9A227;
  --gold-dark:#8A6A0F;
  --gold-hover:#B58F1A;
  --maroon:#8B5A2B;
  --bg:#FFFFFF;
  --bg-alt:#F5F6F1;
  --text:#1B2420;
  --muted:#55615A;
  --line:#D9DDD6;
  --line-soft:#E8EBE5;

  --f-head:'Playfair Display', Georgia, serif;
  --f-body:'Playfair Display', Georgia, serif;
  --f-mono:'Playfair Display', Georgia, serif;

  --container:1180px;
  --pad:clamp(20px, 4vw, 48px);
  --radius:3px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--f-body);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
body.menu-open{ overflow:hidden; }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5{ font-family:var(--f-head); font-weight:700; margin:0; line-height:1.2; color:var(--navy); }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
section[id], aside[id]{ scroll-margin-top:64px; }

.container{ max-width:var(--container); margin:0 auto; padding:0 var(--pad); }
.mono{ font-family:var(--f-mono); }
.muted{ color:var(--muted); }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.kicker{ font-size:15px; font-weight:600; color:var(--gold-dark); margin-bottom:6px; }

.section{ padding:clamp(48px, 7vw, 88px) 0; }
.section-alt{ background:var(--bg-alt); }
.section-alt + .section-alt{ padding-top:0; }
.section-navy{ background:var(--navy); color:#fff; }
.section-navy h2{ color:#fff; }
.section-navy .muted{ color:rgba(255,255,255,0.7); }

.section-head{ margin-bottom:32px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.section-head h2{ font-size:clamp(26px, 3vw, 34px); }

.skip-link{
  position:absolute; left:12px; top:-60px; background:var(--navy); color:#fff;
  padding:10px 18px; z-index:1000; font-size:14px; transition:top .2s ease;
}
.skip-link:focus{ top:12px; }

:focus-visible{ outline:2px solid var(--gold-dark); outline-offset:2px; }
.nav :focus-visible, .hero :focus-visible, .footer :focus-visible, .section-navy :focus-visible, .mobile-menu :focus-visible{ outline-color:var(--gold); }

/* Text links inside running copy */
.about-body a, .session-notice a, .subpage-body a:not(.btn), .final-cta a:not(.btn){ text-decoration:underline; text-underline-offset:3px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--f-body); font-size:15px; font-weight:600;
  padding:12px 22px; border:1px solid var(--navy); color:var(--navy); border-radius:var(--radius);
  background:transparent; transition:background .15s ease, color .15s ease, border-color .15s ease;
  line-height:1.3; text-align:center; max-width:100%;
}
.btn:hover{ background:var(--navy); color:#fff; }
.btn-solid{ background:var(--gold); border-color:var(--gold); color:var(--navy); }
.btn-solid:hover{ background:var(--gold-hover); border-color:var(--gold-hover); color:var(--navy); }
.btn-ghost-light{ border-color:rgba(255,255,255,0.55); color:#fff; }
.btn-ghost-light:hover{ background:#fff; border-color:#fff; color:var(--navy); }
.btn-block{ width:100%; }

/* ---------- Identity bar, title bar, notice ---------- */
.identity-bar{ background:var(--navy); padding:14px var(--pad); }
.identity-row{ max-width:var(--container); margin:0 auto; display:flex; align-items:center; justify-content:center; }
.identity-row img{ height:clamp(120px, 11vw, 220px); width:auto; max-width:100%; }

.date-banner{ background:#F7F0D6; color:var(--navy); font-size:15px; padding:10px var(--pad); text-align:center; border-bottom:1px solid #E6DAA8; }
.date-banner b{ margin-right:6px; }

/* ---------- Navigation ---------- */
.nav{
  position:sticky; top:0; z-index:900;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad)));
  background:var(--navy);
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.nav-logo{ font-family:var(--f-head); font-weight:700; font-size:20px; color:#fff; }
.nav-logo span{ color:var(--gold); }
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a:not(.btn){ font-size:15.5px; color:rgba(255,255,255,0.88); padding:4px 0; }
.nav-links a:not(.btn):hover{ color:var(--gold); }
.nav-cta{ padding:8px 18px; white-space:nowrap; }
.nav-toggle{ display:none; background:none; border:none; padding:10px; margin-right:-10px; }
.nav-toggle .bar{ display:block; width:24px; height:2px; background:#fff; margin:5px 0; }

.mobile-menu{
  position:fixed; inset:0; background:var(--navy); z-index:950;
  display:flex; flex-direction:column;
  padding:72px var(--pad) 32px;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  visibility:hidden; opacity:0; pointer-events:none;
  transition:opacity .2s ease, visibility 0s linear .2s;
}
.mobile-menu.open{ visibility:visible; opacity:1; pointer-events:auto; transition:opacity .2s ease; }
@media (min-width:961px){ .mobile-menu{ display:none; } }
.mobile-menu-close{ position:absolute; top:10px; right:calc(var(--pad) - 10px); width:48px; height:48px; display:flex; align-items:center; justify-content:center; background:none; border:0; color:#fff; }
.mobile-menu ul{ margin-bottom:28px; }
.mobile-menu li{ border-bottom:1px solid rgba(255,255,255,0.14); }
.mobile-menu a:not(.btn){ display:block; font-family:var(--f-head); font-size:22px; color:#fff; padding:14px 0; }
.mobile-menu .mm-label{ color:var(--gold); font-size:14px; margin-bottom:6px; }
.mobile-menu .btn-block{ padding:14px 22px; }

@media (max-width:960px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
}
@media (max-width:760px){
  .identity-bar{ padding:12px var(--pad); }
  .identity-row img{ height:72px; }
  .date-banner{ font-size:13.5px; }
  .nav{ padding:10px var(--pad); }
}

/* ---------- Hero ---------- */
.hero{ background:var(--navy); color:#fff; padding:clamp(40px, 6vw, 80px) 0; }
.hero-inner{ display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 0.85fr); gap:clamp(32px, 5vw, 72px); align-items:center; }
.hero-org{ font-size:15px; line-height:1.6; color:rgba(255,255,255,0.78); max-width:60ch; margin-bottom:18px; }
.hero-title{ color:#fff; font-size:clamp(30px, 3.7vw, 46px); line-height:1.18; margin-bottom:26px; }
.hero-meta{ display:flex; flex-wrap:wrap; gap:14px 44px; margin:0 0 30px; padding:18px 0; border-top:1px solid rgba(255,255,255,0.2); border-bottom:1px solid rgba(255,255,255,0.2); }
.hero-meta dt{ font-size:13.5px; color:rgba(255,255,255,0.62); }
.hero-meta dd{ margin:2px 0 0; font-size:19px; font-weight:600; color:#fff; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-photo{ margin:0; }
.hero-photo img{ width:100%; max-width:596px; height:auto; border-radius:var(--radius); }
.hero-photo figcaption{ font-size:13.5px; color:rgba(255,255,255,0.65); margin-top:8px; }
@media (max-width:900px){
  .hero-inner{ grid-template-columns:1fr; }
}

/* ---------- About ---------- */
.about-layout{ display:grid; grid-template-columns:minmax(0, 1fr) 380px; gap:clamp(32px, 5vw, 72px); align-items:start; }
.about-main h2{ font-size:clamp(28px, 3.4vw, 38px); margin:0 0 20px; }
.about-side{ border-top:2px solid var(--navy); padding-top:16px; position:sticky; top:84px; }
.about-side h2{ font-size:24px; margin:0 0 6px; }
@media (max-width:960px){
  .about-layout{ grid-template-columns:1fr; }
  .about-side{ position:static; }
}
.about-body{ max-width:760px; }
.about-body p + p{ margin-top:16px; }
.editorial-lede{ font-size:20px; font-style:italic; color:var(--maroon); margin-bottom:16px; }
.theme-block{ margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }
.theme-block h3{ font-size:20px; margin-bottom:8px; }

/* ---------- Host institution / venue ---------- */
.university{ display:grid; grid-template-columns:340px 1fr; gap:56px; align-items:start; }
.university-logo{ padding:32px; background:var(--navy); border-radius:var(--radius); }
.university-logo img{ width:100%; height:auto; }
.university h2{ font-size:clamp(26px, 3vw, 34px); margin:0 0 18px; }
@media (max-width:760px){
  .university{ grid-template-columns:1fr; gap:28px; }
  .university-logo{ max-width:240px; }
}

/* ---------- Important dates ---------- */
.dates-table{ width:100%; border-collapse:collapse; }
.dates-table td{ padding:12px 0; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); font-size:16px; line-height:1.4; }
.dates-table td:first-child{ white-space:nowrap; padding-right:16px; font-weight:600; color:var(--navy); }
.dates-table tr:last-child td{ border-bottom:none; }
.dates-table tr.is-final td{ font-weight:700; color:var(--navy); }
@media (max-width:560px){
  .dates-table td:first-child{ white-space:normal; }
}

/* ---------- Important links ---------- */
.links-list li{ display:grid; grid-template-columns:200px 1fr auto; gap:16px; align-items:baseline; padding:16px 0; border-bottom:1px solid var(--line); }
.ll-label{ font-size:14.5px; color:var(--muted); }
.ll-title{ font-weight:600; color:var(--navy); }
.links-list a{ font-weight:600; color:var(--navy); text-decoration:underline; text-underline-offset:3px; }
.links-list a:hover{ color:var(--gold-dark); }
@media (max-width:640px){
  .links-list li{ grid-template-columns:1fr; gap:2px; }
}

/* ---------- Call for papers / tracks ---------- */
.cfp-intro{ max-width:720px; }
.cfp-intro a{ text-decoration:underline; text-underline-offset:3px; }
.subhead{ font-size:21px; margin:32px 0 8px; }
.topic-list{ columns:3 220px; column-gap:32px; padding-left:20px; list-style:disc; }
.topic-list li{ break-inside:avoid; padding:4px 0; font-size:16.5px; }
.topic-list li::marker{ color:var(--muted); }

/* ---------- Sessions ---------- */
.session-notice{ padding:16px 20px; border:1px solid var(--line); color:var(--muted); font-size:16px; }

/* ---------- Committee / faculty ---------- */
.people-group{ margin-bottom:40px; }
.people-group-title{ font-family:var(--f-head); font-size:19px; font-weight:700; color:var(--navy); margin-bottom:18px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.people-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:22px 32px; }
.person-name{ font-weight:700; font-size:17px; margin-bottom:2px; color:var(--text); }
.person-role{ font-size:15px; color:var(--muted); line-height:1.5; }

.reviewer-grid{ column-count:1; }
@media (min-width:640px){ .reviewer-grid{ column-count:2; } }
@media (min-width:1000px){ .reviewer-grid{ column-count:3; } }
.reviewer-item{ break-inside:avoid; padding:10px 0; border-bottom:1px solid var(--line-soft); font-size:16px; }
.reviewer-item b{ font-weight:600; }
.reviewer-wrap{ max-height:620px; overflow:hidden; position:relative; }
.reviewer-wrap.expanded{ max-height:4000px; }
.reviewer-fade{ position:absolute; bottom:0; left:0; right:0; height:110px; background:linear-gradient(rgba(255,255,255,0), var(--bg)); pointer-events:none; }
.reviewer-wrap.expanded .reviewer-fade{ display:none; }
.reviewer-toggle{ margin-top:20px; background:none; border:1px solid var(--navy); border-radius:var(--radius); padding:10px 20px; font-size:15px; font-weight:600; color:var(--navy); }
.reviewer-toggle:hover{ background:var(--navy); color:#fff; }

/* ---------- Registration ---------- */
.final-cta h2{ font-size:clamp(28px, 3.6vw, 42px); max-width:24ch; margin:0 0 26px; }
.final-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.fee-card{ background:#fff; color:var(--text); border-radius:var(--radius); max-width:720px; padding:clamp(20px, 3vw, 30px); }
.fee-note{ font-size:16px; font-weight:700; color:var(--navy); margin-bottom:10px; }
.fee-table-real{ width:100%; border-collapse:collapse; }
.fee-table-real th, .fee-table-real td{ padding:12px 14px; text-align:left; font-size:16px; }
.fee-table-real th:not(:first-child), .fee-table-real td:not(:first-child){ text-align:right; }
.fee-table-real thead th{ font-size:14.5px; font-weight:600; color:var(--muted); border-bottom:2px solid var(--navy); }
.fee-table-real tbody td{ border-bottom:1px solid var(--line); font-weight:600; }
.fee-table-real tbody td:first-child{ font-weight:400; color:var(--text); }
.fee-table-real tbody tr:last-child td{ border-bottom:none; }
@media (max-width:560px){
  .fee-table-real th, .fee-table-real td{ padding:10px 6px; font-size:14.5px; }
}

/* ---------- Footer ---------- */
.footer{ background:var(--navy-deep); color:rgba(255,255,255,0.78); padding:56px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:44px; }
.footer-brand{ font-family:var(--f-head); font-weight:700; font-size:24px; color:#fff; margin-bottom:12px; }
.footer h5{ font-size:16px; color:#fff; margin-bottom:14px; }
.footer li{ margin-bottom:10px; font-size:15px; }
.footer a:hover{ color:#fff; text-decoration:underline; }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{ width:36px; height:36px; border-radius:var(--radius); border:1px solid rgba(255,255,255,0.3); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:#fff; color:var(--navy); border-color:#fff; text-decoration:none; }
.footer:has(.container > .footer-bottom:only-child){ padding:28px 0; }
.footer .container > .footer-bottom:only-child{ border-top:0; padding-top:0; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.15); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:14px; color:rgba(255,255,255,0.62); }
@media (max-width:860px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
}

/* ---------- Sub-pages (guidelines, submission) ---------- */
.page-hero{ background:var(--bg-alt); border-bottom:1px solid var(--line); padding:44px 0 40px; }
.page-hero h1{ font-size:clamp(30px, 4.4vw, 46px); }
.subpage-body > *{ max-width:760px; }
.subpage-body h2{ font-size:clamp(22px, 2.6vw, 28px); margin:40px 0 14px; }
.subpage-body h2:first-child{ margin-top:0; }
.subpage-body p, .subpage-body li{ margin-bottom:14px; color:var(--text); }
.subpage-body ul{ padding-left:20px; list-style:disc; }
.step-list{ margin-top:20px; }
.step-item{ display:grid; grid-template-columns:44px 1fr; gap:18px; padding:20px 0; border-top:1px solid var(--line); }
.step-item:first-child{ border-top:none; }
.step-num{ font-weight:700; color:var(--gold-dark); font-size:17px; }

/* ---------- Touch & phone adjustments ---------- */
a, button{ touch-action:manipulation; -webkit-tap-highlight-color:rgba(201,162,39,0.25); }
.footer li a{ display:inline-block; padding:5px 0; }

@media (max-width:640px){
  .topic-list{ columns:2; column-gap:20px; padding-left:18px; }
  .topic-list li{ font-size:15.5px; }
}

@media (max-width:600px){
  body{ font-size:16px; }

  /* hero: label/value rows and full-width buttons */
  .hero-meta{ display:block; padding:0; }
  .hero-meta div{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.2); }
  .hero-meta div:last-child{ border-bottom:0; }
  .hero-meta dt{ font-size:14px; }
  .hero-meta dd{ margin:0; font-size:17px; text-align:right; }
  .hero-actions{ flex-direction:column; }
  .hero-actions .btn, .final-actions .btn, .university .btn{ width:100%; padding:14px 22px; }

  /* important dates: date on top, event below */
  .dates-table, .dates-table tbody, .dates-table tr, .dates-table td{ display:block; }
  .dates-table tr{ padding:12px 0; border-bottom:1px solid var(--line); }
  .dates-table tr:last-child{ border-bottom:0; }
  .dates-table td{ padding:0; border:0; }
  .dates-table td:first-child{ padding:0 0 2px; }

  /* registration fees: one block per category */
  .fee-table-real thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .fee-table-real, .fee-table-real tbody, .fee-table-real tr, .fee-table-real td{ display:block; }
  .fee-table-real tbody tr{ padding:12px 0; border-bottom:1px solid var(--line); }
  .fee-table-real tbody tr:last-child{ border-bottom:0; padding-bottom:0; }
  .fee-table-real td, .fee-table-real tbody td{ border:0; padding:3px 0; font-size:16px; text-align:left !important; }
  .fee-table-real tbody td:first-child{ font-weight:700; color:var(--navy); }
  .fee-table-real td[data-label]{ display:flex; justify-content:space-between; gap:16px; }
  .fee-table-real td[data-label]::before{ content:attr(data-label); font-weight:400; color:var(--muted); }

  .step-item{ grid-template-columns:32px 1fr; gap:10px; }

  /* bigger tap targets */
  .footer li{ margin-bottom:0; }
  .footer li a{ padding:10px 0; }
  .footer-social{ gap:10px; }
  .footer-social a{ width:44px; height:44px; }
  .reviewer-toggle{ padding:12px 22px; }
}


/* Collaboration Partner Bar in Header */
.identity-row-collab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
}
.identity-collab-divider {
  width: 1px;
  height: clamp(36px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.25);
}
.identity-collab-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.collab-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.partner-logo-img {
  height: clamp(36px, 4vw, 54px) !important;
  width: auto !important;
  object-fit: contain;
}
@media (max-width: 760px) {
  .identity-collab-divider {
    display: none;
  }
  .identity-row-collab {
    flex-direction: column;
    gap: 8px;
  }
  .partner-logo-img {
    height: 32px !important;
  }
}
