/*
 * 3rd ANMC Conference 2027 (Mombasa, Kenya) - conference + call for abstracts pages.
 * Colours come from the official Mombasa 2027 poster. Everything is scoped under .c27.
 */
.c27 {
  --c27-navy: #0d2b5c;
  --c27-navy-2: #123a78;
  --c27-blue: #1f5fbf;
  --c27-green: #17924a;
  --c27-green-2: #2fbf5a;
  --c27-red: #d9232b;
  --c27-red-dark: #b81c23;
  --c27-ink: #14213d;
  --c27-text: #33405a;
  --c27-muted: #5d6880;
  --c27-line: #dfe5ee;
  --c27-soft: #f3f6fb;
  --c27-soft-green: #eaf7ef;
  --c27-white: #ffffff;
  --c27-radius: 14px;
  --c27-radius-sm: 9px;
  --c27-shadow: 0 1px 2px rgba(13, 43, 92, .06), 0 8px 24px rgba(13, 43, 92, .08);
  --c27-brand-gradient: linear-gradient(90deg, var(--c27-blue) 0%, #1a8a8c 55%, var(--c27-green-2) 100%);
  --c27-head: "Montserrat", "Ubuntu", system-ui, sans-serif;
  --c27-body: "Ubuntu", system-ui, sans-serif;

  font-family: var(--c27-body);
  color: var(--c27-text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--c27-white);
}

.c27 *, .c27 *::before, .c27 *::after { box-sizing: border-box; }
:where(.c27) :is(h1, h2, h3, h4) { font-family: var(--c27-head); color: var(--c27-ink); line-height: 1.25; margin: 0; }
:where(.c27) p { margin: 0 0 1rem; color: var(--c27-text); font-size: 16px; line-height: 1.75; }
:where(.c27) :is(ul, ol) { margin: 0; padding: 0; }
:where(.c27) li { list-style: none; }
:where(.c27) a { color: var(--c27-blue); }
:where(.c27) strong { color: var(--c27-ink); font-weight: 700; }
.c27 :focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; border-radius: 4px; }

.c27-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.c27-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--c27-head); font-weight: 700; font-size: 15px; line-height: 1.2;
  text-decoration: none !important; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.c27-btn:hover { transform: translateY(-1px); }
