/* ==========================================================================
   MySitamarhi — public stylesheet
   Colours, fonts and scale come from /theme.css (admin controlled).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--base);
  line-height: var(--lh);
  letter-spacing: var(--ls);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5em;
  color: var(--secondary);
}
h1 { font-size: calc(2.2rem * var(--h)); }
h2 { font-size: calc(1.65rem * var(--h)); }
h3 { font-size: calc(1.25rem * var(--h)); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--secondary); color: #fff; padding: .7rem 1.1rem;
}
.skip-link:focus { left: .5rem; }

/* Section rule — a short gradient bar in the accent colours ----------------- */
.sec-rule, .sec-head .sec-rule {
  display: block; height: 4px; width: 64px; margin-top: .7rem; border-radius: 4px;
  background: var(--grad-strip);
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .68rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: .18s background, .18s border-color, .18s color, .18s transform, .18s box-shadow;
  text-decoration: none !important; line-height: 1.15;
}
.btn-primary { background: var(--grad-hero); color: #fff; box-shadow: 0 2px 10px rgba(11, 61, 122, .22); }
.btn-primary:hover { background: var(--grad-hot); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 61, 122, .26); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--secondary); transform: translateY(-1px); }

/* Flash ------------------------------------------------------------------- */
.flash {
  margin: 0; padding: .9rem 1.2rem; text-align: center; font-weight: 600; color: #fff;
}
.flash-success { background: var(--highlight); }
.flash-error { background: var(--primary); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 60; background: var(--grad-hero); color: var(--header-text); }
.site-header.sticky { position: sticky; top: 0; box-shadow: 0 2px 14px rgba(8, 36, 63, .28); }

