/* GCBS common design system — tokens and components derived from GCBS_sample.html (PRD 5.10). */

/* 아주체: the site's only font declaration. File is supplied by the operator; fallbacks apply if it is missing. */
@font-face {
  font-family: "Ajou";
  src: url("/assets/fonts/Ajou.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #183858;
  --blue: #305b83;
  --accent: #2a638a;
  --ink: #19304a;
  --muted: #617185;
  --soft: #edf3f8;
  --soft-2: #f5f8fb;
  --soft-3: #f6f8fa;
  --border: #d9e2e9;
  --gold: #bc935b;
  --focus: #e1a846;
  --tag-fg: #215c83;
  --tag-bg: #e5f1f6;
  --tag-closed-fg: #5f6c77;
  --tag-closed-bg: #e9edf1;
  --danger: #a4312b;
  --danger-bg: #fbeceb;
  --success: #1f6b45;
  --success-bg: #e8f4ee;
  --warning: #7a5412;
  --warning-bg: #fbf1dc;
  --footer-fg: #e4eaf0;

  --font: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --fs-body: 16px;
  --fs-line: 15px;
  --fs-meta: 13px;
  --fs-small: 12px;
  --fs-h3: 19px;

  --wrap: 1160px;
  --gutter: 22px;
  --section-y: 73px;

  --r-btn: 6px;
  --r-img: 8px;
  --r-card: 11px;
  --r-pill: 50px;

  --btn-h: 46px;
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section-y: 50px; --fs-line: 14px; }
}

/* ---- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; color: var(--ink); font-family: var(--font); font-size: var(--fs-body); background: #fff; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-wrap: anywhere; word-break: keep-all; }
main { flex: 1 0 auto; }
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
/* Display face for headings, society name and key phrases only; long body text and admin tables keep --font. */
h1, h2, h3, .brand, .hero-sub, .eyebrow, .footer-name {
  font-family: "Ajou", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(34px, 4.6vw, 61px); line-height: 1.21; letter-spacing: -.055em; }
