/* ==========================================================
   ConnectTeams — stylesheet
   Cool "field guide" theme: light panels, cobalt accent,
   navy footer, Epilogue display type. No frameworks.
   ========================================================== */

@font-face {
  font-family: 'CT Display';
  src: url('../fonts/epilogue-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CT Display';
  src: url('../fonts/epilogue-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:        #101b2d;
  --navy-deep:   #0a1220;
  --slate:       #3c4658;
  --slate-soft:  #5d6779;
  --mist:        #8b94a5;
  --bg:          #eef1f6;
  --panel:       #ffffff;
  --edge:        #d7dce5;
  --edge-soft:   #e5e9f0;
  --blue:        #2452c5;
  --blue-deep:   #183a92;
  --blue-tint:   #e3ebfb;
  --coral:       #d95b43;
  --coral-tint:  #fbe9e5;
  --teal:        #0e7a6d;
  --teal-tint:   #ddf0ed;

  --font-ui:    'CT Display', 'Segoe UI', system-ui, sans-serif;
  --font-text:  'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --font-code:  ui-monospace, 'Cascadia Code', Consolas, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(16,27,45,.07), 0 10px 26px rgba(16,27,45,.07);
  --wrap: 1140px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-text);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
}

img, video, iframe, embed, object { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { max-width: 100%; box-sizing: border-box; font-family: var(--font-text); }
ul, ol { list-style: none; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-ui); color: var(--navy); line-height: 1.18; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.85rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
h4 { font-size: 1rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.text-muted { color: var(--mist); }

/* --- helpers ------------------------------------------------ */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--panel { background: var(--panel); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 700; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 12px;
}
.kicker::before { content: ''; width: 22px; height: 3px; background: var(--coral); border-radius: 2px; }

.skip-link {
  position: absolute; top: -120%; left: 12px; z-index: 9999;
  background: var(--navy); color: #fff; padding: 9px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; font-size: .9rem; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* --- buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; min-height: 46px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-size: .88rem; letter-spacing: .02em;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-quiet { background: var(--blue-tint); color: var(--blue-deep); }
.btn-quiet:hover { background: #d3e0f8; color: var(--blue-deep); text-decoration: none; }
.btn-sm { padding: 7px 16px; min-height: 36px; font-size: .8rem; }

/* --- group chips ---------------------------------------------- */
.chip {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.chip--basics   { background: var(--blue-tint);  color: var(--blue-deep); }
.chip--meetings { background: var(--teal-tint);  color: var(--teal); }
.chip--files    { background: #efe8fb; color: #5b3ea6; }
.chip--admin    { background: #fbe9e5; color: #b0492f; }
.chip--security { background: #eaf3e5; color: #43702e; }
.chip--adoption { background: #fdf3dc; color: #8f6a12; }
.chip:hover { filter: brightness(.96); text-decoration: none; }

/* --- header ---------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge);
}
.topbar__inner { display: flex; align-items: center; gap: 14px; padding: 10px 0; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.18);
}
.brand__name {
  font-family: var(--font-ui); font-weight: 700; font-size: 1.16rem;
  letter-spacing: -.01em; line-height: 1.1; color: var(--navy);
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .brand__name {
    background-image: linear-gradient(90deg, var(--navy) 0 52%, var(--blue) 52% 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.brand__sub { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.brand:hover .brand__name { filter: brightness(1.2); }
.foot .brand__name { color: #fff; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .foot .brand__name {
    background-image: linear-gradient(90deg, #ffffff 0 52%, #9db8f0 52% 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

.nav-main { display: none; margin-left: auto; }
.nav-main ul { display: flex; align-items: center; gap: 4px; }
.nav-main a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-size: .84rem;
  color: var(--slate); text-decoration: none;
}
.nav-main a:hover { background: var(--blue-tint); color: var(--blue-deep); text-decoration: none; }
.nav-main a[aria-current="page"] { background: var(--navy); color: #fff; }

.topbar__phone {
  display: none; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--edge);
  font-family: var(--font-ui); font-weight: 600; font-size: .8rem;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.topbar__phone:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.topbar__phone::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; margin-left: auto;
  background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius);
  cursor: pointer; padding: 11px 12px;
}
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; background: var(--panel); border-bottom: 1px solid var(--edge); padding: 8px 0 16px;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a { display: block; padding: 12px 22px; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--edge-soft); }
.nav-mobile a:hover { background: var(--blue-tint); }
.nav-mobile .brand-sub { display: block; padding: 8px 22px 8px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); font-family: var(--font-ui); font-weight: 600; }

/* --- hero (home) ------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(36,82,197,.16), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(14,122,109,.12), transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--edge);
  padding: 72px 0 64px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16,27,45,.13) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .35;
}
.hero__inner { position: relative; }
.hero h1 { max-width: 780px; margin-bottom: 18px; }
.hero h1 .accent { color: var(--blue); }
.hero__lede { font-size: clamp(1.02rem, 2vw, 1.17rem); color: var(--slate-soft); max-width: 660px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 34px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--edge); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; width: fit-content; }
.hero__stats div { display: flex; flex-direction: column; gap: 2px; padding: 14px 26px; border-right: 1px solid var(--edge-soft); }
.hero__stats div:last-child { border-right: 0; }
.hero__stats b { font-family: var(--font-ui); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.hero__stats span { font-size: .7rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
@media (max-width: 639px) {
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero__stats div { padding: 14px 18px; border-bottom: 1px solid var(--edge-soft); }
  .hero__stats div:nth-child(2n) { border-right: 0; }
  .hero__stats div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* --- home section headers ---------------------------------------- */
.group-wall { display: grid; grid-template-columns: 1fr; gap: 14px; }
.group-tile { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; transition: border-color .18s, box-shadow .18s; }
.group-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.group-tile__top { display: flex; align-items: center; gap: 12px; }
.group-tile__no { font-family: var(--font-code); font-size: .78rem; color: var(--coral); font-weight: 700; }
.group-tile h3 { margin-right: auto; }
.group-tile p { font-size: .9rem; color: var(--slate-soft); margin-bottom: 2px; }
.group-tile__link { font-family: var(--font-ui); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.group-tile__link::after { content: ' →'; }
.group-tile__link:hover { color: var(--blue-deep); }

/* --- chapter index rows (home + library) -------------------------- */
.rows { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.row {
  display: grid; grid-template-columns: 54px 1fr; gap: 4px 14px; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--edge-soft);
  text-decoration: none; transition: background .15s;
}
.row:last-child { border-bottom: none; }
.row:hover { background: #f6f9ff; }
.row:hover .row__title { color: var(--blue); }
.row__no { grid-row: 1 / 3; font-family: var(--font-code); font-weight: 700; font-size: 1.02rem; color: var(--mist); text-align: right; }
.row__title { font-family: var(--font-ui); font-weight: 600; font-size: 1.02rem; color: var(--navy); line-height: 1.3; text-decoration: none; }
.row__meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .76rem; color: var(--mist); }
.row__meta strong { color: var(--slate-soft); font-weight: 600; }

/* --- library / sidebar layout ------------------------------------- */
.lib-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding: 44px 0 70px; }
.lib-side { align-self: start; }
.lib-side__box { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 86px; }
.lib-side__box h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); font-family: var(--font-ui); font-weight: 700; margin-bottom: 12px; }
.lib-side__box ul { display: flex; flex-direction: column; gap: 4px; }
.lib-side__box a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  font-size: .88rem; font-family: var(--font-ui); font-weight: 600; color: var(--slate); text-decoration: none;
}
.lib-side__box a:hover, .lib-side__box a.is-on { background: var(--blue-tint); color: var(--blue-deep); }
.lib-side__box a .count { float: right; font-family: var(--font-code); font-size: .72rem; color: var(--mist); }
.lib-note { margin-top: 18px; font-size: .82rem; color: var(--mist); line-height: 1.6; }

.lib-nav {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border: 0; border-radius: var(--radius);
  background: transparent; cursor: pointer;
  font-size: .88rem; font-family: var(--font-ui); font-weight: 600; color: var(--slate);
}
.lib-nav:hover, .lib-nav.is-on { background: var(--blue-tint); color: var(--blue-deep); }
.lib-nav .count { float: right; font-family: var(--font-code); font-size: .72rem; color: var(--mist); }

.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { cursor: pointer; border: 1px solid transparent; background: var(--panel); color: var(--slate-soft); font-family: var(--font-ui); font-weight: 600; letter-spacing: .08em; padding: 7px 14px; }
.chips-scroll .chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chips-scroll .chip.is-active { background: var(--navy); color: #fff; }

/* --- article ------------------------------------------------------- */
.article-top { background: var(--navy); color: #eef1f6; padding: 46px 0 42px; position: relative; overflow: hidden; }
.article-top::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(36,82,197,.5), transparent 70%); pointer-events: none;
}
.article-top h1 { color: #fff; max-width: 800px; margin-bottom: 14px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.article-top .kicker { color: #f5b3a5; }
.article-top .kicker::before { background: var(--coral); }
.article-top__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .8rem; color: rgba(238,241,246,.75); font-family: var(--font-ui); font-weight: 600; }
.article-top__meta strong { color: #fff; }
.article-top__meta .dot::before { content: '·'; padding: 0 8px 0 0; color: rgba(238,241,246,.4); }

.crumb { background: var(--panel); border-bottom: 1px solid var(--edge-soft); padding: 9px 0; }
.crumb ul { display: flex; flex-wrap: wrap; gap: 0; align-items: center; font-size: .78rem; color: var(--mist); }
.crumb li + li::before { content: '›'; padding: 0 7px; color: var(--edge); }
.crumb a { color: var(--slate-soft); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.crumb [aria-current="page"] { color: var(--navy); font-family: var(--font-ui); font-weight: 600; }

.article-wrap { max-width: 760px; margin: 0 auto; padding: 40px 0 70px; }
.article-cover { width: 100%; aspect-ratio: 2 / 1; border-radius: var(--radius-lg); border: 1px solid var(--edge); margin: 0 0 36px; background: var(--panel); }

.prose h2 { margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--blue); }
.prose h3 { margin: 28px 0 10px; color: var(--blue-deep); }
.prose p { color: var(--slate); margin-bottom: 1.1em; }
.prose ul, .prose ol { list-style: disc; margin: 14px 0 18px 26px; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose code { font-family: var(--font-code); font-size: .87em; background: var(--blue-tint); color: var(--blue-deep); border-radius: 4px; padding: 2px 7px; }
.prose pre { background: var(--navy-deep); color: #d9e2f2; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: .85rem; line-height: 1.6; margin: 18px 0; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--coral); background: var(--coral-tint); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { font-style: italic; margin-bottom: 0; }

.tipx { margin: 26px 0; padding: 18px 22px; background: var(--teal-tint); border: 1px solid #bcded8; border-radius: var(--radius-lg); }
.tipx h4 { display: flex; align-items: center; gap: 8px; color: var(--teal); font-family: var(--font-ui); font-weight: 700; margin-bottom: 7px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.tipx p, .tipx li { font-size: .9rem; color: #1e554d; }

.tagstray-cap { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); font-family: var(--font-ui); font-weight: 700; margin-top: 46px; }
.tagstray { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-bottom: 26px; border-bottom: 1px solid var(--edge-soft); }
.tag-link { padding: 5px 13px; background: var(--panel); border: 1px solid var(--edge); border-radius: 999px; font-size: .74rem; font-family: var(--font-ui); font-weight: 600; color: var(--slate-soft); text-decoration: none; }
.tag-link:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-tint); }

.nextprev { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 50px 0 0; }
.nextprev a {
  display: block; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg);
  padding: 16px 20px; text-decoration: none;
}
.nextprev a:hover { border-color: var(--blue); }
.nextprev span { display: block; font-family: var(--font-ui); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 5px; }
.nextprev b { font-family: var(--font-ui); font-weight: 600; color: var(--navy); font-size: .95rem; }
.nextprev a:hover b { color: var(--blue); }

.reader-box { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: 18px 22px; margin-top: 40px; }
.reader-box__pic { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: #fff; }
.reader-box__name { font-family: var(--font-ui); font-weight: 700; color: var(--navy); font-size: .95rem; }
.reader-box__role { display: block; font-family: var(--font-ui); font-weight: 600; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin: 1px 0 6px; }
.reader-box p { font-size: .86rem; color: var(--slate-soft); margin: 0; }

.also { padding: 46px 0; background: var(--panel); border-top: 1px solid var(--edge); }
.also h2 { margin-bottom: 20px; }
.also-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.also-card { border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: 18px 20px; text-decoration: none; background: var(--bg); transition: border-color .16s, background .16s; }
.also-card:hover { border-color: var(--blue); background: #f6f9ff; }
.also-card__cat { margin-bottom: 8px; }
.also-card b { display: block; font-family: var(--font-ui); font-weight: 600; color: var(--navy); font-size: .98rem; margin-bottom: 4px; text-decoration: none; }
.also-card:hover b { color: var(--blue-deep); }
.also-card small { color: var(--mist); font-size: .78rem; }

/* --- static pages --------------------------------------------------- */
.banner { background: var(--navy); color: #eef1f6; padding: 48px 0 44px; position: relative; overflow: hidden; }
.banner::after {
  content: ''; position: absolute; left: -40px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,91,67,.35), transparent 70%); pointer-events: none;
}
.banner h1 { color: #fff; margin-bottom: 12px; }
.banner p { color: rgba(238,241,246,.8); max-width: 640px; }
.banner .kicker { color: #f5b3a5; }

.ledger { max-width: 800px; margin: 0 auto; padding: 46px 0 70px; }
.ledger .stamp { font-family: var(--font-ui); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); padding: 6px 12px; background: var(--panel); border: 1px solid var(--edge); border-radius: 999px; display: inline-block; margin-bottom: 30px; }
.ledger h2 { margin: 38px 0 12px; padding-top: 14px; border-top: 1px solid var(--edge); }
.ledger h3 { margin: 18px 0 6px; }
.ledger p, .ledger li { color: var(--slate); font-size: .93rem; line-height: 1.75; }
.ledger ul, .ledger ol { list-style: disc; margin: 10px 0 14px 26px; }
.ledger ol { list-style: decimal; }
.ledger li { margin-bottom: 5px; }
.ledger table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .84rem; }
.ledger th, .ledger td { padding: 9px 12px; border: 1px solid var(--edge); text-align: left; vertical-align: top; }
.ledger th { background: var(--blue-tint); color: var(--navy); font-family: var(--font-ui); font-weight: 600; }
.callout { background: var(--blue-tint); border: 1px solid #c8d7f4; border-radius: var(--radius-lg); padding: 18px 22px; margin: 24px 0; }
.callout p { font-size: .9rem; color: #22386e; }

/* --- about bits ------------------------------------------------------ */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0; }
.facts div { background: var(--panel); border: 1px solid var(--edge); border-bottom: 3px solid var(--blue); border-radius: var(--radius-lg); padding: 16px 14px; text-align: center; }
.facts b { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 1.7rem; color: var(--navy); }
.facts span { font-family: var(--font-ui); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }

.people { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0; }
.person { display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: 22px; }
.person__pic { width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem; color: #fff; }
.person h3 { font-size: 1.02rem; margin-bottom: 2px; }
.person .role { font-family: var(--font-ui); font-weight: 600; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); display: block; margin-bottom: 8px; }
.person p { font-size: .88rem; color: var(--slate-soft); margin: 0; }

.credo { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.credo li { display: flex; gap: 14px; align-items: flex-start; }
.credo .n { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.credo h4 { margin-bottom: 3px; font-size: .95rem; }
.credo p { font-size: .87rem; color: var(--slate-soft); margin: 0; }

/* --- contact ----------------------------------------------------------- */
.contact-cols { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 46px 0 70px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-line b.glyph { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius); background: var(--blue-tint); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.contact-line .cap { font-family: var(--font-ui); font-weight: 700; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: 4px; }
.contact-line, .contact-line a { font-size: .93rem; color: var(--navy); }
.contact-line a { font-weight: 600; text-decoration: none; }
.contact-line a:hover { color: var(--blue); }
address { font-style: normal; }

.panel-card { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.panel-card h2 { font-size: 1.3rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-ui); font-weight: 600; font-size: .82rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; font-size: .96rem; color: var(--slate);
  background: #fbfcfe; border: 1px solid var(--edge); border-radius: var(--radius); min-height: 44px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,82,197,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.ghost-field { position: absolute !important; left: -9999px !important; top: 0 !important; height: 1px; width: 1px; overflow: hidden; }

.sent-box { text-align: center; padding: 40px 20px; }
.sent-box .ok { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: var(--teal-tint); border: 2px solid var(--teal); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.sent-box h3 { margin-bottom: 8px; }
.sent-box p { color: var(--slate-soft); font-size: .92rem; }

.atlas { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--edge); box-shadow: var(--shadow); margin-top: 30px; background: var(--panel); }
.atlas svg { display: block; width: 100%; height: 300px; }
.atlas__tag { border-top: 1px solid var(--edge); padding: 12px 16px; font-size: .82rem; color: var(--slate); line-height: 1.55; }
.atlas__tag strong { color: var(--navy); }

/* --- footer ------------------------------------------------------------ */
.foot {
  background: var(--navy-deep); color: rgba(238,241,246,.78);
  border-top: 4px solid var(--blue); padding: 54px 0 0;
}
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.foot .brand__sub { color: rgba(238,241,246,.5); }
.foot__about { font-size: .86rem; color: rgba(238,241,246,.6); line-height: 1.65; }
.foot h4 {
  font-family: var(--font-ui); font-weight: 700; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: #9db8f0; margin-bottom: 14px;
}
.foot li { margin-bottom: 9px; }
.foot li a { color: rgba(238,241,246,.72); font-size: .87rem; text-decoration: none; }
.foot li a:hover { color: #fff; text-decoration: underline; }
.foot address { font-style: normal; }
.foot address p { font-size: .85rem; color: rgba(238,241,246,.68); margin-bottom: 7px; }
.foot address a { color: rgba(238,241,246,.8); text-decoration: none; }
.foot address a:hover { color: #fff; }
.foot__rule { font-size: .75rem; color: rgba(238,241,246,.5); line-height: 1.65; padding: 18px 0; border-top: 1px solid rgba(238,241,246,.1); margin-top: 26px; }
.foot__legal { border-top: 1px solid rgba(238,241,246,.1); padding: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.foot__legal p { font-size: .76rem; color: rgba(238,241,246,.55); margin: 0; }
.foot__legal nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot__legal nav a { font-size: .78rem; color: rgba(238,241,246,.66); text-decoration: none; }
.foot__legal nav a:hover { color: #fff; }

/* --- responsive ---------------------------------------------------------- */
@media (min-width: 520px) { .container { padding: 0 24px; } }

@media (min-width: 700px) {
  .people { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .also-grid { grid-template-columns: repeat(2, 1fr); }
  .nextprev { grid-template-columns: 1fr 1fr; }
  .group-wall { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 64px 1fr auto; }
  .row__meta { grid-column: auto; justify-content: flex-end; }
  .row__meta .dot::before { display: none; }
}

@media (min-width: 768px) {
  .container { padding: 0 28px; }
  .section { padding: 64px 0; }
  .contact-cols { grid-template-columns: 1fr 1.35fr; }
  .foot__grid { grid-template-columns: 1.8fr 1fr 1fr 1.25fr; }
  .hero { padding: 88px 0 76px; }
}

@media (min-width: 1024px) {
  .nav-main { display: block; }
  .burger { display: none; }
  .nav-mobile.is-open { display: none; }
  .lib-grid { grid-template-columns: 250px 1fr; }
  .group-wall { grid-template-columns: repeat(3, 1fr); }
  .also-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { max-width: 88%; }
}

@media (min-width: 1240px) {
  .topbar__phone { display: inline-flex; }
  .burger { margin-left: 0; }
  .nav-main { margin-left: auto; }
  .topbar__phone { margin-left: 14px; }
  .container { padding: 0 34px; }
  .hero { padding: 100px 0 84px; }
}

/* --- photo cards (home + library) ----------------------------------- */
.feed-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover { border-color: var(--blue); transform: translateY(-3px); text-decoration: none; }
.card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__no {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  min-width: 34px; padding: 3px 9px; border-radius: 999px; text-align: center;
  background: rgba(16,27,45,.82); color: #fff;
  font-family: var(--font-code); font-weight: 700; font-size: .74rem;
}
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.card__read { font-size: .76rem; color: var(--mist); }
.card__title { font-family: var(--font-ui); font-weight: 600; font-size: 1.04rem; line-height: 1.3; color: var(--navy); }
.card:hover .card__title { color: var(--blue); }
.card__foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--edge-soft);
  display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--mist);
}
.card__foot strong { color: var(--slate-soft); font-weight: 600; }
.card__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.feed-footer { text-align: center; padding-top: 34px; }

.lib-main { min-width: 0; }
.lib-main .feed-grid { margin-top: 0; }

/* --- author photos ---------------------------------------------------- */
.reader-box__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* --- article cover (photo) ----------------------------------------------- */
.article-cover { object-fit: cover; aspect-ratio: 16 / 7; }

@media (min-width: 640px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
  .lib-main .feed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1240px) {
  .lib-main .feed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
