/* ============================================================
   AI-Based Policy Research Center — v2 visual redesign
   Design language: editorial serif headlines + calm sans body.
   Palette is drawn directly from Jeju National University's official
   emblem (symbol.png): navy #014099, sky-blue #00A7EB, green #63B62F.
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --bg:        #f5f8fb;
  --surface:   #ffffff;
  --ink:       #0d1b2a;
  --muted:     #55677a;
  --border:    #dbe3ea;

  /* JNU emblem colors */
  --navy:      #013f8f;  /* main "J" stroke — solid fills (buttons, icon bg) */
  --navy-2:    #01285e;  /* darker navy — hover state for navy fills */
  --sky:       #0090c2;  /* cyan swoosh, deepened slightly for AA text contrast */
  --green:     #56a02c;  /* green swoosh, deepened slightly for AA text contrast */

  --accent:    var(--sky);
  --accent-soft: rgba(0, 144, 194, 0.12);
  --radius:    16px;
  --shadow:    0 24px 48px -28px rgba(1, 63, 143, 0.35);
  --font-serif: 'Source Serif 4', Georgia, 'Noto Serif KR', serif;
  --font-sans:  'Inter', 'Noto Sans KR', sans-serif;
}

:root[data-theme="dark"] {
  --bg:        #0a1420;
  --surface:   #101c2c;
  --ink:       #edf2f7;
  --muted:     #93a4b6;
  --border:    #1f3244;

  --navy:      #013f8f;
  --navy-2:    #01285e;
  --sky:       #35b8ea;  /* brighter for legibility on dark backgrounds */
  --green:     #7cc94c;

  --accent:    var(--sky);
  --accent-soft: rgba(53, 184, 234, 0.18);
  --shadow:    0 24px 48px -20px rgba(0, 0, 0, 0.6);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ── Header ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 2rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -20px rgba(16,36,62,0.4);
}

.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand-mark { height: 36px; width: 36px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 600; }
.brand-text em {
  font-style: normal; font-size: 0.68rem; color: var(--muted);
  letter-spacing: 0.02em;
}

.nav { flex: 1; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-item { position: relative; }
/* Invisible hover bridge: keeps :hover active while the cursor crosses
   the visual gap between the nav-link and its dropdown panel below. */
.nav-item::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 0.5rem;
}
.nav-link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent); }