.utility-bar { background: rgba(4, 22, 41, .32); font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.utility-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; }
.utility-left, .utility-right { display: flex; gap: 1.05rem; align-items: center; flex-wrap: wrap; }
.ub-item { color: #fff; opacity: .9; white-space: nowrap; }
a.ub-item:hover { opacity: 1; text-decoration: underline; }
.ub-place { font-weight: 600; letter-spacing: .03em; opacity: .8; }
.utility-right .soc {
  color: #fff; opacity: .85; padding: .16rem .5rem; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .3); font-size: .76rem;
}
.utility-right .soc:hover { background: #fff; color: var(--secondary); text-decoration: none; opacity: 1; }

.brand-bar { padding: .6rem 0; }
.brand-inner { display: flex; align-items: center; gap: 1.1rem; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--header-text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--highlight); color: #fff; font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 600; box-shadow: 0 3px 12px rgba(196, 38, 93, .38);
}
.brand-mark.big { width: 68px; height: 68px; font-size: 1.9rem; margin-inline: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word strong { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: .01em; font-weight: 600; }
.brand-word small { font-size: .76rem; color: var(--accent); letter-spacing: .04em; opacity: 1; }
.brand-img { max-height: 56px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.primary-nav > a {
  color: var(--header-text); font-weight: 500; font-size: .94rem;
  padding: .5rem .72rem; border-radius: var(--radius); position: relative;
}
.primary-nav > a::after {
  content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .28rem; height: 2px;
  border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: .2s;
}
.primary-nav > a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.primary-nav > a:hover::after { transform: scaleX(1); }
.primary-nav > a.nav-home { color: #fff; font-weight: 600; }
.nav-cta {
  background: var(--accent) !important; color: #1a1204 !important;
  padding: .5rem 1rem !important; border-radius: var(--radius) !important; font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(232, 137, 12, .35);
}
.nav-cta:hover { background: #fff !important; color: var(--secondary) !important; box-shadow: 0 4px 14px rgba(255, 255, 255, .3); }
.nav-search { display: flex; align-items: center; position: relative; margin-left: .4rem; }
.nav-search input {
  width: 210px; max-width: 44vw; padding: .5rem .8rem; border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff;
  font: inherit; font-size: .9rem;
}
.nav-search input::placeholder { color: rgba(255, 255, 255, .6); }
.nav-search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.nav-search button {
  border: 0; background: var(--primary); color: #fff; padding: .55rem .85rem;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: .9rem;
}
.suggest {
  position: absolute; top: 118%; left: 0; width: 320px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
  padding: .35rem; z-index: 80;
}
.suggest a { display: block; padding: .45rem .6rem; border-radius: 6px; color: var(--text); font-size: .92rem; }
.suggest a:hover { background: var(--bg-alt); text-decoration: none; }
.suggest small { display: block; color: var(--muted); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--header-text); }
.nav-toggle em { font-style: normal; font-size: .72rem; color: var(--header-text); letter-spacing: .08em; }

/* ==========================================================================
   Scrolling notice band
   ========================================================================== */
.marquee-band {
  display: flex; align-items: stretch; background: var(--marquee-bg); color: var(--marquee-text);
  border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  overflow: hidden; position: relative; z-index: 40;
}
.marquee-head {
  display: flex; align-items: center; gap: .55rem; padding: .6rem 1.05rem;
  background: var(--secondary); color: #fff; white-space: nowrap; z-index: 2;
  border-right: 1px solid rgba(255, 255, 255, .2);
}
.marquee-blink { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: none; box-shadow: 0 0 0 3px rgba(232, 137, 12, .25); }
.marquee-track { display: flex; overflow: hidden; flex: 1; }
.marquee-run { display: flex; align-items: center; gap: 2.4rem; padding-inline: 2.4rem; white-space: nowrap; animation: slideX var(--marquee-speed, 45s) linear infinite; }
@keyframes slideX { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee-band[data-marquee-dir="left"] .marquee-run { animation-direction: normal; }
.marquee-band[data-marquee-dir="right"] .marquee-run { animation-direction: reverse; }
.marquee-band.paused .marquee-run { animation-play-state: paused; }
.mq-item {
  color: var(--marquee-text); font-size: var(--notice-size); line-height: 1.3;
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none !important;
}
.marquee-band.bold .mq-item { font-weight: 600; }
.mq-big { font-weight: 700; }
.mq-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; flex: none; }
.mq-pin { background: rgba(255, 255, 255, .16); color: #fff; font-size: .58em; padding: .12em .5em; border-radius: 4px; letter-spacing: .04em; font-weight: 600; }
.mq-until { font-style: normal; font-size: .6em; opacity: .75; letter-spacing: .03em; }

/* ==========================================================================
   Sliding banner
   ========================================================================== */
.banner { position: relative; height: var(--banner-h); overflow: hidden; background: var(--secondary); }
.banner-viewport { position: relative; height: 100%; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background-size: cover; background-position: center; opacity: 0;
  pointer-events: none; transition: opacity .7s ease;
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10, 20, 34, .85), rgba(10, 20, 34, calc(var(--ov) * .55))); }
.slide-body { position: relative; z-index: 3; color: #fff; max-width: 760px; padding-block: 1rem; }
.slide[data-align="center"] .slide-body { margin-inline: auto; text-align: center; }
.slide[data-align="right"] .slide-body { margin-left: auto; text-align: right; }
.slide-kicker {
  display: inline-block; background: var(--accent); color: #1a1204; border: 0;
  padding: .25rem .8rem; border-radius: 999px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-size: .74rem; margin-bottom: .9rem;
  box-shadow: 0 4px 14px rgba(232, 137, 12, .35);
}
.slide-badge { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; margin-bottom: .6rem; }
.slide-title {
  color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin: 0 0 .55rem;
  font-weight: 600; line-height: 1.18;
}
.slide-text { font-size: clamp(.98rem, 1.5vw, 1.15rem); opacity: .92; max-width: 52ch; }
.slide-text p { margin: 0 0 .4rem; }
.slide-text p:last-child { margin-bottom: 0; }
.slide-text ul, .slide-text ol { margin: .3rem 0 .4rem 1.2rem; padding: 0; }
.slide-text a { color: #fff; text-decoration: underline; }
.slide-cta {
  display: inline-flex; margin-top: 1.15rem; background: var(--accent); color: #1a1204;
  padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 700; transition: .18s background, .18s color;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.slide-cta:hover { background: #fff; color: var(--secondary); text-decoration: none; }

/* banner effects */
.slide.kenburns.active .slide-body { animation: kbIn .8s ease both; }
.slide.kenburns::before {
  content: ""; position: absolute; inset: -6%; background: inherit; background-size: cover;
  background-position: center; animation: kenburns 22s ease-in-out infinite alternate; z-index: 0;
}
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1%, 1%); } }
@keyframes kbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slide.slide-fade.active { transition: opacity 1s ease; }
.slide-body, .slide.active .slide-body { animation: kbIn .7s ease both; }

.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .3);
  cursor: pointer; background: rgba(10, 20, 34, .45); color: #fff; font-size: 1.25rem; line-height: 1;
  transition: .18s background;
}
.banner-nav:hover { background: var(--accent); border-color: var(--accent); color: #1a1204; }
.banner-nav.prev { left: 14px; }
.banner-nav.next { right: 14px; }
.banner-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: .45rem; justify-content: center; z-index: 5; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); background: transparent; cursor: pointer; padding: 0; transition: .2s; }
.dot.on { background: var(--accent); border-color: var(--accent); width: 24px; border-radius: 999px; }

/* ==========================================================================
   Quick nav chips + ticker band
   ========================================================================== */
.home-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.quicknav { display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 0; scrollbar-width: thin; }
.qn {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); padding: .48rem .9rem;
  border-radius: 999px; font-weight: 500; font-size: .9rem; white-space: nowrap; transition: .18s;
}
/* A coloured dot per chip keeps the row lively without pictographs. */
.qn::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none;
}
.qn:nth-child(4n+2)::before { background: var(--accent); }
.qn:nth-child(4n+3)::before { background: var(--highlight); }
.qn:nth-child(4n)::before { background: var(--secondary); }
.qn:hover { color: #fff; background: var(--primary); border-color: var(--primary); text-decoration: none; box-shadow: 0 3px 10px rgba(14, 99, 180, .3); }
.qn:hover::before { background: #fff; }

.section { padding: var(--sec-pad) 0; }
.ticker-wrap { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 1.6rem; align-items: start; }

.ticker-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; color: var(--text);
  box-shadow: 0 6px 22px rgba(8, 36, 63, .1); border: 1px solid var(--border);
}
.ticker-head { display: flex; justify-content: space-between; align-items: center; padding: .95rem 1.1rem; background: var(--grad-hero); color: #fff; }
.ticker-title { color: #fff; margin: 0; font-size: 1.1rem; font-weight: 600; }
.ticker-sub { margin: 0; font-size: .78rem; opacity: .8; }
.ticker-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ticker-live i { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.ticker-viewport { height: var(--ticker-height, 420px); overflow: hidden; position: relative; }
.ticker-list { list-style: none; margin: 0; padding: 0; animation: rollUp var(--ticker-speed, 6s) linear infinite; }
.ticker-list:hover { animation-play-state: paused; }
@keyframes rollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.ticker-card[data-ticker-dir="down"] .ticker-list { animation-direction: reverse; }
.ticker-list li { border-bottom: 1px solid var(--border); }
.ticker-list li a { display: flex; gap: .7rem; align-items: baseline; padding: .8rem 1.1rem; color: var(--text); font-size: .94rem; line-height: 1.45; }
.ticker-list li a:hover { background: var(--bg-alt); text-decoration: none; color: var(--primary); }
.tk-tag {
  flex: none; font-size: .62rem; letter-spacing: .05em; font-weight: 700; text-transform: uppercase;
  background: var(--primary-soft); color: var(--secondary); border: 1px solid var(--border);
  padding: .14rem .5rem; border-radius: 999px;
}
.tk-text { flex: 1; }
.tk-time { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.ticker-foot { display: flex; gap: 1rem; padding: .7rem 1.1rem; background: var(--bg-alt); border-top: 1px solid var(--border); }
.ticker-foot a { color: var(--primary); font-size: .85rem; font-weight: 600; }

.highlights { display: grid; gap: 1.2rem; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.hl-card {
  display: grid; gap: .2rem; padding: 1.05rem; border-radius: var(--radius); position: relative;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary);
  box-shadow: var(--shadow); color: var(--text); transition: .18s transform, .18s box-shadow;
}
.hl-card:nth-child(3n+2) { border-top-color: var(--accent); }
.hl-card:nth-child(3n) { border-top-color: var(--highlight); }
.hl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(8, 36, 63, .14); text-decoration: none; }
.hl-ico { font-size: 1.1rem; line-height: 1; }
.hl-num { font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); line-height: 1.1; font-weight: 700; }
.hl-card:nth-child(3n+2) .hl-num { color: var(--accent-ink); }
.hl-card:nth-child(3n) .hl-num { color: var(--highlight); }
.hl-lbl { font-size: .82rem; color: var(--muted); }
.hl-cta { background: var(--accent-wash); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.3rem; }
.hl-cta .btn { margin-right: .5rem; }

/* ==========================================================================
   Section bodies
   ========================================================================== */
.sec-head { margin-bottom: 1.6rem; max-width: 70ch; }
.sec-title { margin-bottom: .25rem; }
.sec-sub { color: var(--muted); font-size: 1rem; margin: 0; }

.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 3px; background: var(--grad-strip); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(8, 36, 63, .1); }
.stat { background: var(--surface); padding: 1.3rem 1rem; text-align: center; color: var(--text); transition: .18s background; }
.stat:hover { text-decoration: none; background: var(--accent-wash); }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--primary); line-height: 1.1; font-weight: 700; }
.stat:nth-child(3n+2) .stat-num { color: var(--accent-ink); }
.stat:nth-child(3n) .stat-num { color: var(--highlight); }
.stat-num i { font-style: normal; font-size: .55em; color: var(--muted); }
.stat-lbl { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tile {
  display: grid; gap: .35rem; padding: 1.2rem 1.2rem 1.3rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary);
  color: var(--text); box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: .2s transform, .2s box-shadow;
}
.tile:nth-child(4n+2) { border-top-color: var(--accent); }
.tile:nth-child(4n+3) { border-top-color: var(--highlight); }
.tile:nth-child(4n) { border-top-color: var(--secondary); }
.tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad-strip);
  transform: scaleX(0); transform-origin: left; transition: .3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(8, 36, 63, .16); text-decoration: none; }
