/* GENERATED by tools/vendor_fonts.py -- do not edit by hand.
 *
 * The three faces the site uses, vendored from Google Fonts so nothing is
 * fetched from a third party at runtime. Only the subsets the Next config
 * asked for are here, and no italic: the hero's italic word is synthesised
 * from the normal face, which halves what the LCP has to wait for.
 *
 * display: swap everywhere, so text paints immediately in the fallback.
 */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('media/poppins-latin-400.woff2?v=7d93459d') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('media/poppins-latin-500.woff2?v=cd36de20') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('media/poppins-latin-600.woff2?v=f4e80d9d') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('media/poppins-latin-700.woff2?v=9338e65f') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('media/dmsans-latin-300.woff2?v=9fea608a') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('media/dmsans-latin-400.woff2?v=9fea608a') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('media/dmsans-latin-500.woff2?v=9fea608a') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('media/dmsans-latin-600.woff2?v=9fea608a') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Tiro Bangla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('media/tirobangla-bengali-400.woff2?v=7132520b') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}

@font-face {
  font-family: 'Tiro Bangla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('media/tirobangla-latin-400.woff2?v=bb748ffc') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CaptionBee — site styles.
 *
 * Design tokens are copied verbatim from the Next app's app/globals.css so the
 * port starts from the real values. (The project memory describes an older warm
 * red/cream palette with Cormorant Garamond; that was the 2026-06-30 handoff and
 * was replaced in code by this emerald/sage system. Trust the code.)
 *
 * This file currently covers tokens, the base layer and the chrome needed to
 * read a page. Porting the Tailwind utility classes used across the 31 page
 * templates is its own stage — see section C of MIGRATION-CHECKLIST.md.
 *
 * Fonts are vendored into assets/media/ by tools/vendor_fonts.py and declared
 * in the generated assets/fonts.css. Poppins carries the headings and the hero
 * h1 (the LCP element) and is preloaded; DM Sans reads the body and Tiro Bangla
 * the Bengali content, neither preloaded, so they stay off the critical path.
 */

:root {
  /* --font-display is used on its own, so it carries its fallbacks. The other
     two are only ever composed together on <body>, and they must stay BARE:
     baking "system-ui" into each one put it ahead of the Bengali face in the
     composed stack, and system-ui has Bengali glyphs on Windows and Android,
     so Tiro Bangla would never have been reached. */
  --font-display: 'Poppins', system-ui, "Segoe UI", sans-serif;
  --font-sans-ui: 'DM Sans';
  --font-bengali: 'Tiro Bangla';

  --color-accent: #059669;       /* emerald-600 */
  --color-accent-light: #ecfdf5; /* emerald-50 */
  --color-ink: #1c1917;          /* warm near-black */
  --color-ink-soft: #6b6560;
  --color-ink-mute: #605b54;     /* darkened for WCAG AA on white + cream */
  --color-cream: #dae2cd;        /* soft warm-sage band/input background */
  --color-cream-2: #cdd8ba;
  --color-line: #c2cdb3;         /* sage border */
}

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

html {
  scroll-behavior: smooth;
  /* Larger base on purpose — every rem on the site scales off this. */
  font-size: 17px;
}

body {
  margin: 0;
  font-family: var(--font-sans-ui), var(--font-bengali), system-ui, sans-serif;
  /* Unitless on purpose. Tailwind pairs every text size with a 1.5 leading,
     so on the live site a 15.5px line is 23.25px tall, not the 25.5px an
     inherited absolute value would give. A ratio inherits as a ratio and
     reproduces that everywhere; the handful of elements with their own
     leading (the brand, the relaxed paragraphs) still override it. */
  line-height: 1.5;
  color: var(--color-ink);
  background: #fff;
  overflow-x: clip;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img, svg, canvas { max-width: 100%; height: auto; }

/* Break a child out of its padded container to span the viewport (cream bands). */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---- shell ------------------------------------------------------------- */

.site-main {
  max-width: 1520px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

@media (min-width: 640px) {
  .site-main { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ---- header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.0588rem;
  height: 58px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .site-header__bar { padding: 0 2.5rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__rule {
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--color-accent);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-accent);
}

.site-search {
  display: flex;
  height: 36px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  border: 1.5px solid var(--color-line);
  border-radius: 0.5rem;
  background: var(--color-cream);
}

.site-search__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding-left: 0.75rem;
  color: var(--color-ink-mute);
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 15.5px;
  color: var(--color-ink);
}

.site-search input:focus { outline: none; }

.site-search button {
  flex-shrink: 0;
  font-weight: 500;
  border: 0;
  padding: 0 18px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  cursor: pointer;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 36px;
  padding: 0 20px;
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 15.5px;
  text-decoration: none;
}

.btn--accent { background: var(--color-accent); font-weight: 500; color: #fff; }
.btn--accent:hover { opacity: 0.9; }
.btn--quiet { height: auto; padding: 0; color: var(--color-ink-soft); }
.btn--quiet:hover { color: var(--color-accent); }

/* "Publish a Quote" is hidden on small screens, as in the Next header. */
@media (max-width: 639px) {
  .site-header__actions .btn--accent { display: none; }
}

.site-nav { border-top: 1px solid var(--color-line); }

.site-nav__strip {
  display: flex;
  align-items: stretch;
  height: 44px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1.25rem;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .site-nav__strip { padding: 0 2.5rem; }
}

.site-nav__link {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 16px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--color-ink-soft);
  text-decoration: none;
}

.site-nav__link:hover { color: var(--color-accent); }

.site-nav__link.is-active {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 500;
}

/* ---- footer ------------------------------------------------------------ */

.site-footer {
  margin-top: 4rem;
  background: #022c22;
  color: #6e8b80;
}

.site-footer__grid {
  display: grid;
  gap: 3rem;
  max-width: 1520px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

@media (min-width: 640px) {
  .site-footer__grid { padding-left: 2.5rem; padding-right: 2.5rem; }
}

@media (min-width: 768px) {
  /* Three columns since the newsletter block went: the brand keeps its wider
     share and the two link lists split the rest. */
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

.brand--footer { display: flex; gap: 0.625rem; }
.brand--footer .brand__rule { width: 4px; height: 18px; border-radius: 2px; }
.brand--footer .brand__name { font-size: 26px; letter-spacing: -0.3px; }

.site-footer__tagline { margin: 1rem 0 0; font-size: 15.5px; line-height: 1.625; }
.site-footer__email { margin: 0.75rem 0 0; font-size: 17px; line-height: 1.5; }

.site-footer__heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a7c3b8;
}

.site-footer__list { margin: 0; padding: 0; list-style: none; font-size: 15.5px; line-height: 1.5; }
.site-footer__list li + li { margin-top: 0.75rem; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { color: #fff; }




.site-footer__legal {
  border-top: 1px solid #0a3d2d;
  padding: 22px 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: #3f5a50;
}

/* ---- 404 --------------------------------------------------------------- */

.notfound { max-width: 40rem; margin: 3rem auto; text-align: center; }

.notfound__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}

.notfound__title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-ink);
}

.notfound__body { margin: 0.75rem 0 0; color: var(--color-ink-soft); line-height: 1.7; }

.notfound__search {
  display: flex;
  gap: 0.5rem;
  max-width: 26rem;
  margin: 1.75rem auto 0;
}

.notfound__search input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--color-line);
  border-radius: 0.5rem;
  background: var(--color-cream);
  padding: 0.625rem 0.875rem;
  font: inherit;
}

.notfound__search button {
  flex-shrink: 0;
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-accent);
  padding: 0.625rem 1.25rem;
  color: #fff;
  font-family: var(--font-display);
  cursor: pointer;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.notfound__links a { color: var(--color-accent); }

/* ---- rich text from blog/page HTML ------------------------------------- */

.prose-content { line-height: 1.85; color: #374151; }
.prose-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #111827; }
.prose-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #111827; }
.prose-content p { margin: 0.75rem 0; }
.prose-content ul, .prose-content ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.prose-content a { color: #d97706; text-decoration: underline; }
.prose-content img { border-radius: 0.75rem; margin: 1rem 0; }
.prose-content blockquote {
  border-left: 4px solid #fcd34d;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6b7280;
  font-style: italic;
}

/* ---- content + sidebar grid -------------------------------------------- */

.site-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-grid__content { min-width: 0; }

@media (min-width: 1024px) {
  .site-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .site-grid__content { grid-column: span 8 / span 8; }
  .site-grid__aside { grid-column: span 4 / span 4; }
}

/* Two-line truncation — the port of the line-clamp-2 utility. */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- shared page furniture --------------------------------------------- */

.breadcrumb { margin-bottom: 1rem; font-size: 0.82rem; color: var(--color-ink-mute); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb__sep { margin: 0 0.25rem; }
.breadcrumb__current { color: var(--color-ink-soft); }

.page-head {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.5rem;
}

.page-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-ink);
}

.page-head__intro { margin: 0.5rem 0 0; color: var(--color-ink-soft); line-height: 1.7; }

.empty-state { padding: 4rem 0; text-align: center; color: var(--color-ink-mute); }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-row--tight { margin-top: 0.75rem; }

/* Rounded rectangles, not pills. */
.chip {
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  background: var(--color-cream);
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  color: var(--color-ink-soft);
  text-decoration: none;
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.chip--soft { background: var(--color-accent-light); border-color: transparent; color: #047857; }
.chip--soft:hover { background: #d1fae5; }

.count-badge {
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: var(--color-accent-light);
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  color: #047857;
}

/* ---- /categories ------------------------------------------------------- */

.cat-group { margin-top: 2.5rem; }

.cat-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cat-group__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
}

.cat-group__all { font-size: 0.82rem; color: var(--color-accent); text-decoration: none; }
.cat-group__all:hover { text-decoration: underline; }

.cat-card {
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}

.cat-card__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
}

.cat-card__name { font-size: 1.05rem; font-weight: 600; color: var(--color-ink); }
.cat-card__main:hover .cat-card__name { color: var(--color-accent); }

/* ---- sidebar ----------------------------------------------------------- */

.sidebar { display: flex; flex-direction: column; gap: 2rem; }

.sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-ink);
}

.sidebar__panel {
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem;
}

.sidebar__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}
.sidebar__more:hover { text-decoration: underline; }