.nav-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-item:hover .nav-panel,
.nav-item.is-open .nav-panel {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-panel a {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-panel a:hover { background: var(--accent-soft); color: var(--accent); }

.header-controls { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: transform .2s ease, border-color .2s ease;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.burger-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface);
}
.burger-btn span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,30,.35) 0%, rgba(10,18,30,.55) 55%, rgba(8,14,24,.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 2rem 6rem;
}
.hero-content .eyebrow { color: #8fd6f4; }
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero-lede {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.86);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--navy); color: #ffffff; }
.btn-solid:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-line { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.btn-line:hover { border-color: #fff; transform: translateY(-2px); }

.hero-dots {
  position: absolute; z-index: 2; bottom: 2rem; left: 2rem;
  display: flex; gap: 0.5rem;
}
.hero-dots button {
  width: 26px; height: 3px; border: none; border-radius: 2px;
  background: rgba(255,255,255,0.35);
  transition: background .2s ease;
}
.hero-dots button.is-active { background: var(--accent); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 6rem 2rem; max-width: 1080px; margin: 0 auto; }
.section-alt { background: var(--surface); border-radius: 28px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 0.5rem; }
.section-sub { color: var(--muted); margin-top: 0.75rem; }

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 180px 1fr;
  align-items: start;
  gap: 2rem;
  padding: 2rem 0;
}
.timeline-row::before {
  content: '';
  position: absolute;
  left: 8px; top: 2.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.timeline-row:nth-child(even)::before { border-color: var(--green); }
.timeline-row + .timeline-row { border-top: 1px dashed var(--border); }
.timeline-photo {
  grid-column: 2;
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease, z-index 0s .3s;
}
.timeline-photo:hover {
  transform: scale(2.6);
  z-index: 20;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,0.5);
  transition: transform .3s ease, box-shadow .3s ease, z-index 0s 0s;
}
.timeline-body { grid-column: 3; padding-top: 0.4rem; }
.timeline-year {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600; font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.timeline-points li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.timeline-points li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 3rem 3.5rem;
}
.contact-card { align-self: start; }
.contact-list > div { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.contact-list > div:last-child { border-bottom: none; }
.contact-list dt {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem;
}
.contact-list dd { font-size: 0.98rem; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 3rem 2rem; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-brand { font-size: 0.85rem; color: var(--muted); }
.footer-logos { display: flex; gap: 0.75rem; }
.footer-logos a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.footer-logos a:hover { border-color: var(--accent); transform: translateY(-2px); }
.footer-logos img { width: 18px; height: 18px; object-fit: contain; }

/* ── Translate widget (unchanged behaviour, restyled) ───── */
.translate-icon {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer; z-index: 1000;
  box-shadow: var(--shadow);
}
.translate-widget {
  position: fixed; bottom: 84px; right: 24px;
  display: none !important; z-index: 1000;
  background: var(--surface); padding: 0.6rem; border-radius: 10px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.translate-widget.active { display: block !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; padding: 0 1.5rem 2rem; }
  .timeline-row { grid-template-columns: 24px 1fr; }
  .timeline-photo { grid-column: 2; aspect-ratio: 16/9; }
  .timeline-body { grid-column: 2; }
  .timeline::before { left: 11px; }
  .timeline-row::before { left: 5px; }
}

@media (max-width: 720px) {
  .header { padding: 0.75rem 1.25rem; }
  .brand-text em { display: none; }
  .nav { position: fixed; inset: 64px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 0.5rem 1.25rem 1rem;
    display: none; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-panel { position: static; opacity: 1; transform: none; pointer-events: auto;
    box-shadow: none; border: none; display: none; padding-left: 1rem; }
  .nav-item.is-open .nav-panel { display: flex; }
  .burger-btn { display: flex; }
  .hero { min-height: 78vh; align-items: center; text-align: left; }
  .section { padding: 4rem 1.25rem; }
  .contact-grid { padding: 0 0.25rem 1.5rem; }
}

/* ============================================================
   Inner-page components (Introduction / Research / Updates)
   ============================================================ */

/* Generic section heading (bare <h2> used across inner pages) */
.section > h2,
.section h2.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.9rem;
}
.section > h2::after,
.section h2.section-title::after {
  content: '';
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 48px; height: 3px; background: var(--accent); border-radius: 2px;
}
.section .eyebrow { display: block; text-align: center; }

/* ── Spotlight card (Director / Professor) ─────────────────── */
.director-container { display: flex; justify-content: center; padding: 1rem 0 2rem; }
.head-card {
  max-width: 620px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.75rem 2.25rem;
  text-align: center;
}
.director-img {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.25rem; border: 4px solid var(--accent-soft);
}
.head-card h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.member-details { list-style: none; text-align: left; max-width: 420px; margin: 0 auto 1.5rem; }
.member-details li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.member-details li:last-child { border-bottom: none; }
.member-details a:hover { color: var(--accent); }
.member-quote {
  font-family: var(--font-serif); font-style: italic;
  color: var(--muted); font-size: 1.05rem; line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* ── Toggle button + expandable research list (shared) ──────── */
.research-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--navy); color: var(--navy); background: transparent;
  padding: 0.6rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.85rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.research-toggle:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.research-list {
  display: none; text-align: left; margin-top: 1.1rem;
  padding-left: 1.1rem; list-style: disc;
}
.research-list.active { display: block; }
.research-list li { margin-bottom: 0.55rem; font-size: 0.88rem; line-height: 1.55; color: var(--muted); }
.research-list a { color: var(--sky); }
.research-list a:hover { text-decoration: underline; }

/* ── Members grid ─────────────────────────────────────────── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto 2.5rem;
}
.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1rem;
}
.member-card h4 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 0.5rem; }
.member-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }

/* ── Facilities slider ───────────────────────────────────────── */
#facilities-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
#facilities-slider .slides { display: flex; transition: transform 0.4s ease; }
#facilities-slider .slide { flex: 0 0 100%; display: flex; justify-content: center; padding: 0.5rem; }
#facilities-slider .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; width: 100%; max-width: 420px;
}
.facility-img { width: 100%; border-radius: 12px; margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; }
#facilities-slider h3 { font-family: var(--font-serif); font-size: 1.1rem; }
#facilities-slider .slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--navy); color: #fff; font-size: 1rem; cursor: pointer;
  z-index: 5; display: flex; align-items: center; justify-content: center;
}
#facilities-slider .prev { left: 0.5rem; }
#facilities-slider .next { right: 0.5rem; }

/* ── Research Areas / Projects (research.html) ───────────────── */
#fields .research-grid, #projects .research-grid {
  display: grid; gap: 1.5rem; max-width: 1080px; margin: 0 auto;
}
#fields .research-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 0 12px 28px -22px rgba(1,63,143,0.25);
  transition: transform .2s ease, border-color .2s ease;
}
#fields .card { cursor: pointer; text-align: center; }
#fields .card:hover { transform: translateY(-4px); border-color: var(--accent); }
#fields .card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.card-img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 1rem; }
.card h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.9rem; }

