/* Holyprofweb: editorial discovery publication. One stylesheet, no framework. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --paper: #f7f5ef;
  --ink: #0d0d0f;
  --ink-2: #34343a;
  --muted: #666670;
  --line: #e7e4da;
  --accent: #f0a500;
  --accent-ink: #8a5a00;
  --danger-bg: #fdecec;
  --danger-ink: #8a1c1c;
  --ok-bg: #e8f5ec;
  --ok-ink: #14532d;
  --radius: 14px;
  --wrap: 1160px;
  --read: 700px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
html[data-theme='dark'] {
  --bg: #0c0c0e;
  --paper: #151518;
  --ink: #f4f2ec;
  --ink-2: #d2d0c9;
  --muted: #9c9a93;
  --line: #28282d;
  --accent-ink: #f2b84b;
  --danger-bg: #3a1717;
  --danger-ink: #ffb4b4;
  --ok-bg: #15301f;
  --ok-ink: #a8e3bc;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']):not([data-theme='dark']) {
    --bg: #0c0c0e;
    --paper: #151518;
    --ink: #f4f2ec;
    --ink-2: #d2d0c9;
    --muted: #9c9a93;
    --line: #28282d;
    --accent-ink: #f2b84b;
    --danger-bg: #3a1717;
    --danger-ink: #ffb4b4;
    --ok-bg: #15301f;
    --ok-ink: #a8e3bc;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.search-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }

.pub-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pub-wrap--narrow { max-width: 820px; }
@media (max-width: 600px) { .pub-wrap { padding: 0 18px; } }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { color: var(--ink); }
.brand__text { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.04em; line-height: 1; }
.brand__text span { color: var(--accent-ink); }
.primary-navigation { flex: 1; }
.primary-navigation ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.primary-navigation a { display: block; padding: 8px 0; font-size: .93rem; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.primary-navigation a:hover { color: var(--ink); }
.primary-navigation a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; background: transparent; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.menu-toggle { display: none; }
.theme-toggle__moon { display: none; }
html[data-theme='dark'] .theme-toggle__sun { display: none; }
html[data-theme='dark'] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']):not([data-theme='dark']) .theme-toggle__sun { display: none; }
  html:not([data-theme='light']):not([data-theme='dark']) .theme-toggle__moon { display: block; }
}
@media (max-width: 860px) {
  .header-inner { height: 60px; padding: 0 14px 0 18px; gap: 8px; }
  .menu-toggle { display: inline-grid; }
  .primary-navigation { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; flex: none; box-shadow: 0 18px 30px rgba(0, 0, 0, .08); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 18px 14px; }
  .primary-navigation li + li { border-top: 1px solid var(--line); }
  .primary-navigation a { padding: 15px 0; font-size: 1.05rem; border-bottom: 0; }
  .primary-navigation a[aria-current='page'] { color: var(--accent-ink); }
}

/* ---------- Search overlay ---------- */
.live-search-overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.live-search-overlay.is-open { display: block; }
.live-search-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, .55); backdrop-filter: blur(3px); }
.live-search-inner { position: relative; z-index: 1; max-width: 720px; margin: 8vh auto 0; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); max-height: 80vh; overflow: auto; }
@media (max-width: 760px) { .live-search-inner { margin: 0; border-radius: 0 0 18px 18px; max-height: 92vh; } }
.live-search-bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.live-search-icon { flex: none; color: var(--muted); }
.live-search-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.15rem; padding: 8px 0; outline: none; }
.live-search-close { background: var(--paper); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.live-search-results, .live-search-default { padding: 14px 6px 6px; }
.live-search-label, .ls-group-label { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-search-cats, .ls-suggestions, .live-search-trending { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.live-search-cat-chip, .ls-suggestion-pill, .live-search-trending-pill { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; background: var(--bg); }
.live-search-cat-chip:hover, .ls-suggestion-pill:hover, .live-search-trending-pill:hover { background: var(--paper); }
.ls-group { margin-bottom: 14px; }
.ls-list { list-style: none; margin: 0; padding: 0; }
.ls-item-link { display: flex; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; align-items: center; }
.ls-item-link:hover { background: var(--paper); }
.ls-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; background: var(--paper); }
.ls-item-body { display: flex; flex-direction: column; min-width: 0; }
.ls-item-cat { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.ls-item-title { font-weight: 650; line-height: 1.3; }
.ls-item-excerpt { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ls-item-link--cat { justify-content: space-between; }
.ls-cat-count { color: var(--muted); font-size: .85rem; }
.ls-footer { padding: 8px 10px 4px; border-top: 1px solid var(--line); }
.ls-full-search { font-weight: 650; }
.ls-loading, .ls-no-results { padding: 14px 10px; color: var(--muted); }

/* ---------- Sections and grids ---------- */
.pub-section { padding: clamp(28px, 4.5vw, 56px) 0; }
.pub-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-top: 14px; border-top: 2px solid var(--ink); }
.pub-section__head h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.pub-section__head a { font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.pub-section__head a:hover { color: var(--ink); }
.pub-grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.pub-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pub-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pub-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pub-grid--3, .pub-grid--2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.pub-kicker { display: inline-block; font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }
.pub-meta { margin: 0; font-size: .82rem; color: var(--muted); }
.pub-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pub-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.pub-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-card__body { display: flex; flex-direction: column; gap: 6px; }
.pub-card__title { font-size: 1.22rem; line-height: 1.22; font-weight: 750; letter-spacing: -0.02em; margin: 2px 0; }
.pub-card__title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s; }
.pub-card__title a:hover { background-size: 100% 2px; }
.pub-card__excerpt { margin: 0 0 4px; color: var(--ink-2); font-size: .98rem; line-height: 1.55; }

/* Text-led card (no image): intentional, not an empty box */
.pub-card--noimg { padding: 18px 0 0; border-top: 3px solid var(--ink); gap: 8px; }
.pub-card--noimg:hover { border-top-color: var(--accent); }
.pub-card--noimg .pub-card__title { font-size: 1.32rem; }

.pub-card--lead .pub-card__media { aspect-ratio: 16 / 9; }
.pub-card--lead .pub-card__title { font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.08; letter-spacing: -0.03em; }
.pub-card--lead .pub-card__excerpt { font-size: 1.08rem; }
.pub-card--lead.pub-card--noimg { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--paper); gap: 12px; justify-content: center; }
.pub-card--lead.pub-card--noimg .pub-card__title { font-size: clamp(1.9rem, 4.2vw, 3rem); }

.pub-card--compact { padding: 0 0 18px; border-bottom: 1px solid var(--line); gap: 6px; }
.pub-card--compact.pub-card--noimg { border-top: 0; padding-top: 0; }
.pub-card--compact:last-child { border-bottom: 0; padding-bottom: 0; }
.pub-card--compact .pub-card__title { font-size: 1.12rem; }

.pub-card--row { flex-direction: row; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub-card--row.pub-card--noimg { border-top: 0; }
.pub-card--row .pub-card__media { flex: 0 0 150px; aspect-ratio: 4 / 3; }
.pub-card--row .pub-card__title { font-size: 1.15rem; }
@media (max-width: 560px) { .pub-card--row .pub-card__media { flex-basis: 96px; } }

@media (prefers-reduced-motion: no-preference) {
  .pub-card__media img { transition: transform .4s ease; }
  .pub-card:hover .pub-card__media img { transform: scale(1.03); }
}

/* ---------- Home ---------- */
.pub-masthead { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.pub-masthead .pub-wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.pub-masthead p { margin: 0; }
.pub-masthead a { font-weight: 650; color: var(--ink); }
.pub-hero { padding: clamp(20px, 3.2vw, 40px) 0 clamp(16px, 2.4vw, 28px); }
.pub-hero__title { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; margin-bottom: clamp(14px, 2vw, 22px); }
.pub-hero__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.pub-hero__side { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 900px) { .pub-hero__grid { grid-template-columns: 1fr; } }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(22px, 3vw, 34px); }
.pub-chips a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.pub-chips a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pub-feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.pub-feature__side { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .pub-feature { grid-template-columns: 1fr; } }
.pub-people { background: var(--paper); }
.pub-people__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pub-person { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; }
.pub-person__img { display: block; width: 100%; max-width: 168px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--line); }
.pub-person__img img { width: 100%; height: 100%; object-fit: cover; }
.pub-person__img--empty { display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: var(--muted); }
.pub-person__name { font-weight: 700; line-height: 1.3; }
@media (max-width: 760px) { .pub-people__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Hubs and archives ---------- */
.pub-crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pub-crumbs a { text-decoration: none; }
.pub-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pub-hub__head { padding: clamp(32px, 5vw, 64px) 0 clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line); margin-bottom: clamp(14px, 3vw, 28px); }
.pub-hub__title { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -0.04em; font-weight: 800; margin-bottom: 12px; }
.pub-hub__intro { font-size: 1.14rem; color: var(--ink-2); max-width: 58ch; margin: 0 0 22px; }
.pub-hub__switch { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-hub__switch a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.pub-hub__switch a:hover { background: var(--paper); }
.pub-hub__switch a[aria-current='page'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pub-authorhead { display: flex; gap: 22px; align-items: center; }
.pub-authorhead .pub-hub__intro { margin-bottom: 8px; }

.navigation.pagination { margin: 36px 0 8px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 9px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.page-numbers:hover { background: var(--paper); }
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-numbers.dots { border: 0; }

/* ---------- Search form (page, 404, hubs) ---------- */
.search-form { display: flex; gap: 8px; margin: 12px 0 14px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 13px 16px; font: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.search-field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-submit { padding: 0 22px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; cursor: pointer; }

/* ---------- Article ---------- */
.pub-article__inner { max-width: calc(var(--read) + 48px); margin: 0 auto; padding: clamp(30px, 5vw, 64px) 24px 24px; }
.pub-article__head { margin-bottom: 26px; }
.pub-article__title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.07; letter-spacing: -0.038em; font-weight: 800; margin: 8px 0 16px; text-wrap: balance; }
.pub-article__summary { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; }
.pub-byline { font-size: .9rem; color: var(--muted); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pub-byline a { color: var(--ink); font-weight: 650; text-decoration: none; }
.pub-byline a:hover { text-decoration: underline; }
.pub-article__figure { margin: 6px -24px 30px; }
.pub-article__figure img { width: 100%; height: auto; max-height: 640px; object-fit: cover; display: block; border-radius: var(--radius); }
.pub-article__figure figcaption { padding: 10px 24px 0; font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .pub-article__figure { margin-left: -90px; margin-right: -90px; } }

.pub-article__body { font-size: 1.125rem; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.pub-article__body > * + * { margin-top: 1.1em; }
.pub-article__body h2 { font-size: 1.65rem; letter-spacing: -0.025em; margin-top: 2.1em; margin-bottom: .5em; padding-top: .2em; }
.pub-article__body h3 { font-size: 1.28rem; margin-top: 1.7em; margin-bottom: .4em; }
.pub-article__body p { margin: 0 0 1.1em; }
.pub-article__body ul, .pub-article__body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.pub-article__body li { margin-bottom: .45em; }
.pub-article__body a { color: var(--accent-ink); text-decoration-thickness: 1.5px; }
.pub-article__body a:hover { color: var(--ink); }
.pub-article__body img { border-radius: 10px; }
.pub-article__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); color: var(--ink-2); font-size: 1.18rem; line-height: 1.55; }
.pub-article__body blockquote p { margin: 0; }
.pub-article__body code { font-size: .9em; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em; word-break: break-word; }
.pub-article__body pre { background: #111113; color: #eceae2; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.pub-article__body pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.pub-article__body table { width: 100%; border-collapse: collapse; font-size: .96rem; display: block; overflow-x: auto; }
.pub-article__body th, .pub-article__body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pub-article__body th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.pub-article__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* Sources: last section of research articles */
.pub-article__body h2#sources, .pub-article__body h2:last-of-type { scroll-margin-top: 20px; }
.pub-article__body h2:last-of-type + ol { font-size: .96rem; color: var(--ink-2); padding: 14px 22px 14px 40px; border: 1px solid var(--line); border-radius: 12px; }

.pub-authorbox { display: flex; gap: 16px; align-items: center; margin-top: 38px; padding: 18px; background: var(--paper); border-radius: var(--radius); }
.pub-authorbox__avatar { border-radius: 50%; flex: none; }
.pub-authorbox__name { margin: 0; font-weight: 700; }
.pub-authorbox__name a { text-decoration: none; }
.pub-authorbox__bio { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }

/* Entity facts printed under the headline */
.pub-facts-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin: 0 0 20px; padding: 16px 18px; background: var(--paper); border-radius: 12px; font-size: .94rem; }
.pub-facts-dl dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pub-facts-dl dd { margin: 2px 0 0; }
.pub-facts-dl a { color: var(--accent-ink); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1rem; }
.comments-title, .comment-reply-title { font-size: 1.3rem; margin-bottom: 16px; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; margin-left: 24px; padding: 0; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.comment-form input[type='text'], .comment-form input[type='email'], .comment-form textarea { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.comment-form p { margin: 0 0 14px; }
.comment-form input[type='submit'], .btn { padding: 12px 22px; border: 0; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; cursor: pointer; }

/* ---------- Contact ---------- */
.pub-contact__inner { max-width: 1000px; }
.pub-contact__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.pub-contact__side h2 { font-size: 1rem; margin: 0 0 6px; }
.pub-contact__side p, .pub-contact__side ul { margin: 0 0 24px; padding: 0; list-style: none; font-size: .97rem; }
.pub-contact__side li { margin-bottom: 6px; }
.pub-contact__side a { color: var(--accent-ink); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-weight: 600; font-size: .92rem; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-submit { align-self: flex-start; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.contact-errors { padding: 12px 16px; border-radius: 10px; background: var(--danger-bg); color: var(--danger-ink); margin-bottom: 16px; }
.contact-errors ul { margin: 0; padding-left: 18px; }
.contact-success { padding: 16px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-ink); }
@media (max-width: 760px) { .pub-contact__grid { grid-template-columns: 1fr; } .contact-row--2col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0d0d0f; color: #cfcdc6; margin-top: clamp(40px, 6vw, 80px); }
.site-footer a { color: #e9e7df; text-decoration: none; }
.footer-copy a { text-decoration: underline; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand, .site-footer .brand__mark { color: #fff; }
.site-footer .brand__text span { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 40px; }
.footer-tagline { margin: 14px 0 0; max-width: 34ch; font-size: .95rem; color: #a9a7a0; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; font-size: .9rem; }
.footer-col-title { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #a9a7a0; margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid #26262a; padding: 20px 0 26px; font-size: .86rem; color: #a9a7a0; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 40px; } .footer-col--brand { grid-column: 1 / -1; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .live-search-overlay, .pub-authorbox, .comments-area { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
}

/* ---------- Text-led cards (Latest discoveries) ---------- */
.pub-section--tight { padding-top: clamp(8px, 1.5vw, 16px); }
.pub-card--text { padding: 16px 0 0; border-top: 3px solid var(--ink); gap: 8px; }
.pub-card--text:hover { border-top-color: var(--accent); }
.pub-card--text .pub-card__title { font-size: 1.12rem; line-height: 1.25; }
.pub-card--text .pub-card__body { gap: 7px; }
.pub-latest { gap: clamp(16px, 2.4vw, 28px); }
.pub-hero__side .pub-card--compact .pub-card__title { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.18; }
.pub-hero__side { gap: 24px; }
.pub-hero__side .pub-card--compact { padding-bottom: 22px; }