.sidebar__list { margin: 0; padding: 0; list-style: none; }
.sidebar__list--divided > li { padding: 0.75rem 0; border-top: 1px solid var(--color-line); }
.sidebar__list--divided > li:first-child { padding-top: 0; border-top: 0; }
.sidebar__list--divided > li:last-child { padding-bottom: 0; }

.sidebar__quote {
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
  text-decoration: none;
}
.sidebar__quote:hover { color: var(--color-accent); }

.sidebar__row { border-bottom: 1px solid var(--color-line); }
.sidebar__row:last-child { border-bottom: 0; }

.sidebar__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  text-decoration: none;
}
.sidebar__person:hover .sidebar__person-name { color: var(--color-accent); }
.sidebar__person-text { min-width: 0; }
.sidebar__person-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar__person-role {
  display: block;
  font-size: 0.76rem;
  color: var(--color-ink-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
}

.sidebar__blog {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.sidebar__blog:hover { background: var(--color-cream); }
.sidebar__blog:hover .sidebar__blog-title { color: var(--color-accent); }
.sidebar__blog-text { min-width: 0; }
.sidebar__blog-title {
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink);
}
.sidebar__blog-date { display: block; margin-top: 0.1rem; font-size: 0.68rem; color: var(--color-ink-mute); }

.thumb {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  background: var(--color-cream);
}
.thumb img { width: 48px; height: 48px; object-fit: cover; }
.thumb__letter {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink-mute);
}