.c27-btn:active { transform: translateY(0); }
.c27-btn--primary { background: var(--c27-red); color: #fff !important; }
.c27-btn--primary:hover { background: var(--c27-red-dark); }
.c27-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.c27-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.c27-btn--light { background: #fff; color: var(--c27-navy) !important; border-color: var(--c27-line); }
.c27-btn--light:hover { border-color: var(--c27-blue); color: var(--c27-blue) !important; }
.c27-btn--green { background: var(--c27-green); color: #fff !important; }
.c27-btn--green:hover { background: #127a3d; }
.c27-btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: 14px; }
.c27-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.c27-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(47, 191, 90, .22), transparent 60%),
    linear-gradient(160deg, var(--c27-navy) 0%, var(--c27-navy-2) 60%, #134c6e 100%);
  padding: 72px 0 84px;
}
.c27-hero::after { /* poster ribbon */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 10px;
  background: linear-gradient(90deg, var(--c27-blue), var(--c27-green-2) 70%, var(--c27-red) 70%, var(--c27-red) 74%, var(--c27-green-2) 74%);
}
.c27-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.c27-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem;
  font-family: var(--c27-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.c27-hero .c27-eyebrow { color: #bfe9cc; }
.c27-eyebrow i { color: var(--c27-green-2); }
.c27-hero__brand { font-family: var(--c27-head); font-weight: 800; line-height: .95; margin: 0 0 .35rem; color: #fff; }
.c27-hero__brand .city {
  display: inline-block; font-size: clamp(3rem, 8vw, 5.4rem); letter-spacing: -.02em;
  background: linear-gradient(90deg, #6fa8ff 0%, #4fd1a6 55%, #55e07f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.c27-hero__brand .year { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin-left: .3rem; }
.c27-hero__sub { display: block; font-family: var(--c27-head); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; color: #ff6b70; margin-bottom: 1.4rem; }
.c27-hero .c27-theme { border-left: 4px solid var(--c27-green-2); padding: .25rem 0 .25rem 1rem; margin-bottom: 1.1rem; }
.c27-hero .c27-theme small { display: block; font-family: var(--c27-head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a9bfe6; font-weight: 700; }
.c27-hero .c27-theme p { color: #fff; font-family: var(--c27-head); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.45; margin: .2rem 0 0; }
.c27-tagline { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0 0 1.6rem; font-family: var(--c27-head); font-weight: 700; color: #7fe39c; font-size: 15px; }
.c27-tagline span + span::before { content: "|"; margin-right: .9rem; color: rgba(255, 255, 255, .45); }
.c27-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.c27-fact {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 14px; font-weight: 500; color: #fff;
}
.c27-fact i { color: #7fe39c; }

.c27-hero__media { position: relative; }
.c27-hero__media img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); border: 6px solid #fff; }
.c27-hero__badge {
  position: absolute; left: -22px; bottom: -18px; background: var(--c27-red); color: #fff; border-radius: 12px; padding: .7rem 1rem;
  font-family: var(--c27-head); font-weight: 800; font-size: 14px; line-height: 1.25; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); max-width: 210px;
}
.c27-hero__badge small { display: block; font-weight: 600; font-size: 12px; opacity: .9; }

/* Compact hero for the call page */
.c27-hero--call { padding: 56px 0 64px; }
.c27-hero--call h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; margin-bottom: .4rem; }
.c27-hero--call .c27-doc-title { color: #cfe0ff; font-family: var(--c27-head); font-weight: 600; font-size: 1.05rem; margin-bottom: 1.3rem; }
.c27-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: 14px; margin-bottom: 1.2rem; color: #a9bfe6; }
.c27-breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Countdown ---------- */
.c27-countdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: -44px; position: relative; z-index: 2; }
.c27-count {
  background: #fff; border-radius: var(--c27-radius); box-shadow: var(--c27-shadow); padding: 20px 22px;
  border-top: 5px solid var(--c27-red); display: flex; flex-direction: column; gap: .6rem;
}
.c27-count--green { border-top-color: var(--c27-green); }
.c27-count__label { font-family: var(--c27-head); font-weight: 700; color: var(--c27-ink); font-size: 15px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.c27-count__label time { color: var(--c27-muted); font-weight: 600; font-size: 14px; }
.c27-count__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.c27-count__unit { background: var(--c27-soft); border-radius: 10px; padding: 8px 4px; text-align: center; }
.c27-count__unit b { display: block; font-family: var(--c27-head); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--c27-navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.c27-count__unit span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c27-muted); }
.c27-count__note { font-size: 13px; color: var(--c27-muted); margin: 0; }
.c27-count__done { display: none; font-weight: 600; color: var(--c27-muted); margin: 0; }
.c27-count.is-done .c27-count__units { display: none; }
.c27-count.is-done .c27-count__done { display: block; }
.c27-hero--call .c27-count { margin-top: 0; }

/* ---------- Sections ---------- */
.c27-section { padding: 72px 0; scroll-margin-top: 110px; }
.c27-section--soft { background: var(--c27-soft); }
.c27-section--tight { padding: 48px 0; }
.c27-head { margin-bottom: 28px; max-width: 760px; }
.c27-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.c27-head .c27-eyebrow { color: var(--c27-green); }
.c27-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 800; position: relative; padding-bottom: 14px; }
.c27-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--c27-blue) 0 45%, var(--c27-green-2) 45% 85%, var(--c27-red) 85%); }
.c27-head--center h2::after { left: 50%; transform: translateX(-50%); }
.c27-head p { margin-top: 1rem; font-size: 17px; }
.c27 h3.c27-h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .6rem; }
.c27 h3.c27-h3 i { color: var(--c27-green); }

.c27-lead { font-size: 18px !important; color: var(--c27-ink) !important; }

/* ---------- Tables ---------- */
.c27-table-card { background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); box-shadow: var(--c27-shadow); overflow: hidden; }
.c27-table-card__title { display: flex; align-items: center; gap: .6rem; padding: 14px 20px; background: var(--c27-navy); color: #fff; font-family: var(--c27-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.c27-table-card__title i { color: #7fe39c; }
.c27-table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0; }
.c27-table caption { caption-side: top; text-align: left; padding: 0; }
.c27-table thead th {
  background: var(--c27-soft); color: var(--c27-navy); font-family: var(--c27-head); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; text-align: left; padding: 12px 20px; border-bottom: 2px solid var(--c27-line);
}
.c27-table td, .c27-table tbody th { padding: 15px 20px; border-bottom: 1px solid var(--c27-line); vertical-align: top; text-align: left; color: var(--c27-text); line-height: 1.55; }
.c27-table tbody th { font-family: var(--c27-head); font-weight: 700; color: var(--c27-ink); font-size: 15px; }
.c27-table tbody tr:last-child td, .c27-table tbody tr:last-child th { border-bottom: 0; }
.c27-table tbody tr { transition: background-color .15s ease; }
.c27-table tbody tr:hover { background: #f7faff; }
.c27-table .c27-nowrap { white-space: nowrap; }
.c27-table--overview tbody th { width: 34%; }
.c27-table--overview tbody th i { width: 22px; color: var(--c27-green); margin-right: .45rem; }

.c27-time-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--c27-soft-green); color: #0f6b35; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Key dates */
.c27-table--dates tr.is-done td, .c27-table--dates tr.is-done th { color: #8b94a7; }
.c27-table--dates tr.is-next { background: #fff6f6; box-shadow: inset 4px 0 0 var(--c27-red); }
.c27-table--dates tr.is-now { background: var(--c27-soft-green); box-shadow: inset 4px 0 0 var(--c27-green); }
.c27-table--dates tr.is-final th { color: var(--c27-navy); }
.c27-status { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.c27-status--done { background: #eef1f5; color: #5d6880; }
.c27-status--now { background: #d9f2e2; color: #0f6b35; border-color: #a9dfbd; }
.c27-status--next { background: #fde4e5; color: #a3161c; border-color: #f6b8bb; }
.c27-status--upcoming { background: #e8effc; color: #1a4fa0; }
.c27-dates-note { display: flex; gap: .7rem; align-items: flex-start; padding: 14px 20px; background: #fffaf0; border-bottom: 1px solid var(--c27-line); font-size: 15px; color: var(--c27-ink); }
.c27-dates-note i { color: #c98500; margin-top: .3rem; }

/* Review criteria */
.c27-weight { display: flex; align-items: center; gap: .8rem; min-width: 160px; }
.c27-weight__bar { flex: 1; height: 10px; border-radius: 6px; background: #e9eef5; overflow: hidden; }
.c27-weight__bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--c27-brand-gradient); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.c27-weight b { font-family: var(--c27-head); color: var(--c27-navy); min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.c27-stack { display: flex; height: 18px; border-radius: 9px; overflow: hidden; margin: 0 20px 4px; }
.c27-stack span { display: block; height: 100%; }
.c27-stack-wrap { padding: 16px 0 14px; border-bottom: 1px solid var(--c27-line); }
.c27-stack-wrap > small { display: block; padding: 0 20px 8px; color: var(--c27-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.c27-key-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .55rem; vertical-align: -1px; }

/* Responsive tables: stack rows as cards on small screens */
@media (max-width: 680px) {
  .c27-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .c27-table--stack, .c27-table--stack tbody, .c27-table--stack tr, .c27-table--stack th, .c27-table--stack td { display: block; width: 100%; }
  .c27-table--stack tr { padding: 14px 16px; border-bottom: 1px solid var(--c27-line); }
  .c27-table--stack tbody tr:last-child { border-bottom: 0; }
  .c27-table--stack td, .c27-table--stack tbody th { padding: 4px 0; border: 0; }
  .c27-table--stack td[data-label]::before { content: attr(data-label); display: block; font-family: var(--c27-head); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c27-muted); }
  .c27-table--overview tbody th { width: 100%; }
}

/* ---------- Lists ---------- */
.c27-bullets li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; line-height: 1.6; }
.c27-bullets li::before { content: ""; position: absolute; left: .25rem; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--c27-green); }
.c27-checks li { position: relative; padding: .7rem .9rem .7rem 2.8rem; margin-bottom: .55rem; background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius-sm); line-height: 1.55; }
.c27-checks li::before {
  content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: .85rem; top: .72rem;
  width: 22px; height: 22px; border-radius: 50%; background: var(--c27-soft-green); color: var(--c27-green); font-size: 11px; display: grid; place-items: center;
}
.c27-cols-2 { columns: 2; column-gap: 28px; }
.c27-cols-2 li { break-inside: avoid; }

/* Outputs */
.c27-outputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1.2rem 0 1.6rem; counter-reset: out; }
.c27-outputs li {
  counter-increment: out; position: relative; background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius);
  padding: 20px 20px 20px 66px; font-family: var(--c27-head); font-weight: 600; color: var(--c27-ink); line-height: 1.45; font-size: 15.5px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.c27-outputs li:hover { border-color: #b9d0f3; box-shadow: var(--c27-shadow); transform: translateY(-2px); }
.c27-outputs li::before {
  content: counter(out, decimal-leading-zero); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; background: var(--c27-brand-gradient); color: #fff; font-weight: 800; font-size: 13px;
}

/* Sub-theme cards (overview page) */
.c27-subgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.c27-subcard {
  display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius);
  padding: 22px; text-decoration: none !important; color: inherit; position: relative; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.c27-subcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c27-brand-gradient); transform: scaleX(.25); transform-origin: left; transition: transform .3s ease; }
.c27-subcard:hover, .c27-subcard:focus-visible { border-color: #b9d0f3; box-shadow: var(--c27-shadow); transform: translateY(-3px); }
.c27-subcard:hover::before, .c27-subcard:focus-visible::before { transform: scaleX(1); }
.c27-subcard__num { font-family: var(--c27-head); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c27-green); }
.c27-subcard h3 { font-size: 1.08rem; font-weight: 700; }
.c27-subcard p { font-size: 14.5px; color: var(--c27-muted); margin: 0; line-height: 1.55; }
.c27-subcard__more { margin-top: auto; padding-top: .6rem; font-size: 14px; font-weight: 700; color: var(--c27-blue); display: inline-flex; gap: .4rem; align-items: center; }

/* About split */
.c27-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.c27-question { background: var(--c27-navy); color: #fff; border-radius: var(--c27-radius); padding: 28px; position: relative; overflow: hidden; }
.c27-question::after { content: "\201C"; position: absolute; right: 14px; top: -24px; font-family: Georgia, serif; font-size: 150px; color: rgba(255, 255, 255, .08); }
.c27-question p { color: #e6eeff; }
.c27-question strong { color: #fff; }

/* ---------- Call page layout (TOC + content) ---------- */
.c27-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.c27-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.c27-toc__title { font-family: var(--c27-head); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c27-muted); margin-bottom: .6rem; }
.c27-toc ol { border-left: 2px solid var(--c27-line); }
.c27-toc a {
  display: block; padding: .42rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--c27-muted);
  text-decoration: none !important; font-size: 14px; line-height: 1.4; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.c27-toc a:hover { color: var(--c27-ink); background: var(--c27-soft); }
.c27-toc a.is-active { color: var(--c27-navy); border-left-color: var(--c27-red); font-weight: 700; background: #f7f9fd; }
.c27-toc__actions { margin-top: 1.2rem; display: grid; gap: .5rem; }
.c27-doc > section { padding: 0 0 56px; scroll-margin-top: 110px; }
.c27-doc > section + section { border-top: 1px solid var(--c27-line); padding-top: 48px; }
.c27-doc .c27-head { margin-bottom: 20px; }

.c27-lang-note { display: flex; gap: .7rem; align-items: flex-start; padding: 12px 16px; border-radius: var(--c27-radius-sm); background: #eef4ff; color: var(--c27-navy); font-size: 14.5px; margin-bottom: 28px; }
.c27-lang-note i { margin-top: .3rem; color: var(--c27-blue); }

/* Theme block on call page */
.c27-themebox { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
.c27-themebox > div { border-radius: var(--c27-radius); padding: 18px 22px; background: var(--c27-soft); border-left: 5px solid var(--c27-blue); }
.c27-themebox > div:nth-child(2) { border-left-color: var(--c27-green); background: var(--c27-soft-green); }
.c27-themebox p { margin: 0; font-family: var(--c27-head); font-weight: 600; color: var(--c27-ink); font-size: 1.08rem; line-height: 1.5; }
.c27-themebox strong { color: var(--c27-red); margin-right: .35rem; }

/* Accordion (sub-themes) */
.c27-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.c27-search { flex: 1 1 280px; }
.c27-search label { display: block; font-size: 13px; font-weight: 700; color: var(--c27-ink); margin-bottom: .35rem; }
.c27-search__box { position: relative; }
.c27-search__box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c27-muted); }
.c27-search input {
  width: 100%; min-height: 46px; padding: .6rem 1rem .6rem 2.6rem; border: 1px solid #c9d3e1; border-radius: 10px; font-size: 15px; color: var(--c27-ink); background: #fff;
}
.c27-search input:focus { border-color: var(--c27-blue); box-shadow: 0 0 0 3px rgba(31, 95, 191, .15); outline: none; }
.c27-acc { display: grid; gap: 10px; }
.c27-acc details { background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); scroll-margin-top: 110px; transition: border-color .2s ease, box-shadow .2s ease; }
.c27-acc details[open] { border-color: #b9d0f3; box-shadow: var(--c27-shadow); }
.c27-acc details:target { border-color: var(--c27-red); }
.c27-acc summary { display: grid; grid-template-columns: 46px minmax(0, 1fr) 24px; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; }
.c27-acc summary::-webkit-details-marker { display: none; }
.c27-acc__num { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--c27-brand-gradient); color: #fff; font-family: var(--c27-head); font-weight: 800; font-size: 18px; }
.c27-acc__label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c27-green); }
.c27-acc__title { display: block; font-family: var(--c27-head); font-weight: 700; color: var(--c27-ink); font-size: 1.02rem; line-height: 1.4; }
.c27-acc__meta { display: block; font-size: 13px; color: var(--c27-muted); margin-top: .15rem; }
.c27-acc__chev { color: var(--c27-muted); transition: transform .2s ease; }
.c27-acc details[open] .c27-acc__chev { transform: rotate(180deg); color: var(--c27-blue); }
.c27-acc__body { padding: 0 18px 18px 78px; }
.c27-acc mark { background: #fff1a8; color: inherit; padding: 0 2px; border-radius: 3px; }
.c27-empty { display: none; padding: 18px; border: 1px dashed #c9d3e1; border-radius: var(--c27-radius); text-align: center; color: var(--c27-muted); }

/* Categories */
.c27-cats { display: grid; gap: 10px; margin: 1rem 0 1.4rem; }
.c27-cat { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 6px 20px; align-items: baseline; background: #fff; border: 1px solid var(--c27-line); border-left: 5px solid var(--c27-blue); border-radius: var(--c27-radius-sm); padding: 14px 18px; transition: box-shadow .2s ease; }
.c27-cat:hover { box-shadow: var(--c27-shadow); }
.c27-cat:nth-child(2) { border-left-color: var(--c27-green); }
.c27-cat:nth-child(3) { border-left-color: var(--c27-red); }
.c27-cat:nth-child(4) { border-left-color: #1a8a8c; }
.c27-cat:nth-child(5) { border-left-color: var(--c27-navy); }
.c27-cat strong { font-family: var(--c27-head); line-height: 1.4; }
.c27-cat span { font-size: 15px; color: var(--c27-muted); line-height: 1.55; }
@media (max-width: 680px) { .c27-cat { grid-template-columns: minmax(0, 1fr); } }

/* Callouts */
.c27-callout { display: flex; gap: 1rem; align-items: flex-start; padding: 18px 20px; border-radius: var(--c27-radius); background: var(--c27-soft-green); border: 1px solid #bfe5cc; margin: 1.2rem 0; }
.c27-callout > i { font-size: 20px; color: var(--c27-green); margin-top: .2rem; }
.c27-callout p { margin: 0; color: var(--c27-ink); }
.c27-callout--blue { background: #eef4ff; border-color: #c9dbfa; }
.c27-callout--blue > i { color: var(--c27-blue); }

/* Tabs (abstract structure) */
.c27-tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--c27-soft); border-radius: 12px; margin-bottom: 12px; }
.c27-tabs [role="tab"] {
  flex: 1 1 180px; min-height: 44px; padding: .55rem .9rem; border: 0; border-radius: 9px; background: transparent; color: var(--c27-muted);
  font-family: var(--c27-head); font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.c27-tabs [role="tab"]:hover { color: var(--c27-ink); }
.c27-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--c27-navy); box-shadow: 0 1px 3px rgba(13, 43, 92, .15); }
.c27-tabs [role="tabpanel"] { background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); padding: 20px 22px; }
.c27-tabs [role="tabpanel"] p { margin: 0; }
.c27-tabs .c27-parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.c27-tabs .c27-parts span { padding: .35rem .75rem; border-radius: 999px; background: #eef4ff; color: var(--c27-navy); font-size: 13.5px; font-weight: 600; }
.c27-nojs-only { display: none; }

/* Word checker */
.c27-checker { background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); padding: 22px; box-shadow: var(--c27-shadow); }
.c27-checker h3 { font-size: 1.1rem; margin-bottom: .4rem; display: flex; gap: .6rem; align-items: center; }
.c27-checker h3 i { color: var(--c27-blue); }
.c27-field { margin-top: 16px; }
.c27-field label { display: block; font-weight: 700; color: var(--c27-ink); font-size: 14.5px; margin-bottom: .35rem; }
.c27-field input, .c27-field textarea { width: 100%; border: 1px solid #c9d3e1; border-radius: 10px; padding: .7rem .9rem; font-size: 15px; font-family: var(--c27-body); color: var(--c27-ink); background: #fff; }
.c27-field textarea { min-height: 170px; resize: vertical; }
.c27-field input:focus, .c27-field textarea:focus { border-color: var(--c27-blue); box-shadow: 0 0 0 3px rgba(31, 95, 191, .15); outline: none; }
.c27-meter { display: flex; align-items: center; gap: 12px; margin-top: .5rem; font-size: 14px; }
.c27-meter__bar { flex: 1; height: 8px; border-radius: 5px; background: #e9eef5; overflow: hidden; }
.c27-meter__bar span { display: block; height: 100%; width: 0; background: var(--c27-green); transition: width .2s ease, background-color .2s ease; }
.c27-meter__text { min-width: 210px; text-align: right; color: var(--c27-muted); font-variant-numeric: tabular-nums; }
.c27-meter__text b { color: var(--c27-ink); }
.c27-meter.is-over .c27-meter__bar span { background: var(--c27-red); }
.c27-meter.is-over .c27-meter__state { color: var(--c27-red); font-weight: 700; }
.c27-meter__state { color: var(--c27-green); font-weight: 700; }

/* Publication */
.c27-pub { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; align-items: start; background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); padding: 22px; }
.c27-pub__icon { width: 74px; height: 74px; border-radius: 16px; background: var(--c27-brand-gradient); display: grid; place-items: center; color: #fff; font-size: 28px; }
.c27-pub p:last-child { margin-bottom: 0; }

/* Who should submit */
.c27-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1rem 0 1.2rem; }
.c27-who li { display: flex; gap: .85rem; align-items: flex-start; background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius-sm); padding: 14px 16px; line-height: 1.5; }
.c27-who li i { color: var(--c27-blue); width: 20px; text-align: center; margin-top: .25rem; }

/* Registration list */
.c27-steps { counter-reset: st; display: grid; gap: 12px; }
.c27-steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 60px; background: #fff; border: 1px solid var(--c27-line); border-radius: var(--c27-radius-sm); line-height: 1.55; }
.c27-steps li::before { content: counter(st); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--c27-navy); color: #fff; display: grid; place-items: center; font-family: var(--c27-head); font-weight: 800; font-size: 14px; }

/* Contact */
.c27-contact { background: var(--c27-navy); border-radius: 18px; padding: 30px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.c27-contact::before { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--c27-brand-gradient); }
.c27-contact h3 { color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.c27-contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.c27-contact dt { color: #a9bfe6; font-weight: 600; }
.c27-contact dd { margin: 0; }
.c27-contact dd a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.c27-contact__closing { margin: 1rem 0 0 !important; font-family: var(--c27-head); font-weight: 700; color: #7fe39c !important; }
.c27-copy { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 8px; padding: .25rem .6rem; margin-left: .5rem; font-size: 12.5px; cursor: pointer; }
.c27-copy:hover { background: rgba(255, 255, 255, .22); }

/* Poster */
.c27-poster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.c27-poster figure { margin: 0; }
.c27-poster__thumb { display: block; position: relative; border-radius: var(--c27-radius); overflow: hidden; border: 1px solid var(--c27-line); box-shadow: var(--c27-shadow); max-height: 560px; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.c27-poster__thumb img { display: block; width: 100%; height: auto; }
.c27-poster__thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, rgba(13, 43, 92, .85)); }
.c27-poster__zoom { position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); background: #fff; color: var(--c27-navy); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; font-size: 14px; white-space: nowrap; }

.c27-dialog:not([open]) { display: none !important; }
.c27-dialog[open] { position: fixed; inset: 0; margin: auto; }
.c27-dialog { border: 0; padding: 0; background: transparent; max-width: min(920px, 96vw); width: 100%; max-height: 96vh; }
.c27-dialog::backdrop { background: rgba(6, 18, 40, .82); }
.c27-dialog__inner { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; max-height: 96vh; }
.c27-dialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 10px 14px; border-bottom: 1px solid var(--c27-line); }
.c27-dialog__bar strong { font-family: var(--c27-head); }
.c27-dialog__scroll { overflow: auto; }
.c27-dialog__scroll img { display: block; width: 100%; height: auto; }

/* Reveal on scroll */
.c27 .c27-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.c27 .c27-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .c27 *, .c27 *::before, .c27 *::after { transition: none !important; animation: none !important; }
  .c27 .c27-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .c27-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .c27-toc { position: sticky; top: 76px; z-index: 5; max-height: none; background: #fff; margin: 0 -20px 28px; padding: 10px 20px; border-bottom: 1px solid var(--c27-line); overflow: visible; }
  .c27-toc__title, .c27-toc__actions { display: none; }
  .c27-toc ol { display: flex; gap: 6px; overflow-x: auto; border-left: 0; scrollbar-width: thin; padding-bottom: 2px; }
  .c27-toc a { white-space: nowrap; border: 1px solid var(--c27-line); border-radius: 999px; margin: 0; padding: .4rem .85rem; font-size: 13.5px; }
  .c27-toc a.is-active { border-color: var(--c27-red); background: #fff6f6; }
}
@media (max-width: 1023px) {
  .c27-toc { top: 66px; }
  .c27-doc > section, .c27-acc details { scroll-margin-top: 140px; }
}
@media (max-width: 991px) {
  .c27-hero__grid, .c27-split, .c27-poster { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .c27-hero__media { max-width: 420px; margin: 0 auto; }
  .c27-outputs, .c27-subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c27-poster__thumb { max-height: 480px; }
}
@media (max-width: 680px) {
  .c27-wrap { padding: 0 16px; }
  .c27-hero { padding: 48px 0 72px; }
  .c27-hero__badge { left: 10px; bottom: -18px; }
  .c27-countdowns { grid-template-columns: minmax(0, 1fr); margin-top: -40px; }
  .c27-section { padding: 52px 0; }
  .c27-outputs, .c27-subgrid, .c27-who { grid-template-columns: minmax(0, 1fr); }
  .c27-cols-2 { columns: 1; }
  .c27-acc summary { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 12px; padding: 14px; }
  .c27-acc__num { width: 40px; height: 40px; font-size: 16px; }
  .c27-acc__body { padding: 0 14px 16px 14px; }
  .c27-contact { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .c27-contact dl { grid-template-columns: minmax(0, 1fr); }
  .c27-contact dd { margin-bottom: .5rem; overflow-wrap: anywhere; }
  .c27-meter { flex-wrap: wrap; }
  .c27-meter__text { min-width: 0; text-align: left; }
  .c27-pub { grid-template-columns: minmax(0, 1fr); }
  .c27-btn-row .c27-btn { flex: 1 1 100%; }
  .c27-toc { margin: 0 -16px 24px; padding: 10px 16px; }
  .c27-tagline { gap: .2rem .9rem; }
  .c27-tagline span + span::before { content: none; }
}

/* ---------- Print: the call as a clean document ---------- */
@media print {
  .site-header, .main-footer, footer, .preloader, .c27-toc, .c27-btn, .c27-btn-row, .c27-tools, .c27-checker, .c27-countdowns, .c27-copy, .c27-poster, .scroll-to-top, .c27-breadcrumb { display: none !important; }
  .c27-hero { background: none !important; color: #000; padding: 0 0 12px; }
  .c27-hero::after { display: none; }
  .c27-hero--call h1, .c27-hero--call .c27-doc-title { color: #000 !important; }
  .c27-layout { display: block; }
  .c27-acc details { border: 0; box-shadow: none; }
  .c27-acc__body { padding-left: 0; }
  .c27-doc > section { break-inside: auto; padding-bottom: 18px; }
  .c27-table-card, .c27 .c27-reveal { box-shadow: none; opacity: 1; transform: none; }
  .c27-contact { background: none; color: #000; border: 1px solid #999; }
  .c27-contact h3, .c27-contact dt, .c27-contact dd a, .c27-contact__closing { color: #000 !important; }
}