h2 { font-size: clamp(25px, 3vw, 35px); letter-spacing: -.045em; line-height: 1.35; }
h3 { font-size: var(--fs-h3); line-height: 1.4; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); }
.skip-link:focus { top: 8px; }
.admin-preview-banner { background: var(--warning-bg); color: var(--warning); text-align: center; padding: 8px 12px; font-size: var(--fs-meta); font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin: auto; }
.narrow { max-width: 820px; }
.eyebrow { font-size: var(--fs-small); letter-spacing: .16em; font-weight: 800; color: var(--blue); text-transform: uppercase; }
.sub, .lead { color: var(--muted); }
.lead { font-size: 17px; margin: 0; max-width: 46em; }
.meta { font-size: var(--fs-meta); color: var(--muted); }
.subhead { font-size: 22px; letter-spacing: -.03em; margin: 40px 0 14px; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 19px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--r-btn); font-weight: 700; font-size: 14px; min-height: var(--btn-h); cursor: pointer; text-align: center; }
.btn:hover { background: var(--blue); border-color: var(--blue); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.more { font-size: var(--fs-meta); font-weight: 800; white-space: nowrap; color: var(--navy); }

/* ---- header */
.topline { background: var(--navy); color: #fff; font-size: var(--fs-small); letter-spacing: .03em; padding: 6px 0; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 5; }
.head { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 800; white-space: nowrap; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.brand img { height: 47px; width: 47px; object-fit: contain; }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font-size: 14px; font-weight: 700; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 8px 0; }
.nav-item > a.is-current { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.sub-list { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -14px; min-width: 190px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-img); box-shadow: 0 12px 24px #0012; display: none; font-weight: 500; }
.sub-list a { display: block; padding: 8px 16px; }
.has-sub:hover > .sub-list, .has-sub:focus-within > .sub-list { display: block; }
.nav-account { display: flex; gap: 8px; align-items: center; }
.btn-login { border: 1px solid var(--border); padding: 8px 15px; border-radius: 7px; font-size: var(--fs-meta); background: #fff; cursor: pointer; white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.menu-toggle { display: none; border: 0; background: none; color: var(--navy); cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ''; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.menu-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 860px) {
  .head { min-height: 70px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 22px; flex-direction: column; align-items: stretch; gap: 14px; box-shadow: 0 15px 25px #0012; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; font-size: 16px; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-item > a { padding: 12px 0; }
  .nav-item > a.is-current { box-shadow: none; }
  .sub-list { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 10px 12px; min-width: 0; font-size: 15px; }
  .sub-list a { padding: 6px 0; color: var(--muted); }
  .nav-account { justify-content: flex-start; }
  .btn-login { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
  .topline { display: none; }
  .brand { font-size: 15px; }
  .brand img { height: 39px; width: 39px; }
  .brand small { font-size: 9px; }
}

/* ---- sections & layout */
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--soft); }
.section.alt-2 { background: var(--soft-3); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.sec-head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2.wide-gap { gap: 52px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } .grid2.wide-gap { gap: 44px; } .sec-head { align-items: center; } }

.page-head { background: var(--soft-2); padding: 56px 0 44px; border-bottom: 1px solid var(--border); }
.page-title { font-size: clamp(28px, 3.6vw, 44px); margin: 8px 0 12px; }
@media (max-width: 600px) { .page-head { padding: 38px 0 30px; } }

/* ---- hero (home intro) */
.hero { padding: 73px 0 86px; background: var(--soft-2); }
.hero-grid { display: grid; grid-template-columns: 1fr .94fr; gap: 55px; align-items: center; }
.hero h1 { font-size: clamp(39px, 4.6vw, 66px); margin: 16px 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 20px; color: #52677b; margin: 0 0 25px; line-height: 1.6; }
.hero .btn { margin: 8px 8px 0 0; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--r-img); display: block; }
.hero-photo figcaption { position: absolute; bottom: -15px; right: -15px; background: var(--navy); color: #fff; padding: 13px 19px; font-size: var(--fs-small); letter-spacing: .12em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 26px; } .hero-photo img { height: 280px; } }
@media (max-width: 600px) { .hero { padding: 47px 0; } .hero-photo img { height: 210px; } .hero-sub { font-size: 16px; } .hero-photo figcaption { right: 0; font-size: 10px; } }

/* ---- cards, tags, rows */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; min-width: 0; }
.card h3 { margin: 11px 0; }
.card .more { display: inline-block; margin-top: 4px; }
@media (max-width: 600px) { .card { padding: 19px; } }
.tag { display: inline-block; color: var(--tag-fg); background: var(--tag-bg); border-radius: var(--r-pill); padding: 4px 10px; font-size: var(--fs-small); font-weight: 800; line-height: 1.4; }
.tag-closed { color: var(--tag-closed-fg); background: var(--tag-closed-bg); }
.tag-draft { color: var(--warning); background: var(--warning-bg); }
.tag-pin { color: #fff; background: var(--navy); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { border-top: 1px solid var(--border); padding: 15px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; font-size: var(--fs-line); }
.row:last-child { border-bottom: 1px solid var(--border); }
.row-title { min-width: 0; font-weight: 700; }
.row-meta { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.notice-row-cover { width: 64px; height: 46px; object-fit: cover; border-radius: var(--r-btn); flex: 0 0 auto; background: var(--soft); }
.detail-cover { margin: 0 0 28px; }
.detail-cover img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: var(--soft-2); border-radius: var(--r-img); }
.static-copy > :first-child { margin-top: 0; }
.static-wide { width: min(980px, calc(100% - var(--gutter) * 2)); margin: auto; }
.static-page, .static-copy, .static-copy > * { min-width: 0; }
.static-toc { margin: 0 0 30px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--soft-2); }
.static-toc > strong { display: block; margin-bottom: 10px; color: var(--navy); font-family: "Ajou", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 18px; }
.static-toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.static-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: #fff; color: var(--navy); font-weight: 700; }
.static-toc a:hover { border-color: var(--navy); text-decoration: none; }

/* Approved society and membership copy: visual grouping without changing source wording. */
.static-about-greeting { font-size: 17px; }
.static-about-greeting blockquote { margin: 28px 0; padding: 25px 28px; border: 1px solid #c5d9e7; border-left: 5px solid var(--accent); border-radius: var(--r-card); background: #e7eff5; color: var(--navy); font-family: "Ajou", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: clamp(20px, 3vw, 27px); line-height: 1.65; }
.static-about-greeting hr { margin: 38px 0 20px; border: 0; border-top: 1px solid var(--border); }
.static-about-greeting hr + p { text-align: right; }
.static-about-purpose > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 22px 0 36px; padding: 0; }
.static-about-purpose > ul li { padding: 16px 18px; border-left: 4px solid var(--accent); border-radius: var(--r-img); background: var(--soft-2); }
.static-about-purpose blockquote { margin: 18px 0 38px; padding: 28px; border: 1px solid #c5d9e7; border-left: 5px solid var(--accent); border-radius: var(--r-card); background: #e7eff5; color: var(--navy); text-align: center; font-size: 18px; }
.static-about-purpose > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.static-about-purpose > div > div, .static-about-organization > div > div { padding: 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
.static-about-purpose > div h3, .static-about-organization > div h3 { margin-top: 0; color: var(--navy); }
.static-about-purpose > div p, .static-about-organization > div ul { margin-bottom: 0; }

.static-about-organization table { display: table; width: 100%; table-layout: fixed; overflow: visible; }
.static-about-organization th:first-child { width: 21%; }
.static-about-organization td:nth-child(2) { width: 27%; font-weight: 700; }
.static-about-organization > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.static-about-organization > div ul { padding-left: 20px; }

:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h2 { margin-bottom: 4px; }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h2 + p { color: var(--muted); }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h3 { scroll-margin-top: 20px; margin: 42px 0 0; padding: 17px 20px; border: 1px solid #c5d9e7; border-radius: var(--r-card) var(--r-card) 0 0; background: #dce8f0; color: var(--navy); }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 { margin: 0; padding: 22px 22px 8px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--accent); font-size: 18px; }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p,
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ol,
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ul { margin: 0; padding: 0 22px 20px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ol,
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ul { padding-left: 48px; }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ol + p,
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ul + p { margin: 0; padding: 0 22px 22px; border: 0 solid var(--border); border-width: 0 1px 1px; border-radius: 0 0 var(--r-card) var(--r-card); }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h3 + h4 { padding-top: 24px; }
:is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > hr { margin: 42px 0 0; border: 0; border-top: 1px solid var(--border); }

.static-member-qualification > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.static-member-qualification > div > div { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--r-card); background: #fff; }
.static-member-qualification > div h3 { margin-top: 0; color: var(--navy); }
.static-member-qualification > div p:last-child { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.static-member-qualification blockquote, .membership-rule { margin: 18px 0 32px; padding: 20px 22px; border: 1px solid #c5d9e7; border-left: 5px solid var(--accent); border-radius: var(--r-img); background: var(--soft); color: var(--ink); }
.static-member-process > ol { counter-reset: join-step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 36px; padding: 0; list-style: none; }
.static-member-process > ol li { counter-increment: join-step; position: relative; min-height: 132px; padding: 22px 20px 20px 66px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
.static-member-process > ol li::before { content: counter(join-step); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.static-member-process > h2 + p { padding: 18px 20px; border-radius: var(--r-img); background: var(--soft-2); }
.static-member-benefits { padding: 38px 24px; border: 1px dashed var(--border); border-radius: var(--r-card); background: var(--soft-2); text-align: center; }
.static-member-benefits p { margin: 0; color: var(--muted); }

@media (max-width: 700px) {
  .static-about-purpose > div, .static-member-qualification > div { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .static-toc { padding: 16px; }
  .static-toc ul, .static-toc li, .static-toc a { width: 100%; }
  .static-about-greeting blockquote { padding: 21px; }
  .static-about-purpose > ul, .static-about-organization > div, .static-member-process > ol { grid-template-columns: 1fr; }
  .static-about-organization table, .static-about-organization tbody, .static-about-organization tr, .static-about-organization th, .static-about-organization td { display: block; width: 100%; }
  .static-about-organization table { border: 0; }
  .static-about-organization thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .static-about-organization tbody { display: grid; gap: 12px; }
  .static-about-organization tr { overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
  .static-about-organization th, .static-about-organization td { border: 0; padding: 9px 15px; overflow-wrap: anywhere; }
  .static-about-organization th { background: #dce8f0; color: var(--navy); }
  .static-about-organization td:nth-of-type(1)::before { content: "성명 · "; color: var(--muted); font-size: var(--fs-small); font-weight: 700; }
  .static-about-organization td:nth-of-type(2)::before { content: "역할 · "; color: var(--muted); font-size: var(--fs-small); font-weight: 700; }
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h3 { padding: 15px 16px; }
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 { padding: 19px 16px 7px; }
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p,
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ol,
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ul { padding-left: 16px; padding-right: 16px; }
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ol,
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ul { padding-left: 39px; }
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ol + p,
  :is(.static-about-regulations, .static-articles-regulations, .static-articles-ethics) > h4 + p + ul + p { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 420px) { .row { flex-direction: column; gap: 4px; } }

.event-card .event-date { font-size: 15px; font-weight: 800; color: var(--accent); }
.event-list { display: grid; gap: 12px; }

/* ---- home moment carousel and gallery */
.moment-carousel { width: 100%; max-width: 960px; margin: 0 auto; min-width: 0; }
.moment-stage { background: var(--soft-2); border-radius: var(--r-card); overflow: hidden; }
.moment-slide { margin: 0; }
.moment-slide[hidden] { display: none; }
.moment-slide a { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(220px, 54vw, 600px); background: #e7edf2; }
.moment-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.moment-slide figcaption { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 14px 17px; color: var(--muted); font-size: var(--fs-meta); background: #fff; border: 1px solid var(--border); border-top: 0; }
.moment-slide figcaption strong { color: var(--ink); font-size: 16px; flex-basis: 100%; }
.moment-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; }
.moment-controls .btn { min-height: 42px; padding: 8px 14px; }
.moment-position { min-width: 52px; text-align: center; color: var(--muted); font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .moment-slide a { height: clamp(220px, 72vw, 340px); }
  .moment-slide figcaption { padding: 12px 14px; }
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); display: block; }
.photo-grid figcaption { font-size: var(--fs-meta); color: var(--muted); margin-top: 6px; }

/* ---- membership band & partners */
.band { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.band h2 { margin: 7px 0; }
.band p { margin: 0; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 25px 0 0; padding: 0; list-style: none; }
.partner { border: 1px solid var(--border); border-radius: 9px; background: #fff; min-height: 120px; display: flex; align-items: center; gap: 20px; padding: 25px; }
.partner a { display: flex; align-items: center; gap: 20px; }
.partner img { max-height: 56px; width: auto; max-width: 160px; object-fit: contain; }
.partner strong { display: block; font-size: 16px; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .partner { min-height: 92px; padding: 18px; } }

/* ---- detail pages & prose */
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; font-size: 14px; color: var(--navy); }
.detail-head { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 28px; }
.detail-head h1 { font-size: clamp(26px, 3.2vw, 38px); margin: 10px 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-meta); color: var(--muted); margin: 0; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; }
.keyfacts div { background: var(--soft-2); border: 1px solid var(--border); border-radius: var(--r-img); padding: 14px 16px; }
.keyfacts dt { font-size: var(--fs-small); color: var(--muted); font-weight: 700; }
.keyfacts dd { margin: 2px 0 0; font-weight: 800; }
.prose { line-height: 1.8; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose img { border-radius: var(--r-img); }
.prose a { color: var(--accent); text-decoration: underline; }
.prose blockquote { margin: 1em 0; padding: 4px 18px; border-left: 4px solid var(--border); color: var(--muted); }
.prose pre { overflow-x: auto; background: var(--soft-2); padding: 14px; border-radius: var(--r-img); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0; }
.table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }
.prose table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 15px; margin: 1em 0; }
.prose th, .prose td, .table th, .table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th, .table th { background: var(--soft-2); }

.attachments { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); }
.attachments-title { font-size: 18px; margin-bottom: 12px; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-link { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-img); background: #fff; }
.file-name { font-weight: 700; min-width: 0; }
.file-meta { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }

/* ---- states */
.empty-state { border: 1px dashed var(--border); border-radius: var(--r-card); padding: 26px; text-align: center; background: #fff; }
.empty-state p { margin: 0; }
.empty-state .meta { margin-top: 6px; }
.alert { border-radius: var(--r-img); padding: 14px 16px; margin: 0 0 18px; border: 1px solid; }
.alert-info { background: var(--soft); border-color: var(--border); }
.alert-error { background: var(--danger-bg); border-color: #e6b9b6; color: var(--danger); }
.alert-success { background: var(--success-bg); border-color: #b9dcc9; color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: #ecd3a3; color: var(--warning); }

/* ---- filters, forms, pagination */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 14px; font-weight: 700; background: #fff; }
.chip[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field .req { color: var(--danger); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c7d3; border-radius: var(--r-btn); background: #fff; }
.textarea { min-height: 140px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); }
.field-error { color: var(--danger); font-size: var(--fs-meta); }
.search-form { display: flex; gap: 8px; margin-bottom: 22px; }
.search-form .input { flex: 1; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 28px 0 0; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-btn); }
.pagination span[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- responsive data list (cards on mobile) */
.data-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.data-list li { border: 1px solid var(--border); border-radius: var(--r-img); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }

/* ---- footer */
.site-footer { background: var(--navy); color: var(--footer-fg); padding: 45px 0 28px; font-size: var(--fs-meta); margin-top: auto; }
.footer-grid { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-name { font-size: 19px; color: #fff; }
.footer-info { margin: 13px 0 0; }
.footer-info a { text-decoration: underline; text-underline-offset: 3px; }
.sep { margin: 0 .6em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; font-weight: 700; }
.footer-copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid #ffffff26; color: #c7d3de; font-size: var(--fs-small); }