/* ---- calendar ---------------------------------------------------------- */

.calendar {
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 18px;
}

.calendar__head { display: flex; align-items: center; justify-content: space-between; }

.calendar__nav {
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  padding: 0.25rem 0.4rem;
  font-size: 1rem;
  color: var(--color-ink-mute);
  cursor: pointer;
}
.calendar__nav:hover { background: var(--color-cream); }

.calendar__label { font-size: 1rem; font-weight: 500; color: var(--color-ink); }

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-top: 0.75rem;
  text-align: center;
}

.calendar__dow { padding: 0.25rem 0; font-size: 0.65rem; font-weight: 600; color: var(--color-ink-mute); }

.calendar__day {
  border-radius: 5px;
  padding: 0.35rem 0;
  font-size: 0.74rem;
  color: var(--color-ink);
  text-decoration: none;
}
.calendar__day:hover { background: var(--color-accent-light); }
.calendar__day--empty { visibility: hidden; }
.calendar__day.is-today { background: var(--color-accent); font-weight: 700; color: #fff; }

/* ---- quote cards ------------------------------------------------------- */

.quote-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}

.quote-card__text {
  margin: 0;
  white-space: pre-line;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
}
.quote-card__text a { text-decoration: none; }
.quote-card__text a:hover { color: var(--color-accent); }

.quote-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quote-card__meta { min-width: 0; font-size: 0.82rem; color: var(--color-ink-mute); }
.quote-card__author { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-card__cat { color: var(--color-accent); text-decoration: none; }
.quote-card__cat:hover { text-decoration: underline; }

.btn-copy {
  flex-shrink: 0;
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-accent);
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.btn-copy:hover { opacity: 0.9; }
.btn-copy.is-copied { background: #047857; }

/* ---- load more --------------------------------------------------------- */

.load-more { margin-top: 2rem; text-align: center; }

.btn-loadmore {
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-accent);
  padding: 0.6rem 1.5rem;
  font: inherit;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.btn-loadmore:hover { opacity: 0.9; }
.btn-loadmore[disabled] { opacity: 0.6; cursor: default; }

/* ---- FAQ --------------------------------------------------------------- */

.page-head__count { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--color-accent); }

.faq { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }

.faq__item {
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem;
}

.faq__q { font-weight: 600; color: var(--color-ink); }
.faq__a { margin: 0.25rem 0 0; color: var(--color-ink-soft); line-height: 1.7; }

/* ---- quote detail ------------------------------------------------------ */

.site-grid--spaced { margin-top: 3rem; }

.quote-detail { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

@media (min-width: 1024px) {
  .quote-detail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .quote-detail__text { grid-column: span 3 / span 3; }
  .quote-detail__card { grid-column: span 2 / span 2; }
}

.quote-detail__text {
  border: 1px solid var(--color-line);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--color-accent-light), #fff);
  padding: 2rem;
}

/* The caption is both the quotation and the page heading: <blockquote> wraps
   an <h1>, because <h1> cannot contain a <blockquote>. Both reset to zero so
   the rendering is identical to the bare blockquote production uses. */
.quote-detail__block { margin: 0; }

.quote-detail__quote {
  margin: 0;
  white-space: pre-line;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-ink);
}

