/* =====================================================================
 * Museum presentation (public pages only; loaded after style.css).
 * Quiet paper-white rooms, objects shown without frames, hairline rules,
 * and the flag kept as a fine accent rather than a stripe on every box.
 * ===================================================================== */
:root {
  --bg: #fbfaf6; --bg-2: #f2efe7; --surface: #ffffff; --surface-2: #f2efe7;
  --ink: #1c1a17; --ink-soft: #46413a; --muted: #6a645b; --line: #e2ddd0;
  --art-bg: radial-gradient(ellipse at 50% 40%, #f7f4ec 0%, #ece7da 100%);
  --shadow: none; --radius: 3px; --footer-bg: #0f2a19;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211; --bg-2: #1a1917; --surface: #1c1b19; --surface-2: #242220;
    --ink: #f1ece2; --ink-soft: #d5cdbf; --muted: #a39b8d; --line: #35322d;
    --art-bg: radial-gradient(ellipse at 50% 40%, #2b2824 0%, #1d1b18 100%); --footer-bg: #0b1c11;
  }
}
:root[data-theme="dark"] {
  --bg: #131211; --bg-2: #1a1917; --surface: #1c1b19; --surface-2: #242220;
  --ink: #f1ece2; --ink-soft: #d5cdbf; --muted: #a39b8d; --line: #35322d;
  --art-bg: radial-gradient(ellipse at 50% 40%, #2b2824 0%, #1d1b18 100%); --footer-bg: #0b1c11;
}

body { background-image: none; font-size: 1.0625rem; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
html[lang="am"] h1, html[lang="am"] h2, html[lang="am"] h3 { line-height: 1.35; letter-spacing: 0; }
html[lang="am"] h1 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
html[lang="am"] h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
html[lang="am"] h3 { font-size: 1.15rem; }
html[lang="am"] body { line-height: 1.8; }
.eyebrow { font-size: .74rem; letter-spacing: .16em; margin-bottom: .8em; }
html[lang="am"] .eyebrow { letter-spacing: .04em; font-size: .85rem; }
.eyebrow a { color: inherit; }

/* The flag: one fine band under the header and above the footer */
.flag-band { height: 4px; background: var(--flag-h); }
.card::before, .today:not(.cal-day)::before, .panel::before, .stop::before, .cal::before, .converter::before, .numerals::before,
.glyph-card::before, .plan::before, .fidel-wrap::before, .tl-card::before, .cat-tile::before { display: none; }
.ornament { display: flex; gap: 4px; margin: 14px 0 22px; }
.ornament::before, .ornament::after { display: none; }
.ornament i { width: 26px; height: 3px; background: var(--flag-green); }
.ornament i:nth-child(2) { background: var(--flag-yellow); }
.ornament i:nth-child(3) { background: var(--flag-red); }

/* ----- Header: name on the first row, rooms of the museum on the second ----- */
.site-header { background: var(--bg); backdrop-filter: none; }
.header-inner, .header-inner > .brand { flex-wrap: nowrap; }
.header-inner { padding: 14px 0 12px; align-items: center; }
.header-inner > .brand { flex: 1 1 auto; }
.brand-mark { width: 40px; height: 40px; }
.brand-am, .brand-am.brand-title { color: var(--ink); font-weight: 600; font-size: 1rem; }
.brand-en, .brand-title + .brand-en { font-family: var(--serif); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; }
html[lang="am"] .brand-en { letter-spacing: .04em; font-size: .85rem; }
.nav-tools { margin: 0; flex: none; }
.chip-btn { border-radius: 2px; background: transparent; height: 34px; display: inline-grid; place-items: center; text-decoration: none; font-weight: 600; }
.site-nav { display: block; border-top: 1px solid var(--line); }
.nav-inner { display: flex; gap: clamp(14px, 2.4vw, 34px); flex-wrap: wrap; }
.site-nav a { padding: 11px 0 9px; border-radius: 0; border-bottom: 3px solid transparent; font-size: .95rem; color: var(--ink-soft); }
.site-nav a:hover { background: none; color: var(--ink); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { background: none; color: var(--ink); font-weight: 600; border-bottom-color: var(--flag-green); }
.nav-toggle { border-radius: 2px; }
@media (max-width: 960px) {
  .header-inner { padding: 10px 0; gap: 10px; }
  .brand-am.brand-title { font-size: .8rem; }
  .brand-en, .brand-title + .brand-en { display: none; }
  .nav-tools .chip-btn[data-theme-toggle] { display: none; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 4px 0 12px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .45); }
  .site-nav.open { display: block; }
  .nav-inner { flex-direction: column; gap: 0; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--green); }
}

/* ----- Buttons and chips ----- */
.btn { border-radius: 2px; padding: 12px 24px; font-size: .96rem; transition: background .2s; }
.btn:hover { transform: none; }
.btn.small { padding: 8px 14px; }
.filter-chip { border-radius: 2px; background: transparent; padding: 7px 14px; font-size: .92rem; }
.filter-chip[aria-current="page"], .filter-chip[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-chip[aria-current="page"]:hover, .filter-chip[aria-current="step"]:hover { color: var(--bg); }
.search input { border-radius: 2px; background: var(--surface); }
.share-btn, .fast-chip, .icon-btn { border-radius: 2px; }
.more { font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.linkish { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ----- Home: hero ----- */
.hero-photo { min-height: min(74vh, 660px); }
.hero-photo .hero-grid { padding: clamp(80px, 12vh, 140px) 0 clamp(48px, 8vh, 84px); }
.hero-photo h1 { margin-bottom: .25em; }
.hero-title { font-family: var(--ethiopic); color: var(--flag-yellow); font-weight: 600; font-size: 1.05rem; line-height: 1.6; max-width: 34em; margin-bottom: .9em; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero:not(.hero-photo) .hero-title { color: var(--red); text-shadow: none; }
.hero .lead { font-size: 1.15rem; margin-bottom: 1.4em; }
.hero-shade { background: linear-gradient(90deg, rgba(10, 12, 9, .84) 0%, rgba(10, 12, 9, .58) 46%, rgba(10, 12, 9, .1) 82%), linear-gradient(0deg, rgba(10, 12, 9, .45), transparent 45%); }

/* Today, in one line */
.today-strip { display: block; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.today-strip:hover { color: var(--ink); background: var(--bg-2); }
.today-strip-inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 14px 0; font-size: .96rem; }
.ts-date { display: flex; align-items: center; gap: 12px; }
.ts-date b { font-family: var(--ethiopic); font-size: 1.9rem; line-height: 1; color: var(--red); }
.ts-date strong { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); display: block; }
html[lang="am"] .ts-date strong { letter-spacing: .04em; font-size: .8rem; }
.ts-what { flex: 1 1 220px; color: var(--ink-soft); }
.today-strip .fast-chip { margin: 0; }
.today-strip .linkish { margin-left: auto; }

/* Sections */
.section { padding: clamp(44px, 6vw, 84px) 0; }
.band { background: var(--bg-2); }
.section-head { align-items: end; margin-bottom: 30px; }
.section-lead { color: var(--ink-soft); margin: .5em 0 0; max-width: 40em; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.welcome-text p { font-size: 1.1rem; color: var(--ink-soft); max-width: 38em; }
.glance { border-top: 3px solid var(--ink); padding-top: 16px; }
.glance h3, .label-head, .footer-links h2 { font-family: var(--serif); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
html[lang="am"] .glance h3, html[lang="am"] .label-head, html[lang="am"] .footer-links h2 { letter-spacing: .04em; font-size: .88rem; }
.glance dl, .facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; gap: 0; font-size: .96rem; }
.glance dt, .glance dd, .facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.glance dt, .facts dt { color: var(--muted); padding-right: 22px; }
.glance dd { text-align: right; font-weight: 600; }

/* The galleries as rooms */
.rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.room { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); height: 100%; }
.room:hover { color: var(--ink); }
.room-art { aspect-ratio: 1; background: var(--surface); display: grid; place-items: center; padding: 12%; }
.room-art .art svg { transition: transform .4s ease; }
.room:hover .room-art .art svg { transform: scale(1.05); }
.room-art picture, .room-art img { width: 100%; height: 100%; object-fit: cover; }
.room-body { padding-top: 14px; border-top: 2px solid var(--ink); margin-top: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.room-no, .room-count, .result-count { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
html[lang="am"] .room-no, html[lang="am"] .room-count, html[lang="am"] .result-count { letter-spacing: .03em; font-size: .85rem; }
.room-body h3 { margin: 0; font-size: 1.5rem; }
.room:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.room-body p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }
.room-count { margin-top: auto; padding-top: 8px; }

/* Objects: shown plainly, labelled beneath like a museum caption */
.grid { gap: 36px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
a.card:hover { transform: none; box-shadow: none; }
.card-art { aspect-ratio: 4 / 5; padding: 9% 11%; }
.card-body { padding: 12px 0 0; gap: 3px; }
.card-body h3 { font-size: 1.28rem; line-height: 1.25; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-body .other { color: var(--ink-soft); font-size: .92rem; }
.tag { color: var(--muted); font-size: .7rem; letter-spacing: .14em; }
html[lang="am"] .tag { letter-spacing: .03em; font-size: .82rem; }
.card-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.placeholder-dot { position: static; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 2px; font-weight: 400; font-size: .7rem; padding: 0 6px; }

/* The name of the church; learning; visiting */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.church-title { color: var(--ink); font-size: 1.15rem; font-weight: 600; line-height: 1.7; margin: 0 0 18px; }
.name-parts { margin: 0; }
.name-parts dt { font-weight: 700; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.name-parts dd { margin: 4px 0 0; color: var(--ink-soft); }
.learn { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.learn a { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 14px; }
.learn a:hover { color: var(--ink); }
.learn h3 { margin: 0; }
.learn p { margin: 0; color: var(--ink-soft); font-size: .94rem; flex: 1; }
.learn .linkish { align-self: flex-start; font-size: .9rem; }
.plan-visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.plan-visit h3 { font-size: 1.2rem; }
.hours li { border-bottom-style: solid; padding: 10px 0; }
@media (max-width: 820px) { .welcome, .about, .plan-visit { grid-template-columns: 1fr; } }

/* Photographs */
.photo { background: none; border: 0; border-radius: 0; box-shadow: none; }
.photo figcaption { border: 0; padding: 10px 0 0; font-size: .88rem; color: var(--muted); }
.stop-photo { margin: 0 0 18px; }

/* ----- Page headings ----- */
.page-head { padding: clamp(36px, 5vw, 68px) 0 8px; }
.page-head h1 { margin-bottom: 0; }
.page-lead, .page-head p.page-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 44em; }
.other-name { color: var(--muted); font-size: 1.1rem; margin: .3em 0 1em; }
.glossary-hint { margin: 44px 0 0; font-size: .95rem; }
.glossary-hint a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ----- Collection ----- */
.filters { margin: 22px 0 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-count { margin-bottom: 18px; }
.room-section { margin-bottom: clamp(44px, 6vw, 76px); }
.room-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px 40px; align-items: end; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 24px; }
.room-head h2 { margin: 6px 0 0; }
.room-head h2 a { color: var(--ink); text-decoration: none; }
.room-head h2 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.room-head p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .room-head { grid-template-columns: 1fr; } }

/* ----- Object page: the picture, then the label ----- */
.object { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 18px 0 20px; }
.object-art { border: 0; border-radius: 0; box-shadow: none; top: 150px; padding: 8%; }
.object h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: .15em; }
.lede { font-size: 1.14rem; color: var(--ink); }
.label-head { margin: 34px 0 4px; padding-top: 0; }
.facts { margin: 0; }
.callout { background: var(--bg-2); border-left-width: 4px; margin: 22px 0 0; padding: 16px 20px; }
.callout strong { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
html[lang="am"] .callout strong { letter-spacing: .04em; font-size: .88rem; }
.callout p { margin: 0; }
.details-list { padding-left: 1.1em; margin: 8px 0 0; }
.details-list li::marker, .etiquette li::marker { content: "–  "; color: var(--muted); }
.note { border-radius: 2px; margin: 26px 0 18px; }
.related { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 34px; }
.pager { border-top: 1px solid var(--line); margin-top: 44px; padding: 22px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a { text-decoration: none; color: var(--ink); font-family: var(--serif-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.pager a:last-child { text-align: right; }
.pager a small { display: block; font-family: var(--serif); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pager a:hover { color: var(--green); }
.stop .pager { display: flex; border: 0; margin-top: 22px; padding: 0; }
.stop .pager a { font-family: var(--serif); font-size: .9rem; color: var(--green); }
.stop .pager a.btn:not(.ghost) { color: #fff; }
@media (max-width: 860px) { .object-art { top: 0; } }

/* ----- History: a plain chronology ----- */
.timeline { margin: 26px 0 0; max-width: 900px; }
.timeline::before { display: none; }
.tl-item, .tl-item:nth-child(even) { width: 100%; margin: 0; padding: 26px 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 32px; border-top: 1px solid var(--line); }
.tl-item::before, .tl-item:nth-child(even)::before { display: none; }
.tl-year { font-size: 1.35rem; color: var(--red); flex-direction: column; gap: 2px; align-items: flex-start; line-height: 1.25; }
html[lang="am"] .tl-year { font-size: 1.05rem; font-family: var(--ethiopic); }
.tl-year .geez { color: var(--muted); font-size: .9rem; }
.tl-card, .tl-card.church { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; }
.tl-card h2 { font-size: 1.5rem; margin: 0 0 8px; }
html[lang="am"] .tl-card h2 { font-size: 1.2rem; }
.tl-card p { color: var(--ink-soft); max-width: 40em; }
.tl-item.church { border-top: 2px solid var(--ink); }
.tl-card .eyebrow { margin-bottom: 4px; }
@media (max-width: 700px) { .tl-item, .tl-item:nth-child(even) { grid-template-columns: 1fr; padding: 20px 0; } .tl-year { flex-direction: row; gap: 10px; align-items: baseline; } }

/* ----- Panels: tour, calendar, script, visit, today ----- */
.panel, .stop, .plan, .cal, .converter, .numerals, .glyph-card, .fidel-wrap { box-shadow: none; border-radius: 3px; }
.stop .other-name { margin: -.2em 0 0; font-size: 1rem; }
.cal-head h2 { font-size: 1.5rem; }
.cal-head h2 .yr { color: var(--muted); font-size: .8em; font-weight: 500; }
.cal-day { border-radius: 2px; text-decoration: none; color: var(--ink); }
.upcoming li { border-radius: 2px; border-left-width: 3px; }
.aside-title { font-size: 1.5rem; }
html[lang="am"] .aside-title { font-size: 1.25rem; }
.months { margin-top: 44px; }
.months-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.months-table th, .months-table td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.months-table thead th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
html[lang="am"] .months-table thead th { letter-spacing: .03em; font-size: .85rem; }
.months-table a { color: var(--ink); text-decoration: none; font-weight: 600; }
.months-table a small { color: var(--muted); font-weight: 400; }
.months-table tr.current th, .months-table tr.current td { background: color-mix(in srgb, var(--flag-yellow) 22%, transparent); }
.fidel th small { display: block; font-weight: 400; opacity: .8; }
.converter h2 { margin-bottom: .5em; }
.visit-grid .panel h3:first-child, .visit-grid .panel .church-title + h3 { margin-top: 0; }
.visit-grid h3 { font-size: 1.25rem; }

/* ----- Glossary ----- */
.glossary { columns: 2 340px; column-gap: 56px; margin: 18px 0 0; }
.glossary > div { break-inside: avoid; border-top: 1px solid var(--line); padding: 16px 0 18px; scroll-margin-top: 160px; }
.glossary dt { font-size: 1.25rem; font-weight: 700; }
.glossary dt small { font-family: var(--serif); font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: 8px; font-style: italic; }
.glossary dd { margin: 6px 0 0; color: var(--ink-soft); }

/* ----- Footer ----- */
.site-footer { margin-top: clamp(48px, 7vw, 96px); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr); gap: 36px 56px; align-items: start; padding: 44px 0 30px; }
.footer-title { font-size: 1rem; }
.footer-name { font-size: 1.5rem; }
.footer-id .footer-date { text-align: left; color: var(--flag-yellow); margin-top: 14px; font-size: .95rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links h2 { color: #a9c4b0; }
.footer-links a { display: block; color: #f3efe4; text-decoration: none; padding: 5px 0; font-size: .96rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-credit { padding-bottom: 26px; margin: 0 auto; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { grid-template-columns: 1fr 1fr; } }

/* ----- Phones ----- */
@media (max-width: 760px) {
  .grid { gap: 26px 14px; grid-template-columns: 1fr 1fr; }
  .grid .card-body { padding: 10px 0 0; }
  .rooms { grid-template-columns: 1fr; gap: 0; }
  .room { flex-direction: row; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
  .room-art { width: 96px; flex: none; padding: 10px; }
  .room-body { border: 0; margin: 0; padding: 0; }
  .room-body h3 { font-size: 1.3rem; }
  .today-strip .linkish { margin-left: 0; }
  .tabbar { border-top: 1px solid var(--line); border-image: none; box-shadow: none; }
  .hero-photo { min-height: 78vh; }
  .pager a { font-size: 1.05rem; }
}

/* Entries are always visible (no scroll-in effect) */
.tl-item { opacity: 1; transform: none; transition: none; }
/* Highlights: five across on a wide screen */
@media (min-width: 761px) { .grid.highlights { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.room-section .tag, .related .tag { display: none; }
@media (max-width: 860px) { .object { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .brand-am.brand-title { text-wrap: pretty; } }

/* Hero photograph: keep the picture bright; darken only what sits behind the words */
.hero-shade { background: linear-gradient(90deg, rgba(10, 12, 9, .62) 0%, rgba(10, 12, 9, .34) 40%, rgba(10, 12, 9, 0) 68%), linear-gradient(0deg, rgba(10, 12, 9, .3), transparent 35%); }
@media (max-width: 700px) {
  .hero-shade { background: linear-gradient(0deg, rgba(10, 12, 9, .82) 0%, rgba(10, 12, 9, .62) 30%, rgba(10, 12, 9, 0) 58%); }
  .hero-photo h1, .hero-photo .lead, .hero-photo .eyebrow, .hero-title { text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 2px 16px rgba(0, 0, 0, .5); }
}