.tile:hover::after { transform: scaleX(1); }
.tile-ico { font-size: 1.1rem; line-height: 1; }
.tile-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--secondary); font-weight: 600; }
.tile:hover .tile-title { color: var(--primary); }
.tile-text { font-size: .9rem; color: var(--muted); }

.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.place-grid.big { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pcard {
  display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text);
  transition: .2s transform, .2s box-shadow;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(8, 36, 63, .18); text-decoration: none; }
.pcard-img { display: block; height: 180px; background: var(--grad-hero) center/cover no-repeat; position: relative; }
.pcard-img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); opacity: .9;
}
.pcard-body { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.pcard-body strong { font-family: var(--font-head); font-size: 1.18rem; color: var(--secondary); font-weight: 600; }
.pcard-body em { font-style: normal; color: var(--accent-ink); font-size: .78rem; letter-spacing: .04em; font-weight: 600; }
.pcard-body span { font-size: .92rem; color: var(--muted); }
.pcard-best { font-size: .8rem; color: var(--highlight); font-style: normal; font-weight: 600; }

.block-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.bcard { display: grid; gap: .25rem; padding: 1.05rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); color: var(--text); transition: .18s transform, .18s box-shadow; }
.bcard:nth-child(3n+2) { border-left-color: var(--accent); }
.bcard:nth-child(3n) { border-left-color: var(--highlight); }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(8, 36, 63, .14); text-decoration: none; }
.bcard strong { font-family: var(--font-head); font-size: 1.12rem; color: var(--secondary); font-weight: 600; }
.bcard-hq { font-size: .83rem; color: var(--muted); }
.bcard-num { font-size: .83rem; color: var(--primary); font-weight: 600; }