@media (min-width: 640px) {
  .quote-detail__quote { font-size: 1.7rem; }
}

.quote-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quote-detail__author { color: var(--color-ink-soft); }
.quote-detail__copies { font-size: 0.82rem; color: var(--color-ink-mute); }

/* The image card. Its text is real DOM text, not a canvas, so the caption is
   indexable; the canvas is only used for the PNG download. */
.caption-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 1.5rem;
  background: #fff;
}

.caption-card__stage {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(145deg, #05291e, #0c4736);
}

.caption-card__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.caption-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  white-space: pre-line;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) { .caption-card__text { font-size: 1.4rem; } }

.caption-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
}

.caption-card__label { font-size: 0.82rem; color: var(--color-ink-mute); }
.caption-card__canvas { display: none; }

.quote-grid--two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .quote-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .quote-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- image tile grid --------------------------------------------------- */

.img-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .img-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.img-tile {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: var(--color-cream);
  aspect-ratio: 1 / 1;
}

.img-tile img,
.img-tile picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head__count a { color: var(--color-accent); }
.page-head__count a:hover { text-decoration: underline; }

/* ---- plain page headings ----------------------------------------------- */

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-ink);
}

.page-title__intro { margin: 0.5rem 0 0; color: var(--color-ink-soft); }

/* Tinted page header, used by /ramadan. Named apart from the homepage .hero
   on purpose: they collided, and this gradient leaked onto the homepage. */
.tinted {
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--color-accent), #0d9488);
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.tinted__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
}

.tinted__intro { margin: 0.5rem 0 0; color: #d1fae5; }

/* ---- person cards ------------------------------------------------------ */

.person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .person-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
}
.person-card:hover { border-color: var(--color-accent); }

.person-card__name { margin-top: 0.75rem; font-weight: 600; color: var(--color-ink); }
.person-card__role { margin-top: 0.1rem; font-size: 0.82rem; color: var(--color-ink-mute); }

.avatar--lg { width: 72px; height: 72px; font-size: 1.7rem; }

.empty-state a { color: var(--color-accent); }
.empty-state a:hover { text-decoration: underline; }

/* ---- pagination -------------------------------------------------------- */

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pager__num,
.pager__step {
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  text-decoration: none;
}

.pager__num:hover,
.pager__step:hover { border-color: var(--color-accent); color: var(--color-accent); }

.pager__num.is-current {
  border-color: var(--color-accent);
  background: var(--color-accent);
  font-weight: 500;
  color: #fff;
}

.pager__gap { padding: 0 0.25rem; color: var(--color-ink-mute); }

/* ---- people grids ------------------------------------------------------ */

.person-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .person-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .person-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.person-grid--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .person-grid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .person-grid--dense { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.people-more { margin-top: 2rem; text-align: center; }
.people-more a { color: var(--color-accent); }
.people-more a:hover { text-decoration: underline; }

/* ---- person profile ---------------------------------------------------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 1.5rem;
  background: #fff;
  padding: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .profile { flex-direction: row; text-align: left; }
  .profile__facts, .profile__socials { justify-content: flex-start; }
}

.profile__body { min-width: 0; }

.profile__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-ink);
}

.profile__title { margin: 0.25rem 0 0; color: var(--color-ink-soft); }

.profile__facts,
.profile__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.profile__socials a { color: var(--color-accent); }
.profile__socials a:hover { text-decoration: underline; }

.chip--plain {
  border-color: transparent;
  background: var(--color-cream);
  color: var(--color-ink-soft);
}

.avatar--xl {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  font-size: 2.8rem;
}

.panel {
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
}

.profile__bio {
  margin: 0;
  white-space: pre-line;
  line-height: 1.8;
  color: var(--color-ink-soft);
}

/* ---- blog shell -------------------------------------------------------- */

.site-grid--blog { margin-top: 1.5rem; }

.blog-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .blog-head { flex-direction: row; align-items: center; justify-content: space-between; }
}

.blog-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-ink);
}

.blog-head__result { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--color-ink-soft); }
.blog-head__result strong { color: var(--color-ink); }

