/* Heritage Glass layout adapted from shadeng-community/src/styles/global.css. */
:root {
  --bg-void:        #04100b;
  --bg-deep:        #06170f;
  --bg-mid:         #0a2017;
  --emerald:        #1c5e44;
  --emerald-bright: #2f9e6b;
  --jade:           #4fd49a;
  --lantern:        #f6b942;
  --lantern-deep:   #d98e2b;
  --vermillion:     #e8533a;
  --ink:            #f3f0e7;
  --ink-soft:       #cdd8d1;
  --ink-mute:       #8ba097;

  --glass-bg:        rgba(18, 38, 28, 0.42);
  --glass-bg-strong: rgba(24, 48, 36, 0.62);
  --glass-stroke:    rgba(180, 220, 200, 0.16);
  --glass-stroke-hi: rgba(240, 255, 248, 0.34);
  --glass-shine:     rgba(255, 255, 255, 0.07);

  --serif: var(--font-serif);
  --sans:  var(--font-sans);
  --mono:  var(--font-mono);

  --maxw: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-void);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--lantern); color: #1a1208; }

/* ===================================================================
   ATMOSPHERIC BACKGROUND — living gradient mesh + lanterns + grain
   =================================================================== */
.atmosphere {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% -10%, #0d2c1e 0%, transparent 55%),
    radial-gradient(100% 70% at 0% 110%, #08251a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 50%, var(--bg-mid) 100%);
}
.aurora {
  position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  filter: blur(80px); opacity: .55;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(47,158,107,.45), transparent 60%),
    radial-gradient(35% 35% at 80% 20%, rgba(79,212,154,.30), transparent 60%),
    radial-gradient(45% 45% at 70% 80%, rgba(246,185,66,.22), transparent 60%),
    radial-gradient(30% 30% at 30% 75%, rgba(28,94,68,.50), transparent 60%);
  animation: auroraDrift 26s var(--ease) infinite alternate;
}
@keyframes auroraDrift {
  0%  { transform: translate3d(-3%,-2%,0) rotate(0deg) scale(1); }
  100%{ transform: translate3d(4%,3%,0) rotate(8deg) scale(1.12); }
}
.lantern {
  position: fixed; z-index: -1; border-radius: 50%; pointer-events: none;
  filter: blur(40px); mix-blend-mode: screen;
}
.lantern--a { width: 340px; height: 340px; left: -60px; top: 18%; background: radial-gradient(circle,rgba(246,185,66,.5),transparent 70%); animation: floatY 14s ease-in-out infinite; }
.lantern--b { width: 260px; height: 260px; right: -40px; top: 42%; background: radial-gradient(circle,rgba(232,83,58,.35),transparent 70%); animation: floatY 18s ease-in-out infinite reverse; }
.lantern--c { width: 200px; height: 200px; left: 35%; bottom: 8%; background: radial-gradient(circle,rgba(79,212,154,.4),transparent 70%); animation: floatY 11s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-40px); } }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================================================================
   GLASS PRIMITIVE
   =================================================================== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-stroke);
  box-shadow:
    0 1px 0 0 var(--glass-shine) inset,
    0 20px 60px -20px rgba(0,0,0,.6),
    0 8px 24px -12px rgba(0,0,0,.5);
  position: relative;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, var(--glass-stroke-hi) 0%, transparent 30%, transparent 70%, var(--glass-stroke-hi) 100%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; opacity: .5;
}