.blocks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.bpanel { display: grid; gap: .5rem; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); box-shadow: var(--shadow); color: var(--text); transition: .2s transform, .2s box-shadow; }
.bpanel:nth-child(3n+2) { border-top-color: var(--accent); }
.bpanel:nth-child(3n) { border-top-color: var(--highlight); }
.bpanel:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(8, 36, 63, .18); text-decoration: none; }
.bpanel h2 { margin: 0; font-size: 1.35rem; }
.bhq { color: var(--primary); font-size: .87rem; margin: 0; }
.bmeta { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .9rem; padding: 0; margin: .3rem 0; font-size: .87rem; color: var(--muted); }
.bmeta b { color: var(--secondary); font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; }
.bdesc { font-size: .92rem; color: var(--muted); margin: 0; }
.bopen { color: var(--primary); font-weight: 600; font-size: .9rem; }

.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.scard {
  display: grid; gap: .15rem; padding: 1rem; border: 1px solid var(--border); border-left: 4px solid var(--primary);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
  box-shadow: var(--shadow); transition: .18s transform, .18s box-shadow, .18s background-color;
}
.scard:nth-child(3n+2) { border-left-color: var(--accent); }
.scard:nth-child(3n) { border-left-color: var(--highlight); }
.scard:hover { transform: translateX(3px); background: var(--primary-soft); text-decoration: none; }
.scard strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--secondary); font-weight: 600; }
.scard span, .scard em { font-style: normal; font-size: .83rem; color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.news-grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ncard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; transition: .2s transform, .2s box-shadow; }
.ncard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(8, 36, 63, .18); }
.ncard-img { display: block; height: 175px; background: var(--grad-hero); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; }
.ncard-body { padding: 1.05rem 1.15rem 1.2rem; display: grid; gap: .4rem; align-content: start; }
.ncard-cat { justify-self: start; font-size: .7rem; letter-spacing: .07em; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: .2rem .6rem; border-radius: 999px; }
.ncard-body h2, .ncard-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.ncard-body h2 a, .ncard-body h3 a { color: var(--secondary); }
.ncard-body p { margin: 0; font-size: .92rem; color: var(--muted); }
.ncard-foot, .ncard-body time { font-size: .8rem; color: var(--muted); }

.rich { display: grid; gap: 1.4rem; }
.rich.cols2 { grid-template-columns: 1fr; }
.rich-text { font-size: 1.02rem; }
.rich-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 860px) { .rich.cols2 { grid-template-columns: 1.35fr 1fr; align-items: start; } }