.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.blog-toolbar__select {
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

.blog-toolbar__search { display: flex; align-items: center; gap: 0.5rem; }

.blog-toolbar__search input {
  height: 40px;
  width: 180px;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.82rem;
}

@media (min-width: 640px) { .blog-toolbar__search input { width: 210px; } }

.blog-toolbar__search button {
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-accent);
  padding: 0 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

/* ---- blog list --------------------------------------------------------- */

.blog-list { display: flex; flex-direction: column; gap: 1rem; }

.blog-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem;
}

@media (min-width: 640px) { .blog-card { gap: 1.25rem; } }

.blog-card__thumb {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: var(--color-cream);
}

@media (min-width: 640px) { .blog-card__thumb { width: 128px; height: 112px; } }

.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-card__letter {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-ink-mute);
}

.blog-card__body { min-width: 0; flex: 1; }

.blog-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
}
.blog-card__title a { text-decoration: none; }
.blog-card__title a:hover { color: var(--color-accent); }

.blog-card__excerpt { margin: 0.4rem 0 0; font-size: 0.82rem; line-height: 1.65; color: var(--color-ink-soft); }
.blog-card__more { font-weight: 500; color: var(--color-accent); }
.blog-card__more:hover { text-decoration: underline; }

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.74rem;
  color: var(--color-ink-mute);
}

.blog-card__cat {
  border-radius: 0.25rem;
  background: var(--color-accent);
  padding: 0.1rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.blog-card__cat:hover { opacity: 0.9; }

.meta-bit { display: inline-flex; align-items: center; gap: 0.25rem; }

/* ---- blog sidebar ------------------------------------------------------ */

.panel--flush { padding: 0; overflow: hidden; }

.panel__head {
  margin: 0;
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-ink);
}

.blog-cats { margin: 0; padding: 0.25rem 0.5rem; list-style: none; }

.blog-cats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(194, 205, 179, 0.6);
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  text-decoration: none;
}
.blog-cats li:last-child .blog-cats__row { border-bottom: 0; }
.blog-cats__row:hover,
.blog-cats__row.is-active { font-weight: 500; color: var(--color-accent); }

.blog-cats__name { display: inline-flex; min-width: 0; align-items: center; gap: 0.5rem; }
.chevrons { color: var(--color-accent); flex-shrink: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.blog-cats__count {
  flex-shrink: 0;
  border-radius: 0.25rem;
  background: var(--color-accent);
  padding: 0.05rem 0.5rem;
  font-size: 0.64rem;
  font-weight: 600;
  color: #fff;
}

.blog-latest { margin: 0; padding: 0.25rem 0.5rem; list-style: none; }

.blog-latest__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(194, 205, 179, 0.6);
  padding: 0.75rem;
  text-decoration: none;
}
.blog-latest li:last-child .blog-latest__row { border-bottom: 0; }
.blog-latest__row:hover .blog-latest__title { color: var(--color-accent); }

.blog-latest__text { min-width: 0; }
/* An h3 now, so the browser's own heading margins have to go. */
.blog-latest__title { margin: 0; font-size: 0.79rem; font-weight: 500; line-height: 1.35; color: var(--color-ink); }
.blog-latest__date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--color-ink-mute);
}

.chip-row--pad { padding: 1.25rem; }
.pager__of { padding: 0 0.5rem; font-size: 0.82rem; color: var(--color-ink-mute); }

/* ---- post -------------------------------------------------------------- */

.post { padding: 1.5rem; }
@media (min-width: 640px) { .post { padding: 2rem; } }

.post__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.76rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}
@media (min-width: 640px) { .post__title { font-size: 2.1rem; } }

.post__hero {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: var(--color-cream);
}
@media (min-width: 640px) { .post__hero { aspect-ratio: 16 / 10; } }
.post__hero img { width: 100%; height: 100%; object-fit: contain; }

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 1.25rem;
  font-size: 0.76rem;
  color: var(--color-ink-mute);
}

.post__body, .post__blocks { margin-top: 1.5rem; }
.post__blocks { display: flex; flex-direction: column; gap: 1.5rem; }

/* A caption block: the styled surface the editor previews, with the caption
   as real text rather than a rendered image. */
.caption-block {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  padding: 2rem;
}

.caption-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.caption-block__text {
  position: relative;
  z-index: 1;
  white-space: pre-line;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.caption-block__copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}
.caption-block__copy:hover { background: rgba(255, 255, 255, 0.25); }

/* ---- comments ---------------------------------------------------------- */

.post-comments { margin-top: 2rem; padding: 1.5rem; }
@media (min-width: 640px) { .post-comments { padding: 2rem; } }

.post-comments__head,
.post-comments__sub {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
}
.post-comments__head { font-size: 1.3rem; }
.post-comments__sub { margin-top: 2rem; font-size: 1.06rem; font-weight: 600; }

.muted { color: var(--color-ink-mute); }
.comment-empty { margin-top: 1rem; font-size: 0.82rem; }