/* ===================================================================
   LAYOUT HELPERS
   =================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; padding: clamp(5rem,10vw,8rem) 0; z-index: 1; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--jade);
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg,var(--jade),transparent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: .01em; }
.section-title { font-size: clamp(2rem,5vw,3.2rem); margin-bottom: .6rem; }
.section-title em { font-style: normal; color: var(--lantern); }
.section-lead { color: var(--ink-soft); max-width: 46ch; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 100px;
  font-family: var(--sans); font-weight: 500; font-size: .95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  position: relative;
}
.btn--primary {
  background: linear-gradient(135deg,var(--lantern),var(--lantern-deep));
  color: #1a1208; box-shadow: 0 10px 30px -8px rgba(246,185,66,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(246,185,66,.65); }
.btn--ghost { background: var(--glass-bg); border: 1px solid var(--glass-stroke); backdrop-filter: blur(12px); color: var(--ink); }
.btn--ghost:hover { border-color: var(--glass-stroke-hi); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ===================================================================
   NAVIGATION — floating glass pill
   =================================================================== */
.nav {
  position: fixed; top: 1.1rem; left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 2rem); max-width: 1280px; border-radius: 100px;
  transition: all .5s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.1rem .7rem 1.4rem; border-radius: 100px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-weight: 700; }
.brand-seal { width: 52px; height: 52px; border-radius: 11px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: .2rem; line-height: 1.15; }
.brand-text b { font-size: 1.4rem; letter-spacing: .015em; }
.brand-text span { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; color: var(--ink-mute); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; }
.nav-links a { padding: .55rem .65rem; border-radius: 100px; font-size: .88rem; color: var(--ink-soft); transition: all .3s var(--ease); position: relative; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  padding: .45rem .8rem; border-radius: 100px;
  border: 1px solid var(--glass-stroke); background: rgba(0,0,0,.15);
  transition: all .3s var(--ease);
}
.lang-toggle:hover { border-color: var(--glass-stroke-hi); }
.lang-toggle .on { color: var(--lantern); }
.lang-toggle .off { color: var(--ink-mute); }

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 9rem; padding-bottom: 5rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .3em; color: var(--jade); text-transform: uppercase; margin-bottom: 1.8rem; display: flex; align-items: center; gap: 1rem; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 12px var(--jade); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-size: clamp(3rem,9vw,6.2rem); font-weight: 900; line-height: 1.02; margin-bottom: 1.4rem; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero h1 .accent { background: linear-gradient(120deg,var(--lantern) 20%,var(--jade) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero-en { font-family: var(--mono); font-size: .85rem; letter-spacing: .25em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 2rem; }
.hero-tag { font-size: clamp(1.05rem,1.6vw,1.25rem); color: var(--ink-soft); max-width: 30ch; margin-bottom: 2.6rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.6rem; flex-wrap: wrap; }
.stat .num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--lantern); line-height: 1; }
.stat .num small { font-size: 1rem; color: var(--ink-soft); font-weight: 400; margin-left: .2rem; }
.stat .lbl { font-size: .82rem; color: var(--ink-mute); margin-top: .4rem; letter-spacing: .05em; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.clock-card { width: 100%; max-width: 380px; padding: 2.2rem; border-radius: var(--radius-lg); transform: rotate(-2deg); transition: transform .6s var(--ease); }
.clock-card:hover { transform: rotate(0deg) translateY(-6px); }
.clock-card .cc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.clock-loc { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; color: var(--ink-mute); text-transform: uppercase; }
.clock-loc b { display: block; color: var(--ink); font-family: var(--serif); font-size: .95rem; letter-spacing: .02em; margin-top: .3rem; font-weight: 500; }
.clock-ind { width: 10px; height: 10px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 14px var(--jade); animation: pulse 2s infinite; }
.clock-time { font-family: var(--serif); font-size: 3.4rem; font-weight: 300; letter-spacing: .02em; line-height: 1; margin-bottom: .4rem; }
.clock-time .sec { color: var(--lantern); font-size: 1.8rem; vertical-align: super; margin-left: .3rem; }
.clock-date { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.8rem; }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; letter-spacing: .25em; color: var(--ink-mute); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--ink-mute),transparent); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.01% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===================================================================
   SECTION HEADER (shared)
   =================================================================== */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.sec-head .ttl-wrap { max-width: 60ch; }