.split { display: grid; gap: 1.6rem; align-items: center; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-portrait .split-img { display: flex; justify-content: center; }
.split-portrait .split-img img { width: 100%; max-width: 260px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip { direction: rtl; } .split.flip > * { direction: ltr; }
  .split-portrait { grid-template-columns: 260px minmax(0, 1fr); gap: 2.2rem; align-items: start; } }

.cta-box { text-align: center; padding: 2.4rem 1.4rem; border-radius: var(--radius); background: var(--grad-hero); color: #fff; box-shadow: 0 16px 34px rgba(11, 61, 122, .28); }
.cta-box h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-box p { opacity: .9; max-width: 60ch; margin-inline: auto; }
.cta-box .btn-primary { background: var(--accent); color: #1a1204; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.cta-box .btn-primary:hover { background: #fff; color: var(--secondary); }
.cta-soft { background: var(--accent-wash); color: var(--text); border: 1px solid var(--border); box-shadow: none; }

.quote-box { margin: 0; padding: 1.4rem 1.6rem; background: var(--highlight-wash); border: 1px solid var(--border); border-left: 4px solid var(--highlight); border-radius: var(--radius); }
.quote-box blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--secondary); line-height: 1.45; }
.quote-box figcaption { margin-top: .6rem; color: var(--highlight); font-weight: 600; font-size: .92rem; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 560px; }
.data-table th, .data-table td { padding: .72rem .9rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
.data-table thead th { background: var(--grad-hero); color: #fff; font-weight: 600; letter-spacing: .02em; border-bottom: 3px solid var(--accent); }
.data-table tbody tr:nth-child(even) { background: var(--primary-soft); }
.data-table tbody tr:hover { background: var(--accent-wash); }
.data-table td b, .data-table th b { color: var(--secondary); }

.accordion { display: grid; gap: .6rem; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); overflow: hidden; transition: .18s box-shadow; }
.acc-item:nth-child(3n+2) { border-left-color: var(--accent); }
.acc-item:nth-child(3n) { border-left-color: var(--highlight); }
.acc-item[open] { box-shadow: 0 10px 22px rgba(8, 36, 63, .12); }
.acc-item summary { cursor: pointer; padding: .95rem 1.1rem; font-weight: 600; color: var(--secondary); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.acc-item summary:hover { background: var(--primary-soft); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; color: var(--primary); font-size: 1.2rem; }
.acc-item[open] summary { background: var(--primary-soft); }
.acc-item[open] summary::after { content: "−"; }
.acc-body { padding: 0 1.1rem 1rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px; width: 3px; background: var(--grad-strip); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.tl-year { font-family: var(--font-head); color: var(--accent-ink); font-size: 1.1rem; text-align: right; font-weight: 600; }
.timeline li > div { padding-left: 1.2rem; border-left: 0; position: relative; }
.timeline li > div::before { content: ""; position: absolute; left: -6px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); box-shadow: 0 0 0 3px var(--primary-soft); }
.timeline li:nth-child(3n+2) > div::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.timeline li:nth-child(3n) > div::before { background: var(--highlight); box-shadow: 0 0 0 3px var(--highlight-wash); }

.notice-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.notice-rows a { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--highlight); border-radius: var(--radius); color: var(--text); transition: .18s transform, .18s box-shadow; }
.notice-rows a:hover { transform: translateX(3px); box-shadow: 0 8px 18px rgba(196, 38, 93, .16); text-decoration: none; background: var(--highlight-wash); }
.nr-date { font-size: .8rem; color: #fff; background: var(--highlight); font-weight: 600; white-space: nowrap; text-align: center; padding: .25rem .4rem; border-radius: 999px; }
.nr-title { font-weight: 600; }
.nr-cat { font-size: .75rem; letter-spacing: .05em; color: var(--muted); }

.map-frame iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-frame p { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.embed-frame { width: 100%; border: 0; border-radius: var(--radius); }

.hero-text { text-align: center; max-width: 74ch; margin-inline: auto; }
.hero-text.align-left { text-align: left; margin: 0; }
.hero-text.align-right { text-align: right; margin-left: auto; }
.kicker { display: inline-block; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); border: 1px solid var(--accent); padding: .22rem .7rem; border-radius: 999px; margin-bottom: .5rem; }

.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 180px; gap: .8rem; }
.mosaic-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grad-hero); display: block; box-shadow: var(--shadow); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: .35s transform; }
.mosaic-item:hover img { transform: scale(1.06); }
.mosaic-item span { position: absolute; inset: auto 0 0 0; padding: .5rem .7rem; background: linear-gradient(90deg, var(--secondary), var(--primary)); color: #fff; font-size: .82rem; transform: translateY(100%); transition: .25s transform; }
.mosaic-item:hover span { transform: translateY(0); }

.empty-note, .empty-box { color: var(--muted); }
.empty-box { padding: 2.4rem; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; background: var(--surface); }
.more-row { margin-top: 1.4rem; text-align: center; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  background: var(--grad-hero); color: #fff;
  padding: clamp(2.2rem, 5vw, 3.8rem) 0; border-bottom: 4px solid var(--accent);
}
.page-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4rem; font-weight: 600; }
.page-creds { display: inline-block; margin-left: .5rem; font-size: .5em; font-weight: 500; letter-spacing: .01em; opacity: .85; }
.page-sub { font-size: 1.02rem; opacity: .9; max-width: 68ch; margin: 0; }
.page-body { padding: var(--sec-pad) 0; }

