/* W-NUT 2027 page styles. Loaded after the inline <style> in index.html, so these rules win. */

:root { --ink: #1a2a4a; --blue: #2e6da4; --muted: #52657a; --line: #dfe5ed; }
body { background: #f8fafc; color: #374151; font-size: 16px; line-height: 1.7; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #4b99ee; outline-offset: 4px; }
.ui-icon { width: 22px; height: 22px; flex-shrink: 0; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
#overview, #talks, #schedule, #dates, #papers, #call { scroll-margin-top: 24px; }

/* ---------- Header: dark navy, like the "See you at W-NUT 2027" block on the 2026 page ---------- */
.conference-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 75% 85%, rgba(46, 109, 164, 0.35) 0%, rgba(46, 109, 164, 0) 60%),
    linear-gradient(160deg, #0c162d 0%, #1a2a4a 100%);
  color: rgba(255, 255, 255, 0.85);
}
.hero-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 236px;
  max-width: 1200px;
  margin: auto;
  padding: 24px 48px 26px;
  background: none;
  text-align: left;
}
.hero-copy { width: min(100%, 600px); max-width: none; }
.hero-eyebrow {
  margin: 0 0 8px; padding: 0; border: 0; border-radius: 0; background: none;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero-banner h1 {
  max-width: 600px; margin-bottom: 14px;
  color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); text-wrap: balance;
}
.workshop-acronym { display: inline; color: #9cc3ec; white-space: nowrap; }
.hero-title-break { display: none; }
.hero-meta { justify-content: flex-start; gap: 12px 40px; max-width: none; margin: 0; }
.hero-meta li { display: flex; align-items: flex-start; gap: 16px; padding: 0; border: 0; background: none; box-shadow: none; color: #fff; font-size: 17px; }
.hero-meta strong { display: block; color: #fff; font-size: 18px; }
.hero-meta small { display: block; color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.hero-meta .ui-icon { width: 24px; height: 24px; margin-top: 3px; }

/* Golden Gate line art on the right of the header. */
.hero-illustration {
  position: absolute; z-index: 0; bottom: 0;
  right: max(24px, calc((100% - 1200px) / 2 + 24px));
  width: min(540px, 44%); height: auto; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}

/* ---------- Page layout: side menu + body ---------- */
.container { max-width: 1480px; padding: 0 24px; }
.container.page-layout { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 48px; padding-right: 48px; }
.page-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding-top: 28px; }

.section-nav { padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; line-height: 1.5; }
.section-nav-title { display: block; padding-left: 12px; margin-bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.section-nav li { margin: 0; }
.section-nav li:last-child { margin-top: 16px; }
.section-nav a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); border-radius: 0; color: var(--muted); }
.section-nav a.is-active { border-left-color: var(--blue); background: #eef3f8; color: var(--ink); font-weight: 600; }

/* ---------- Body: flat sections, no boxes ---------- */
.content h2 { font-size: 28px; line-height: 1.3; color: var(--ink); margin-bottom: 14px; }
.content h2::after { background: var(--blue); }
.content p, .content li { max-width: none; }
.content-section, .event-tables { margin-bottom: 32px; }

.intro-section {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 0 32px; padding: 6px 0 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.intro-section h3 { position: relative; z-index: 1; font-size: 28px; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.intro-section p { position: relative; z-index: 1; max-width: none; margin: 14px 0 20px; }
.intro-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
.intro-actions a { min-width: 170px; text-align: center; }
.button-primary { background: var(--blue); border-color: var(--blue); }
.button-secondary { color: var(--blue); border-color: var(--blue); }

/* Call for Papers / Important Dates tabs. */
.event-tables { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.event-tables .content-section { margin-bottom: 0; }
.topic-card { background: #fff; }
.content .event-tables .table { font-size: 15px; margin-bottom: 0; }
.content .event-tables .table > thead > tr > th,
.content .event-tables .table > tbody > tr > td { padding: 5px 12px; line-height: 1.4; }

.talk-abstract { font-size: 15px; }
.organizer-grid { margin-top: 4px; }

/* Contact: small light card, laid out like the 2026 "W-NUT 2027 @ NAACL 2027" banner.
   Line 1: "Contact  JinYeong Bak  ->", line 2: the email. */
.contact-card {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--ink);
  line-height: 1.4;
  text-decoration: none;
}
.contact-card:hover, .contact-card:focus { color: var(--ink); text-decoration: none; background: #eef3f8; border-color: #c9d6e4; }
.contact-line { display: block; font-size: 16px; font-weight: 600; }
.contact-label { color: var(--blue); margin-right: 6px; scroll-margin-top: 24px; }
.contact-name { color: var(--ink); }
.contact-name::after { content: none; }
.contact-card small { display: block; margin-top: 2px; color: var(--blue); font-size: 14px; }

.page-footer { margin-top: 8px; }

/* ---------- Wide screens: body centered in the window, menu just to its left,
   header title aligned with the body's left edge and the bridge with its right edge ---------- */
@media (min-width: 992px) {
  .container.page-layout {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
    grid-template-columns: minmax(170px, 1fr) minmax(0, 960px) minmax(170px, 1fr);
  }
  .page-layout > .section-nav { grid-column: 1; justify-self: end; width: 170px; }
  .page-layout > .content { grid-column: 2; }
  .hero-banner { max-width: none; width: min(960px, calc(100% - 420px)); padding-left: 0; padding-right: 0; }
  .hero-illustration { right: calc((100% - min(960px, calc(100% - 420px))) / 2); width: min(500px, 46%); }
}
@media (min-width: 992px) and (max-width: 1279px) {
  .hero-illustration { width: min(360px, 34%); opacity: .35; }
}
@media (max-width: 1199px) {
  .container.page-layout, .hero-banner { padding-left: 32px; padding-right: 32px; }
  .section-nav { padding: 16px 8px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .container.page-layout { padding-left: 24px; padding-right: 24px; }
  .hero-banner { padding-left: 0; padding-right: 0; }
}

/* ---------- Tablets: menu folds above the body ---------- */
@media (max-width: 991px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .section-nav { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .section-nav-title { display: none; }
  .section-nav-toggle { color: var(--ink); }
  .section-nav.is-open ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { width: min(100%, 520px); }
  .hero-illustration { width: min(420px, 46%); opacity: .4; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .container.page-layout, .hero-banner { padding-left: 16px; padding-right: 16px; }
  .hero-banner { display: block; min-height: 0; padding-top: 20px; padding-bottom: 28px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-banner h1 { font-size: 24px; }
  .hero-illustration { right: 0; width: 100%; opacity: .18; }
  .intro-section { padding: 0; }
  .intro-section h3, .content h2 { font-size: 24px; }
  .intro-actions a { min-width: 0; flex: 1; padding: 10px; font-size: 14px; }
  .intro-section, .content-section, .event-tables { margin-bottom: 28px; }
  .section-nav.is-open ul { grid-template-columns: minmax(0, 1fr); }
  .paper-tabs button { padding: 10px 8px; font-size: 14px; }
}

/* ---------- Body panel: white body on a slightly darker page, so the two read apart ---------- */
body { background: #eef2f6; }
.page-layout > .content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 36px 20px;
}
.section-nav a.is-active { background: #e2e9f1; }
@media (max-width: 600px) {
  .page-layout > .content { padding: 20px 16px 12px; border-radius: 10px; }
}

/* ---------- Topic groups: plain columns split by thin lines, no cards or blue top bar ---------- */
.topic-grid { gap: 0; margin: 12px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-card { padding: 16px 20px; border: 0; border-radius: 0; background: none; }
.topic-card + .topic-card { border-left: 1px solid var(--line); }
.topic-card:first-child { padding-left: 0; }
.topic-card:last-child { padding-right: 0; }
.content .topic-card h4 { font-size: 16px; color: var(--blue); }
@media (max-width: 991px) {
  .topic-card, .topic-card:first-child, .topic-card:last-child { padding: 14px 0; }
  .topic-card + .topic-card { border-left: 0; border-top: 1px solid var(--line); }
}

/* Less empty space above the body panel and inside its top edge. */
.page-layout { padding-top: 10px; }
.page-layout > .content { padding-top: 14px; }
.intro-section { padding-top: 0; }
@media (max-width: 600px) { .page-layout > .content { padding-top: 12px; } }

/* Smaller gap between the left menu and the body panel. */
.page-layout { column-gap: 8px; }

/* Smaller contact box. */
.contact-card { padding: 6px 12px; border-radius: 8px; line-height: 1.3; }
.contact-line { font-size: 14px; }
.contact-label { margin-right: 4px; }
.contact-card small { margin-top: 1px; font-size: 12px; }

/* Important Dates: dates not yet set are muted so the known ones stand out. */
.content .event-tables .table > tbody > tr > td.date-tba { color: #9aa8b8; font-style: italic; font-weight: 400; }

/* Sections: a faint line and an even gap between each part of the body. */
.intro-section, .event-tables { margin-bottom: 0; }
.content-section, .event-tables .content-section { margin: 0; padding: 22px 0 26px; }
.content-section + .content-section, .event-tables + .content-section, .event-tables .content-section:first-child { border-top: 1px solid #e6ebf1; }
.intro-section { padding-bottom: 26px; }
.contact-section { padding-bottom: 8px; }
@media (max-width: 600px) {
  .content-section, .event-tables .content-section { padding: 18px 0 20px; }
  .intro-section { padding-bottom: 20px; }
}

/* Important Dates: plain list look. No frame, stripes, header fill or highlighted row;
   only thin row lines, the date in bold ink and the event in body text. */
#dates .table-responsive { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
#dates .table { border: 0; border-collapse: collapse; background: none; }
#dates .table > thead { display: none; }
#dates .table > tbody > tr > td,
#dates .table-striped > tbody > tr:nth-of-type(odd) > td,
#dates .table-striped > tbody > tr.is-talk > td {
  padding: 7px 0; border: 0; border-bottom: 1px solid #eef1f5; background: none; box-shadow: none;
  font-size: 15px; line-height: 1.4; color: #374151; font-weight: 400;
}
#dates .table > tbody > tr:last-child > td { border-bottom: 0; }
#dates .table > tbody > tr > td:first-child,
#dates .table > tbody > tr.is-talk > td:first-child { width: 190px; padding-right: 24px; color: var(--ink); font-weight: 600; box-shadow: none; }
#dates .table > tbody > tr > td.date-tba,
#dates .table > tbody > tr.is-talk > td.date-tba { color: #a3afbd; font-weight: 400; font-style: normal; }
@media (max-width: 600px) { #dates .table > tbody > tr > td:first-child { width: 130px; padding-right: 12px; } }
#dates .table > tbody > tr, #dates .table-striped > tbody > tr:nth-of-type(odd) { background: none; }

/* ---------- Tab groups: (Important Dates | Workshop Schedule), (Call for Papers | Accepted Papers) ---------- */
.content .tab-group { padding: 22px 0 26px; border-top: 1px solid #e6ebf1; }
.content .tab-group .content-section { padding: 0; border-top: 0; }
.content .tab-group > .paper-tabs { margin: 0 0 18px; }
.paper-tabs { display: flex; gap: 8px; border-bottom: 1px solid #cbd5e1; }
.paper-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 10px 16px; color: var(--muted); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.paper-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.paper-tabs button:hover { color: var(--blue); }
.paper-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.paper-tabs button[hidden], .paper-panel[hidden], .section-nav li[hidden] { display: none; }
@media (max-width: 600px) {
  .paper-tabs { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .paper-tabs button { flex: 0 0 auto; padding: 8px 12px; font-size: 17px; white-space: nowrap; }
}

/* Workshop Schedule timeline (same as 2026). */
.schedule-date { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.schedule-timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px; margin: 0; padding: 0 0 8px 30px; font-size: 14px; line-height: 1.55; }
.timeline-item::before { content: ''; position: absolute; left: 6px; top: 17px; bottom: -17px; width: 2px; background: #c5d8f0; }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ''; position: absolute; left: 0; top: 11px; width: 14px; height: 14px; border: 2px solid var(--blue); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px white; }
.timeline-break::after { background: white; }
.timeline-time { padding-top: 7px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-event { padding: 7px 14px; border: 1px solid #edf2f8; border-radius: 6px; color: var(--ink); font-weight: 600; }
.timeline-break .timeline-event { background: #eef4fb; border-color: #eef4fb; font-weight: 400; }
.timeline-event .schedule-talk, .timeline-room { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 3px; }
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: minmax(0,1fr); gap: 4px; padding-left: 24px; padding-bottom: 16px; }
  .timeline-time { font-size: 13px; }
}

/* Tabs that have no content yet: the same tab style as the others, only in the muted grey,
   with a quiet "soon" after the name. */
.paper-tabs button.tab-soon { color: #8a9bb0; }
.paper-tabs button.tab-soon small { margin-left: 6px; color: #a3afbd; font-size: 14px; font-weight: 500; }
.paper-tabs button.tab-soon:hover { color: var(--blue); }
.paper-tabs button.tab-soon[aria-selected="true"] { color: var(--ink); }
@media (max-width: 600px) { .paper-tabs button.tab-soon small { font-size: 12px; } }

/* Workshop Schedule: same plain list as Important Dates. No dots, boxes or fills;
   thin row lines, time on the left, event on the right; breaks in muted text. */
#schedule .schedule-date { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
#schedule .timeline-item { grid-template-columns: 190px minmax(0, 1fr); gap: 0; padding: 7px 0; border-bottom: 1px solid #eef1f5; font-size: 15px; line-height: 1.4; }
#schedule .timeline-item:last-child { border-bottom: 0; }
#schedule .timeline-item::before, #schedule .timeline-item::after { display: none; }
#schedule .timeline-time { padding: 0 24px 0 0; color: var(--ink); font-weight: 600; }
#schedule .timeline-event { padding: 0; border: 0; border-radius: 0; background: none; color: #374151; font-weight: 400; }
#schedule .timeline-break .timeline-event { background: none; color: var(--muted); }
#schedule .timeline-event .schedule-talk, #schedule .timeline-room { margin-top: 1px; font-size: 13px; color: var(--muted); }
/* Times not yet set: same muted TBA as Important Dates. */
#schedule .timeline-time.is-tba { color: #a3afbd; font-weight: 400; }
@media (max-width: 600px) {
  #schedule .timeline-item { grid-template-columns: 130px minmax(0, 1fr); padding: 7px 0; }
  #schedule .timeline-time { padding-right: 12px; }
}

/* Workshop Schedule: keep the timeline dots and line (filled = session, hollow = break),
   with plain text beside them instead of boxes. */
#schedule .timeline-item { grid-template-columns: 160px minmax(0, 1fr); padding: 0 0 14px 30px; border-bottom: 0; }
#schedule .timeline-item::before { display: block; content: ''; position: absolute; left: 6px; top: 12px; bottom: -6px; width: 2px; background: #c5d8f0; }
#schedule .timeline-item:last-child::before { display: none; }
#schedule .timeline-item::after { display: block; content: ''; position: absolute; left: 1px; top: 5px; width: 12px; height: 12px; border: 2px solid var(--blue); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; }
#schedule .timeline-break::after { background: #fff; }
#schedule .timeline-time { padding: 0 24px 0 0; }
@media (max-width: 600px) {
  #schedule .timeline-item { grid-template-columns: 90px minmax(0, 1fr); padding: 0 0 14px 26px; }
  #schedule .timeline-time { padding-right: 10px; }
}

/* Topic groups: each one on its own soft tinted panel. No border or shadow, small gap between. */
.topic-grid { gap: 12px; margin: 12px 0 24px; border: 0; }
.topic-card, .topic-card:first-child, .topic-card:last-child { padding: 16px 18px; border: 0; border-radius: 10px; background: #f4f7fb; }
.topic-card + .topic-card { border: 0; }
@media (max-width: 991px) {
  .topic-card, .topic-card:first-child, .topic-card:last-child { padding: 14px 16px; }
  .topic-card + .topic-card { border-top: 0; }
}

/* No divider lines between sections; the spacing alone separates them. */
.content-section + .content-section, .event-tables + .content-section,
.event-tables .content-section:first-child, .content .tab-group { border-top: 0; }

/* Invited Talks / Organizers headings: drawn like a selected tab in the tab bars above
   (grey full-width line, blue bar under the title), so every section reads the same. */
.content h2.tab-heading { display: flex; margin: 0 0 18px; padding: 0; border-bottom: 1px solid #cbd5e1; font: inherit; }
.content h2.tab-heading::after { display: none; }
.content h2.tab-heading > span { margin-bottom: -1px; padding: 10px 16px; border-bottom: 3px solid var(--blue); color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.43; }
@media (max-width: 600px) { .content h2.tab-heading > span { padding: 8px 12px; font-size: 17px; } }

/* Topic panels a little closer together. */
.topic-grid { gap: 6px; }
/* Less space inside the topic panels on the left and right. */
.topic-card, .topic-card:first-child, .topic-card:last-child { padding-left: 12px; padding-right: 12px; }

/* "Soon" tabs smaller than the real tabs. */
.paper-tabs button.tab-soon { font-size: 16px; font-weight: 600; align-self: flex-end; padding-bottom: 12px; }
.paper-tabs button.tab-soon small { margin-left: 4px; font-size: 12px; }
@media (max-width: 600px) {
  .paper-tabs button.tab-soon { font-size: 14px; padding-bottom: 11px; }
  .paper-tabs button.tab-soon small { font-size: 11px; }
}
/* Even quieter: smaller, regular weight, lighter grey. */
.paper-tabs button.tab-soon { font-size: 14px; font-weight: 400; color: #b4bfcc; padding-bottom: 13px; }
.paper-tabs button.tab-soon small { margin-left: 3px; font-size: 11px; font-weight: 400; color: #c3ccd6; }
.paper-tabs button.tab-soon:hover { color: var(--muted); }
@media (max-width: 600px) {
  .paper-tabs button.tab-soon { font-size: 13px; padding-bottom: 12px; }
  .paper-tabs button.tab-soon small { font-size: 10px; }
}