/* ===================================================================
   ABOUT / HERITAGE
   =================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
.about-card { padding: 2.4rem; border-radius: var(--radius-lg); }
.about-card h3 { font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.about-card h3 .num { font-family: var(--mono); font-size: .8rem; color: var(--lantern); letter-spacing: .1em; }
.about-card p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .98rem; }
.about-card p:last-child { margin-bottom: 0; }

.timeline { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.tl-item { display: flex; gap: 1rem; align-items: flex-start; }
.tl-year { font-family: var(--mono); font-size: .85rem; color: var(--lantern); min-width: 3.5rem; padding-top: .15rem; }
.tl-text { font-size: .92rem; color: var(--ink-soft); }
.tl-text b { color: var(--ink); font-weight: 500; }

/* ===================================================================
   NEWS
   =================================================================== */
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 1.8rem; border-radius: var(--radius-md); transition: transform .4s var(--ease), background .4s var(--ease); cursor: pointer; }
.news-item:hover { transform: translateX(8px); background: var(--glass-bg-strong); }
.news-date { font-family: var(--mono); display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: .5rem .8rem; border-radius: 10px; background: rgba(246,185,66,.1); border: 1px solid rgba(246,185,66,.2); }
.news-date .d { font-size: 1.4rem; font-weight: 500; color: var(--lantern); line-height: 1; }
.news-date .m { font-size: .62rem; color: var(--ink-mute); letter-spacing: .1em; margin-top: .2rem; }
.news-body h4 { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin-bottom: .3rem; }
.news-body p { font-size: .88rem; color: var(--ink-soft); }
.news-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 100px; border: 1px solid var(--glass-stroke); color: var(--ink-mute); white-space: nowrap; }
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.event-card { padding: 0; border-radius: var(--radius-lg); overflow: hidden; transition: transform .5s var(--ease); cursor: pointer; }
.event-card:hover { transform: translateY(-8px); }
.event-img { height: 200px; position: relative; overflow: hidden; }
.event-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 40%,rgba(6,23,15,.9)); }
.event-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-family: var(--mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 100px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); border: 1px solid var(--glass-stroke); }
.event-when { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; font-family: var(--serif); color: var(--ink); }
.event-when .m { font-size: .7rem; letter-spacing: .1em; color: var(--lantern); text-transform: uppercase; }
.event-when .d { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-body { padding: 1.6rem; }
.event-body h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; }
.event-body p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.bento { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 200px; gap: 1.2rem; }
.bento-cell { padding: 1.6rem; border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: space-between; transition: transform .4s var(--ease), background .4s var(--ease); overflow: hidden; position: relative; }
.bento-cell:hover { transform: translateY(-4px); background: var(--glass-bg-strong); }
.bento-cell.wide { grid-column: span 2; }
.bento-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(246,185,66,.12); color: var(--lantern); margin-bottom: auto; }
.bento-ic svg { width: 22px; height: 22px; }
.bento-cell h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .3rem; }
.bento-cell p { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.bento-cell .glow { position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle,rgba(246,185,66,.15),transparent 70%); opacity: 0; transition: opacity .5s; }
.bento-cell:hover .glow { opacity: 1; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 160px; gap: .8rem; }
.g-item { border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 50%,rgba(0,0,0,.7)); opacity: 0; transition: opacity .4s; }
.g-item.wide { grid-column: span 2; }
.g-item .cap { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; font-family: var(--serif); color: var(--ink); opacity: 0; transform: translateY(10px); transition: all .4s .1s; }
.g-item .cap b { display: block; font-size: 1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.contact-card {
  display: flex; flex-direction: column; gap: .65rem;
  padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--radius-lg);
}
.contact-card h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.35; }
.contact-card p { color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; padding-top: .6rem; }
.contact-actions .btn { justify-content: center; text-align: center; }
footer { position: relative; padding: 4rem 0 2.5rem; border-top: 1px solid var(--glass-stroke); margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--ink-mute); font-size: .9rem; margin-top: 1rem; line-height: 1.65; text-wrap: pretty; }
.footer-col h5 { font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; color: var(--lantern); text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col a { display: flex; align-items: center; gap: .4rem; color: var(--ink-soft); font-size: .9rem; padding: .35rem 0; transition: color .3s; }
.footer-col a svg { flex: none; }
.footer-col a:hover { color: var(--lantern); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--glass-stroke); flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); letter-spacing: .05em; }
.page-head { padding: 9rem 0 3rem; position: relative; z-index: 1; }
.breadcrumb { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 1.2rem; display: flex; gap: .6rem; align-items: center; }
.breadcrumb a:hover { color: var(--lantern); }
.breadcrumb .sep { opacity: .4; }
.page-title { font-size: clamp(2.4rem,6vw,3.8rem); margin-bottom: .8rem; }
.page-lead { color: var(--ink-soft); max-width: 52ch; font-size: 1.05rem; }