#projects .research-grid { grid-template-columns: 1fr; }
.card-link { display: block; }
.card-link .card { display: flex; flex-direction: column; gap: 0.35rem; }
.card-link .card h3 { font-size: 1rem; text-align: left; }
.card-link .card p { text-align: left; font-size: 0.85rem; }
.card-link:hover .card { border-color: var(--accent); transform: translateX(4px); }

/* ── Achievements ─────────────────────────────────────────────── */
.achievements-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  max-width: 1080px; margin: 0 auto;
}
@media (min-width: 768px) { .achievements-grid { grid-template-columns: 1fr 1fr; } }
.kpi-head { text-align: center; margin-bottom: 1rem; }
.kpi-head h3 { font-family: var(--font-serif); font-size: 1.15rem; }
.kpi-number { font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
:root[data-theme="dark"] .kpi-number { color: var(--sky); }
.kpi-meta { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; }

.bar-wrap { display: flex; align-items: flex-end; gap: 1rem; justify-content: center; margin-top: 1rem; }
.bar-track {
  position: relative; width: 72px; height: 220px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); overflow: hidden;
}
.bar-fill { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--accent); }
.bar-top-cap { position: absolute; top: 0; left: 0; width: 100%; height: 8px; background: var(--navy); opacity: 0.2; }
.bar-scale { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.78rem; color: var(--muted); align-self: stretch; }

.logo-grid {
  --size: 64px;
  display: grid; grid-template-columns: repeat(auto-fill, var(--size));
  gap: 12px; justify-content: center; margin-top: 1.25rem;
}
.logo-grid img {
  width: var(--size); height: var(--size); object-fit: contain;
  background: #fff; border-radius: 10px; padding: 8px; border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-grid a:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ── Notices / News list (shared list layout) ────────────────── */
.notice-search {
  display: block; width: 100%; max-width: 640px; margin: 0 auto 2rem;
  padding: 0.8rem 1.1rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 0.95rem;
}
.notice-list, .article-list { max-width: 720px; margin: 0 auto; list-style: none; }
.notice-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.notice-item a { font-weight: 600; }
.notice-item a:hover { color: var(--accent); }
.notice-item time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.article-card {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.article-card .thumb {
  width: 100%;
  border-radius: 12px;
}
.article-card h3 a { font-family: var(--font-serif); font-size: 1.15rem; }
.article-card h3 a:hover { color: var(--accent); }
.article-card time { color: var(--muted); }

/* ── Article / Notice / Paper detail pages ───────────────────── */
.article-detail { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.article-detail h1 {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  text-align: center; margin-bottom: 0.75rem;
}
.article-detail .meta { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.article-detail #detail-content p,
.article-detail #notice-content p,
.article-detail #paper-content p { margin-bottom: 1rem; line-height: 1.75; color: var(--ink); }

.detail-gallery {
  position: relative; max-width: 560px; margin: 0 auto 2rem;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.detail-gallery img { width: 100%; }
.detail-gallery.slider .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
}
.detail-gallery.slider .slide.active { position: relative; opacity: 1; }
.detail-gallery .slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--navy); color: #fff; cursor: pointer; z-index: 5;
}
.detail-gallery .prev { left: 0.5rem; }
.detail-gallery .next { right: 0.5rem; }

#notice-attachments { max-width: 760px; margin: 0 auto; }
#notice-attachments li { padding: 0.5rem 0; }
#notice-attachments a { color: var(--sky); }
#notice-attachments a:hover { text-decoration: underline; }

/* ── Calendar page ────────────────────────────────────────────── */
#calendar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.fc, .fc .fc-toolbar-title { font-family: var(--font-sans); color: var(--ink); }
.fc .fc-button-primary { background: var(--navy) !important; border-color: var(--navy) !important; }
.fc .fc-button-primary:hover { background: var(--navy-2) !important; border-color: var(--navy-2) !important; }
.fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid { border-color: var(--border) !important; }
.fc-daygrid-day-number { color: var(--ink); }
.fc-day-today { background: var(--accent-soft) !important; }
