@import url("/site-header.css");

@font-face {
  font-family: "Noto Serif KR Church";
  src: url("/assets/fonts/notoserifkr-church-name.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+AD50, U+B840, U+C740, U+CE68, U+D3EC, U+D56D, U+D61C, U+D68C;
}

:root {
  color-scheme: light;
  --ivory: #f6f3ea;
  --paper: #fdfbf5;
  --green: #253f35;
  --gold: #a58a59;
  --ink: #202f2a;
  --muted: #53635a;
  --rule: #d7d9cd;
  --active: #e9eee4;
  --field-green: #233d34;
  --field-ink: #f8f4e8;
  --field-muted: #d9e1ce;
  --sans: "IBM Plex Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font: 16px/1.6 var(--sans);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ivory: #131b20;
  --paper: #1c282e;
  --green: #b9dec3;
  --gold: #d7b17b;
  --ink: #e6ede8;
  --muted: #b4c3b9;
  --rule: #405451;
  --active: #2b403a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); }
body:has(#info-page:not([hidden])) { min-height: 100dvh; display: flex; flex-direction: column; }
body:has(#info-page:not([hidden])) main { flex: 1; }
::selection { color: var(--ink); background: var(--active); }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, a, label.file-button, summary { -webkit-tap-highlight-color: transparent; }
button, summary, label.file-button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 2px solid #8a642e; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.28; word-break: keep-all; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 9; padding: 8px 16px; background: var(--paper); color: var(--green); }

/* The cover uses the dark cloth already present in the church's Bible photograph. */
.home-cover {
  --cover-green: #192e25;
  --cover-paper: #fff9e8;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cover-green);
  color: var(--cover-paper);
}
.home-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 54%;
  mask-image: linear-gradient(to right, transparent, #000 42%);
}
.home-opening {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(365px, 34vw, 520px);
  padding-block: 56px;
}
.home-title {
  color: var(--cover-paper);
  font: 700 clamp(2.1rem, 4.65vw, 4.8rem)/1.24 "Noto Serif KR Church", var(--sans);
  letter-spacing: -.035em;
}
.home-opening p { margin-top: 16px; color: #e1e6d9; font-size: clamp(1rem, 1.3vw, 1.18rem); word-break: keep-all; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 32px; }
.home-primary, .home-text-link, .back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.home-primary { padding: 8px 23px; border-radius: 3px; color: var(--cover-green); background: var(--cover-paper); text-decoration: none; }
.home-primary:hover { background: #ecdcb2; }
.home-text-link, .back-link { color: var(--green); text-underline-offset: .33em; }
.home-actions .home-text-link { color: var(--cover-paper); text-decoration-color: #b2bca9; }
.home-cover :focus-visible { outline-color: #fff9db; }
.home-text-link:hover, .back-link:hover { text-decoration-thickness: 2px; }

.home-worship { background: var(--paper); border-bottom: 1px solid var(--rule); }
.home-worship-inner { display: grid; grid-template-columns: 1fr .82fr 1.28fr; padding-block: 24px; }
.home-worship-inner section { display: grid; align-content: start; gap: 5px; padding-inline: clamp(16px, 3vw, 48px); }
.home-worship-inner section:first-child { padding-inline-start: 0; }
.home-worship-inner section:last-child { padding-inline-end: 0; }
.home-worship-inner section + section { border-inline-start: 1px solid var(--rule); }
.home-worship h2 { color: var(--muted); font-size: .93rem; font-weight: 600; }
.home-worship p { color: var(--green); font-size: clamp(1rem, 1.5vw, 1.32rem); font-weight: 600; word-break: keep-all; }
.home-worship a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; gap: .7em; text-decoration: none; }
.home-worship a:hover { text-decoration: underline; }

.home-content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); padding-block: clamp(42px, 5.2vw, 84px); }
.home-content section { scroll-margin-block-start: 24px; }
.home-content h2 { color: var(--green); font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.35; letter-spacing: -.035em; }
.home-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-section-heading a { font-size: .94rem; white-space: nowrap; }
.home-content ul { list-style: none; margin: 13px 0 0; padding: 0; border-top: 1px solid var(--gold); }
.home-content li { border-bottom: 1px solid var(--rule); }
.home-content li a { position: relative; text-decoration: none; color: var(--ink); }
.home-content li a:hover strong { color: var(--green); text-decoration: underline; text-underline-offset: .22em; }
.home-sermons a { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) .5rem; align-items: center; gap: clamp(14px, 2vw, 28px); padding: 18px 8px 18px 0; }
.home-sermon-date { display: grid; gap: 2px; color: var(--green); font-variant-numeric: lining-nums tabular-nums; }
.home-sermon-date span { font: normal 1.72rem/1.1 Georgia, serif; }
.home-sermon-date small { color: var(--muted); font-size: .82rem; }
.home-sermon-summary { display: grid; gap: 3px; }
.home-sermons strong { font-size: clamp(1.05rem, 1.5vw, 1.3rem); word-break: keep-all; overflow-wrap: anywhere; }
.home-sermon-meta, .home-study a span { color: var(--muted); font-size: .94rem; }
.home-study { align-self: start; padding: clamp(20px, 2vw, 32px); background: var(--paper); }
.home-study h2 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
.home-study ul { margin-top: 18px; }
.home-study li:last-child { border-bottom: 0; }
.home-study a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 13px 5px 13px 0; }
.home-study a strong { font-size: 1.05rem; }
.home-study a span { grid-column: 1; }
.home-study a::after { grid-column: 2; grid-row: 1 / 3; }
.home-content li a::after, .home-worship a::after {
  content: "";
  width: .4rem;
  height: .4rem;
  border: solid var(--muted);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

.reader { padding-top: clamp(14px, 3.2vw, 44px); padding-bottom: 64px; scroll-margin-top: 12px; }
.reader-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 20px; }
.reader-label { color: var(--muted); font-size: .95rem; margin-top: 7px; }
.reader-heading h1 { font: 700 clamp(1.75rem, 3vw, 2.65rem)/1.26 var(--sans); letter-spacing: -.035em; }
.reader .back-link { margin-bottom: 8px; font-size: .9rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 7px 13px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: white; font-size: .89rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover:not(:disabled) { background: #375749; }
.button.secondary { background: transparent; border-color: #aeb8aa; color: var(--green); }
.button.secondary:hover:not(:disabled) { background: var(--active); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; align-items: start; }
.media { min-width: 0; position: sticky; top: 12px; scroll-margin-top: 12px; z-index: 1; background: var(--ivory); padding-bottom: 12px; }
.player-host { display: grid; place-items: center; color: #e6ebe4; background: #17271f; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; }
.player-host > iframe, .player-host > video { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.player-host > p { padding-inline: 16px; text-align: center; }
.media-meta { min-height: 44px; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 2px 13px; color: var(--muted); font-size: .85rem; }
.media-meta a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--green); }
.media-meta [data-state="error"] { color: #7e3525; }
.share-current { margin-bottom: 2px; }
.demo-player { display: grid; align-content: center; gap: 10px; min-height: 200px; aspect-ratio: 16 / 9; padding: clamp(18px, 4vw, 52px); background: var(--green); color: #fffaf0; }
.demo-label { font-size: .87rem; color: #f8e5bd; }
#demo-time { font: normal clamp(2.1rem, 5vw, 4rem)/1 var(--sans); font-variant-numeric: tabular-nums; }
.demo-player input { width: 100%; margin: 0; min-height: 28px; accent-color: #dec497; }
.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-controls .button, .demo-controls select { min-height: 42px; background: var(--paper); color: var(--green); border-radius: 3px; padding: 5px 11px; }
.demo-controls .button:hover { background: #e9eee4; }

.panel { border: 1px solid var(--rule); background: var(--paper); min-width: 0; }
.reader-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.reader-tabs button { min-height: 53px; border: 0; border-bottom: 3px solid transparent; background: var(--paper); color: var(--muted); font-size: 1.05rem; font-weight: 600; }
.reader-tabs button:is(:hover, [aria-selected="true"]) { background: #eef1e8; color: var(--green); }
.reader-tabs button[aria-selected="true"] { border-bottom-color: var(--green); font-weight: 700; }
.reader-tabs button:focus-visible { outline-offset: -4px; }
.outline .panel-note { padding: 14px 18px; }
.outline-list, .transcript-list, .search-results { margin: 0; padding: 0; list-style: none; }
.outline-list { max-height: clamp(22rem, 63vh, 39rem); overflow: auto; overscroll-behavior: contain; scrollbar-color: #98a598 #f2f2ea; }
.chapter { display: flex; align-items: stretch; min-width: 0; border-top: 1px solid var(--rule); }
.chapter-seek { min-height: 58px; flex: 1 1 0; min-width: 0; padding: 10px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink); background: none; text-align: left; border: 0; }
.chapter-title { font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; }
.chapter time { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chapter-actions { display: flex; flex: 0 0 auto; justify-content: end; align-items: center; padding-right: 5px; }
.chapter-reference { min-height: 44px; padding-inline: 5px; font-size: .82rem; white-space: nowrap; }
.chapter.is-current { background: var(--active); box-shadow: inset 3px 0 0 var(--green); }
.chapter-seek:hover { background: #eff1e9; }
.transcript { display: flex; flex-direction: column; }
.transcript-head { padding: 10px 17px 14px; border-bottom: 1px solid var(--rule); }
.transcript-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; min-height: 44px; margin-bottom: 8px; }
#follow-current[aria-pressed="false"] { color: white; background: var(--green); }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.search-field input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #aeb8aa; border-radius: 3px; background: #fffefa; color: var(--ink); }
.search-field input::placeholder { color: #58635a; opacity: 1; }
.search-field input:disabled { background: var(--ivory); }
.icon-button { min-width: 44px; background: var(--paper); color: var(--green); border-color: #aeb8aa; }
.button.icon-button:hover:not(:disabled) { background: var(--active); }
.search-meta { padding-top: 8px; }
.search-meta small, .panel-note { color: var(--muted); font-size: .85rem; }
.search-results { max-height: 126px; overflow: auto; overscroll-behavior: contain; }
.result { min-height: 44px; width: 100%; color: var(--green); text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 6px 4px; overflow-wrap: anywhere; }
.result[aria-current="true"] { background: var(--active); }
.result time { margin-right: 8px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.transcript-empty { min-height: 267px; display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center; padding: 26px; }
.transcript-empty p { color: var(--muted); max-width: 28ch; word-break: keep-all; }
.transcript-empty .transcript-empty-title { font-size: 1.17rem; color: var(--green); font-weight: 700; }
.transcript-scroll { height: clamp(16rem, 52vh, 33rem); overflow: auto; overscroll-behavior: contain; scrollbar-color: #98a598 #f2f2ea; }
.transcript-paragraph { position: relative; display: grid; grid-template-columns: minmax(49px, auto) minmax(0, 1fr); gap: 14px; padding: 18px 20px 20px 14px; align-items: start; }
.transcript-paragraph + .transcript-paragraph { border-top: 1px solid var(--rule); }
.paragraph-meta { display: grid; justify-items: start; }
.paragraph-seek, .copy-time, .reference { background: none; color: var(--green); border: 0; }
.paragraph-seek, .copy-time { min-height: 44px; padding: 3px 5px; }
.paragraph-seek { font-weight: 600; font-size: .89rem; font-variant-numeric: tabular-nums; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.copy-time { width: 44px; font-weight: bold; font-size: 1.04rem; }
.copy-time:hover, .paragraph-seek:hover { background: #e0e8dc; }
.paragraph-meta .copy-time { color: var(--muted); }
.paragraph-text { font-size: 1.07rem; line-height: 1.95; overflow-wrap: anywhere; word-break: keep-all; }
.cue-text { cursor: pointer; }
.cue.is-current .cue-text, .cue:focus-within .cue-text, .cue-text:hover { background: #e2ebdf; border-radius: 2px; }
.cue-action:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cue-action:focus { position: absolute; z-index: 1; top: 6px; right: 14px; width: auto; min-height: 44px; padding: 6px 12px; border: 1px solid var(--green); background: var(--paper); color: var(--green); font-size: .9rem; font-weight: 600; }
.reference { color: #324e3b; display: inline; padding: 2px 1px; line-height: inherit; text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
mark { background: #f1dda1; color: inherit; }
.word.is-current { color: #fff; background: #3f604c; border-radius: 2px; }
.import-row { padding: 12px 17px; border-top: 1px solid var(--rule); }
.import-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.import-row small { color: var(--muted); }
.import-row:focus-within .file-button { outline: 2px solid #8a642e; outline-offset: 3px; }
.import-row p:not(:empty) { margin-top: 5px; }
.info-page { padding: clamp(36px, 6vw, 78px) 0 clamp(54px, 8vw, 100px); }
.info-page h1 { color: var(--green); font: 700 clamp(1.95rem, 4.5vw, 3.2rem)/1.22 var(--sans); letter-spacing: -.035em; }
.info-page p { margin: 10px 0 23px; color: var(--muted); }
.info-group { margin: 26px 0; max-width: 850px; border-top: 1px solid var(--rule); }
.info-group h2 { margin: 18px 0 8px; font-size: 1.25rem; }
.resource-link { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 12px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--green); }
.resource-link:hover { background: var(--active); }
.resource-link span { color: var(--muted); font-size: .92rem; }
.info-note { color: var(--muted); }
.chronicles-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  max-width: 850px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  background: var(--paper);
}
.chronicles-overview, .chronicles-update { padding: clamp(16px, 3vw, 28px); }
.chronicles-overview { display: grid; align-content: space-between; gap: 18px; }
.chronicles-overview h2 { color: var(--green); font-size: clamp(1.45rem, 3vw, 1.85rem); }
.chronicles-feature p { margin: 6px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.chronicles-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chronicles-update { background: var(--active); }
.chronicles-update h3 { margin-top: 4px; font-size: 1.15rem; }
.chronicles-update h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); }
.chronicles-feature .chronicles-caption { margin: 0; font-weight: 700; }
.chronicles-feature .chronicles-edition { margin-top: 14px; }
.chronicles-caption, .chronicles-edition { font-size: .88rem; }
.chronicles-feature a { cursor: pointer; }
.chronicles-feature a:focus-visible { outline-color: var(--green); }
.chronicles-update a:hover { text-decoration-thickness: 2px; }
.additional-video { display: block; width: min(100%, 850px); aspect-ratio: 16 / 9; min-height: 200px; border: 0; background: #17271f; }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.site-footer span { color: var(--muted); font-size: .86rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: .88rem; }
.toast { position: fixed; z-index: 5; right: 18px; bottom: 18px; color: white; padding: 9px 15px; border-radius: 3px; background: var(--green); }
dialog { width: min(560px, calc(100% - 36px)); max-height: calc(100% - 44px); color: var(--ink); background: var(--paper); padding: 21px; border: 1px solid var(--gold); }
dialog::backdrop { background: #15241db3; }
.dialog-head { display: flex; gap: 12px; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.dialog-head p { color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.dialog-head h2 { font: bold 1.6rem/1.25 var(--sans); }
#verse-text { padding-top: 12px; }
#verse-text p + p { margin-top: 8px; }
#verse-text sup { padding-right: 5px; color: var(--muted); }
#share-url { width: 100%; margin-top: 12px; padding: 8px; }

@media (max-width: 950px) {
  .workspace { gap: 15px; }
}

@media (max-width: 710px) {
  .home-photo { inset: auto 0 0; width: 100%; height: 77%; object-position: 50% 53%; mask-image: linear-gradient(to bottom, transparent 0%, #000 56%); }
  .home-opening { min-height: clamp(385px, 86vw, 480px); justify-content: flex-start; padding-block: clamp(28px, 6vw, 46px); }
  .home-title { font-size: clamp(2rem, 8.8vw, 3.45rem); }
  .home-opening p { margin-top: 7px; }
  .home-actions { margin-top: 15px; gap: 8px 18px; }
  .home-worship-inner { grid-template-columns: 1fr 1fr; gap: 14px 0; padding-block: 19px; }
  .home-worship-inner section { padding-inline: 16px; }
  .home-worship-inner section:last-child { grid-column: 1 / -1; gap: 2px; padding: 12px 0 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .home-content { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px; }
  .home-sermons a { grid-template-columns: 3.5rem minmax(0, 1fr) .45rem; gap: 12px; }
  .home-sermon-date span { font-size: 1.42rem; }
  .chronicles-feature { grid-template-columns: minmax(0, 1fr); }
  .reader { padding-top: 10px; padding-bottom: 39px; }
  .reader-heading { flex-wrap: wrap; align-items: start; gap: 10px; margin-bottom: 13px; }
  .reader-heading h1 { font-size: clamp(1.58rem, 6vw, 2.1rem); }
  .workspace { display: block; }
  .media { top: 0; z-index: 2; }
  .outline-list { max-height: 26rem; }
  .chapter-seek { padding-inline: 12px; }
  .chapter { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .chapter-actions { flex-direction: column; justify-content: center; }
  .transcript-head { padding: 10px 12px; }
  .transcript-scroll { height: clamp(15rem, 48vh, 25rem); }
  .transcript-paragraph { gap: 8px; padding: 14px 12px 16px 7px; }
  .paragraph-text { font-size: 1.02rem; line-height: 1.9; }
  .site-footer { padding: 18px 0; }
}

@media (max-width: 710px) and (max-height: 580px) {
  .media { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[data-theme="dark"] .demo-player { background: var(--field-green); }
[data-theme="dark"] .button { background: #345f4e; border-color: #638470; color: #fff; }
[data-theme="dark"] .button.secondary, [data-theme="dark"] .button.icon-button { background: transparent; color: var(--ink); border-color: var(--rule); }
[data-theme="dark"] .button:hover:not(:disabled), [data-theme="dark"] .reader-tabs button:is(:hover, [aria-selected="true"]), [data-theme="dark"] .chapter-seek:hover { background: var(--active); color: var(--ink); }
[data-theme="dark"] .search-field input { background: #172329; border-color: var(--rule); color: var(--ink); }
[data-theme="dark"] .search-field input::placeholder { color: #b4c3b9; }
[data-theme="dark"] .reference { color: #c5e2ca; }
[data-theme="dark"] .cue.is-current .cue-text, [data-theme="dark"] .cue:focus-within .cue-text, [data-theme="dark"] .cue-text:hover { background: #355246; }
[data-theme="dark"] mark { background: #806b31; color: #fff; }
[data-theme="dark"] .toast { background: #345f4e; }
[data-theme="dark"] .media-meta [data-state="error"] { color: #ffac96; }
[data-theme="dark"] .webtoon-page .verse-box { color: #202f2a; }

/* 어린이 영어 성경공부 영상 그리드 */
.english-player { max-width: 850px; }
.english-now-title { margin-top: 16px; color: var(--green); font-size: clamp(1.15rem, 2.4vw, 1.5rem); word-break: keep-all; overflow-wrap: anywhere; }
.english-share { margin-top: 10px; }
.english-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.english-card { display: block; width: 100%; padding: 0 0 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); text-align: left; overflow: hidden; }
.english-card:hover { background: var(--active); }
.english-card.is-current { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.english-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #17271f; }
.english-card-body { display: block; padding: 10px 12px 0; }
.english-card-body strong { display: block; color: var(--green); font-size: .98rem; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.english-card-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }

/* 주보 보관함 (최근 10주) */
.bulletin-viewer { max-width: 850px; }
.bulletin-viewer img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
.bulletin-now-title { margin-top: 16px; color: var(--green); font-size: clamp(1.15rem, 2.4vw, 1.5rem); word-break: keep-all; overflow-wrap: anywhere; }
.bulletin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.bulletin-card { display: block; width: 100%; padding: 0 0 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); text-align: left; overflow: hidden; }
.bulletin-card:hover { background: var(--active); }
.bulletin-card.is-current { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.bulletin-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.bulletin-card-body { display: block; padding: 10px 12px 0; }
.bulletin-card-body strong { display: block; color: var(--green); font-size: .98rem; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.bulletin-card-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }

@media (max-width: 950px) {
  .english-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulletin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 710px) {
  .english-grid { grid-template-columns: minmax(0, 1fr); }
  .bulletin-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Chronology two-pane research workspace */
body:has(.chrono-workspace) #info-page{width:calc(100% - 32px);max-width:none;padding-block:24px 48px}
.chrono-workspace{margin:18px 0 34px;min-width:0}
.chrono-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;color:var(--muted);font-size:.86rem}
.chrono-controls button,.chrono-actions button{border:1px solid var(--rule);color:var(--green);background:var(--paper);border-radius:5px;padding:5px 9px;min-height:34px;white-space:nowrap;font-size:.82rem;font-weight:600}
.chrono-controls button[aria-pressed=true],.chrono-actions button:hover,.chrono-controls button:hover{background:var(--active);border-color:var(--gold)}
.chrono-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.chrono-grid[data-layout=left]{grid-template-columns:minmax(0,7fr) minmax(0,3fr)}
.chrono-grid[data-layout=right]{grid-template-columns:minmax(0,3fr) minmax(0,7fr)}
.chrono-grid[data-closed=genealogy]{grid-template-columns:minmax(0,1fr)}
.chrono-grid[data-closed=timeline]{grid-template-columns:minmax(0,1fr)}
.chrono-grid[data-closed=genealogy] [data-pane=genealogy]{order:-1}
.chrono-pane{min-width:0;border:1px solid var(--rule);border-radius:7px;overflow:hidden;background:var(--paper)}
.chrono-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 13px;background:var(--paper);border-bottom:1px solid var(--rule)}
.chrono-head h2{color:var(--green);font-size:clamp(.98rem,1.3vw,1.2rem);margin:0}
.chrono-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.chrono-body iframe{display:block;border:0;width:100%;height:max(620px,calc(100dvh - 270px));background:var(--paper)}
@media(max-width:850px){body:has(.chrono-workspace) #info-page{width:calc(100% - 24px)}.chrono-grid,.chrono-grid[data-layout=left],.chrono-grid[data-layout=right]{grid-template-columns:minmax(0,1fr)}.chrono-body iframe{height:70dvh;min-height:480px}.chrono-head{padding:8px 10px}.chrono-controls button{min-height:40px}}

/* Chronology: layout controls inline in the timeline header. */
body:has(.chrono-workspace) #info-page{padding-top:12px}
.chrono-workspace{margin-top:0}
.chrono-head .chrono-controls{margin:0 0 0 auto;gap:4px;justify-content:flex-end}
.chrono-head .chrono-controls button{min-height:30px;padding:4px 7px;font-size:.78rem}
.chrono-head .chrono-actions{margin-left:auto;gap:4px}
.chrono-head:has(.chrono-controls) .chrono-actions{margin-left:0}
.chrono-head h2{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
@media(max-width:850px){.chrono-head .chrono-controls button{min-height:36px}.chrono-head .chrono-controls{margin-left:auto}}

/* Single persistent chronology toolbar, independent of open panels. */
.chrono-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;margin:0 0 8px;background:var(--paper);border:1px solid var(--rule);border-radius:6px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.chrono-toolbar>.chrono-head{flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:0;border:0;background:transparent}
.chrono-toolbar>.chrono-head h2{font-size:clamp(.83rem,1.05vw,1.05rem);white-space:nowrap;margin:0}
.chrono-toolbar .chrono-actions,.chrono-toolbar .chrono-controls{flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:4px;margin:0}
.chrono-toolbar button{min-height:30px;padding:4px 7px;font-size:.78rem}
.chrono-toolbar>.chrono-controls{padding-inline:10px;border-inline:1px solid var(--rule)}
.chrono-grid>.chrono-pane[hidden]{display:none!important}
.chrono-grid[data-closed="timeline genealogy"],.chrono-grid[data-closed="genealogy timeline"]{display:none}
.chrono-grid[data-closed=genealogy] [data-pane=genealogy]{order:0}
@media(max-width:850px){.chrono-toolbar{justify-content:flex-start;gap:8px;padding:5px 7px}.chrono-toolbar button{min-height:34px}.chrono-toolbar>.chrono-controls{padding-inline:8px}}
