/* Cooperative overrides on top of Medilab main.css.
   Palette: deep teal for trust/finance, warm gold for figures members look for. */
:root {
  --default-font: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --heading-font: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --nav-font: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --display-font: "Noto Serif Thai", "IBM Plex Sans Thai", serif;

  --background-color: #ffffff;
  --default-color: #33433a;
  --heading-color: #173f2a;
  --accent-color: #1e6b3c;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --gold: #b8902f;
  --gold-soft: #fbf5e3;
  --line: #e3eadf;

  --nav-color: #173f2a;
  --nav-hover-color: #1e6b3c;
  --nav-dropdown-color: #173f2a;
  --nav-dropdown-hover-color: #1e6b3c;
}
.light-background { --background-color: #f3f7f1; --surface-color: #ffffff; }

body { font-size: 17px; line-height: 1.75; }
h1, h2, h3, h4 { line-height: 1.4; text-wrap: balance; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 40%); outline-offset: 2px; }

/* ---------- admin preview ---------- */
.preview-bar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; background: #fff3cd; color: #5c4400; padding: 10px 16px; font-size: 15px; border-bottom: 1px solid #e8d48a; }
.preview-bar a { color: #5c4400; font-weight: 600; }

/* ---------- header ---------- */
.header .branding { min-height: 72px; }
.header .logo img { max-height: 48px; margin-right: 10px; }
.header .logo .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.header .logo .sitename { font-family: var(--display-font); font-size: 22px; font-weight: 700; color: var(--heading-color); margin: 0; }
.header .logo .brand-full { font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.header .cta-btn { font-weight: 500; }
.navmenu a, .navmenu a:focus { font-size: 16px; font-weight: 500; }
@media (min-width: 1200px) { .navmenu li { padding: 15px 11px; } }

/* ---------- hero (Medilab layout) ---------- */
.hero { min-height: min(calc(100vh - 112px), 760px); }
.hero:not(.has-image) { background: radial-gradient(circle at 85% 20%, rgba(184, 144, 47, .16), transparent 45%), linear-gradient(135deg, #e8f2e3 0%, #f9fbf5 55%, #edf4e8 100%); }
/* White wash keeps the left-hand text readable, then clears so the photo on the right shows at full colour. */
.hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .8) 28%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .08) 66%, rgba(255, 255, 255, 0) 76%); }
/* Phones: the text spans the full width, so keep an even wash behind it. */
@media (max-width: 991px) { .hero.has-image::before { background: rgba(255, 255, 255, .78); } }
/* About section photo background: same fade as the hero, faded on the left and clear on the right. */
.about.has-bg { position: relative; overflow: hidden; }
.about-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.about.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .8) 28%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .08) 66%, rgba(255, 255, 255, 0) 76%); }
.about.has-bg .container { position: relative; z-index: 2; }
/* The person in the about background stands about 440px right of the page
   centre at every desktop width, so the text column (which starts at the
   centre) stops short of them instead of running over their face. */
