/* KHCECHS — version 3: "official paper".
   One bold element: the society seal embossed into the page.
   Secondary motif, used only for dates: violet rubber-stamp ink. */

:root {
  --paper: #f7f7f4;
  --paper-deep: #ecede7;
  --ink: #1b2b26;
  --grey: #68736e;
  --green: #1f5a45;
  --green-deep: #173f31;
  --violet: #5a43a3;
  --line: #d9dcd4;

  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  --max: 1180px;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--green); color: #fff; padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--display); font-size: 23px; font-weight: 750; letter-spacing: .01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--violet); }
.nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.call { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 4px; font-weight: 700; font-size: 16px; }
.call:hover { background: var(--green-deep); color: #fff; }
.call svg { width: 17px; height: 17px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 9px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Hero: the embossed seal ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; min-height: 460px; display: flex; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-text { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.025em; margin-bottom: 18px; }
.hero .lede { font-size: 21px; line-height: 1.55; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 14px 24px; border-radius: 4px; font-weight: 700; }
.btn:hover { background: var(--green-deep); color: #fff; }
.text-link { font-weight: 700; }

.emboss {
  position: absolute; z-index: 1; right: -40px; top: 50%; width: min(520px, 44vw); aspect-ratio: 1000 / 965;
  transform: translateY(-50%);
  filter: drop-shadow(-1.5px -1.5px 0 rgba(255,255,255,.95)) drop-shadow(2px 2.5px 1.6px rgba(27,43,38,.30));
  animation: press 1.3s cubic-bezier(.2,.7,.2,1) .25s both;
}
.emboss i, .seal-ph i {
  position: absolute; inset: 0; background: var(--paper-deep);
  -webkit-mask: url("../img/seal-mask.png") center / contain no-repeat;
          mask: url("../img/seal-mask.png") center / contain no-repeat;
}
@keyframes press {
  from { filter: drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(27,43,38,0)); opacity: .2; }
  to   { filter: drop-shadow(-1.5px -1.5px 0 rgba(255,255,255,.95)) drop-shadow(2px 2.5px 1.6px rgba(27,43,38,.30)); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .emboss { animation: none; } }

/* ---------- Sections ---------- */
.block { padding-top: 88px; padding-bottom: 88px; }
.block + .block { border-top: 1px solid var(--line); }
.block.deep { background: var(--paper-deep); }
.intro h2 { font-size: clamp(32px, 3.4vw, 44px); }
.intro p { color: var(--grey); margin: 12px 0 0; max-width: 36em; }
.side { display: grid; grid-template-columns: 330px 1fr; gap: 56px; align-items: start; }
.side .intro { position: sticky; top: 110px; }
.intro .text-link { display: inline-block; margin-top: 18px; }

/* Notices with rubber-stamp dates */
.notices { list-style: none; margin: 0; padding: 0; }
.notice { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.notice:first-child { padding-top: 4px; }
.stamp {
  justify-self: start; display: inline-block; padding: 6px 12px 5px; border: 2px solid var(--violet); border-radius: 6px;
  color: var(--violet); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; transform: rotate(-3deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='4'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
.stamp small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .02em; opacity: .9; }
.notice:nth-child(even) .stamp { transform: rotate(2deg); }
.notice h3 { font-family: var(--body); font-weight: 700; font-size: 20px; line-height: 1.35; }
.notice p { margin: 6px 0 8px; color: var(--grey); }
.notice a { font-weight: 700; font-size: 16px; }

/* Member services */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.tasks li { border-top: 2px solid var(--ink); }
.tasks a { display: block; padding: 22px 0 30px; text-decoration: none; color: var(--ink); }
.tasks h3 { font-size: 25px; color: var(--green); }
.tasks p { margin: 8px 0 0; color: var(--grey); max-width: 30em; }
.tasks a:hover h3 { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* The scheme */
.scheme { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.plan { margin: 0; background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: 2px; }
.plan img { width: 100%; cursor: zoom-in; }
.plan figcaption { font-size: 15px; color: var(--grey); padding-top: 10px; }
.scheme h2 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 18px; }
.facts { margin: 0 0 26px; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--grey); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.facilities { font-size: 19px; line-height: 1.65; }

/* Committee */
.committee-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.officers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.officer { margin: 0; }
.photo { position: relative; aspect-ratio: 3 / 4; background: var(--paper); border-radius: 2px; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seal-ph { position: absolute; inset: 22% 16%; filter: drop-shadow(-1px -1px 0 rgba(255,255,255,.95)) drop-shadow(1.5px 1.5px 1px rgba(27,43,38,.22)); }
.seal-ph i { background: var(--paper); }
.officer figcaption { padding-top: 14px; }
.officer .name { display: block; font-family: var(--display); font-weight: 650; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.officer .role { display: block; color: var(--grey); margin-top: 2px; }
.members { margin: 48px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 32px; list-style: none; }
.members li { font-size: 17px; }
.members span { color: var(--grey); }

/* On site */
.site-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.site-grid figure { margin: 0; }
.site-grid figure:first-child { grid-row: span 2; }
.site-grid a { display: block; overflow: hidden; border-radius: 2px; background: var(--paper-deep); }
.site-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.site-grid figure:first-child img { aspect-ratio: auto; height: 100%; min-height: 420px; }
.site-grid figure:first-child a { height: calc(100% - 34px); }
.site-grid figcaption { font-size: 15px; color: var(--grey); padding-top: 8px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.phone { display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; color: var(--ink); text-decoration: none; margin: 18px 0 6px; }
.phone:hover { color: var(--violet); }
.reach { font-size: 18px; margin-bottom: 30px; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.offices h3 { font-family: var(--body); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.offices p { margin: 0; color: var(--grey); font-size: 17px; }
.map { position: relative; min-height: 380px; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--paper-deep); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #dbe6e0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .name { font-family: var(--display); font-weight: 650; font-size: 24px; color: #fff; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.01em; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.site-footer nav a { color: #fff; text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer nav a:hover { text-decoration: underline; color: #fff; }
.site-footer small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; font-size: 15px; color: #b9cdc3; }

/* Lightbox (main.js) */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(23,32,29,.94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; }
.lb-btn:hover { background: #fff; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -23px; }
.lb-next { right: 14px; top: 50%; margin-top: -23px; }
.lb-count { position: absolute; top: 26px; left: 26px; color: #cfd8d3; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 8px; font-size: 15px; }
  .side { grid-template-columns: 1fr; gap: 32px; }
  .side .intro { position: static; }
  .officers { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .members { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .call { margin-left: auto; }
  .nav { position: fixed; inset: 77px 0 0; background: var(--paper); display: none; overflow-y: auto; padding: 8px var(--gut) 32px; border-top: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { font-size: 19px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { text-underline-offset: 6px; }
  .hero .wrap { min-height: 0; padding-top: 56px; padding-bottom: 64px; }
  .emboss { width: 78vw; right: -26vw; top: 46%; opacity: .9; }
  .scheme, .contact { grid-template-columns: 1fr; gap: 36px; }
  .site-grid { grid-template-columns: 1fr 1fr; }
  .site-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .site-grid figure:first-child img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .site-grid figure:first-child a { height: auto; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --gut: 20px; }
  body { font-size: 17px; }
  .call span { display: none; }
  .call { padding: 11px 13px; }
  .brand span { font-size: 21px; }
  .hero .lede { font-size: 19px; }
  .emboss { width: 92vw; right: -46vw; top: 120px; transform: none; animation-name: press; opacity: .85; }
  .block { padding-top: 64px; padding-bottom: 64px; }
  .notice { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .tasks { grid-template-columns: 1fr; }
  .officers { gap: 26px 16px; }
  .officer .name { font-size: 19px; }
  .officer .role { font-size: 15px; }
  .members { grid-template-columns: 1fr; }
  .committee-head, .section-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-grid { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; gap: 18px; }
  .map { min-height: 300px; }
  .lightbox { padding: 64px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; margin: 0; }
}

/* ---------- Slider ---------- */
.slider { position: relative; background: var(--ink); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; height: min(76vh, 700px); min-height: 460px; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel {
  position: absolute; z-index: 2; bottom: 48px;
  left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  width: min(540px, calc(100% - 2 * var(--gut)));
  background: var(--paper); border-radius: 4px; padding: 30px 32px 32px;
}
.panel h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 10px; }
.panel p { color: var(--grey); margin-bottom: 22px; }
.slider-nav {
  position: absolute; z-index: 3; bottom: 48px;
  right: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  display: flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 4px; padding: 6px;
}
.sl-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.sl-btn:hover { background: var(--paper-deep); }
.sl-btn svg { width: 20px; height: 20px; }
.sl-count { min-width: 64px; text-align: center; font-size: 15px; color: var(--grey); }
.sl-count b { color: var(--ink); }
.i-play { display: none; }
.slider.paused .i-pause { display: none; }
.slider.paused .i-play { display: block; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

@media (max-width: 920px) {
  .slide { height: auto; min-height: 0; }
  .slide img { position: relative; height: 340px; }
  .panel { position: relative; left: auto; bottom: auto; width: auto; margin: -56px var(--gut) 0; padding: 24px 22px 26px; }
  .slider { background: var(--paper); padding-bottom: 76px; }
  .slider-nav { bottom: 14px; right: var(--gut); background: var(--paper-deep); }
  .hero .wrap { min-height: 0; }
}
@media (max-width: 620px) {
  .slide img { height: 260px; }
  .panel { margin: -40px 12px 0; }
  .slider-nav { left: var(--gut); right: var(--gut); justify-content: space-between; }
}

.nb { white-space: nowrap; }
@media (max-width: 920px) {
  .emboss { position: relative; top: auto; right: auto; transform: none; width: 150px; margin: 44px 0 0 var(--gut); opacity: 1; }
  .hero .wrap { padding-top: 18px; }
}
@media (max-width: 620px) {
  .emboss { width: 120px; margin-top: 36px; }
}

/* ---------- Slider: text on the left over a see-through panel (desktop) ---------- */
@media (min-width: 921px) {
  .slide { height: min(80vh, 720px); }
  .panel {
    top: 50%; bottom: auto; transform: translateY(-50%);
    width: min(460px, 40vw); padding: 34px 36px 36px;
    background: rgba(16, 38, 30, .58); color: #fff; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .14);
  }
  .panel h2 { color: #fff; font-size: clamp(28px, 2.7vw, 38px); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
  .panel p { color: #e4ece8; font-size: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
  .panel .btn { background: var(--paper); color: var(--ink); }
  .panel .btn:hover { background: #fff; color: var(--green); }
  .slider-nav { background: rgba(16, 38, 30, .58); border: 1px solid rgba(255, 255, 255, .14); }
  .slider-nav .sl-btn { color: #fff; }
  .slider-nav .sl-btn:hover { background: rgba(255, 255, 255, .14); }
  .slider-nav .sl-count { color: #cfdcd5; }
  .slider-nav .sl-count b { color: #fff; }
}

/* ---------- Slider: full-height curved panel, fading left to right (desktop) ---------- */
@media (min-width: 921px) {
  .slide::after {
    content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0;
    width: min(60vw, calc(clamp(24px, 6vw, 110px) + 640px));
    background: linear-gradient(90deg, rgba(14, 34, 27, .88) 0%, rgba(14, 34, 27, .72) 45%, rgba(14, 34, 27, .34) 82%, rgba(14, 34, 27, .12) 100%);
    border-top-right-radius: 38% 50%;
    border-bottom-right-radius: 38% 50%;
    pointer-events: none;
  }
  .panel {
    left: clamp(24px, 6vw, 110px);
    width: min(440px, 36vw);
    padding: 0;
    background: none; border: 0; border-radius: 0;
  }
}

/* ---------- Slider: wave-edged panel + taller slides (desktop) ---------- */
@media (min-width: 921px) {
  .slide { height: min(88vh, 820px); min-height: 560px; }
  .slide::after {
    width: min(62vw, calc(clamp(24px, 6vw, 110px) + 660px));
    border-radius: 0;
    background: linear-gradient(90deg, rgba(14, 34, 27, .9) 0%, rgba(14, 34, 27, .74) 50%, rgba(14, 34, 27, .48) 100%);
    /* solid body + wave strip on the right edge (same S-curve as the mockup banner) */
    -webkit-mask:
      linear-gradient(#000, #000) left top / calc(100% - 150px) 100% no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 600' preserveAspectRatio='none'%3E%3Cpath d='M0 0h86C40 120 30 220 58 330s40 190-10 270H0z'/%3E%3C/svg%3E") right top / 150px 100% no-repeat;
            mask:
      linear-gradient(#000, #000) left top / calc(100% - 150px) 100% no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 600' preserveAspectRatio='none'%3E%3Cpath d='M0 0h86C40 120 30 220 58 330s40 190-10 270H0z'/%3E%3C/svg%3E") right top / 150px 100% no-repeat;
  }
}

/* Slider panel fade: 88% on the left, 5% at the wave edge */
@media (min-width: 921px) {
  .slide::after {
    background: linear-gradient(90deg, rgba(14, 34, 27, .88) 0%, rgba(14, 34, 27, .74) 35%, rgba(14, 34, 27, .4) 65%, rgba(14, 34, 27, .05) 100%);
  }
}

/* Slider panel: one third of the hero width (never narrower than 400px so the text fits) */
@media (min-width: 921px) {
  .slide::after {
    width: max(33.333%, 400px);
    -webkit-mask-size: calc(100% - 120px) 100%, 120px 100%;
            mask-size: calc(100% - 120px) 100%, 120px 100%;
  }
  .panel {
    left: clamp(24px, 4vw, 64px);
    width: calc(max(33.333vw, 400px) - clamp(24px, 4vw, 64px) - 80px);
  }
  .panel h2 { font-size: clamp(26px, 2.3vw, 34px); }
  .panel p { font-size: 17px; }
}

/* Keep the darker part of the fade behind the text (still 88% → 5%) */
@media (min-width: 921px) {
  .slide::after {
    background: linear-gradient(90deg, rgba(14, 34, 27, .88) 0%, rgba(14, 34, 27, .82) 50%, rgba(14, 34, 27, .45) 78%, rgba(14, 34, 27, .05) 100%);
  }
  .panel { width: calc(max(33.333vw, 400px) * .72 - clamp(24px, 4vw, 64px)); }
}
/* Menu never wraps; on small laptops the call button shows just the icon */
.nav a { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1140px) {
  .call span { display: none; }
  .call { padding: 11px 13px; }
}

/* Slider panel: widened slightly, to 40% of the hero */
@media (min-width: 921px) {
  .slide::after { width: max(40%, 440px); }
  .panel { width: calc(max(40vw, 440px) * .72 - clamp(24px, 4vw, 64px)); }
}

/* Smaller buttons in the slider */
.panel .btn { padding: 10px 18px; font-size: 15px; }

/* ---------- Key figures band (under the slider) ---------- */
.figures-band { background: var(--green-deep); color: #fff; }
.figures { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 30px 28px 32px; border-left: 1px solid rgba(255, 255, 255, .16); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures dd { margin: 0; font-size: clamp(36px, 3.6vw, 50px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.figures dd span { font-size: .42em; font-weight: 600; letter-spacing: 0; }
.figures dt { color: #b9cdc3; font-size: 16px; }
@media (max-width: 920px) {
  .figures-band { background: var(--green-deep); }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div { padding: 22px 20px 24px; }
  .figures div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figures div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
}

/* ---------- Intro: text left, photo right ---------- */
.hero { overflow: visible; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: 0; padding-top: 88px; padding-bottom: 88px; }
.hero-text { max-width: none; }
.hero h1 { font-size: clamp(32px, 3.6vw, 48px); }
.hero .lede { font-size: 19px; }
.hero .emboss { position: relative; top: auto; right: auto; transform: none; width: 92px; margin: 0 0 22px; opacity: 1; }
.hero-photo { margin: 0; }
.hero-photo a { display: block; border-radius: 4px; overflow: hidden; background: var(--paper-deep); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.hero-photo a:hover img { transform: scale(1.02); }
.hero-photo figcaption { font-size: 15px; color: var(--grey); padding-top: 10px; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
  .hero .emboss { width: 80px; margin: 0 0 18px; }
}
@media (max-width: 620px) {
  .hero .emboss { width: 68px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo img { transition: none; } }
@media (min-width: 921px) { .hero .wrap { grid-template-columns: 1.12fr 1fr; gap: 56px; } }

/* ---------- Introduction section ---------- */
.intro-sec .wrap { padding-top: 72px; padding-bottom: 72px; align-items: center; }
.intro-label { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--green); font-weight: 700; font-size: 17px; }
.intro-sec .intro-label .emboss { width: 44px; margin: 0; flex: none; }
.intro-sec h1 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.15; margin-bottom: 18px; max-width: 18em; }
.intro-sec .hero-text > p:not(.intro-label) { color: #3d4a45; font-size: 18px; max-width: 34em; }
.intro-sec .actions { margin-top: 26px; }
.intro-sec .hero-photo img { aspect-ratio: 4 / 3; object-position: center 30%; }
@media (max-width: 920px) {
  .intro-sec .wrap { padding-top: 52px; padding-bottom: 56px; }
}
@media (max-width: 620px) {
  .intro-sec .intro-label .emboss { width: 38px; }
  .intro-sec .hero-text > p:not(.intro-label) { font-size: 17px; }
}

/* ---------- Facilities (green) ---------- */
.facilities-sec { background: var(--green-deep); color: #fff; padding-top: 84px; padding-bottom: 88px; }
.fac-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.fac-head h2 { color: #fff; font-size: clamp(32px, 3.4vw, 44px); }
.fac-head p { color: #b9cdc3; margin: 0; max-width: 28em; }
.fac-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.fac-grid li { padding: 28px 26px 30px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); transition: background .2s; }
.fac-grid li:hover { background: rgba(255,255,255,.05); }
.fac-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.08); color: #cfe6da; margin-bottom: 18px; }
.fac-ico svg { width: 26px; height: 26px; }
.fac-grid h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.fac-grid p { color: #b9cdc3; font-size: 16px; margin: 0; }
@media (max-width: 920px) {
  .fac-grid { grid-template-columns: 1fr 1fr; }
  .fac-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .facilities-sec { padding-top: 64px; padding-bottom: 68px; }
}
@media (max-width: 620px) {
  .fac-grid li { padding: 22px 16px 24px; }
  .fac-grid h3 { font-size: 18px; }
  .fac-grid p { font-size: 15px; }
  .fac-ico { width: 44px; height: 44px; margin-bottom: 14px; }
  .fac-ico svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .fac-grid li { transition: none; } }

.fac-ico svg { width: 28px; height: 28px; }
.fac-ico { width: 56px; height: 56px; }
@media (max-width: 620px) { .fac-ico { width: 46px; height: 46px; } .fac-ico svg { width: 24px; height: 24px; } }

/* ---------- Committee (moved after facilities) ---------- */
.committee-sec .photo { background: #e2e5de; }
.ph-person { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translateX(-50%); fill: #c9cec5; }
.committee-sec .officer figcaption { border-top: 3px solid var(--green); margin-top: 14px; padding-top: 12px; }

/* Committee portraits: a bit shorter (was 3:4) */
.committee-sec .photo { aspect-ratio: 5 / 6; }
.committee-sec .ph-person { width: 66%; }

/* Smaller button in the introduction */
.intro-sec .btn { padding: 10px 18px; font-size: 15px; }

/* Facilities cells: shorter */
.fac-grid li { padding: 20px 22px 22px; }
.fac-ico { width: 44px; height: 44px; margin-bottom: 12px; }
.fac-ico svg { width: 23px; height: 23px; }
.fac-grid h3 { font-size: 19px; margin-bottom: 4px; }
.fac-grid p { font-size: 15px; line-height: 1.5; }
@media (max-width: 620px) {
  .fac-grid li { padding: 16px 14px 18px; }
  .fac-ico { width: 38px; height: 38px; margin-bottom: 10px; }
  .fac-ico svg { width: 20px; height: 20px; }
}

/* Committee photos */
.committee-sec .photo img { object-position: center 22%; }
.committee-sec .members { grid-template-columns: repeat(4, 1fr); gap: 22px 24px; margin-top: 44px; padding-top: 30px; }
.committee-sec .members li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.committee-sec .members img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; background: #e2e5de; }
.committee-sec .members b { display: block; font-weight: 650; color: var(--ink); line-height: 1.3; }
.committee-sec .members span { color: var(--grey); font-size: 15px; }
@media (max-width: 1100px) { .committee-sec .members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .committee-sec .members { grid-template-columns: 1fr; gap: 16px; }
  .committee-sec .members img { width: 56px; height: 56px; }
}

/* Committee: all 12 as portrait cards, 6 per row */
.committee-sec .officers { grid-template-columns: repeat(6, 1fr); gap: 36px 20px; }
.committee-sec .officer .name { font-size: 17px; line-height: 1.3; }
.committee-sec .officer .role { font-size: 14.5px; }
.committee-sec .officer figcaption { margin-top: 12px; padding-top: 10px; }
@media (max-width: 1100px) { .committee-sec .officers { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 920px) { .committee-sec .officers { grid-template-columns: repeat(3, 1fr); gap: 30px 18px; } }
@media (max-width: 620px) { .committee-sec .officers { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; } .committee-sec .officer .name { font-size: 16px; } }

/* ---------- Notice board cards ---------- */
.notice-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.notice-head h2 { font-size: clamp(32px, 3.4vw, 44px); }
.notice-head .intro-label { margin-bottom: 8px; }
.ncards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ncard-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-deep); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ncard:hover .ncard-img img { transform: scale(1.03); }
.ncard-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ncard-cat { margin: 0 0 6px; color: var(--green); font-size: 14px; font-weight: 700; }
.ncard h3 { font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.ncard time { display: block; color: var(--grey); font-size: 15px; margin-bottom: 12px; }
.ncard-body > p:not(.ncard-cat) { color: #46534e; font-size: 16px; margin-bottom: 18px; }
.ncard-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--green); text-decoration: none; }
.ncard-more:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }
.ncard-more svg { width: 16px; height: 16px; transition: transform .2s; }
.ncard-more:hover svg { transform: translateX(3px); }
.notice-head .ncard-more { margin-top: 0; white-space: nowrap; }
@media (max-width: 1000px) { .ncards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .ncards { grid-template-columns: 1fr; gap: 22px; }
  .notice-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ncard-img img, .ncard-more svg { transition: none; } }

/* Notice board: 4 per row */
.ncards { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ncard-body { padding: 18px 20px 20px; }
.ncard h3 { font-size: 18px; }
.ncard-body > p:not(.ncard-cat) { font-size: 15px; }
.ncard-cat { font-size: 13.5px; }
.ncard time { font-size: 14px; }
@media (max-width: 1100px) { .ncards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .ncards { grid-template-columns: 1fr; } }

/* Contact: smaller heading and phone number */
.contact-title { font-size: clamp(26px, 2.4vw, 32px); }
.phone { font-size: clamp(28px, 2.8vw, 36px); margin: 12px 0 6px; }

/* One button size across the page (matches the slider and introduction buttons) */
.btn { padding: 10px 18px; font-size: 15px; }

/* ---------- Footer (rebuilt) ---------- */
.site-footer { background: var(--green-deep); color: #c9d9d0; }
.site-footer .footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 52px; }
.f-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.f-brand img { width: 72px; height: auto; }
.f-brand span { font-size: 26px; font-weight: 750; letter-spacing: .01em; }
.f-name { color: #fff; font-weight: 600; font-size: 16px; line-height: 1.45; margin: 18px 0 6px; max-width: 22em; }
.f-note { font-size: 15px; color: #a9c1b5; margin: 0 0 20px; max-width: 24em; }
.f-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.09); color: #fff; transition: background .2s, color .2s; }
.f-social a:hover { background: #fff; color: var(--green-deep); }
.f-social svg { width: 18px; height: 18px; }
.f-col h2 { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0; margin: 6px 0 16px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: 10px; }
.f-col a { color: #c9d9d0; text-decoration: none; font-size: 16px; }
.f-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.f-contact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #9fd0b6; }
.site-footer .footer-base { border-top: 1px solid rgba(255,255,255,.14); }
.site-footer .footer-base .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 20px; font-size: 14.5px; color: #a9c1b5; }
.site-footer .footer-base a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer .footer-base a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .site-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 32px; } }
@media (max-width: 620px) { .site-footer .footer-main { grid-template-columns: 1fr; padding-top: 48px; } }
@media (prefers-reduced-motion: reduce) { .f-social a { transition: none; } }
/* Footer link lists: one column on desktop, two on phones (overrides older footer rule) */
.site-footer .f-col ul { columns: auto; }
@media (max-width: 620px) { .site-footer nav.f-col ul { columns: 2; column-gap: 24px; } }

/* =========================================================
   Inner pages
   ========================================================= */

/* Menu dropdown (For members) */
.nav .has-dd { position: relative; }
.nav .dd-toggle { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 16px; color: var(--ink); white-space: nowrap; }
.nav .dd-toggle:hover, .nav .has-dd.open > .dd-toggle { color: var(--violet); }
.nav .has-dd.active > .dd-toggle { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav .has-dd.open .chev { transform: rotate(180deg); }
.nav .dropdown { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 30px rgba(27,43,38,.12); display: none; flex-direction: column; gap: 0; z-index: 40; }
.nav .has-dd:hover > .dropdown, .nav .has-dd:focus-within > .dropdown, .nav .has-dd.open > .dropdown { display: flex; }
.nav .dropdown a { padding: 10px 12px; border-radius: 4px; font-size: 15px; }
.nav .dropdown a:hover { background: var(--paper); }
@media (max-width: 1140px) { .nav .dd-toggle { padding: 10px 8px; font-size: 15px; } }
@media (max-width: 920px) {
  .nav .dd-toggle { width: 100%; justify-content: space-between; font-size: 19px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .dropdown { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav .has-dd:hover > .dropdown, .nav .has-dd:focus-within > .dropdown { display: none; }
  .nav .has-dd.open > .dropdown { display: flex; }
  .nav .dropdown a { font-size: 17px; }
}

/* Page banner */
.page-hero { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; }
.page-hero .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,34,27,.92) 0%, rgba(14,34,27,.78) 45%, rgba(14,34,27,.35) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: #b9cdc3; margin-bottom: 14px; }
.crumbs a { color: #e2ece7; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 50px); max-width: 18em; }
.page-hero p { color: #d5e3dc; font-size: 18px; max-width: 38em; margin: 14px 0 0; }
.page-hero .ph-meta { display: inline-block; margin: 0 0 12px; color: #cfe6da; font-weight: 700; font-size: 15px; }
@media (max-width: 620px) { .page-hero .wrap { padding-top: 56px; padding-bottom: 44px; } .page-hero p { font-size: 17px; } }

/* Content with sidebar */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d4a45; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose .lead-p { font-size: 20px; color: var(--ink); }
.aside { display: grid; gap: 24px; position: sticky; top: 100px; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 24px; }
.aside-box h2 { font-size: 18px; margin-bottom: 12px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.aside-box li:last-child a { border-bottom: 0; }
.aside-box li a:hover, .aside-box li a[aria-current="page"] { color: var(--green); font-weight: 700; }
.aside-box p { color: var(--grey); font-size: 15.5px; margin-bottom: 12px; }
.aside-box .tel { display: block; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.aside-box.green { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.aside-box.green h2 { color: #fff; }
.aside-box.green p { color: #b9cdc3; }
.aside-box.green .tel { color: #fff; }
.aside-box.green .btn { background: var(--paper); color: var(--ink); margin-top: 8px; }
@media (max-width: 1000px) { .content-grid { grid-template-columns: 1fr; gap: 40px; } .aside { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .aside { grid-template-columns: 1fr; } }

/* Numbered steps (procedures are real sequences) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--grey); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.docs li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.docs b { display: block; color: var(--ink); }
.docs span { color: var(--grey); font-size: 15px; }
@media (max-width: 620px) { .docs { grid-template-columns: 1fr; } }
.note { margin-top: 32px; padding: 16px 18px; border-left: 4px solid var(--green); background: #fff; border-radius: 0 6px 6px 0; }
.note p { margin: 0; color: var(--ink); }

/* Photo grid (gallery and notice pages) */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid a { display: block; border-radius: 4px; overflow: hidden; background: var(--paper-deep); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
@media (max-width: 1000px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .photo-grid img { transition: none; } }

/* Notice pages */
.notice-body { max-width: 46em; }
.notice-body p { font-size: 18px; }
.doc-frame { max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.doc-frame img { width: 100%; cursor: zoom-in; }
.doc-frame + .doc-frame { margin-top: 20px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager a { color: var(--green); font-weight: 700; text-decoration: none; max-width: 46%; }
.pager a:hover { text-decoration: underline; }
.pager small { display: block; color: var(--grey); font-weight: 400; font-size: 14px; }
.pager .next { text-align: right; margin-left: auto; }

/* Master plan page */
.plan-page { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.plan-page img { width: 100%; cursor: zoom-in; }

/* Tender */
.tender-card { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.tender-card img { border: 1px solid var(--line); border-radius: 4px; cursor: zoom-in; }
.tender-card h2 { font-size: 26px; margin-bottom: 8px; }
@media (max-width: 680px) { .tender-card { grid-template-columns: 1fr; } }

/* Contact page */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px; }
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--grey); }
.form { display: grid; gap: 16px; margin-top: 18px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid #cfd4cc; border-radius: 4px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(31,90,69,.15); }
.form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.form-success { display: none; margin: 0; padding: 12px 14px; background: #e6f0ea; border-radius: 4px; color: var(--green-deep); }
.form-success.show { display: block; }
.map-wide { position: relative; height: 420px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper-deep); }
.map-wide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 920px) { .contact-page { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 620px) { .form .pair { grid-template-columns: 1fr; } .form-card { padding: 22px; } .map-wide { height: 320px; } }

/* build_pages additions */
.ncards.three { grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .ncards.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .ncards.three { grid-template-columns: 1fr; } }
.aside-box .facts div { padding: 9px 0; }
.prose .docs a { color: var(--ink); text-decoration: none; }
.prose .docs a:hover { color: var(--green); text-decoration: underline; }

/* ---------- About page ---------- */
.about-h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 0 0 18px; }
.about-split { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.about-split .prose p { font-size: 18px; }
.fact-card { background: var(--green-deep); color: #fff; border-radius: 6px; padding: 28px 28px 20px; }
.fact-card h2 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.fact-card dl { margin: 0; }
.fact-card dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.15); }
.fact-card dt { color: #a9c1b5; font-size: 15px; }
.fact-card dd { margin: 0; font-weight: 700; }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principles li { border-top: 3px solid var(--green); padding-top: 18px; }
.principles h3 { font-size: 21px; margin-bottom: 8px; }
.principles p { color: #46534e; margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 40px; position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 144px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--paper); }
.tl-when { font-weight: 750; font-size: 18px; color: var(--green); padding-top: 0; padding-right: 24px; }
.tl-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.tl-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.tl-card h3 { font-size: 20px; margin-bottom: 6px; }
.tl-card p { color: #46534e; margin: 0 0 10px; }

.scheme-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.plan-list { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.plan-list li { position: relative; padding-left: 22px; font-weight: 600; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 2px; background: var(--green); }

.leaders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.leaders li { text-align: center; }
.leaders img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin: 0 auto 14px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.leaders b { display: block; font-size: 17px; line-height: 1.3; color: var(--ink); }
.leaders span { display: block; color: var(--grey); font-size: 15px; margin-top: 2px; }

.visit-band { background: var(--green); color: #fff; }
.visit-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.visit-band h2 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 6px; }
.visit-band p { color: #d5e3dc; margin: 0; }
.visit-band .actions { margin-top: 0; }
.visit-band .btn { background: var(--paper); color: var(--ink); }
.visit-band .btn:hover { background: #fff; color: var(--green); }
.visit-band .text-link { color: #fff; }

@media (max-width: 1000px) {
  .about-split, .scheme-about { grid-template-columns: 1fr; gap: 36px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .leaders { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
}
@media (max-width: 760px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; padding-left: 32px; }
  .timeline li::before { left: 1px; }
  .tl-card { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .leaders { grid-template-columns: 1fr 1fr; }
  .leaders img { width: 92px; height: 92px; }
  .plan-list { grid-template-columns: 1fr; }
  .fact-card dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* Timeline dots on the shaded background */
.deep .timeline li::before { box-shadow: 0 0 0 5px var(--paper-deep); }

/* ---------- Gallery page ---------- */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.album-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--paper-deep); text-decoration: none; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,34,27,.88) 0%, rgba(14,34,27,.25) 55%, rgba(14,34,27,0) 100%); }
.album-info { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; color: #fff; }
.album-info b { display: block; font-size: 22px; line-height: 1.2; }
.album-info span { color: #d5e3dc; font-size: 15px; }
.album-card:hover img { transform: scale(1.04); }
.album-card.is-active { outline: 3px solid var(--green); outline-offset: 3px; }

.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #cfd4cc; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter-tabs button span { font-size: 13px; color: var(--grey); font-weight: 600; }
.filter-tabs button:hover { border-color: var(--green); }
.filter-tabs button.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.filter-tabs button.is-active span { color: #cfe6da; }
.gallery-status { margin: 0; color: var(--grey); font-size: 15px; }

.masonry { columns: 4 260px; column-gap: 16px; }
.tile { margin: 0 0 16px; break-inside: avoid; }
.tile[hidden] { display: none; }
.tile a { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--paper); }
.tile img { width: 100%; height: auto; transition: transform .5s ease; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(to top, rgba(14,34,27,.8), rgba(14,34,27,0)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.tile a:hover img { transform: scale(1.03); }
.tile a:hover figcaption, .tile a:focus-visible figcaption { opacity: 1; transform: none; }

@media (max-width: 900px) { .albums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .albums { grid-template-columns: 1fr; gap: 16px; }
  .album-card { aspect-ratio: 16 / 9; }
  .masonry { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: calc(-1 * var(--gut)); scrollbar-width: none; }
  .filter-tabs button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .album-card img, .tile img, .tile figcaption, .filter-tabs button { transition: none; } }

/* Menu items shown without a link (pages not published yet) */
.nav .dropdown .dd-soon { display: block; padding: 10px 12px; font-size: 15px; color: var(--grey); cursor: default; }
@media (max-width: 920px) { .nav .dropdown .dd-soon { font-size: 17px; padding: 12px 0; } }

/* Header brand with full society name */
.brand img { width: 48px; height: 48px; }
.brand .brand-text { display: flex; flex-direction: column; font-family: var(--body); font-size: inherit; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.brand .brand-text b { font-size: 21px; font-weight: 750; letter-spacing: .01em; line-height: 1.1; }
.brand .brand-text small { font-size: 12px; color: var(--grey); margin-top: 3px; line-height: 1.3; }
.site-header .nav a, .site-header .nav .dd-toggle { padding-left: 10px; padding-right: 10px; }
@media (max-width: 1240px) {
  .site-header .nav a, .site-header .nav .dd-toggle { padding-left: 7px; padding-right: 7px; font-size: 15px; }
  .call span { display: none; }
  .call { padding: 11px 13px; }
}
@media (max-width: 1080px) and (min-width: 921px) { .brand .brand-text small { display: none; } }
@media (max-width: 920px) { .site-header .nav a, .site-header .nav .dd-toggle { padding-left: 0; padding-right: 0; font-size: 19px; } }
@media (max-width: 400px) { .brand .brand-text small { font-size: 10.5px; } .brand img { width: 40px; height: 40px; } .brand { gap: 8px; } }
@media (max-width: 420px) { .site-header .wrap { gap: 8px; } .call { padding: 10px 11px; } .menu-toggle { padding: 8px; } .brand .brand-text small { font-size: 10px; } .brand .brand-text b { font-size: 19px; } }
@media (max-width: 340px) { .brand img { width: 34px; height: 34px; } .brand { gap: 6px; } .brand .brand-text small { font-size: 9.5px; } .site-header .wrap { padding-left: 14px; padding-right: 14px; } }

/* Gallery: four albums in a row */
.albums { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.album-info b { font-size: 19px; }
@media (max-width: 1100px) { .albums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .albums { grid-template-columns: 1fr; } }

/* Contact form: spam trap + error state */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success.is-error { background: #fbeceb; color: #8a2a22; }
.form button.btn[disabled] { opacity: .7; cursor: wait; }
.form button.btn { font-size: 15px; padding: 10px 18px; }

/* Slider text and controls line up with the page container (same edges as every other section) */
@media (min-width: 921px) {
  .slide { --edge: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); --text-w: min(380px, 34vw); }
  .panel { left: var(--edge); width: var(--text-w); }
  .slide::after { width: calc(var(--edge) + var(--text-w) + 140px); }
  .slider-nav { right: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); }
}