.comment-list { margin: 1.25rem 0 0; padding: 0; list-style: none; }

.comment {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(194, 205, 179, 0.7);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.comment:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.comment__avatar {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-light);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #047857;
}

.comment__body { min-width: 0; }
.comment__by { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.76rem; }
.comment__name { font-weight: 600; color: var(--color-ink); }
.comment__text { margin: 0.25rem 0 0; white-space: pre-wrap; font-size: 0.85rem; line-height: 1.7; color: var(--color-ink-soft); }

.comment-form { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.comment-form__row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .comment-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: var(--color-cream);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-ink);
}
.comment-form textarea { resize: none; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-accent); outline: none; }

.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.comment-form button {
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-accent);
  padding: 0.6rem 1.5rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.comment-form button[disabled] { opacity: 0.6; cursor: default; }

.form-status { margin: 0; font-size: 0.79rem; }
.form-status.is-ok { color: #047857; }
.form-status.is-error { color: #b91c1c; }

.comment-form__note { margin: 0; font-size: 0.7rem; }

/* ---- homepage bands ---------------------------------------------------- */

.band-inner { max-width: 1520px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .band-inner { padding: 0 2.5rem; } }

.hero-band { margin-top: -2rem; background: var(--color-cream); padding: 3rem 0 3.5rem; }
.portal-band { margin-top: 3.5rem; background: var(--color-cream); padding: 3.5rem 0; }
.contact-band { margin-top: 3.5rem; background: var(--color-cream); padding: 3rem 0; }

.hero { text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #a7f3d0;
  border-radius: 0.375rem;
  background: var(--color-accent-light);
  padding: 0.35rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

.hero__title {
  max-width: 56rem;
  margin: 1.5rem auto 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--color-ink);
}
.hero__title em { font-style: italic; color: var(--color-accent); }

@media (min-width: 640px) { .hero__title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 4.5rem; } }

.hero__lead {
  max-width: 520px;
  margin: 1.25rem auto 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }

.btn-solid, .btn-outline {
  border-radius: 0.5rem;
  padding: 0.76rem 1.76rem;
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
}
.btn-solid { background: var(--color-accent); font-weight: 500; color: #fff; }
.btn-solid:hover { opacity: 0.9; }
.btn-outline { border: 1.5px solid var(--color-line); background: #fff; color: var(--color-ink); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.hero__tool { margin-top: 2.5rem; }

.home-intro { margin-top: 3rem; border-top: 1px solid var(--color-line); padding-top: 2.5rem; }
.home-intro p { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--color-ink-soft); }
.home-intro strong { font-weight: 600; color: var(--color-ink); }

.home-sec { margin-top: 3rem; }
.home-sec__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.home-sec__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}
.home-sec__more { font-size: 0.82rem; color: var(--color-accent); text-decoration: none; }
.home-sec__more:hover { text-decoration: underline; }
.home-sec__more--block { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; font-weight: 500; }

/* ---- gallery strip ----------------------------------------------------- */

.gallery-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }

.gallery-strip__tile {
  position: relative;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: var(--color-cream-2);
}
.gallery-strip__tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-strip__alt {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-ink-mute);
}

/* ---- portal band ------------------------------------------------------- */

.portal { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.portal__left, .portal__mid, .portal__right { display: flex; flex-direction: column; gap: 2rem; }

@media (min-width: 1024px) {
  .portal { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .portal__left { grid-column: span 3 / span 3; }
  .portal__mid { grid-column: span 6 / span 6; }
  .portal__right { grid-column: span 3 / span 3; }
}

.rule-head {
  margin: 0 0 0.25rem;
  border-bottom: 2px solid var(--color-ink);
  padding-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-ink);
}
.rule-head--split { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.rule-head__title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-ink); }
.rule-head__sub { margin: 0; font-size: 0.7rem; color: var(--color-ink-mute); }

.row-list { margin: 0; padding: 0; list-style: none; }
.row-list__row { border-bottom: 1px solid var(--color-line); }
.row-list__row:last-child { border-bottom: 0; }
.row-list__link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; text-decoration: none; }
.row-list__link:hover .row-list__name { color: var(--color-accent); }
.row-list__text { min-width: 0; }
.row-list__name,
.row-list__sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-list__name { font-size: 0.92rem; font-weight: 500; color: var(--color-ink); }
.row-list__sub { font-size: 0.76rem; color: var(--color-ink-mute); }

.cat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-cols ul { margin: 0; padding: 0 0.75rem; list-style: none; border-left: 1px solid var(--color-line); }
.cat-cols ul:first-child { padding-left: 0; border-left: 0; }
.cat-cols ul:last-child { padding-right: 0; }
.cat-cols li { border-bottom: 1px solid var(--color-line); }
.cat-cols li:last-child { border-bottom: 0; }
.cat-cols a { display: block; padding: 0.6rem 0; font-size: 0.9rem; color: var(--color-ink-soft); text-decoration: none; }
.cat-cols a:hover { color: var(--color-accent); }

