:root {
    --parchment: #f5ede0;
    --deep-wine: #5c1a1a;
    --gold: #b8860b;
    --gold-light: #d4a843;
    --ink: #1a1008;
    --smoke: #8b7355;
    --cream: #fdf6ec;
    --border: #c4a96a;
    --highlight: #fff3cd;
    --catholic-color: #1a3a6b;
    --early-church: #2d5a27;
  }

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

  .site-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(253, 246, 236, 0.92);
  }

  .site-nav a {
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--deep-wine);
    text-decoration: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--deep-wine);
    color: white;
  }

  body {
    background: var(--parchment);
    color: var(--ink);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
  }

  /* Texture overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }

  .wrapper { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 0 16px 60px; }

  .site-footer {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 16px 28px;
    border-top: 1px solid var(--border);
    color: var(--smoke);
    font-size: 0.85rem;
    text-align: center;
  }

  .site-footer p { margin: 0; }

  .home-page { max-width: 760px; }

  .home-section h2 {
    font-family: 'IM Fell English', serif;
    color: var(--deep-wine);
    margin-bottom: 14px;
  }

  .feature-link {
    display: block;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--cream);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(90,50,10,0.07);
  }

  .feature-link:hover { box-shadow: 0 4px 18px rgba(90,50,10,0.13); }

  .home-section .feature-link + .feature-link { margin-top: 14px; }

  .feature-link-title {
    display: block;
    margin-bottom: 4px;
    color: var(--deep-wine);
    font-family: 'IM Fell English', serif;
    font-size: 1.25rem;
  }

  /* Header */
  header {
    text-align: center;
    padding: 48px 20px 32px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 36px;
    position: relative;
  }

  header::after {
    content: '✦ ✦ ✦';
    display: block;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 10px;
    margin-top: 16px;
  }

  h1 {
    font-family: 'IM Fell English', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--deep-wine);
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .subtitle {
    font-style: italic;
    color: var(--smoke);
    font-size: 1.05rem;
  }

  /* Intro note */
  .intro-note {
    background: linear-gradient(135deg, #fff8ee, #fdf1dc);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 32px;
    font-style: italic;
    color: #4a3a20;
    font-size: 0.97rem;
  }

  .denominations-page .tradition-research-note {
    margin: -14px 0 32px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--early-church);
    border-radius: 4px;
    background: rgba(240, 247, 240, 0.72);
    color: #294328;
  }

  .denominations-page .tradition-research-note h2 {
    margin-bottom: 4px;
    color: var(--deep-wine);
    font-family: 'IM Fell English', serif;
    font-size: 1.08rem;
    font-weight: normal;
  }

  .denominations-page .tradition-research-note p { font-size: 0.92rem; }
  .denominations-page .tradition-research-note a { color: var(--deep-wine); font-weight: 600; }

  /* Legend */
  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
  }

  .legend-title { font-weight: 600; color: var(--smoke); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; width: 100%; }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
  }

  .badge-high { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
  .badge-medium { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
  .badge-low { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
  .badge-mixed { background: #e7f0f6; color: #315f83; border: 1px solid #abc4d7; }
  .badge-substantial { background: #56377c; color: #fff; border: 1px solid #56377c; }
  .badge-close { background: #f2edf7; color: #705493; border: 1px solid #c9b8db; }
  .badge-limited { background: #f8ebd9; color: #8a541a; border: 1px solid #d9b57d; }
  .badge-incomplete { background: #eceff1; color: #59636d; border: 1px solid #c7cdd2; }
  .badge-catholic { background: #d1e0f7; color: var(--catholic-color); border: 1px solid #b8d0f0; }
  .badge-dot::before { content: '●'; font-size: 8px; }

  .legend-item { font-size: 0.9rem; }
  .legend-title-secondary { margin-top: 6px; }

  /* Denomination cards */
  .denom-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(90,50,10,0.07);
    transition: box-shadow 0.2s;
  }

  .denom-card:hover { box-shadow: 0 4px 18px rgba(90,50,10,0.13); }

  .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 22px 14px;
    cursor: pointer;
    gap: 12px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
  }

  button.card-header {
    width: 100%;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
  }

  .card-header:focus-visible,
  .filter-btn:focus-visible,
  .citation-marker:focus-visible,
  .evidence-panel summary:focus-visible,
  .source-entry a:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
  }

  .card-header.open { border-bottom-color: var(--border); }

  .card-title-area { display: block; flex: 1; }

  .denom-name {
    display: block;
    font-family: 'IM Fell English', serif;
    font-size: 1.35rem;
    color: var(--deep-wine);
    margin-bottom: 4px;
  }

  .denom-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--smoke);
    margin-bottom: 6px;
  }

  .meta-item { display: flex; align-items: center; gap: 4px; }
  .meta-icon { font-size: 10px; }

  .adherence-badge {
    display: block;
    flex-shrink: 0;
    text-align: center;
    min-width: 90px;
  }

  .adherence-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--smoke);
    margin-bottom: 4px;
  }

  /* Body */
  .card-body {
    display: none;
    padding: 20px 22px 22px;
  }

  .card-body.open { display: block; }

  .section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 18px;
    font-style: normal;
    font-family: 'Crimson Pro', serif;
  }

  .section-label:first-child { margin-top: 0; }

  .card-body p { margin-bottom: 4px; font-size: 0.97rem; }

  .fathers-quote {
    background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
    border-left: 3px solid var(--early-church);
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
    font-size: 0.93rem;
    color: #1a3a18;
    margin-top: 6px;
  }

  .fathers-quote strong { color: var(--early-church); }

  .key-diffs {
    list-style: none;
    margin-top: 6px;
  }

  .key-diffs li {
    padding: 4px 0 4px 18px;
    position: relative;
    font-size: 0.95rem;
  }

  .key-diffs li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
  }

  /* Qualitative assessments */
  .assessment-grid {
    border: 1px solid #ddcfb5;
    border-radius: 6px;
    overflow: hidden;
  }

  .assessment-row {
    display: grid;
    grid-template-columns: 0.8fr 1.25fr 1.35fr 1.15fr;
    gap: 12px;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid #e7dcc8;
    font-size: 0.9rem;
  }

  .assessment-row:last-child { border-bottom: 0; }
  .assessment-row:nth-child(odd) { background: rgba(200,170,110,0.08); }

  .assessment-heading {
    background: var(--deep-wine) !important;
    color: var(--gold-light);
    font-family: 'IM Fell English', serif;
  }

  .assessment-issue { color: var(--deep-wine); font-weight: 600; }
  .assessment-position { color: #4a3a20; }
  .agreement { font-weight: 600; }
  .agreement-agree { color: #56377c; }
  .agreement-disagree { color: #8a541a; }
  .agreement-mixed { color: #315f83; }
  .agreement-incomplete { color: #59636d; }

  .evidence-badge {
    display: inline-block;
    font-size: 0.78rem;
    color: #4a3a20;
    white-space: nowrap;
  }

  /* Citation and evidence panels */
  .denominations-page .citation-key {
    display: inline-flex;
    min-width: 1.45rem;
    min-height: 1.45rem;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
  }

  .denominations-page .citation-primary { color: #285b31; }
  .denominations-page .citation-denominational { color: #70451a; }
  .denominations-page .citation-scholarly { color: #274f78; }

  .denominations-page .citation-markers {
    display: inline-flex;
    gap: 0.18rem;
    white-space: nowrap;
  }

  .denominations-page .citation-marker {
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
  }

  .denominations-page .citation-marker:hover { text-decoration: underline; }

  .denominations-page .evidence-panel {
    margin: 12px 0 18px;
    border: 1px solid #d7c69f;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.54);
  }

  .denominations-page .evidence-panel summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 12px;
    color: var(--deep-wine);
    cursor: pointer;
    font-weight: 600;
    list-style-position: inside;
  }

  .denominations-page .evidence-panel[open] summary {
    border-bottom: 1px solid #dfd1b5;
    background: rgba(212, 168, 67, 0.08);
  }

  .denominations-page .evidence-summary {
    color: var(--smoke);
    font-size: 0.8rem;
    font-weight: 400;
    text-align: right;
  }

  .denominations-page .evidence-content { padding: 14px; }
  .denominations-page .source-group + .source-group { margin-top: 16px; }

  .denominations-page .source-group h4 {
    margin-bottom: 6px;
    color: var(--deep-wine);
    font-family: 'IM Fell English', serif;
    font-size: 1rem;
    font-weight: normal;
  }

  .denominations-page .source-list {
    display: grid;
    gap: 8px;
    list-style: none;
  }

  .denominations-page .shared-source-references p {
    color: #4a3a20;
    font-size: 0.88rem;
  }

  .denominations-page .shared-source-references p a,
  .denominations-page .shared-source-links a {
    color: var(--deep-wine);
  }

  .denominations-page .shared-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 7px;
    list-style: none;
    font-size: 0.86rem;
  }

  .denominations-page .source-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: start;
    padding: 8px 10px;
    border-left: 3px solid #8b7355;
    background: var(--cream);
    font-size: 0.88rem;
    scroll-margin-top: 24px;
  }

  .denominations-page .source-entry.source-p { border-left-color: #3f7849; }
  .denominations-page .source-entry.source-d { border-left-color: var(--gold); }
  .denominations-page .source-entry.source-s { border-left-color: #497aa8; }

  .denominations-page .source-entry:target {
    outline: 3px solid var(--gold-light);
    outline-offset: 2px;
    background: var(--highlight);
  }

  .denominations-page .source-code {
    color: var(--deep-wine);
    font-weight: 600;
  }

  .denominations-page .source-entry a {
    color: var(--deep-wine);
    font-weight: 600;
    white-space: nowrap;
  }

  .denominations-page .research-notes {
    margin-top: 16px;
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    background: #fff8e8;
    color: #4a3a20;
  }

  .denominations-page .research-notes h4 {
    margin-bottom: 5px;
    color: var(--deep-wine);
    font-family: 'IM Fell English', serif;
    font-size: 1rem;
    font-weight: normal;
  }

  .denominations-page .research-notes ul { padding-left: 18px; }
  .denominations-page .research-notes li + li { margin-top: 6px; }

  .denominations-page .shared-patristic-sources {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
  }

  .denominations-page .shared-sources-heading { margin-bottom: 18px; }

  .denominations-page .shared-sources-heading h2 {
    margin: 3px 0 5px;
    color: var(--deep-wine);
    font-family: 'IM Fell English', serif;
    font-size: 1.6rem;
  }

  .denominations-page .shared-sources-heading > p:last-child {
    max-width: 720px;
    color: var(--smoke);
  }

  .denominations-page .shared-patristic-list { gap: 10px; }

  .table-assessment {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
  }

  /* Toggle arrow */
  .toggle-arrow {
    font-size: 1.1rem;
    color: var(--gold);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-top: 4px;
  }

  .toggle-arrow.open { transform: rotate(180deg); }

  /* Summary table */
  .summary-section {
    margin-top: 48px;
    border-top: 2px solid var(--border);
    padding-top: 32px;
  }

  .summary-section h2 {
    font-family: 'IM Fell English', serif;
    color: var(--deep-wine);
    font-size: 1.6rem;
    margin-bottom: 6px;
    text-align: center;
  }

  .summary-sub {
    text-align: center;
    font-style: italic;
    color: var(--smoke);
    margin-bottom: 24px;
    font-size: 0.95rem;
  }

  .table-wrap { overflow-x: auto; }
  .denominations-page .summary-section .table-wrap {
    position: relative;
    left: 50%;
    width: min(1600px, calc(100vw - 32px));
    transform: translateX(-50%);
    scrollbar-color: #75572f #eadcc3;
    scrollbar-width: auto;
  }

  .denominations-page .summary-section .table-wrap::-webkit-scrollbar { height: 14px; }

  .denominations-page .summary-section .table-wrap::-webkit-scrollbar-track {
    border-radius: 8px;
    background: #eadcc3;
  }

  .denominations-page .summary-section .table-wrap::-webkit-scrollbar-thumb {
    border: 3px solid #eadcc3;
    border-radius: 8px;
    background: #75572f;
  }

  .denominations-page .summary-section .table-wrap::-webkit-scrollbar-thumb:hover { background: #5c3f20; }
  .denominations-page #summary-table { min-width: 1500px; }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
  }

  th {
    background: var(--deep-wine);
    color: var(--gold-light);
    font-family: 'IM Fell English', serif;
    font-weight: normal;
    font-size: 0.95rem;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
  }

  td {
    padding: 9px 14px;
    border-bottom: 1px solid #e0cfb0;
    vertical-align: top;
  }

  tr:nth-child(even) td { background: rgba(200,170,110,0.08); }
  tr:hover td { background: rgba(200,170,110,0.16); }

  .tbl-name { font-weight: 600; color: var(--deep-wine); }

  .disclaimer {
    margin-top: 36px;
    padding: 16px 20px;
    border: 1px dashed var(--border);
    border-radius: 6px;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--smoke);
    text-align: center;
  }

  /* Filter bar */
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
  }

  .filter-label { font-size: 0.85rem; color: var(--smoke); font-style: italic; }

  .filter-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-family: 'Crimson Pro', serif;
    font-size: 0.88rem;
    color: var(--ink);
    transition: all 0.15s;
  }

  .filter-btn:hover, .filter-btn.active { background: var(--deep-wine); color: white; border-color: var(--deep-wine); }

  /* Fathers explorer */
  .fathers-home { max-width: 1040px; }
  .eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  header .eyebrow { margin-bottom: 8px; }
  .explore-section { margin-top: 46px; }
  .section-heading { max-width: 690px; margin-bottom: 20px; }
  .section-heading h2 {
    color: var(--deep-wine);
    font-family: 'IM Fell English', serif;
    font-size: 1.65rem;
    margin: 3px 0 5px;
  }
  .section-heading > p:last-child { color: var(--smoke); }
  .era-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .era-card {
    display: flex;
    min-height: 235px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--cream);
    box-shadow: 0 2px 8px rgba(90,50,10,0.07);
    color: var(--ink);
    text-decoration: none;
  }
  .era-card:hover { box-shadow: 0 6px 22px rgba(90,50,10,0.14); transform: translateY(-1px); }
  .era-dates { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .era-card strong { color: var(--deep-wine); font-family: 'IM Fell English', serif; font-size: 1.45rem; line-height: 1.25; margin: 12px 0; }
  .era-card > span:not(.era-dates):not(.card-action) { color: #4a3a20; }
  .card-action { color: var(--deep-wine); font-weight: 600; margin-top: auto; padding-top: 22px; }
  .topic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .topic-card { min-height: 205px; padding: 18px; border-top: 3px solid var(--gold); background: rgba(253,246,236,.75); box-shadow: 0 2px 8px rgba(90,50,10,.07); display: flex; flex-direction: column; }
  .topic-number { color: var(--smoke); font-size: .75rem; letter-spacing: .1em; }
  .topic-card h3 { color: var(--deep-wine); font-family: 'IM Fell English', serif; font-size: 1.15rem; line-height: 1.25; margin: 16px 0 2px; }
  .topic-card p { color: var(--smoke); font-style: italic; }
  .topic-card div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
  .topic-card a { border: 1px solid var(--border); border-radius: 20px; color: var(--deep-wine); font-size: .82rem; padding: 3px 9px; text-decoration: none; }
  .topic-card a:hover { background: var(--deep-wine); border-color: var(--deep-wine); color: white; }

  .father-page { max-width: 1180px; }
  .father-page header { margin-bottom: 26px; }
  .father-page .research-content { padding-bottom: 60px; }
  .sr-only,
  .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;
  }
  .period-switcher { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
  .period-switcher a { border: 1px solid var(--border); border-radius: 20px; color: var(--deep-wine); padding: 5px 13px; text-decoration: none; }
  .period-switcher a:hover, .period-switcher a[aria-current="page"] { background: var(--deep-wine); color: white; }
  .father-controls { position: sticky; top: 0; z-index: 8; margin: 0 0 18px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: rgba(253,246,236,.97); box-shadow: 0 4px 18px rgba(90,50,10,.1); }
  .controls-row { display: grid; grid-template-columns: 1fr minmax(210px, .28fr); gap: 18px; align-items: end; }
  .control-label { display: block; color: var(--smoke); font-size: .76rem; font-weight: 600; letter-spacing: .08em; margin-bottom: 7px; text-transform: uppercase; }
  .topic-filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .topic-filters button { border: 1px solid var(--border); border-radius: 20px; background: white; color: var(--ink); cursor: pointer; font: inherit; font-size: .8rem; padding: 4px 10px; }
  .topic-filters button:hover, .topic-filters button.active { background: var(--deep-wine); border-color: var(--deep-wine); color: white; }
  .father-search input { width: 100%; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--ink); font: inherit; padding: 7px 10px; }
  .father-search input:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; }
  .view-title { color: var(--deep-wine); font-size: .9rem; font-style: italic; margin-top: 10px; }
  .father-page .table-wrap { border: 1px solid var(--border); border-radius: 7px; background: var(--cream); }
  .father-page table { min-width: 760px; table-layout: auto; }
  .father-page th { position: sticky; top: 0; }
  .father-page th:first-child { left: 0; z-index: 3; min-width: 175px; }
  .father-page th:nth-child(2), .father-page th:nth-child(5) { min-width: 130px; }
  .father-page th:nth-child(3) { min-width: 140px; }
  .father-page th:nth-child(4) { min-width: 150px; }
  .father-page th:nth-child(6) { min-width: 145px; }
  .father-page tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 1px solid #e0cfb0;
    background: var(--cream);
    color: var(--deep-wine);
    font-weight: 600;
  }
  .father-page tbody tr:hover td:first-child { background: #f5ead7; }
  .father-page .legend-item { display: flex; align-items: center; gap: 6px; }
  .father-page .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .father-page .dot-yes { background: #1d9e75; }
  .father-page .dot-no { background: #e24b4a; }
  .father-page .dot-partial { background: #ef9f27; }
  .father-page .dot-unknown { border: 1px solid #b9aa91; background: #ece8df; }
  .father-page .legend-symbol { font-size: .75rem; }
  .father-page .cell-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  .father-page .badge { white-space: nowrap; }
  .father-page .note { margin-top: 2px; color: #4a3a20; font-size: .84rem; line-height: 1.45; }
  .father-page .father-dates { color: var(--smoke); font-size: .76rem; font-weight: 400; }
  .father-page .badge-yes { background: #d4edda; color: #155724; }
  .father-page .badge-no { background: #f8d7da; color: #721c24; }
  .father-page .badge-partial { background: #fff3cd; color: #856404; }
  .father-page .badge-unknown { background: #ece8df; color: #5f574c; }
  .father-page .section-header td {
    position: static;
    border-right: 0;
    background: #eee2cc;
    color: var(--deep-wine);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .father-page .heretic-tag {
    display: inline-block;
    margin-top: 2px;
    padding: 1px 5px;
    border: 1px solid #d99a82;
    border-radius: 3px;
    background: #faece7;
    color: #8a3218;
    font-size: .68rem;
    font-weight: 600;
  }
  .father-page .heterodox-note { margin-top: 2px; color: #8a3218; font-size: .72rem; font-style: italic; line-height: 1.35; }
  .father-page td:first-child > .heterodox-note { margin-top: 4px; }
  .father-page .source-note { margin-top: 1rem; color: var(--smoke); font-size: .78rem; }
  [hidden] { display: none !important; }

  @media (max-width: 850px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .controls-row { grid-template-columns: 1fr; }
    .father-controls { position: relative; }
    .father-page th { top: 0; }
  }

  @media (max-width: 600px) {
    .site-nav { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
    .era-grid, .topic-grid { grid-template-columns: 1fr; }
    .era-card { min-height: 210px; }
    .topic-card { min-height: 150px; }
    .card-header { flex-direction: column; }
    .adherence-badge { align-self: flex-start; }
    th, td { padding: 8px 10px; font-size: 0.82rem; }

    .assessment-heading { display: none; }
    .assessment-row {
      grid-template-columns: 1fr;
      gap: 2px;
      padding: 12px;
    }

    .assessment-position::before {
      content: 'Position: ';
      color: var(--smoke);
      font-weight: 600;
    }

    .denominations-page .evidence-panel summary,
    .denominations-page .source-entry {
      grid-template-columns: 1fr;
    }

    .denominations-page .evidence-panel summary { flex-direction: column; gap: 2px; }
    .denominations-page .evidence-summary { text-align: left; }
    .denominations-page .source-entry a { white-space: normal; }
  }