@media (min-width: 992px) { .about.has-bg .content { max-width: 415px; } }
@media (max-width: 991px) { .about.has-bg::before { background: rgba(255, 255, 255, .82); } }
/* hero background slideshow: stacked photos cross-fade (coop.js swaps .active) */
.hero-slides img { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slides img.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: none; } }
.hero .welcome h2 { font-family: var(--display-font); font-size: clamp(30px, 5vw, 52px); color: var(--heading-color); }
.hero .welcome p { font-size: clamp(17px, 2.2vw, 24px); }
.hero .content .why-box h3 { font-size: 28px; margin-bottom: 8px; }
.hero .why-box .big-rate { font-family: var(--display-font); font-size: 64px; font-weight: 700; line-height: 1.1; color: #fff; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.hero .why-box .big-rate small { font-size: 18px; font-weight: 500; margin-left: 6px; opacity: .85; font-family: var(--default-font); }
.hero .content .icon-box h4 { font-size: 19px; font-variant-numeric: tabular-nums; }
.btn-hero { display: inline-block; background: var(--gold); color: #fff; padding: 10px 26px; border-radius: 50px; font-weight: 600; }
.btn-hero:hover { background: #fff; color: var(--heading-color); }

/* announcement banners (admin managed) */
/* Banners are finished artwork with text baked in: one fixed 5:2 frame so
   the page doesn't jump between slides, image contained (never cropped),
   dots below the image instead of over it. */
.announce { padding: 24px 0 0; }
.announce-slider { padding-bottom: 32px; }
.announce-slide { aspect-ratio: 5 / 2; border-radius: 16px; overflow: hidden; background: #f1f5ee; }
.announce-slide a { display: block; height: 100%; }
.announce-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.announce-slider .swiper-pagination { bottom: 4px; }
.announce-slider .swiper-pagination-bullet-active { background: var(--accent-color); }
.announce-slider .swiper-button-next, .announce-slider .swiper-button-prev { color: var(--heading-color); background: rgba(255, 255, 255, .85); width: 40px; height: 40px; border-radius: 50%; margin-top: -36px; }
.announce-slider .swiper-button-next::after, .announce-slider .swiper-button-prev::after { font-size: 16px; font-weight: 700; }
@media (max-width: 767px) {
  .announce { padding-top: 12px; }
  .announce-slide { border-radius: 10px; }
  .announce-slider .swiper-button-next, .announce-slider .swiper-button-prev { display: none; }
}

/* about */
/* Office-hours card in "about": frosted glass tinted with the section's
   sage/teal background; deep green for open, muted clay for closed, gold accent. */
.hours-card {
  border-radius: 20px;
  padding: 26px 26px 0;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(226, 239, 233, .78));
  border: 1px solid rgba(30, 107, 60, .16);
  box-shadow: 0 22px 44px -22px rgba(23, 63, 42, .38), 0 2px 6px rgba(23, 63, 42, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hours-card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.hours-card-logo { flex-shrink: 0; width: 74px; height: auto; }
.hours-card-title { font-family: var(--display-font); font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: var(--heading-color); margin: 0 0 8px; line-height: 1.35; }
.hours-card-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #7a5d17; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold), transparent 55%); border-radius: 999px; padding: 2px 12px; }
.hours-row { display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); }
.hours-row-label { flex: 0 0 116px; display: flex; align-items: center; justify-content: center; padding: 12px 8px; font-weight: 700; color: #fff; text-align: center; }
.hours-row.is-open .hours-row-label { background: var(--accent-color); }
.hours-row.is-closed .hours-row-label { background: #8a5a44; }
.hours-row-body { display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; line-height: 1.5; }
.hours-row-body strong { font-size: 19px; color: var(--heading-color); }
.hours-row.is-closed .hours-row-body strong { color: #6e4433; }
.hours-row-body span { font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 20%); }
.hours-card-note { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 20px; font-size: 15px; font-weight: 600; color: #7a5d17; }
.hours-card-note i { color: var(--gold); font-size: 18px; }
.hours-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin: 0 -26px; padding: 12px 20px; background: var(--heading-color); color: #e6efe9; font-size: 15px; }
.hours-card-foot a { color: #fff; font-weight: 600; text-decoration: none; }
.hours-card-foot i { color: var(--gold); margin-right: 4px; }
@media (max-width: 575px) {
  .hours-card { padding: 20px 16px 0; }
  .hours-card-foot { margin: 0 -16px; }
  .hours-card-logo { width: 56px; }
  .hours-row-label { flex-basis: 92px; font-size: 15px; }
}
.about-placeholder { aspect-ratio: 4 / 3; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; color: #fff; background: linear-gradient(135deg, var(--heading-color), var(--accent-color)); }
.about-placeholder i { font-size: 72px; color: var(--gold); }
.about-placeholder span { font-family: var(--display-font); font-size: 22px; max-width: 360px; }

/* ---------- rates (home): a loan panel + the deposit passbooks on a shelf ----------
   Members know their savings accounts by passbook colour, so each account is a
   passbook standing on a shelf, as tall as its rate: the tallest pays most.
   The books rise once when the section comes into view (coop.js adds .is-in). */
.rate-board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
.rate-board h3 { font-family: var(--display-font); font-weight: 700; margin: 0; }

.loan-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px 34px 30px; border-radius: 18px; color: #e9f2ea; background: radial-gradient(120% 90% at 100% 0%, #2a7a49 0%, transparent 55%), linear-gradient(160deg, #1e6b3c 0%, #123321 100%); }
.loan-panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(184, 144, 47, .16); pointer-events: none; }
.loan-panel h3 { font-size: 26px; color: #fff; }
.loan-lead { margin: 4px 0 0; color: rgba(233, 242, 234, .75); }
.loan-figure { font-family: var(--display-font); font-weight: 700; font-size: clamp(68px, 8vw, 104px); line-height: 1; margin: 18px 0 6px; color: #e8c766; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.loan-figure sup { font-size: .42em; top: -1.05em; margin-left: 4px; letter-spacing: 0; }
.loan-unit { margin: 0; font-size: 18px; color: rgba(233, 242, 234, .8); }
.loan-change { display: inline-flex; align-items: center; align-self: flex-start; gap: 2px; margin: 10px 0 0; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(232, 199, 102, .16); color: #f3dc94; font-size: 15px; }
.loan-change i { font-size: 22px; line-height: 1; }
.loan-types, .loan-list { list-style: none; padding: 0; margin: 22px 0 0; }
.loan-types { display: flex; flex-wrap: wrap; gap: 8px; }
.loan-types li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(233, 242, 234, .28); font-size: 15px; }
.loan-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(233, 242, 234, .18); }
.loan-list strong { font-family: var(--display-font); font-size: 24px; color: #e8c766; font-variant-numeric: tabular-nums; }
.loan-link { margin-top: auto; padding-top: 26px; align-self: flex-start; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(232, 199, 102, .7); text-underline-offset: 5px; }
.loan-link:hover, .loan-link:focus-visible { color: #e8c766; }

.deposit-shelf { display: flex; flex-direction: column; padding: 30px 30px 22px; border-radius: 18px; background: var(--gold-soft); }
.deposit-shelf h3 { font-size: 24px; color: var(--heading-color); }
.shelf-note { margin: 4px 0 0; color: color-mix(in srgb, var(--default-color), transparent 25%); }
.passbooks { position: relative; list-style: none; margin: auto 0 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; align-items: end; }
.passbook { display: flex; flex-direction: column; align-items: stretch; }
/* the book: a cover in the passbook colour with a darker spine on the left */
.passbook .cover { --tall: calc(30px + 260px * var(--h)); height: var(--tall); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 16px 6px 0 12px; border-radius: 3px 9px 9px 3px; color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--book), #000 32%) 0 9px, color-mix(in srgb, var(--book), #000 10%) 9px 11px, var(--book) 11px); box-shadow: inset -6px 0 10px rgba(0, 0, 0, .12), 0 10px 18px -12px rgba(0, 0, 0, .45); transform-origin: bottom; }
.cover-rate { font-family: var(--display-font); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cover-rate small { font-size: .55em; margin-left: 1px; }
.cover-unit { font-size: 13px; opacity: .85; margin-top: 4px; }
/* the shelf the books stand on */
.passbooks::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: calc(3.4 * 14px + 12px); height: 7px; border-radius: 2px; background: linear-gradient(#d7b45c, #b08a33); box-shadow: 0 5px 8px -4px rgba(90, 65, 10, .45); }
.book-name { order: 2; margin-top: 19px; height: 3.4em; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--heading-color); text-align: center; }
.book-name span { display: block; font-weight: 400; font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.passbook .cover { order: 1; }

/* one entrance: the books rise in turn when the section scrolls into view */
.rate-board.js-rise .passbook .cover { transform: scaleY(.04); opacity: .2; }
.rate-board.js-rise.is-in .passbook .cover { transform: none; opacity: 1; transition: transform .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 110ms), opacity .4s ease calc(var(--i) * 110ms); }
.rate-board.js-rise .cover > * { opacity: 0; }
.rate-board.js-rise.is-in .cover > * { opacity: 1; transition: opacity .4s ease calc(var(--i) * 110ms + .55s); }
@media (prefers-reduced-motion: reduce) {
  .rate-board.js-rise .passbook .cover, .rate-board.js-rise .cover > * { transform: none; opacity: 1; transition: none; }
}

@media (max-width: 991px) {
  .rate-board { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .loan-panel { padding: 26px 22px; }
  .deposit-shelf { padding: 24px 18px 20px; }
  /* on a phone the passbooks lie flat in a stack: each bar is as long as its rate */
  .passbooks { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 18px; }
  .passbooks::after { display: none; }
  .passbook { display: grid; grid-template-columns: minmax(0, 1fr); }
  .passbook .cover { --tall: auto; height: 52px; width: calc(38% + 62% * var(--h)); flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 6px; padding: 12px 14px 0 20px; border-radius: 3px 9px 9px 3px; transform-origin: left; }
  .cover-rate { font-size: 24px; }
  .cover-unit { margin: 0; }
  .book-name { order: 0; margin: 0 0 4px; height: auto; text-align: left; font-size: 15px; }
  .book-name span { display: inline; margin-left: 6px; }
  .rate-board.js-rise .passbook .cover { transform: scaleX(.05); }
}

/* ---------- loan calculator (/loan-calculator) ----------
   Inputs on the left, the answer on the right in the same green-and-gold
   panel as the home page loan rate, so the result reads as the coop's own. */
.calc-intro { max-width: 760px; font-size: 17px; margin-bottom: 26px; }
.loan-calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.calc-inputs { display: grid; gap: 22px; padding: 28px; border-radius: 18px; background: var(--gold-soft); }
.calc-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc-field > label, .calc-field legend, .calc-label-row label { font-weight: 600; color: var(--heading-color); margin-bottom: 6px; font-size: 16px; }
.calc-field legend { float: none; width: auto; padding: 0; }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.calc-unit { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.calc-big { font-family: var(--display-font); font-size: 28px; font-weight: 700; color: var(--heading-color); font-variant-numeric: tabular-nums; padding: 8px 14px; }
.loan-calc .form-range { margin-top: 10px; accent-color: var(--accent-color); }
.calc-hint { display: flex; justify-content: space-between; font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 35%); font-variant-numeric: tabular-nums; }
.calc-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-top: 8px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--heading-color), transparent 85%); background: #fff; cursor: pointer; }
.calc-choice input { margin-top: 5px; accent-color: var(--accent-color); }
.calc-choice strong { display: block; color: var(--heading-color); }
.calc-choice small { color: color-mix(in srgb, var(--default-color), transparent 25%); }
.calc-choice:has(input:checked) { border-color: var(--accent-color); box-shadow: 0 0 0 1px var(--accent-color); }
.calc-more summary { cursor: pointer; font-weight: 600; color: var(--accent-color); }

.calc-result { position: sticky; top: 100px; padding: 30px 28px; border-radius: 18px; color: #e9f2ea; background: radial-gradient(120% 90% at 100% 0%, #2a7a49 0%, transparent 55%), linear-gradient(160deg, #1e6b3c 0%, #123321 100%); }
.calc-result-label { margin: 0; color: rgba(233, 242, 234, .8); font-size: 17px; }
.calc-pay { font-family: var(--display-font); font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1.1; color: #e8c766; font-variant-numeric: tabular-nums; }
.calc-pay small { font-family: var(--default-font); font-size: 18px; font-weight: 500; color: rgba(233, 242, 234, .8); margin-left: 8px; }
.calc-pay-note { margin: 6px 0 0; font-size: 15px; color: rgba(233, 242, 234, .8); }
.calc-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding: 16px 0; border-top: 1px solid rgba(233, 242, 234, .2); border-bottom: 1px solid rgba(233, 242, 234, .2); }
.calc-sum dt { font-weight: 400; font-size: 14px; color: rgba(233, 242, 234, .75); }
.calc-sum dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.calc-result h3 { font-size: 17px; color: #fff; margin: 20px 0 10px; }
.calc-needs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.calc-needs li { display: flex; gap: 10px; align-items: baseline; }
.calc-needs i { color: #e8c766; }
.calc-needs strong { color: #fff; }
.calc-check { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.calc-check.is-ok { background: rgba(120, 200, 140, .18); color: #d6f5dd; }
.calc-check.is-short { background: rgba(240, 150, 120, .2); color: #ffd9cc; }
.calc-schedule { margin-top: 28px; }
.calc-schedule summary { cursor: pointer; font-weight: 600; color: var(--accent-color); padding: 6px 0; }
.calc-table { font-variant-numeric: tabular-nums; font-size: 15px; }
.calc-table tbody { max-height: none; }
.calc-notes { margin-top: 28px; padding: 22px 26px; border-radius: 14px; border: 1px solid var(--line); }
.calc-notes ul { padding-left: 20px; margin-bottom: 12px; }
.calc-notes li { margin-bottom: 6px; }
.calc-warn { padding: 12px 16px; border-radius: 10px; background: var(--gold-soft); }
@media (max-width: 991px) {
  .loan-calc { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .calc-inputs { padding: 20px 16px; }
  .calc-result { position: static; padding: 24px 20px; }
}

/* gallery album tiles */
.gallery .album-link { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9f1e6; overflow: hidden; }
.gallery .album-link img { width: 100%; height: 100%; object-fit: cover; }
.gallery .album-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(14, 38, 24, .8), transparent); }

/* contact */
.contact-map { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- sections ---------- */
.section-title h2 { font-family: var(--display-font); }
.section-title h2::after { background: var(--gold); }
.btn-coop { background: var(--accent-color); color: #fff; border-radius: 50px; padding: 10px 28px; font-weight: 500; }
.btn-coop:hover { background: var(--heading-color); color: #fff; }
.btn-outline-coop { border: 2px solid var(--accent-color); color: var(--accent-color); border-radius: 50px; padding: 8px 26px; font-weight: 500; }
.btn-outline-coop:hover { background: var(--accent-color); color: #fff; }
.btn-line { background: #06c755; color: #fff; border-radius: 12px; }
.btn-line:hover { background: #05a647; color: #fff; }

.services .service-item { padding: 36px 28px; }
.services .service-item h3 { font-size: 20px; }
.welfare-amount { font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }

/* news cards */
.news-card { background: var(--surface-color); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 10px 30px rgba(23, 63, 42, .12); transform: translateY(-2px); }
.news-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #e9f1e6; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-empty { display: grid; place-items: center; height: 100%; font-size: 40px; color: color-mix(in srgb, var(--accent-color), transparent 50%); }
.badge-pin { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 20px; }
.news-body { padding: 16px 18px 20px; }
/* Newsletters are A4 portrait posters: show the whole page, not a 16:9 strip. */
#newsletter .news-thumb { aspect-ratio: 1 / 1.414; background: #fff; border-bottom: 1px solid var(--line); }
#newsletter .news-thumb img { object-position: top; }
#newsletter .news-body h3 { font-size: 16px; line-height: 1.45; }
@media (max-width: 575px) {
  #newsletter .news-body { padding: 10px 12px 14px; }
  #newsletter .news-body h3 { font-size: 14px; }
}
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 30%); margin-bottom: 6px; }
.news-cat { color: var(--accent-color); font-weight: 600; }
.news-body h3 { font-size: 18px; margin: 0; }
.news-body h3 a { color: var(--heading-color); }
.news-body h3 a:hover { color: var(--accent-color); }

/* rates */
.rate-panel { background: var(--surface-color); border: 1px solid var(--line); border-radius: 14px; padding: 24px; height: 100%; }
.rate-panel h3 { font-size: 20px; margin-bottom: 14px; }
.rate-panel h3 i { color: var(--accent-color); margin-right: 6px; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.rate-table tr:last-child th, .rate-table tr:last-child td { border-bottom: 0; }
.rate-table th { font-weight: 500; }
.rate-table th small { display: block; font-weight: 400; color: color-mix(in srgb, var(--default-color), transparent 35%); font-size: 13px; padding-left: 26px; }
.rate-table td { text-align: right; font-size: 22px; font-weight: 700; color: var(--heading-color); font-variant-numeric: tabular-nums; white-space: nowrap; }
.book { display: inline-block; width: 16px; height: 20px; border-radius: 2px 4px 4px 2px; background: var(--book); box-shadow: inset 3px 0 0 rgba(0, 0, 0, .18); vertical-align: -3px; margin-right: 10px; }
.rate-note { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 35%); margin: 10px 0 0; }
.history-table td, .history-table th { font-variant-numeric: tabular-nums; }

/* welfare chips on home */
.welfare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.welfare-chip { display: flex; flex-direction: column; gap: 4px; background: var(--surface-color); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--default-color); transition: border-color .2s, box-shadow .2s; }
.welfare-chip:hover { border-color: var(--accent-color); box-shadow: 0 6px 18px rgba(23, 63, 42, .1); color: var(--default-color); }
.welfare-chip i { font-size: 26px; color: var(--accent-color); }
.welfare-chip .w-name { font-weight: 600; color: var(--heading-color); }
.welfare-chip .w-amount { font-size: 15px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.welfare-hero { display: flex; align-items: center; gap: 18px; background: var(--gold-soft); border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; }
.welfare-hero i { font-size: 44px; color: var(--gold); }
.welfare-hero-label { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 25%); }
.welfare-hero-amount { font-family: var(--display-font); font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--heading-color); }

/* people: directory laid out like the printed AGM poster. The frame PNG
   (534×701) sits over the photo; the photo fills the oval inside the
   outer gold ring (measured in docs/frame/). */
.portrait-rows { display: flex; flex-direction: column; gap: 28px; }
.portrait-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; }
.portrait-card { flex: 0 0 calc(25% - 15px); max-width: 230px; margin: 0; text-align: center; }
.portrait { position: relative; aspect-ratio: 534 / 701; }
.portrait-photo { position: absolute; left: 5.8%; top: 4.5%; width: 88.4%; height: 91.6%; border-radius: 50%; overflow: hidden; background: linear-gradient(180deg, #d7ecf6, #b9dcec); display: grid; place-items: center; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait-photo i { font-size: clamp(56px, 9vw, 110px); color: rgba(255, 255, 255, .85); margin-top: 18%; }
.portrait-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.portrait-card figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.portrait-card figcaption strong { font-family: var(--display-font); font-size: 17px; color: var(--heading-color); line-height: 1.35; }
.portrait-card figcaption span { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 15%); line-height: 1.45; }
.portrait-card figcaption small { font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 35%); }
.directory-heading { text-align: center; font-family: var(--display-font); font-size: clamp(24px, 3vw, 30px); color: var(--heading-color); margin: 56px 0 28px; }
@media (max-width: 767px) {
  .portrait-rows, .portrait-row { gap: 22px 14px; }
  .portrait-card { flex-basis: calc(50% - 7px); max-width: 190px; }
  .portrait-card figcaption strong { font-size: 15px; }
  .portrait-card figcaption span { font-size: 13px; }
}

/* bank cards */
.bank-card { background: linear-gradient(135deg, var(--heading-color), var(--accent-color)); color: #fff; border-radius: 16px; padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 6px; }
.bank-name { font-size: 15px; opacity: .9; }
.bank-no { font-size: clamp(26px, 4vw, 32px); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bank-holder { font-size: 15px; opacity: .9; }
.btn-copy { align-self: flex-start; margin-top: 10px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50px; padding: 6px 18px; }
.btn-copy:hover, .btn-copy.copied { background: #fff; color: var(--heading-color); }
.transfer-note { max-width: 820px; margin: 24px auto 0; background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; font-size: 16px; }
.transfer-note i { color: var(--gold); }

/* albums */
.album-card { display: block; position: relative; border-radius: 12px; overflow: hidden; background: #e9f1e6; aspect-ratio: 4 / 3; color: #fff; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover img { transform: scale(1.04); }
.album-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 38, 24, .8), rgba(14, 38, 24, 0) 55%); }
.album-title, .album-date { position: absolute; left: 16px; right: 16px; z-index: 2; }
.album-title { bottom: 34px; font-weight: 600; font-size: 18px; line-height: 1.35; }
.album-date { bottom: 12px; font-size: 14px; opacity: .85; }
.album-empty { display: grid; place-items: center; height: 100%; font-size: 48px; color: color-mix(in srgb, var(--accent-color), transparent 50%); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #e9f1e6; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.album-intro { max-width: 760px; margin-bottom: 24px; }

/* inner pages */
.page-title { background: linear-gradient(135deg, #ecf4e8, #f8fbf6); padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.page-title h1 { font-family: var(--display-font); font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 0; color: var(--heading-color); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 14px; }
.breadcrumbs ol li + li::before { content: "/"; margin-right: 6px; color: #9aab9c; }
.breadcrumbs .current { color: color-mix(in srgb, var(--default-color), transparent 35%); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 25%); }
.article-cover { display: block; margin-bottom: 24px; }
.article-cover img, img.article-cover { width: 100%; border-radius: 12px; }
.prose { font-size: 18px; max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose .md-figure { margin: 20px 0; }
.prose .md-figure img { width: 100%; border-radius: 10px; }
.prose .md-figure figcaption { font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 30%); margin-top: 6px; }
.attachments { margin-top: 32px; }
.attachments h2 { font-size: 20px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; color: var(--default-color); background: var(--surface-color); }
.file-row:hover { border-color: var(--accent-color); color: var(--default-color); }
.file-row > i:first-child { font-size: 26px; color: #c0392b; }
.file-title { flex: 1; min-width: 0; font-weight: 500; }
.file-size { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 35%); white-space: nowrap; }
.pdf-preview { margin: -4px 0 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f3f3f3; }
.pdf-preview iframe { display: block; width: 100%; height: 75vh; min-height: 520px; border: 0; }
.doc-group-title { font-size: 20px; margin: 28px 0 12px; }
.side-box { background: #f5f9f3; border-radius: 12px; padding: 22px; position: sticky; top: 110px; }
.side-box h2 { font-size: 18px; margin-bottom: 12px; }
.side-list { list-style: none; padding: 0; margin: 0 0 14px; }
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.side-list li:last-child { border-bottom: 0; }
.side-list li.current a { color: var(--heading-color); font-weight: 600; }
.side-list time, .side-list small { font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 35%); }
.list-toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 50px; padding: 6px 16px; font-size: 15px; color: var(--default-color); background: var(--surface-color); }
.chip:hover { border-color: var(--accent-color); color: var(--accent-color); }
.chip.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.chip-count { font-size: 12px; opacity: .75; }
.search-box { display: flex; border: 1px solid var(--line); border-radius: 50px; overflow: hidden; background: var(--surface-color); min-width: 0; flex: 0 1 320px; }
.search-box input { border: 0; padding: 8px 16px; flex: 1; min-width: 0; outline: none; font-size: 16px; }
.search-box button { border: 0; background: transparent; padding: 0 16px; color: var(--accent-color); }
.list-count { font-size: 14px; margin: -10px 0 10px; color: color-mix(in srgb, var(--default-color), transparent 35%); }
.news-table-wrap { background: var(--surface-color); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(23, 63, 42, .05); }
.news-table { width: 100%; border-collapse: collapse; }
.news-table th { background: #f1f6ee; color: var(--heading-color); font-weight: 600; font-size: 15px; padding: 14px 16px; text-align: left; border-bottom: 2px solid var(--gold); white-space: nowrap; }
.news-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.news-table tbody tr:last-child td { border-bottom: 0; }
.news-table tbody tr:hover { background: #f8fbf6; }
.news-table tr.is-pinned { background: #fdf9ee; }
.news-table .col-no { width: 70px; text-align: center; font-weight: 600; color: color-mix(in srgb, var(--default-color), transparent 40%); font-variant-numeric: tabular-nums; }
.news-table .col-title a { color: var(--heading-color); font-weight: 500; }
.news-table .col-title a:hover { color: var(--accent-color); text-decoration: underline; }
.news-table .col-cat { width: 150px; }
.news-table .col-date { width: 130px; white-space: nowrap; font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 25%); }
.news-table .col-file { width: 130px; text-align: center; }
.news-table .news-cat { display: inline-block; font-size: 13px; padding: 2px 10px; border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%); border-radius: 20px; color: var(--accent-color); background: #f1f6ee; white-space: nowrap; }
.pin-icon { color: var(--gold); margin-right: 4px; }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px; background: #c0392b; color: #fff; font-size: 12px; font-weight: 600; vertical-align: 2px; }
.btn-file { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 50px; background: var(--accent-color); color: #fff; font-size: 14px; white-space: nowrap; }
.btn-file:hover { background: var(--heading-color); color: #fff; }
.no-file { color: color-mix(in srgb, var(--default-color), transparent 55%); }
@media (min-width: 768px) and (max-width: 991px) {
  .news-table th, .news-table td { padding: 12px 10px; }
  .news-table .col-no { width: 48px; }
  .news-table .col-cat { width: 110px; }
  .news-table .col-date { width: 105px; font-size: 14px; }
  .news-table .col-file { width: 112px; }
  .btn-file { padding: 5px 10px; font-size: 13px; }
}
@media (max-width: 767px) {
  .news-table thead { display: none; }
  .news-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .news-table tbody tr:last-child { border-bottom: 0; }
  .news-table td { display: block; padding: 0; border: 0; width: auto !important; text-align: left !important; }
  .news-table .col-no { display: none; }
  .news-table .col-title { grid-column: 1 / -1; }
  .news-table .col-cat { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .news-table .col-date { grid-column: 1; grid-row: 3; font-size: 14px; }
  .news-table .col-file { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .news-table .no-file { display: none; }
}
.empty-state { text-align: center; padding: 40px 0; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--default-color); }
.pager a.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.map-wrap { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9f1e6; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.contact .info-item h3 { font-size: 18px; }

/* stats */
.stats i { color: var(--accent-color); background: var(--surface-color); }
.stats .stats-item span { font-variant-numeric: tabular-nums; }

/* faq */
.faq .faq-container .faq-item h3 { font-size: 17px; }

/* mobile bottom navigation */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 997; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(23, 63, 42, .08); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 13px; color: var(--default-color); min-height: 56px; }
.bottom-nav a i { font-size: 22px; line-height: 1; }
.bottom-nav a.active { color: var(--accent-color); font-weight: 600; }
@media (max-width: 991px) {
  body { padding-bottom: 64px; }
  .scroll-top { bottom: 76px; }
  .side-box { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* header fit: keep brand and CTA on one line */
.header .logo .sitename { white-space: nowrap; font-size: 21px; }
.header .logo .brand-full { white-space: nowrap; }
@media (max-width: 1399px) { .header .logo .brand-full { display: none !important; } }
.header .cta-btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399px) { .navmenu li { padding: 15px 8px; } .navmenu a, .navmenu a:focus { font-size: 15px; } }
.bank-no { font-size: clamp(22px, 2.4vw, 30px); white-space: nowrap; }

/* green & gold accents */
.header .topbar { background: var(--heading-color); border-bottom: 3px solid var(--gold); }
.header .cta-btn { background: var(--gold); }
.header .cta-btn:hover { background: var(--accent-color); }
.section-title h2::after { background: var(--gold); }
.hero .why-box { background: linear-gradient(160deg, var(--accent-color), var(--heading-color)); border-bottom: 4px solid var(--gold); }
.hero .content .icon-box i, .stats i { color: var(--accent-color); }
.services .service-item:hover .icon { background: var(--gold); }
.bank-card { border-bottom: 4px solid var(--gold); }
/* directory embedded in a content page with {{people:...}} */
.page-directory { margin: 8px 0 40px; }
.article .portrait-card { max-width: 200px; }
.portrait-card .nw { white-space: nowrap; }

/* organisation chart ({{orgchart}}) */
.org-chart { --oc-line: color-mix(in srgb, var(--gold), transparent 25%); }
.oc-heading { text-align: center; font-family: var(--display-font); font-size: 24px; color: var(--heading-color); margin: 0 0 22px; }
.oc-heading small { display: block; margin-top: 4px; font-family: var(--default-font); font-size: 15px; font-weight: 400; color: color-mix(in srgb, var(--default-color), transparent 25%); }
.oc-tree { display: flex; flex-direction: column; align-items: center; }
.oc-row { display: flex; justify-content: center; gap: 0; width: 100%; }
.oc-node { position: relative; flex: 0 1 220px; display: flex; justify-content: center; padding: 0 12px; }
.article .org-chart .oc-node .portrait-card { flex: none; width: 100%; max-width: 170px; }
/* bracket over a row of two or more: a tick into every card, joined across */
.oc-branch .oc-node { padding-top: 24px; }
.oc-branch .oc-node::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 24px; background: var(--oc-line); transform: translateX(-1px); }
.oc-branch .oc-node::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--oc-line); }
.oc-branch .oc-node:first-child::after { left: 50%; }
.oc-branch .oc-node:last-child::after { right: 50%; }
.oc-link { width: 2px; height: 28px; background: var(--oc-line); }
.oc-panel { width: 100%; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; background: var(--gold-soft); padding: 18px 16px 22px; }
.oc-panel-title { text-align: center; font-weight: 600; color: var(--heading-color); margin-bottom: 16px; }
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 12px; justify-items: center; }
.article .oc-grid .portrait-card { flex: none; width: 100%; max-width: 150px; }
.oc-grid .portrait-card figcaption strong { font-size: 15px; }
.oc-grid .portrait-card figcaption span { font-size: 13px; }
.oc-bridge { display: flex; flex-direction: column; align-items: center; margin: 0 auto 18px; }
.oc-bridge::before { content: ""; width: 2px; height: 36px; background: color-mix(in srgb, var(--gold), transparent 25%); }
.oc-bridge span { margin-top: 6px; padding: 4px 14px; border-radius: 999px; background: var(--accent-color); color: var(--contrast-color); font-size: 14px; }
@media (max-width: 575px) {
  .oc-node { padding: 0 6px; }
  .article .org-chart .oc-node .portrait-card { max-width: 140px; }
  .oc-grid { grid-template-columns: repeat(2, 1fr); }
  .oc-panel { padding: 14px 8px 18px; }
}

/* chairmen directory ({{people:chairman}}) as a timeline */
.chair-timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.chair-timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--gold), transparent 30%); }
.chair-item { position: relative; display: flex; align-items: center; gap: 22px; padding: 0 0 30px; }
.chair-item:last-child { padding-bottom: 0; }
.chair-dot { position: absolute; left: -30px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--surface-color); border: 3px solid var(--gold); }
.chair-item.is-current .chair-dot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.chair-item .portrait { width: 150px; flex: none; }
.chair-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.chair-text strong { font-family: var(--display-font); font-size: 20px; color: var(--heading-color); line-height: 1.35; }
.chair-text span { font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 15%); }
.chair-text small { font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 35%); }
.chair-text .nw { white-space: nowrap; color: inherit; font-size: inherit; }
.chair-text .chair-badge { padding: 2px 12px; margin-bottom: 4px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold), transparent 50%); font-size: 13px; font-weight: 600; }
@media (max-width: 575px) {
  .chair-item { gap: 14px; }
  .chair-item .portrait { width: 105px; }
  .chair-text strong { font-size: 17px; }
  .chair-text span { font-size: 14px; }
  .chair-text .chair-badge { font-size: 12px; }
}

/* ---------- phone layout fixes (Nov 2026 review) ---------- */
@media (max-width: 767px) {
  /* Hero: the three small facts become slim rows, so the news is
     about one screen down instead of two. */
  .hero .content .why-box { padding: 26px 22px; }
  .hero .content .why-box h3 { font-size: 24px; margin-bottom: 4px; }
  .hero .why-box .big-rate { font-size: 52px; margin-bottom: 8px; }
  .hero .content .why-box p { margin-bottom: 16px; font-size: 15px; }
  .hero .content .col-lg-8 .row { --bs-gutter-y: 10px; }
  .hero .content .icon-box { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; }
  .hero .content .icon-box i { font-size: 28px; flex-shrink: 0; }
  .hero .content .icon-box h4 { font-size: 17px; margin: 0; }
  .hero .content .icon-box p { display: none; }

  /* Welfare: two compact chips per row instead of fifteen full-width cards. */
  .welfare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .welfare-chip { padding: 12px; }
  .welfare-chip i { font-size: 22px; }
  .welfare-chip .w-name { font-size: 15px; line-height: 1.4; }
  .welfare-chip .w-amount { font-size: 13px; }
}

/* Newsletter / news card titles: at most two lines, so the cards in a row line up. */
.news-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* tables written in page/news/welfare text ("cell | cell" rows) */
.md-table { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-color); }
.md-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.md-table th, .md-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.md-table th { background: #f1f6ee; color: var(--heading-color); font-weight: 600; border-bottom: 2px solid var(--gold); white-space: nowrap; }
.md-table tbody tr:last-child td { border-bottom: 0; }
.md-table tbody tr:nth-child(even) td { background: #fafcf9; }
.md-table td.num, .md-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--heading-color); }
.md-table td strong { color: var(--heading-color); }
@media (max-width: 575px) { .md-table th, .md-table td { padding: 9px 12px; font-size: 15px; } }
.file-title .file-date { display: block; font-size: 13px; font-weight: 400; color: color-mix(in srgb, var(--default-color), transparent 35%); margin-top: 2px; }
.md-table th:first-child, .md-table td:first-child { min-width: 11em; }
.md-table th { white-space: normal; }