.breadcrumb { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb em { font-style: normal; color: var(--text); }

/* Directory */
.dir-filter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.df-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: end; }
.df-field { display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); flex: 1 1 190px; }
.df-q { flex: 2 1 320px; max-width: 420px; }
.df-field input, .df-field select, .post-form input, .post-form textarea, .lb-fig {
  font: inherit; font-size: .95rem; padding: .6rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
}
.df-field input:focus, .df-field select:focus, .post-form input:focus, .post-form textarea:focus {
  outline: 2px solid var(--primary); border-color: var(--primary); outline-offset: 1px;
}
.df-clear { margin: .6rem 0 0; font-size: .85rem; }
.dir-count { color: var(--muted); font-size: .95rem; }
.dir-count strong { color: var(--secondary); font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.dir-note { display: block; font-size: .82rem; }

.vtable-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.vtable { width: 100%; border-collapse: collapse; min-width: 780px; }
.vtable th, .vtable td { padding: .68rem .9rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .93rem; }
.vtable thead th { background: var(--grad-hero); color: #fff; font-weight: 600; position: sticky; top: 0; border-bottom: 3px solid var(--accent); }
.vtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.vtable tbody tr:nth-child(even) { background: var(--primary-soft); }
.vtable tbody tr:hover { background: var(--accent-wash); }
.vlink { font-weight: 600; color: var(--primary); }
.np-key { font-size: .78rem; color: var(--muted); margin: .6rem 0 0; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .45rem .85rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.pager a.cur { background: var(--grad-hero); color: #fff; border-color: var(--primary); }
.pager a:hover { text-decoration: none; background: var(--accent-wash); border-color: var(--accent); }
.dir-add { margin-top: 2.4rem; padding: 1.6rem; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--primary); text-align: center; }
.dir-add h2 { margin-bottom: .3rem; }

/* Block page */
.block-head { padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; }
.statline { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; padding: 0; margin: 1.2rem 0 0; }
.statline li { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: .7rem 1.05rem; display: grid; gap: .1rem; min-width: 130px; box-shadow: var(--shadow); }
.statline li:nth-child(3n+2) { border-top-color: var(--accent); }
.statline li:nth-child(3n) { border-top-color: var(--highlight); }
.statline span { font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.statline strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--secondary); font-weight: 600; }
.list-title { margin-top: 1rem; }
.village-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.village-cloud a { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .85rem; font-size: .89rem; color: var(--text); transition: .16s background-color, .16s border-color; }
.village-cloud a:hover { color: var(--secondary); background: var(--accent-wash); border-color: var(--accent); text-decoration: none; }
.village-cloud small { opacity: .6; margin-left: .3rem; font-size: .78em; }

/* Village page */
.vhead { background: var(--grad-hero); color: #fff; padding: clamp(1.9rem, 4.5vw, 3rem) 0; border-bottom: 4px solid var(--accent); }
.vhead .breadcrumb, .vhead .breadcrumb a { color: rgba(255, 255, 255, .8); }
.vname { color: #fff; font-size: clamp(1.9rem, 5vw, 2.9rem); margin: .2rem 0 .3rem; font-weight: 600; }
.vsub { opacity: .9; margin: 0 0 1rem; font-size: 1.02rem; }
.vchips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.vchips li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: .3rem .8rem; font-size: .83rem; }
.vchips b { color: #fff; font-weight: 700; }
.vbody { display: grid; gap: 1.8rem; padding: var(--sec-pad) 0; }
.vsec { margin-bottom: 2rem; }
.vsec h2 { border-left: 4px solid var(--primary); padding-left: .65rem; }
.vmain { min-width: 0; }
.vside { display: grid; gap: 1.2rem; align-content: start; }
@media (min-width: 980px) { .vbody { grid-template-columns: 1.5fr 1fr; } }
.infocard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); border-top: 4px solid var(--secondary); }
.infocard h2 { font-size: 1.08rem; margin-bottom: .8rem; color: var(--secondary); }
.fact-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fact-table th { text-align: left; color: var(--muted); font-weight: 500; padding: .42rem .4rem .42rem 0; width: 42%; vertical-align: top; }
.fact-table td { padding: .42rem 0; text-align: right; font-weight: 600; color: var(--text); }
.fact-table tr + tr { border-top: 1px solid var(--border); }
.fact-table .none { text-align: left; font-weight: 400; color: var(--muted); }
.srcline { font-size: .76rem; color: var(--muted); margin: .7rem 0 0; }
.quick .btn { display: block; margin-bottom: .5rem; text-align: center; }
.notice-soft { background: var(--highlight-wash); color: var(--text); padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid var(--highlight); }
.neighbours { border-top: 3px solid var(--accent); background: var(--bg-alt); }
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.nb-grid a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .9rem; display: grid; gap: .15rem; color: var(--text); transition: .16s border-color, .16s background-color; }
.nb-grid a:hover { border-color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.nb-grid strong { color: var(--secondary); }
.nb-grid span { font-size: .82rem; color: var(--muted); }

/* Article */
.article { max-width: 820px; padding-top: var(--sec-pad); }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.article-meta { color: var(--muted); font-size: .9rem; }
.article-img { margin: 1.2rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lede { font-size: 1.08rem; font-weight: 500; color: var(--text); border-left: 4px solid var(--accent); padding-left: 1rem; background: var(--accent-wash); }
.article-body { font-size: 1.02rem; }
.article-body p { margin-bottom: 1.15em; }
.tagrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.tagrow a { background: var(--surface); border: 1px solid var(--border); padding: .28rem .7rem; border-radius: 999px; font-size: .82rem; color: var(--muted); }
.tagrow a:hover { color: var(--secondary); background: var(--primary-soft); border-color: var(--primary); text-decoration: none; }
.related { padding: 2rem 0 var(--sec-pad); }
.news-page { padding-bottom: var(--sec-pad); }

/* Notice board */
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.nl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.nl.big { border-left: 4px solid var(--highlight); }
.nl.pinned { border-color: var(--highlight); }
.nl.expired { opacity: .65; }
.nl > a { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; color: var(--text); transition: .16s background-color; }
.nl > a:hover { text-decoration: none; background: var(--primary-soft); }
.nl-date { color: var(--primary); font-weight: 600; font-size: .85rem; }
.nl-title { font-family: var(--font-head); font-size: 1.15rem; color: var(--secondary); font-weight: 600; }
.nl.big .nl-title { font-size: 1.3rem; }
.nl-tags { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nl-tags em { font-style: normal; font-size: .74rem; letter-spacing: .05em; color: var(--muted); }
.nl-tags i { font-style: normal; font-size: .78rem; color: var(--highlight); }
.tg { font-size: .7rem; padding: .16rem .55rem; border-radius: 999px; }
.tg-pin { background: var(--accent-wash); color: var(--accent-ink); border: 1px solid var(--accent); }
.tg-big { background: var(--highlight); color: #fff; }
.nl-body { margin: 0; padding: 0 1.2rem 1rem calc(96px + 1rem); font-size: .92rem; color: var(--muted); }
.notice-page { padding-bottom: var(--sec-pad); }
.notice-title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }
.post-form { display: grid; gap: 1rem; background: var(--surface); padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.post-form label { display: grid; gap: .3rem; font-size: .88rem; color: var(--muted); }
.post-form .fr { display: grid; gap: 1rem; }
@media (min-width: 640px) { .post-form .fr { grid-template-columns: 1fr 1fr; } }
.req { color: var(--primary); }
.form-fine { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.disclaimer { margin-top: 1rem; padding: .8rem 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.suggest-box { margin-top: 2.4rem; scroll-margin-top: 90px; }
.suggest-box h2 { margin-bottom: .3rem; }
.contact-side { display: grid; gap: 1.2rem; align-content: start; }
.contact-side .btn { display: block; text-align: center; margin-bottom: .5rem; }
.fsocial.inline { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.fsocial.inline a { background: var(--surface); border: 1px solid var(--border); padding: .3rem .7rem; border-radius: var(--radius); font-size: .82rem; }

/* Search */
.result-group { margin-bottom: 2rem; }
.result-group h2 { color: var(--secondary); border-bottom: 2px solid var(--primary); padding-bottom: .35rem; }
.result-group h2 small { color: var(--muted); font-size: .7em; }
.result-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.result-list a { font-weight: 600; font-size: 1.02rem; }
.result-list p { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }

.err-page { text-align: center; padding: var(--sec-pad) 0; }
.err-code { font-family: var(--font-head); font-size: clamp(3.2rem, 12vw, 6rem); color: var(--primary); line-height: 1; margin: 0; }
.err-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

.maintenance { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.maint-inner h1 { margin-top: 1rem; }
.maint-hint { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: var(--sec-pad); border-top: 4px solid var(--accent); }
.footer-grid { display: grid; gap: 1.8rem; padding: 3rem 0 2rem; }
.footer-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.footer-grid.cols-4 { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
@media (max-width: 980px) { .footer-grid.cols-4, .footer-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }
.fbrand { display: flex; align-items: center; gap: .6rem; color: #fff; margin-bottom: .8rem; }
.fbrand strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.fcol h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: .8rem; letter-spacing: .02em; padding-bottom: .4rem; border-bottom: 2px solid var(--primary); display: table; }
.fcol p { font-size: .92rem; opacity: .85; }
.fcol ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.fcol ul a { color: var(--footer-text); opacity: .8; font-size: .92rem; }
.fcol ul a:hover { color: var(--accent); opacity: 1; }
.fsocial { display: flex; gap: .5rem; flex-wrap: wrap; }
.fsocial a { border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: .25rem .7rem; font-size: .8rem; color: var(--footer-text); }
.fsocial a:hover { color: #fff; border-color: rgba(255, 255, 255, .55); text-decoration: none; }
.faddress { display: grid; gap: .4rem; font-style: normal; font-size: .92rem; }
.faddress a, .faddress span { color: var(--footer-text); opacity: .9; }
.fnews { margin-top: 1rem; }
.fnews label { display: block; font-size: .82rem; opacity: .8; margin-bottom: .35rem; }
.fnews-row { display: flex; gap: .4rem; }
.fnews input { flex: 1; min-width: 0; padding: .55rem .7rem; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); color: #fff; font: inherit; font-size: .9rem; }
.fnews input:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.fnews button { background: var(--accent); color: #1a1204; border: 0; border-radius: var(--radius); padding: .55rem .9rem; font-weight: 600; cursor: pointer; }
.fnews button:hover { background: #fff; color: var(--secondary); }
.fcount { font-size: .82rem; opacity: .75; margin: .8rem 0 0; }
.fcount span { color: #fff; font-weight: 600; font-family: var(--font-head); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.4rem 0 2rem; display: grid; gap: .6rem; text-align: center; }
.fnote { font-size: .85rem; opacity: .8; max-width: 74ch; margin-inline: auto; }
.fcredits { font-size: .95rem; color: var(--footer-text); margin: .3rem 0; }
.fcredits strong, .fcredits a { color: var(--accent); letter-spacing: .02em; }
.fcredits a:hover { color: #fff; text-decoration: underline; }
.flegal { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.flegal a { color: var(--footer-text); opacity: .8; font-size: .85rem; }
.flegal a:hover { color: #fff; }
.fdisclaimer { font-size: .76rem; opacity: .6; max-width: 78ch; margin-inline: auto; }
.fcopy { font-size: .8rem; opacity: .7; margin: 0; }

/* Back to top + lightbox */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 42px; height: 42px;
  border-radius: var(--radius); border: 0; background: var(--grad-hero); color: #fff; font-size: 1.15rem;
  cursor: pointer; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 6px 18px rgba(11, 61, 122, .35);
}
.to-top:hover { background: var(--accent); color: #1a1204; }
.to-top.show { opacity: 1; pointer-events: auto; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 20, 34, .92); display: grid; place-items: center; z-index: 200; padding: 2rem; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; border-radius: var(--radius); }
.lb-close { position: absolute; top: 18px; right: 22px; background: #fff; color: #000; border: 0; width: 38px; height: 38px; border-radius: var(--radius); font-size: 1.2rem; cursor: pointer; }
.lb-fig { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .92); text-align: center; }

/* ==========================================================================
   Toasts, chips, forms and the pages that needed a shell
   ========================================================================== */

/* Session flashes float over the page and can be dismissed by hand. */
.toasts {
  position: fixed; top: 14px; right: 14px; z-index: 160;
  display: grid; gap: .5rem; width: min(92vw, 420px);
}
.toasts .flash {
  display: flex; align-items: flex-start; gap: .8rem; text-align: left;
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16, 24, 40, .18); font-size: .92rem;
  border-left: 3px solid rgba(255, 255, 255, .5); animation: toast-in .25s ease-out;
}
.toasts .flash > span { flex: 1; }
.toasts .flash button {
  flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(0, 0, 0, .16); color: #fff; font-size: 1.05rem; line-height: 1;
}
.toasts .flash button:hover { background: rgba(0, 0, 0, .3); }
.toasts .flash.leaving { opacity: 0; transform: translateY(-8px); transition: .3s; }
.flash-warning { background: var(--highlight); color: #fff; }
.flash-info { background: var(--secondary); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Headlines column on the home page */
.section-ticker { background: var(--bg-alt); border-bottom: 1px solid var(--border); }

/* Category / album chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.cat-chips a {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .42rem .9rem; font-size: .89rem; color: var(--text);
}
.cat-chips a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.cat-chips a.on { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.cat-chips small { opacity: .6; margin-left: .3rem; font-size: .78em; }

/* Directory filter row */
.df-row > .btn { flex: 0 0 auto; }

/* Contact form */
.contact-form-block { display: grid; gap: 1rem; }
.form-intro { margin: 0; color: var(--muted); font-size: 1rem; }
.form-summary {
  background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--radius); padding: .9rem 1.1rem;
}
.form-summary strong { display: block; font-family: var(--font-head); color: var(--primary); margin-bottom: .3rem; }
.form-summary ul { margin: 0; padding-left: 1.15rem; }
.form-summary li { font-size: .92rem; }
.post-form label.bad > input, .post-form label.bad > textarea { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.ferr { display: block; color: var(--primary); font-weight: 600; font-size: .82rem; margin-top: .2rem; }

/* Notice band label */
.marquee-label { font-weight: 600; letter-spacing: .03em; font-size: .88rem; }

/* One CD block, rendered full-bleed by the layout */
.block-page { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; padding: var(--sec-pad) 0; }
.block-desc { max-width: 78ch; font-size: 1.02rem; }

/* Search results, also full-bleed */
.search-page { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; padding: var(--sec-pad) 0; }
.search-page h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.search-page .empty-box { margin-top: 1.4rem; }

/* Temple / place page */
.place-head {
  background: var(--secondary) center/cover no-repeat; color: #fff;
  padding: clamp(2rem, 5vw, 3.6rem) 0; border-bottom: 3px solid var(--primary);
}
.place-head h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin-bottom: .3rem; font-weight: 600; }
.place-head .breadcrumb, .place-head .breadcrumb a { color: rgba(255, 255, 255, .8); }
.place-loc { margin: 0; opacity: .9; font-size: 1rem; }
.place-body { display: grid; gap: 2rem; padding: var(--sec-pad) 0; }
.place-main { min-width: 0; }
.place-main section { margin-bottom: 2rem; }
.place-side { align-content: start; }
@media (min-width: 940px) { .place-body { grid-template-columns: 1.55fr 1fr; } }

/* Village page hook */
.village-page { display: block; }

/* Footer block list sits in two columns so ten names do not eat the row */
.fblocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .8rem; }
.fblocks li:last-child { grid-column: 1 / -1; margin-top: .3rem; }
.fcol-about p { max-width: 46ch; }

/* Mithila line-art band — masked so it always takes the accent colour */
.mband {
  display: block; height: 40px; border: 0; margin: 0 auto; opacity: .35;
  width: min(100% - 2.5rem, var(--wrap));
  background: var(--secondary);
  -webkit-mask: url(../img/mithila-band.svg) repeat-x left center / auto 40px;
  mask: url(../img/mithila-band.svg) repeat-x left center / auto 40px;
}
@media (max-width: 620px) { .mband { height: 30px; } }

/* ==========================================================================
   Responsive header / nav
   ========================================================================== */
@media (max-width: 1180px) {
  .primary-nav { gap: 0; }
  .primary-nav > a { padding: .45rem .55rem; font-size: .88rem; }
  .nav-search input { width: 150px; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: block; order: 3; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: var(--header-bg);
    flex-direction: column; align-items: stretch; padding: 5rem 1.2rem 2rem; gap: .3rem;
    transform: translateX(100%); transition: .28s ease; overflow-y: auto; box-shadow: -8px 0 24px rgba(0, 0, 0, .22);
  }
  .primary-nav.open { transform: none; }
  .primary-nav > a { padding: .8rem .6rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1rem; }
  .nav-search { margin: 1rem 0 0; }
  .nav-search input { width: 100%; max-width: none; border-radius: var(--radius) 0 0 var(--radius); }
  .nav-cta { margin-top: .8rem; text-align: center; }
  .utility-bar { display: none; }
  .ticker-wrap { grid-template-columns: 1fr; }
  .marquee-band { flex-direction: column; align-items: stretch; }
  .marquee-head { justify-content: center; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 620px) {
  .brand-word small { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.1rem; }
  .brand-word strong { font-size: 1.25rem; }
  .slide-text { display: none; }
  .banner-nav { width: 36px; height: 36px; font-size: 1.1rem; }
  .notice-rows a { grid-template-columns: 1fr auto; }
  .nr-date { display: none; }
  .nl > a { grid-template-columns: 1fr; gap: .4rem; }
  .nl-tags { justify-content: flex-start; }
  .nl-body { padding-left: 1.2rem; }
  .timeline::before { left: 62px; }
  .timeline li { grid-template-columns: 62px 1fr; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-run, .ticker-list { animation: none !important; }
  .ticker-viewport, .marquee-track { overflow: auto; }
}