/* ---- people blocks ----------------------------------------------------- */

.people-block { border: 1px solid var(--color-line); border-radius: 0.75rem; background: #fff; }

.people-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 1.25rem;
}
.people-block__title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-ink); }
.people-block__empty { margin: 0; padding: 1.5rem 1.25rem; text-align: center; font-size: 0.82rem; color: var(--color-ink-mute); }

.people-block__grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; padding: 1rem; }
@media (min-width: 640px) { .people-block__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.people-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-decoration: none;
}
.people-tile:hover { border-color: rgba(5, 150, 105, 0.4); }
.people-tile__text { min-width: 0; }
.people-tile__name,
.people-tile__sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-tile__name { font-size: 0.82rem; font-weight: 500; color: var(--color-ink); }
.people-tile__sub { font-size: 0.7rem; color: var(--color-ink-mute); }

.avatar--md { width: 44px; height: 44px; font-size: 1rem; }

/* ---- numbered quote tiles ---------------------------------------------- */

.qtile-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .qtile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.qtile {
  display: block;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
  text-decoration: none;
}
.qtile:hover { border-color: rgba(5, 150, 105, 0.4); }

.qtile__n {
  display: inline-block;
  border-radius: 0.25rem;
  background: var(--color-accent-light);
  padding: 0.05rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent);
}

.qtile__text { margin: 0.5rem 0 0; font-size: 1rem; line-height: 1.7; color: var(--color-ink); }

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- why choose us ----------------------------------------------------- */

.why { margin-top: 4rem; border-top: 1px solid var(--color-line); padding-top: 3.5rem; }

.why__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: var(--color-ink);
}
.why__lead { max-width: 36rem; margin: 0.5rem 0 0; font-size: 1rem; color: var(--color-ink-soft); }

.why__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.why__card { border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-cream); padding: 30px; }

.why__icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.why__name { margin: 18px 0 0; font-size: 1rem; font-weight: 600; color: var(--color-ink); }
.why__body { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 1.7; color: var(--color-ink-soft); }

/* ---- contact band ------------------------------------------------------ */

.contact-band__title { margin: 0; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--color-ink); }
.contact-band__lead { margin: 0.5rem 0 0; font-size: 1rem; color: var(--color-ink-soft); }
.contact-band__lead a { font-weight: 500; color: var(--color-accent); text-decoration: underline; }

/* ---- count blocks ------------------------------------------------------ */

.count-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .count-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.count-head {
  margin: 0 0 1rem;
  border-bottom: 2px solid var(--color-ink);
  padding-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-ink);
}

.count-list { margin: 0; padding: 0; list-style: none; font-size: 1rem; color: var(--color-ink-soft); }
.count-list li + li { margin-top: 0.5rem; }
.count-list a { color: var(--color-ink-soft); text-decoration: none; }
.count-list a:hover { color: var(--color-accent); }
.count-list li.is-current { font-weight: 500; color: var(--color-accent); }

.count-more { margin-top: 0.25rem; }
.count-more summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
}
.count-more summary::-webkit-details-marker { display: none; }
.count-more summary:hover { text-decoration: underline; }
.count-more__close { display: none; }
.count-more[open] .count-more__open { display: none; }
.count-more[open] .count-more__close { display: inline; }

/* ---- caption image maker (markup only until C12) ----------------------- */

.cgen {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 32px rgba(28, 25, 23, 0.1);
}

.cgen__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-cream);
  padding: 1rem 1.5rem;
}

.cgen__title { font-size: 0.9rem; font-weight: 600; color: var(--color-ink); }

.cgen__upload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--color-line);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.76rem;
  color: var(--color-ink-soft);
  cursor: pointer;
}
.cgen__upload:hover { border-color: var(--color-accent); color: var(--color-accent); }

.cgen__body { display: flex; flex-direction: column; }
@media (min-width: 768px) { .cgen__body { flex-direction: row; } }

.cgen__stage {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  padding: 1.25rem;
  min-height: 260px;
}

.cgen__canvas { max-width: 100%; max-height: 600px; height: auto; width: auto; border-radius: 0.5rem; box-shadow: 0 4px 20px rgba(28, 25, 23, 0.12); }

.cgen__controls {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid var(--color-line);
  background: #fff;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .cgen__controls { width: 440px; flex-shrink: 0; border-top: 0; border-left: 1px solid var(--color-line); padding: 1.75rem 1.5rem; }
}

.cgen__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-mute);
}

.cgen__textarea {
  width: 100%;
  height: 4rem;
  resize: none;
  border: 1.5px solid var(--color-line);
  border-radius: 0.5rem;
  background: var(--color-cream);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-ink);
}
.cgen__textarea:focus { border-color: var(--color-accent); outline: none; }