/* News full list — reuses .news-list / .news-item but clickable rows already styled */
.list-page { padding-bottom: 6rem; }
.inf-block { padding: 2.4rem; border-radius: var(--radius-lg); margin-bottom: 1.6rem; }
.inf-block-head { margin-bottom: 1.8rem; }
.inf-block-head h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: .5rem; }
.inf-block-head p { color: var(--ink-soft); font-size: .98rem; max-width: 60ch; }


:root {
  --font-serif: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg-void: #f4f1e7;
  --bg-deep: #e7ede2;
  --bg-mid: #e1eee2;
  --ink: #112a20;
  --ink-soft: #2e473b;
  --ink-mute: #4a6355;
  --jade: #176244;
  --lantern: #80500b;
  --glass-bg: rgba(255,255,255,.54);
  --glass-bg-strong: rgba(252,252,244,.94);
  --glass-stroke: rgba(30,77,55,.22);
  --glass-stroke-hi: rgba(30,77,55,.42);
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
p { overflow-wrap: anywhere; }
section[id], article[id] { scroll-margin-top: 7rem; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 4px;
}
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; background: var(--bg-deep); padding: .5rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.nav-inner { gap: .65rem; }
.brand-text span { font-size: .68rem; }
.nav-links a, .lang-toggle { font-size: .95rem; white-space: nowrap; }
.nav .btn { white-space: nowrap; }
.nav-cta { flex-shrink: 0; }
.theme-toggle, .mobile-nav summary {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--glass-stroke); background: var(--glass-bg);
}
.mobile-nav { display: none; }
.mobile-nav summary { cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute; inset: calc(100% + .6rem) 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .75rem;
  border: 1px solid var(--glass-stroke); border-radius: var(--radius-md);
  background: var(--bg-deep); max-height: 72vh; overflow: auto;
}
.mobile-nav a { display: block; padding: .65rem; }
.hero-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); width: 100%; }
.hero h1 { font-size: clamp(3rem,7.5vw,6.2rem); }
.hero h1 .line { overflow: visible; }
.hero-en, .hero-actions { margin-bottom: 1.5rem; }
.hero-tag { max-width: 48ch; margin-bottom: 1.5rem; }
.hero-stats { gap: 1.5rem; }
.clock-card { max-width: 420px; margin: 1.5rem 0; }
.clock-date { margin: 0; }
.clock-links { display: flex; flex-wrap: wrap; gap: .7rem; border-top: 1px solid var(--glass-stroke); margin-top: 1.4rem; padding-top: 1rem; }
.clock-links a { color: var(--lantern); }
.clock-links a:hover, .timeline a:hover { text-decoration: underline; }
.section-lead, .about-card p, .news-body p, .event-body p, .bento-cell p { font-size: 1.05rem; }
.section-lead { max-width: 60ch; }
.about-card .tl-year { flex: 0 0 4.5rem; text-align: start; }
.tl-text { font-size: 1rem; }
.news-body h3, .event-body h3, .bento-cell h3 { margin-bottom: .4rem; }
.event-img {
  display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%,var(--emerald),var(--bg-deep));
  font-family: var(--serif); color: var(--ink); font-size: 5rem; font-weight: bold;
}
.event-img::after { display: none; }
.bento { grid-auto-rows: minmax(200px,auto); }
.bento-ic { margin-bottom: 1rem; }
.gallery-grid { grid-auto-rows: minmax(155px,auto); }
.village-photo { grid-column: span 3; grid-row: span 2; }
.village-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.village-photo figcaption { position: absolute; inset: auto 0 0; padding: 1rem; background: rgba(4,16,11,.88); color: #fff; }
.village-photo a { text-decoration: underline; }
.gallery-topic { padding: 1.25rem; display: flex; flex-direction: column; justify-content: end; gap: .4rem; }
.page-head { padding-bottom: 2rem; }
.page-lead { font-size: 1.18rem; max-width: 65ch; }
.article-toc { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.article-toc a { border: 1px solid var(--glass-stroke); border-radius: 100px; padding: .45rem .8rem; }
.article-toc a:hover, .related-links a:hover { color: var(--lantern); }
.article-body { max-width: 940px; }
.inf-block .eyebrow { margin-bottom: .8rem; }
.inf-block h2 { font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 1rem; }
.inf-block p { font-size: 1.16rem; color: var(--ink-soft); max-width: 68ch; }
.inf-block p + p { margin-top: 1rem; }
.survey-chart {
  --survey-color-0: #309771;
  --survey-color-1: #8dc9a4;
  --survey-color-2: #29768d;
  --survey-color-3: #8fc8db;
  --survey-color-4: #d19a42;
  --survey-color-5: #e4bd7c;
  --survey-color-6: #a86d80;
  --survey-color-7: #9ca4ae;
  margin: 1.5rem 0;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--jade) 6%, transparent);
}
.survey-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-bottom: 1.2rem;
}
.survey-heading h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); line-height: 1.35; }
.survey-heading span { color: var(--ink-soft); }
.survey-heading > strong {
  color: var(--jade);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.survey-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.survey-pie {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--survey-slices));
}
.survey-legend { display: grid; gap: .9rem; }
.survey-group h4 { font-size: .96rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .7rem; }
.survey-group ul { list-style: none; display: grid; gap: .3rem; padding: 0; margin: 0; }
.survey-group li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; }
.survey-group li strong { font-variant-numeric: tabular-nums; }
.survey-swatch { width: .72rem; height: .72rem; border-radius: 3px; background: var(--swatch); }
.survey-chart figcaption { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 640px) { .survey-layout { grid-template-columns: 1fr; } }
.related-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.related-links a { display: inline-flex; gap: .4rem; align-items: center; }
.credit-figure { max-width: 820px; }
.credit-figure figcaption { margin-top: .5rem; }
.credit-figure a { text-decoration: underline; }
.footer-bottom a { margin-inline-end: .75rem; }
.footer-bottom a:hover { text-decoration: underline; }
@media (min-width: 1281px) {
  .nav .brand-text { white-space: nowrap; }
}
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; }
}
@media (max-width: 1160px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-content: start; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-cta > .btn { display: none; }
  .nav-inner { padding: .6rem .75rem; }
  .brand { gap: .4rem; }
  .brand-text span { display: none; }
  .nav .brand-seal { width: 44px; height: 44px; }
  .nav .brand-text b { font-size: 1.1rem; }
  .hero { padding-top: 7rem; padding-bottom: 2.5rem; }
  .hero h1 { font-size: clamp(2.65rem,12vw,4rem); }
  .events-grid, .bento, .gallery-grid, .footer-top { grid-template-columns: 1fr; }
  .bento-cell.wide, .village-photo { grid-column: auto; grid-row: auto; }
  .village-photo { min-height: 260px; }
  .gallery-grid, .bento { grid-auto-rows: auto; }
  .gallery-topic { min-height: 115px; }
  .about-card, .inf-block, .contact-card { padding: 1.3rem; }
  .news-item { grid-template-columns: auto minmax(0,1fr); gap: .75rem; padding: 1rem; }
  .news-tag { grid-column: 2; justify-self: start; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .contact-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 680px) {
  .nav-cta { gap: .35rem; }
  .lang-toggle { min-width: 42px; min-height: 42px; padding: .3rem .45rem; justify-content: center; }
  .lang-toggle .on, .lang-toggle .divider { display: none; }
  .brand-text { min-width: 0; }
}
@media (max-width: 360px) {
  .nav-inner { padding-inline: .45rem; gap: .3rem; }
  .nav .brand-seal { width: 38px; height: 38px; }
  .nav-cta { gap: .25rem; }
  .lang-toggle { letter-spacing: 0; }
}

.local-weather {
  margin-top: 1.4rem; border: 1px solid var(--glass-stroke-hi); border-radius: 20px;
  background: color-mix(in srgb, var(--bg-mid) 90%, var(--jade));
}
.local-weather summary {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .8rem; align-items: center;
  padding: 1rem; border-radius: inherit; cursor: pointer; list-style: none; color: var(--ink);
  background: linear-gradient(125deg, color-mix(in srgb, var(--jade) 14%, transparent), transparent 78%);
}
.local-weather summary::-webkit-details-marker { display: none; }
.local-weather summary:hover { box-shadow: inset 0 0 0 1px var(--jade); }
.weather-symbol {
  display: grid; place-items: center; width: clamp(2.6rem, 5vw, 3.6rem); aspect-ratio: 1;
  border-radius: 15px; color: var(--jade); background: color-mix(in srgb, var(--jade) 13%, var(--bg-deep));
}
.weather-symbol svg { width: 63%; height: 63%; }
.weather-primary { display: grid; gap: .24rem; min-width: 0; }
.weather-kicker { color: var(--ink-soft); font: 600 .83rem var(--sans); }
.weather-temp { color: var(--ink); font: 750 clamp(2.15rem, 4.3vw, 3.6rem)/1 var(--sans); letter-spacing: -.045em; }
.weather-condition { font: 650 1rem var(--sans); }
.weather-range { color: var(--ink-soft); font: .82rem var(--sans); }
.weather-chevron {
  width: .62rem; height: .62rem; margin: .2rem; border: solid var(--ink-soft);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.local-weather[open] .weather-chevron { transform: rotate(225deg); }
.weather-body { display: grid; gap: .75rem; padding: .3rem .85rem .85rem; }
.weather-metrics, .weather-particles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.weather-metrics > div, .weather-particles > div {
  min-width: 0; padding: .65rem .7rem; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-stroke);
}
.weather-metrics .weather-rain {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .65rem;
  background: color-mix(in srgb, var(--jade) 13%, var(--bg-mid)); border-color: color-mix(in srgb, var(--jade) 40%, transparent);
}
.weather-body span { color: var(--ink-soft); font: .85rem var(--sans); }
.weather-body strong { display: block; margin-top: .18rem; color: var(--ink); font: 700 1.2rem var(--sans); overflow-wrap: anywhere; }
.weather-rain strong { font-size: 1.65rem; margin: 0; }
.weather-air { display: grid; gap: .6rem; padding: .75rem; border-radius: 14px; background: color-mix(in srgb, var(--lantern) 12%, var(--bg-mid)); border: 1px solid color-mix(in srgb, var(--lantern) 42%, transparent); }
.weather-aqi strong { font-size: 1.35rem; }
.weather-scale { display: grid; grid-template-columns: repeat(6,1fr); gap: .25rem; padding: .18rem; }
.weather-scale span { height: .32rem; border-radius: 999px; background: #31a662; opacity: .45; }
.weather-scale span:nth-child(2) { background: #e1bd37; }
.weather-scale span:nth-child(3) { background: #e68a3d; }
.weather-scale span:nth-child(4) { background: #db5147; }
.weather-scale span:nth-child(5) { background: #a558a8; }
.weather-scale span:nth-child(6) { background: #a12d4a; }
.weather-scale .is-current { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.weather-updated, .weather-credit { color: var(--ink-soft); font: .76rem/1.45 var(--sans); }
.weather-credit { text-decoration: underline; }
.clock-card:has(.local-weather[open]) { transform: none; }
@media (max-width: 420px) {
  .clock-card { padding: 1.35rem; }
  .local-weather summary { gap: .55rem; padding: .8rem; }
}

/* A local news desk, using the guide's jade and lantern palette. */
.local-news { margin-block: 1rem 4rem; }
.local-news-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  padding-block: 1.4rem 1.1rem;
  border-top: 2px solid var(--lantern);
}
.local-news-heading h2 { font: 800 clamp(2.35rem, 5vw, 4.2rem)/1.13 var(--serif); margin: .25rem 0 .6rem; }
.local-news-heading p:not(.eyebrow) { color: var(--ink-soft); font-size: 1rem; }
.local-news-edition { display: grid; gap: .1rem; flex: none; color: var(--ink-soft); font-size: .84rem; }
.local-news-edition time { font: 700 1.04rem/1.5 var(--mono); color: var(--ink); }
.local-news-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.local-news-filters button {
  border-radius: 100px;
  border: 1px solid var(--glass-stroke-hi);
  background: var(--glass-bg);
  padding: .45rem .85rem;
  min-height: 44px;
  font-size: .94rem;
  font-weight: 650;
}
.local-news-filters button[aria-pressed="true"] { background: var(--lantern); color: #17130b; border-color: var(--lantern); }
.local-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.local-news-card { padding: clamp(1rem, 2.8vw, 1.65rem); border-radius: var(--radius-md); min-width: 0; }
.local-news-feature {
  grid-column: 1 / -1;
  border-inline-start: 4px solid var(--lantern);
  background: linear-gradient(115deg, var(--glass-bg-strong), var(--glass-bg));
}
.local-news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .6rem; margin-bottom: .6rem; color: var(--ink-soft); font-size: .86rem; }
.local-news-meta time { font-variant-numeric: tabular-nums; }
.local-news-topic, .local-news-highlight { font-weight: 750; padding: .12rem .55rem; border-radius: 50px; }
.local-news-topic { color: var(--jade); border: 1px solid var(--glass-stroke-hi); }
.local-news-highlight { background: var(--lantern); color: #17130b; }
.local-news-place { font-size: .88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.local-news-card h3 { font: 750 clamp(1.22rem, 2.2vw, 1.6rem)/1.3 var(--serif); margin: .25rem 0 .45rem; overflow-wrap: anywhere; }
.local-news-feature h3 { font-size: clamp(1.65rem, 4vw, 2.85rem); }
.local-news-card p { color: var(--ink-soft); font-size: .98rem; max-width: 70ch; overflow-wrap: anywhere; }
.local-news-summary p + p { margin-top: .65rem; }
.local-news-source { display: inline-block; margin-top: .7rem; font-size: .88rem; font-weight: 650; color: var(--jade); }
.local-news-source:hover, .local-news-note a:hover { text-decoration: underline; }
.local-news-note { display: flex; flex-wrap: wrap; gap: .2rem .75rem; color: var(--ink-soft); font-size: .88rem; margin-top: 1rem; }
.local-news-note a { text-decoration: underline; text-underline-offset: .2em; }
.local-news-archive { margin-top: 1.25rem; border-block: 1px solid var(--glass-stroke-hi); }
.local-news-archive > summary {
  cursor: pointer;
  min-height: 52px;
  padding: .75rem .35rem;
  font-weight: 750;
}
.local-news-archive > summary::marker { color: var(--jade); }
.local-news-archive-count {
  display: inline-block;
  margin-inline-start: .6rem;
  padding: .05rem .55rem;
  border: 1px solid var(--glass-stroke-hi);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--ink-soft);
}
.local-news-archive > .local-news-grid { padding-bottom: .75rem; }
.guide-analytics { margin-top: .7rem; color: var(--ink-soft); font-size: .9rem; }
.guide-analytics summary { cursor: pointer; width: fit-content; }
.guide-analytics p { margin-block: .45rem; }
.local-news :is(a, button, summary):focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }
@media (max-width: 640px) {
  .local-news-heading { align-items: start; flex-direction: column; }
  .local-news-edition { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
  .local-news-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Survey editorial hierarchy: headline statistic, chart, then two ranked groups. */
.survey-chart { padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: 24px; }
.survey-heading { align-items: center; padding-bottom: 1.5rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--glass-stroke-hi); gap: 1.5rem; }
.survey-heading .survey-kicker { font: 700 .78rem/1.4 var(--sans); color: var(--jade); letter-spacing: .16em; margin: 0 0 .6rem; }
.survey-heading h3 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-bottom: .45rem; }
.survey-heading span { font-size: .94rem; }
.survey-total { flex: none; display: grid; gap: .2rem; padding: .9rem 1.2rem; background: var(--glass-bg-strong); border: 1px solid var(--glass-stroke-hi); border-radius: 18px; }
.survey-total > strong { color: var(--jade); font: 750 clamp(2.8rem, 6vw, 4rem)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.survey-total span { text-align: center; }
.demographics-chart .survey-total { min-width: 0; max-width: 100%; }
.survey-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 4vw, 3rem); }
.survey-pie { width: min(100%, 300px); box-shadow: 0 0 0 8px var(--glass-bg), 0 0 0 9px var(--glass-stroke-hi), 0 18px 40px #0002; }
.survey-visual > p { font-size: .9rem; text-align: center; color: var(--ink-soft); margin: 1.6rem 0 0; }
.survey-legend { gap: 1.3rem; }
.survey-group h4 { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .65rem; font-size: .94rem; }
.survey-group h4 b { color: var(--ink); font: 700 1.15rem/1.3 var(--sans); white-space: nowrap; }
.survey-group li { position: relative; padding: .65rem .7rem .85rem; border-radius: 9px; background: var(--glass-bg); overflow: hidden; font-size: 1rem; }
.survey-group li::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--share); background: var(--row-color); }
.survey-group li strong { font-size: 1.06rem; }
.survey-swatch { width: .8rem; height: .8rem; border-radius: 50%; }
.survey-chart figcaption { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--glass-stroke-hi); font-size: .9rem; line-height: 1.8; }
@media (max-width: 640px) {
  .survey-heading { align-items: start; }
  .survey-total { width: 100%; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
  .demographics-chart .survey-total { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .survey-total span { text-align: start; }
  .survey-layout { grid-template-columns: minmax(0, 1fr); }
  .survey-pie { width: min(85%, 260px); }
}
.survey-pie { margin-inline: auto; }

.survey-pie { position: relative; }
.survey-pie svg { display: block; width: 100%; height: 100%; overflow: visible; }
.survey-slice { fill: transparent; cursor: pointer; outline: none; }
.survey-slice.is-active, .survey-slice:focus-visible { fill: #ffffff30; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.survey-tooltip { position: absolute; z-index: 2; left: 50%; top: -1rem; transform: translate(-50%, -100%); width: max-content; max-width: 100%; padding: .65rem 1rem; border: 1px solid var(--glass-stroke-hi); border-radius: .8rem; background: var(--bg-deep); color: var(--ink); box-shadow: 0 8px 24px #0003; font-size: 1rem; font-weight: 700; pointer-events: none; }
.survey-tooltip[hidden] { display: none; }
