/* ============================================================
   Asia Multilingual & Multicultural AI Workshop — stylesheet
   ============================================================ */

/* ── Variables ── */
:root {
  --navy:      #0d2b4e;
  --navy-mid:  #1a4480;
  --blue:      #2563a8;
  --blue-lt:   #3b7dd8;
  --accent:    #c8a84b;
  --bg:        #ffffff;
  --bg-subtle: #f4f7fb;
  --text:      #1a1a2e;
  --text-muted:#5a6478;
  --border:    #d0daea;
  --shadow:    0 2px 12px rgba(13,43,78,.10);
  --radius:    6px;
  --container: 1100px;
  --header-h:  64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0,0,0,.30);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Brand */
.site-brand {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  line-height: 1.2;
  text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.brand-org {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}
.brand-event {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Desktop nav */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-link {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--blue); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Hero (homepage) ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue) 100%);
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.80);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.90);
}
.hero-meta-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #ffffff;
  padding: 3rem 0 2.5rem;
}
.page-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: .4rem;
}
.page-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,.75);
}

/* ── Sections ── */
.section { padding: 3.5rem 0; }
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}

/* ── News list ── */
.news-list { list-style: none; }
.news-item {
  display: flex;
  gap: 1.25rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.news-date {
  flex-shrink: 0;
  width: 7rem;
  font-weight: 600;
  color: var(--navy-mid);
}

/* ── TBA notice ── */
.tba-notice {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── Program page ── */
.prog-mc {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.prog-mc strong { color: var(--navy); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.program-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.program-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.program-table tbody tr { border-bottom: 1px solid var(--border); }
.program-table tbody tr:last-child { border-bottom: none; }
.program-table tbody td { padding: .8rem 1rem; vertical-align: top; }
.program-table tbody tr:nth-child(even):not(.row-keynote):not(.row-break):not(.row-synthesis):not(.row-closing) {
  background: var(--bg-subtle);
}
.program-table tbody tr:hover { background: #eaf0fa; }

/* Column widths */
.td-time    { width: 6.5rem; white-space: nowrap; font-weight: 600; color: var(--navy-mid); font-size: 0.82rem; }
.td-session { width: 22rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.td-desc    { color: var(--text-muted); line-height: 1.55; }
.td-room    { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; white-space: nowrap; }

/* Session title block */
.prog-title {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
  line-height: 1.4;
}

/* Speaker / leader lines */
.prog-speaker {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--blue);
  margin-top: 0;
  line-height: 1.4;
}
.prog-leader {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: .2rem;
}
.prog-toast {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-muted);
  margin-top: .35rem;
}

/* Row types */
.row-keynote   { background: #eef4ff !important; }
.row-break     { background: var(--bg-subtle) !important; color: var(--text-muted); }
.row-synthesis { background: #e8f0e8 !important; }
.row-closing   { background: #fff8ed !important; }
.row-reception-head td {
  background: var(--navy-mid) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .65rem 1rem;
}

.badge-tbc {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--navy);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: .4rem;
  vertical-align: middle;
  letter-spacing: .04em;
}

.program-method {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 1rem;
}

/* ── Venue page ── */
.venue-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.venue-map-col { }
.venue-info-col { }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
}
.map-print-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: .5rem;
  display: none;
}

.venue-address-plain {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.venue-name-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}

.access-section-inline { }
.access-group { margin-bottom: 1.25rem; }
.access-group:last-child { margin-bottom: 0; }
.access-mode {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: .5rem;
}
.access-list {
  list-style: none;
  padding: 0;
}
.access-list li {
  font-size: 0.875rem;
  color: var(--text);
  padding: .3rem 0 .3rem .9rem;
  border-left: 2px solid var(--border);
  margin-bottom: .3rem;
  line-height: 1.5;
}

/* ── Contact page ── */
.contact-plain {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}
.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin: .75rem 0;
  word-break: break-all;
}
.contact-org {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.70);
  padding: 2rem 0;
  font-size: 0.825rem;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-event {
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
}
.footer-org { color: rgba(255,255,255,.60); }
.footer-contact a { color: var(--accent); }
.footer-contact a:hover { color: #fff; }

/* ── GI page ── */
.gi-section-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.gi-section-placeholder h3 {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Participants page ── */
.participants-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.pgroup {
  margin-bottom: 3rem;
}

.pgroup-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--blue);
}

.pgroup-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.pgroup-moderator {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.participants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.participants-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .6rem 1rem;
  text-align: left;
}

.participants-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.participants-table tbody tr:last-child {
  border-bottom: none;
}

.participants-table tbody td {
  padding: .55rem 1rem;
  vertical-align: top;
  line-height: 1.45;
}

.participants-table tbody td:first-child {
  width: 14rem;
  white-space: nowrap;
  font-weight: 500;
  color: var(--navy);
}

.participants-table tbody td:nth-child(3) {
  width: 9rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.participants-table tbody td:last-child {
  color: var(--text-muted);
  width: 6rem;
}

.participants-table tbody tr:nth-child(even) {
  background: var(--bg-subtle);
}

.participants-table tbody tr:hover {
  background: #eaf0fa;
}

.row-moderator td {
  background: #eef4ff !important;
}

.badge-mod {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: .35rem;
  vertical-align: middle;
  letter-spacing: .04em;
}

.badge-onsite,
.badge-online {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-onsite {
  background: #d4edda;
  color: #1a5c30;
  border: 1px solid #a8d9b4;
}
.badge-online {
  background: #e8eef7;
  color: #2c4a70;
  border: 1px solid #b5c8e4;
}

/* ── General Information — documents ── */
.gi-docs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 720px;
}
.gi-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-mid);
  border-bottom: 2px solid var(--border);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}
.gi-doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.gi-doc-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.gi-doc-link:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,168,.10);
  text-decoration: none;
}
.gi-doc-icon { font-size: 1.15rem; flex-shrink: 0; }
.gi-doc-name { font-weight: 600; flex: 1; }
.gi-doc-meta { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.gi-doc-ext  { font-size: .9rem; color: var(--blue); flex-shrink: 0; }
.gi-tba {
  color: var(--text-muted);
  font-style: italic;
}

/* Nav — tighter spacing for 6 items */
.nav-link {
  padding: .4rem .7rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-mid);
    padding: .75rem 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.30);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .nav-link { font-size: 0.95rem; padding: .6rem .75rem; }

  .venue-main-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 280px; }

  .td-room { display: none; }
  .program-table thead th:last-child { display: none; }
}

/* ── Print ── */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none !important; }
  .page-hero, .hero { background: var(--navy) !important; -webkit-print-color-adjust: exact; }
  .map-print-note { display: block; }
  .map-wrap { display: none; }
  .table-wrap { overflow: visible; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; color: #666; }
  .site-footer { display: block; background: #f5f5f5 !important; color: #333 !important; }
}