.cgen__swatches { display: flex; flex-wrap: wrap; gap: 7px; }

.cgen__swatch {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 2.5px solid transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}
.cgen__swatch:hover { transform: scale(1.05); }
.cgen__swatch.is-selected { border-color: #1c1917; outline: 2px solid #fff; outline-offset: -4px; }

.cgen__check { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; cursor: pointer; }
.cgen__check span { font-size: 0.76rem; color: var(--color-ink-soft); }

.cgen__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cgen__row .cgen__label { margin-bottom: 0; }

.cgen__badge {
  border-radius: 5px;
  background: var(--color-accent-light);
  padding: 0.05rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-accent);
}

.cgen__controls input[type="range"] { width: 100%; accent-color: var(--color-accent); }

.cgen__download {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  border: 0;
  border-radius: 10px;
  background: var(--color-accent);
  padding: 0.82rem 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.cgen__download:hover { opacity: 0.9; }

/* ---- media cards (history, prompts) ------------------------------------ */

.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: #fff;
}

.media-card__img { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--color-cream); }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; }

.media-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.media-card__date { font-size: 0.82rem; color: var(--color-accent); }
.media-card__title { margin: 0.25rem 0 0; font-size: 1rem; font-weight: 600; color: var(--color-ink); }
.media-card__text { margin: 0.5rem 0 0; font-size: 0.85rem; line-height: 1.7; color: var(--color-ink-soft); }
.media-card--tall .media-card__text { flex: 1; }

.media-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }
.media-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  border-radius: 0.25rem;
  background: var(--color-cream);
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  color: var(--color-ink-mute);
}

.clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-dashed {
  border: 1px dashed var(--color-line);
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-ink-mute);
}

/* ---- gallery ----------------------------------------------------------- */

.img-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .img-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .img-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gtile {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  text-decoration: none;
}
.gtile:hover { border-color: var(--color-accent); }
.gtile__img { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--color-cream); }
.gtile__img img { width: 100%; height: 100%; object-fit: cover; }
.gtile__text { display: block; padding: 0.75rem; font-size: 0.82rem; color: var(--color-ink-soft); }

.gitem { overflow: hidden; border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; }
.gitem__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  background: var(--color-cream);
}
.gitem__frame img { width: 100%; height: 100%; object-fit: contain; }
.gitem__caption {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--color-ink);
}

/* ---- narrow pages, CMS, forms ------------------------------------------ */

.narrow { max-width: 42rem; margin: 0 auto; }
.narrow--wide { max-width: 52rem; }
.narrow__panel { margin-top: 2rem; }
.tool-wide { max-width: 64rem; margin: 0 auto; }
.tool-body { margin-top: 2rem; }

.cms { max-width: 48rem; margin: 0 auto; }
.cms__body { margin-top: 1.5rem; }

.contact-bits { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: 0.82rem; color: var(--color-ink-soft); }
.icon-accent { color: var(--color-accent); }

.stack-form { display: flex; flex-direction: column; gap: 1rem; }
.stack-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .stack-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: var(--color-cream);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--color-ink);
}
.stack-form textarea { resize: vertical; }
.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus { border-color: var(--color-accent); outline: none; }

.stack-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.stack-form button {
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-accent);
  padding: 0.65rem 1.5rem;
  font: inherit;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.stack-form button[disabled] { opacity: 0.6; cursor: default; }

/* ---- search ------------------------------------------------------------ */

.search-form { display: flex; max-width: 36rem; }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-line);
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  background: #fff;
  padding: 0.65rem 1rem;
  font: inherit;
}
.search-form input:focus { outline: none; border-color: var(--color-accent); }
.search-form button {
  border: 0;
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--color-accent);
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.search-form__heading { margin: 2rem 0 0; font-size: 1.2rem; font-weight: 700; color: var(--color-ink); }

/* Visually hidden, still announced and still a real heading. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- fancy text tool --------------------------------------------------- */

.fancy__input {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.06rem;
}
.fancy__input:focus { border-color: var(--color-accent); outline: none; }

.fancy__results { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .fancy__results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fancy__row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fancy__row:hover { border-color: var(--color-accent); }
.fancy__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.06rem; }
.fancy__tip { margin-top: 1.5rem; font-size: 0.82rem; color: var(--color-ink-mute); }

.fancy__tag {
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: var(--color-accent-light);
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #047857;
}

/* Transparent mode shows a checkerboard behind the canvas, and the canvas
   itself drops its shadow so the alpha reads honestly. */
.cgen__stage.is-transparent {
  background: repeating-conic-gradient(#e5e7e9 0 90deg, #ffffff 0 180deg) 0 0 / 22px 22px;
}
.cgen__canvas.is-flat { box-shadow: none; }
