/* 七十載・傳承之光：歷史回顧專用樣式。
   只影響 .history-page；沿用既有共用頁首、側欄及淺藍主色。 */
.history-page {
    --history-ink: #183e59;
    --history-blue: #4e91b3;
    --history-sky: #dceff8;
    --history-paper: #fffdf7;
    --history-cream: #f8f1df;
    --history-gold: #a36b25;
    --history-line: #dfcfa9;
    --history-muted: #576b78;
    background: #fffdf9;
    font-size: 16px;
    line-height: 1.75;
}
.history-page #header { align-items: center; border-bottom-width: 1px; }
.history-page #main > .inner > section { border-top: 0; }
.history-page h1,
.history-page h2,
.history-page h3 { color: var(--history-ink); }
.history-page header p:not(.history-kicker) { letter-spacing: 0; margin-top: 0; text-transform: none; }
.history-page header .history-kicker { letter-spacing: .06em; margin-top: 0; text-transform: none; }
.history-page a:focus-visible,
.history-page button:focus-visible,
.history-page summary:focus-visible { outline: 3px solid #d29a39; outline-offset: 4px; }
.history-page .history-hero {
    background: linear-gradient(125deg, #e2f4fc 0%, #fffdf7 57%, #f9eed8 100%);
    border: 1px solid var(--history-line);
    border-radius: 20px;
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1.16fr) minmax(14rem, .84fr);
    margin: 2rem 0 0;
    overflow: hidden;
    padding: clamp(1.6rem, 3.8vw, 3.7rem);
    position: relative;
}
.history-page .history-hero::before {
    background: linear-gradient(90deg, #7ecde9, #f5c970, #df9a8f, #8bd3bd);
    content: "";
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
}
.history-kicker,
.history-page .history-kicker {
    color: var(--history-gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .15em;
    margin: 0 0 .65rem;
    text-transform: none;
}
.history-page .history-hero h1 { font-size: clamp(2rem, 3.2vw, 3.35rem); line-height: 1.22; margin: 0 0 .85rem; }
.history-page .history-hero h1 small,
.history-page .section-title-en,
.history-page .entry-en,
.history-page .timeline-en,
.history-page .archive-en { color: var(--history-muted); display: block; font-family: Georgia, serif; font-size: .45em; font-style: italic; font-weight: 400; letter-spacing: .02em; line-height: 1.45; margin-top: .35rem; }
.history-page .history-hero .lead { color: #385c70; font-size: 1.06rem; margin: 0; max-width: 45rem; }
.history-hero-visual { align-self: center; margin: 0; position: relative; }
.history-hero-visual img { background: #fff; border: 8px solid rgba(255,255,255,.9); box-shadow: 0 15px 34px rgba(34,59,74,.17); display: block; height: clamp(13rem, 26vw, 20rem); object-fit: contain; transform: rotate(1.2deg); width: 100%; }
.history-hero-visual figcaption { color: var(--history-muted); font-size: .78rem; line-height: 1.5; padding: .8rem .2rem 0; text-align: center; }
.history-directory { border-top: 1px solid var(--history-line); padding: 3.2rem 0 1.5rem; }
.history-directory > header { max-width: 50rem; }
.history-directory h2 { font-size: clamp(1.75rem, 2.7vw, 2.35rem); margin: 0 0 .65rem; }
.history-directory > header p { color: var(--history-muted); margin: 0 0 1.7rem; }
.history-door-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.history-door { background: #fff; border: 1px solid var(--history-line); border-radius: 14px; color: inherit; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; text-decoration: none; transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
.history-door:hover { border-color: #c89a51; box-shadow: 0 14px 30px rgba(50,68,74,.14); transform: translateY(-3px); }
.history-door figure { background: var(--history-cream); height: 11.5rem; margin: 0; overflow: hidden; }
.history-door figure img { height: 100%; object-fit: contain; width: 100%; }
.history-door .history-door-copy { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.3rem 1.35rem; }
.history-door .door-number { color: var(--history-gold); font-family: Georgia, serif; font-size: .85rem; letter-spacing: .1em; }
.history-door h3 { font-size: 1.28rem; line-height: 1.35; margin: .45rem 0 .65rem; }
.history-door p { color: var(--history-muted); font-size: .91rem; margin: 0; }
.history-door .entry-description-en { color: var(--history-muted); display: block; font-family: Georgia, serif; font-size: .78rem; font-style: italic; line-height: 1.45; margin-top: .3rem; }
.history-door .door-action { color: var(--history-ink); font-size: .86rem; font-weight: 700; margin-top: auto; padding-top: 1rem; }
.history-source-bar { background: #f8f2e4; border-left: 4px solid #d6a64a; border-radius: 0 10px 10px 0; color: #5c6870; font-size: .86rem; margin: 2.1rem 0 0; padding: 1rem 1.25rem; }
.history-source-bar strong { color: var(--history-ink); }
/* 首頁歷史回顧入口 */
.anniversary-home .history-home { border-top: 1px solid #e0d1ad; }
.history-home-intro { align-items: center; background: linear-gradient(115deg, #eff9fd 0%, #fffdf7 58%, #fbf1df 100%); border: 1px solid #e2d2ad; border-radius: 14px; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) auto; margin: 1.25rem 0 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.history-home-intro h3 { color: var(--history-ink); font-size: 1.1rem; margin: .2rem 0 .55rem; }
.history-home-intro p { color: var(--history-muted); margin: 0; max-width: 48rem; }
.history-home-intro .button { margin: 0; white-space: nowrap; }
.history-home-cards { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.history-home-cards a { background: #fff; border: 1px solid #e0d1ad; border-radius: 12px; color: var(--history-ink); display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); min-height: 6.5rem; overflow: hidden; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.history-home-cards a:hover { box-shadow: 0 10px 24px rgba(50,68,74,.12); transform: translateY(-2px); }
.history-home-cards img { background: #f4eee1; height: 100%; object-fit: contain; width: 100%; }
.history-home-cards span { align-self: center; display: block; padding: .8rem .85rem; }
.history-home-cards b { display: block; font-size: .98rem; line-height: 1.35; }
.history-home-cards small { color: var(--history-muted); display: block; font-family: Georgia, serif; font-size: .76rem; font-style: italic; line-height: 1.35; margin-top: .2rem; }
/* 創校緣起 */
.founding-layout { border-top: 1px solid var(--history-line); padding: 3.15rem 0 1rem; }
.founding-intro { color: var(--history-muted); font-size: 1.04rem; max-width: 51rem; }
.founder-pair { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 2.6rem; }
.founder-card { background: #fff; border: 1px solid var(--history-line); border-radius: 14px; display: grid; gap: 1.25rem; grid-template-columns: minmax(7rem, .72fr) minmax(0, 1.28fr); padding: 1rem; }
.founder-card figure { background: #f1ecdf; margin: 0; overflow: hidden; }
.founder-card img { display: block; height: 100%; min-height: 12rem; object-fit: contain; width: 100%; }
.founder-card h2 { font-size: 1.32rem; line-height: 1.35; margin: .1rem 0 .55rem; }
.founder-card p { color: var(--history-muted); font-size: .91rem; margin: 0; }
.founder-role { color: var(--history-gold); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: none; }
.founding-story { border-top: 1px solid var(--history-line); display: grid; gap: 1.3rem; grid-template-columns: 8rem minmax(0, 1fr); padding: 1.7rem 0; }
.founding-story .story-year { color: var(--history-gold); font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.1; padding-top: .15rem; }
.founding-story h3 { font-size: 1.28rem; margin: 0 0 .45rem; }
.founding-story p { color: var(--history-muted); margin: 0; max-width: 54rem; }

/* 創校緣起深化：獨立歷史相片與較完整的中英敘事。 */
.founding-hero .history-hero-visual img { background: #f4efe4; object-fit: contain; }
.founding-chapter { border-top: 1px solid var(--history-line); display: grid; gap: 1.5rem; grid-template-columns: 8rem minmax(0, 1fr); padding: 2.1rem 0; }
.founding-chapter--maryknoll { margin-top: 1.9rem; }
.chapter-index { color: var(--history-gold); font-family: Georgia, serif; padding-top: .15rem; }
.chapter-index span { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.chapter-index small { color: var(--history-muted); display: block; font-family: Arial, sans-serif; font-size: .63rem; font-weight: 700; letter-spacing: .08em; line-height: 1.35; margin-top: .35rem; }
.chapter-copy h3,
.founders-tribute h3,
.opening-memory h3 { font-size: 1.38rem; line-height: 1.35; margin: 0 0 .8rem; }
.chapter-copy p { color: var(--history-muted); margin: 0 0 1rem; max-width: 57rem; }
.chapter-copy p:last-child { margin-bottom: 0; }
.chapter-copy p[lang="en"],
.founder-feature p[lang="en"],
.opening-memory > header p[lang="en"] { color: #607783; font-family: Georgia, serif; font-size: .94em; font-style: italic; }
.chapter-archive-image { background: #f3eee3; border: 1px solid var(--history-line); margin: 1.3rem 0 0; max-width: 15rem; padding: .55rem; }
.chapter-archive-image img { display: block; height: 13.5rem; object-fit: contain; width: 100%; }
.chapter-archive-image figcaption { color: var(--history-muted); font-size: .75rem; line-height: 1.45; padding: .55rem .1rem .1rem; }
.chapter-archive-image figcaption span { display: block; font-family: Georgia, serif; font-style: italic; margin-top: .15rem; }
.maryknoll-image-row { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(10rem, .68fr) minmax(0, 1.32fr); margin: 1.35rem 0 0; max-width: 50rem; }
.maryknoll-image-row--single { display: block; max-width: 50rem; }
.maryknoll-image-row--single .maryknoll-center-photo { max-width: 38rem; }
.maryknoll-image-row--houses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.maryknoll-image-row--houses .maryknoll-center-photo a { border: 0; display: block; line-height: 0; }
.maryknoll-image-row--houses .maryknoll-center-photo img { height: auto; }
@media screen and (max-width: 600px) {
    .maryknoll-image-row--houses { grid-template-columns: minmax(0, 1fr); }
}
.founding-large-en { font-size: .58em !important; }
.founding-chapter .chapter-copy p.founding-large-body-en { font-size: 1.03em; }
.no-break { white-space: nowrap; }
/* 創校頁校監校對：各層級標題下的英文副標題保持一致而清晰。 */
.founding-page .history-hero h1 small,
.founding-page .section-title-en,
.founding-page .entry-en { font-size: .58em !important; }
.maryknoll-image-row .chapter-archive-image { margin: 0; max-width: none; }
.maryknoll-center-photo { background: #f3eee3; border: 1px solid var(--history-line); margin: 0; min-width: 0; padding: .55rem; }
.maryknoll-center-photo img { display: block; height: 15rem; object-fit: contain; width: 100%; }
.maryknoll-center-photo figcaption { color: var(--history-muted); font-size: .75rem; line-height: 1.45; padding: .55rem .1rem .1rem; }
.maryknoll-center-photo figcaption span { display: block; font-family: Georgia, serif; font-style: italic; margin-top: .15rem; }
.maryknoll-center-photo figcaption small { color: #687e89; display: block; font-size: .9em; line-height: 1.45; margin-top: .5rem; }
.maryknoll-center-photo figcaption small span { display: inline; font-size: 1em; }
.maryknoll-center-photo figcaption a { border-bottom: 1px dotted currentColor; color: #357f9d; }
.founders-tribute { border-top: 1px solid var(--history-line); padding: 2.3rem 0 2.2rem; }
.founders-tribute > header,
.opening-memory > header { max-width: 60rem; }
.founders-tribute > header p,
.opening-memory > header p { color: var(--history-muted); margin: 0 0 .85rem; }
.founder-feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.founder-feature { background: #fff; border: 1px solid var(--history-line); border-radius: 14px; overflow: hidden; }
.founder-independent-photo { align-items: center; background: #f2eee4; border-bottom: 1px solid var(--history-line); display: flex; height: 17rem; justify-content: center; margin: 0; padding: .85rem; }
.founder-independent-photo img { box-shadow: 0 10px 20px rgba(46,60,66,.16); display: block; height: 100%; max-width: 100%; object-fit: contain; }
.founder-feature > div { padding: 1.35rem 1.45rem 1.55rem; }
.founder-feature h3 { font-size: 1.35rem; line-height: 1.35; margin: .25rem 0 .75rem; }
.founder-feature p { color: var(--history-muted); font-size: .94rem; margin: 0 0 1rem; }
.founder-feature p:last-child { margin-bottom: 0; }
.opening-memory { border-top: 1px solid var(--history-line); padding: 2.4rem 0 0; }
.opening-photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.5rem; }
.opening-photo-grid figure { background: #fff; border: 1px solid var(--history-line); margin: 0; padding: .6rem; }
.opening-photo-grid img { background: #eee9de; display: block; height: 12rem; max-width: 100%; object-fit: contain; width: 100%; }
.opening-photo-grid figcaption { color: var(--history-muted); font-size: .78rem; line-height: 1.45; padding: .65rem .15rem .15rem; }
.opening-photo-grid figcaption span { display: block; font-family: Georgia, serif; font-size: .96em; font-style: italic; margin-top: .2rem; }
.opening-photo-grid .opening-photo-wide { grid-column: 1 / -1; }
.opening-photo-grid .opening-photo-wide img { height: 11rem; }

/* 創校初年：每張完整歷史相片獨立成卡，避免原始大圖推闊正文。 */
.founding-early-years { border-top: 1px solid var(--history-line); padding: 2.4rem 0 0; }
.founding-early-years > header { max-width: 60rem; }
.founding-early-years > header p { color: var(--history-muted); margin: 0 0 .85rem; }
.founding-early-years > header p[lang="en"] { font-family: Georgia, serif; font-size: .94em; font-style: italic; }
.founding-early-years-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
.founding-early-years-grid figure { background: #fff; border: 1px solid var(--history-line); margin: 0; min-width: 0; padding: .6rem; }
.founding-early-years-grid img { background: #eee9de; display: block; height: 12rem; max-width: 100%; object-fit: contain; width: 100%; }
.founding-early-years-grid figcaption { color: var(--history-muted); font-size: .78rem; line-height: 1.45; padding: .65rem .15rem .15rem; }
.founding-early-years-grid figcaption span { display: block; font-family: Georgia, serif; font-size: .96em; font-style: italic; margin-top: .2rem; }
/* 里程長廊 */
.timeline-intro { border-top: 1px solid var(--history-line); padding: 3rem 0 .5rem; }
.timeline-intro > p { color: var(--history-muted); max-width: 55rem; }
.history-timeline { margin: 2rem 0 0; padding: 0 0 0 2rem; position: relative; }
.history-timeline::before { background: linear-gradient(#c79a54, #98cfe2 88%, #d6a64a); content: ""; inset: .6rem auto .6rem .35rem; position: absolute; width: 2px; }
.timeline-entry { background: #fff; border: 1px solid var(--history-line); border-radius: 13px; margin: 0 0 1.2rem; overflow: visible; position: relative; }
.timeline-entry::before { background: var(--history-gold); border: 4px solid #fffdf7; border-radius: 50%; box-shadow: 0 0 0 1px #cba66a; content: ""; height: .9rem; left: -2.18rem; position: absolute; top: 1.35rem; width: .9rem; }
.timeline-entry summary { align-items: center; cursor: pointer; display: grid; gap: 1rem; grid-template-columns: 7rem minmax(0, 1fr) auto; list-style: none; padding: 1.15rem 1.3rem; }
.timeline-entry summary::-webkit-details-marker { display: none; }
.timeline-year { color: var(--history-gold); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.timeline-entry summary strong { color: var(--history-ink); font-size: 1.07rem; line-height: 1.3; }
.timeline-entry summary .timeline-en { font-size: .82em; line-height: 1.4; margin-top: .28rem; }
.timeline-toggle { color: var(--history-gold); font-size: 1.1rem; transition: transform .2s ease; }
.timeline-entry[open] .timeline-toggle { transform: rotate(45deg); }
.timeline-body { border-top: 1px solid #eee1c8; display: grid; gap: 1.35rem; grid-template-columns: minmax(0, 1.35fr) minmax(12rem, .65fr); padding: 1.25rem 1.3rem 1.35rem 8.3rem; }
.timeline-body p { color: var(--history-muted); margin: 0; }
.timeline-body figure { margin: 0; }
.timeline-body img { border: 1px solid #e0d5bd; display: block; height: 10.5rem; object-fit: contain; width: 100%; }
.timeline-body figcaption { color: var(--history-muted); font-size: .76rem; line-height: 1.45; padding-top: .4rem; }
.timeline-entry--future { background: #f3f9fb; border-style: dashed; }
.timeline-entry--future::before { background: #8bcabc; }
/* 光影憶記：每一張卡均為從校刊逐張整理的獨立原照。 */
.archive-page .history-hero-visual img { object-fit: contain; }
.archive-intro { border-top: 1px solid var(--history-line); padding: 3rem 0 1.35rem; }
.archive-intro > p { color: var(--history-muted); margin-bottom: .55rem; max-width: 55rem; }
.archive-section { border-top: 1px solid var(--history-line); padding: 2.7rem 0 2.9rem; }
.archive-section-head { align-items: start; display: grid; gap: 1.2rem; grid-template-columns: 8rem minmax(0, 1fr); margin-bottom: 1.55rem; }
.archive-section-index { color: var(--history-gold); font-family: Georgia, serif; font-size: .82rem; font-weight: 700; letter-spacing: .12em; margin: .35rem 0 0; }
.archive-section-head h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.25; margin: 0 0 .6rem; }
.archive-section-head p:not(.archive-section-index) { color: var(--history-muted); margin: 0 0 .45rem; max-width: 52rem; }
.archive-photo-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-card { background: #fff; border: 1px solid var(--history-line); border-radius: 12px; color: inherit; cursor: zoom-in; display: flex; flex-direction: column; font: inherit; height: auto !important; letter-spacing: normal; line-height: normal; overflow: hidden; padding: 0; text-align: left; text-transform: none; transition: box-shadow .22s ease, transform .22s ease; }
.archive-card:hover { box-shadow: 0 13px 26px rgba(50,68,74,.14); transform: translateY(-2px); }
.archive-card-media { align-items: center; background: linear-gradient(135deg, #f5f0e5, #eef6f8); display: flex; flex: 0 0 clamp(12.5rem, 18vw, 15.5rem); height: clamp(12.5rem, 18vw, 15.5rem); justify-content: center; overflow: hidden; padding: .65rem; }
.archive-card img { display: block; height: 100%; max-width: 100%; object-fit: contain; width: 100%; }
.archive-card-copy { display: block; padding: .95rem 1rem 1.05rem; }
.archive-card strong { color: var(--history-ink); display: block; font-size: 1rem; line-height: 1.4; }
.archive-card small { color: var(--history-muted); display: block; font-size: .78rem; line-height: 1.5; margin-top: .35rem; }
.archive-card .archive-en { font-size: .87rem; }
.archive-more { align-items: center; background: linear-gradient(135deg, #f7f0e1, #edf8fb); border: 1px dashed #ca9d58; border-radius: 12px; color: var(--history-ink); display: flex; flex-direction: column; justify-content: center; min-height: 17.8rem; padding: 1.2rem; text-align: center; }
.archive-more .icon { color: var(--history-gold); font-size: 1.7rem; }
.archive-more h3 { font-size: 1.1rem; margin: .6rem 0 .35rem; }
.archive-more p { color: var(--history-muted); font-size: .83rem; margin: 0; }
#archive-lightbox { background: rgba(19,43,60,.95); border: 0; box-shadow: 0 25px 75px rgba(0,0,0,.4); color: #fff; max-height: 94vh; max-width: min(96vw, 72rem); padding: 1rem; width: auto; }
#archive-lightbox::backdrop { background: rgba(16,44,64,.74); }
.archive-lightbox-inner { margin: 0; position: relative; }
.archive-lightbox-inner img { display: block; max-height: 76vh; max-width: 90vw; object-fit: contain; }
.archive-lightbox-inner figcaption { color: #e8f2f6; font-size: .9rem; line-height: 1.5; padding: .75rem .2rem .1rem; }
.archive-lightbox-close { background: #fff; border: 0; border-radius: 50%; color: var(--history-ink); cursor: pointer; font-size: 1.25rem; height: 2.2rem; line-height: 2rem; padding: 0; position: absolute; right: .45rem; top: .45rem; width: 2.2rem; }
@media screen and (max-width: 980px) {
    .history-door-grid { grid-template-columns: 1fr; }
    .history-door { display: grid; grid-template-columns: minmax(11rem,.5fr) minmax(0,1fr); }
    .history-door figure { height: auto; }
    .founder-pair { grid-template-columns: 1fr; }
    .founder-feature-grid { grid-template-columns: 1fr; }
    .opening-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .archive-photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media screen and (max-width: 736px) {
    .history-page { font-size: 15px; }
    .history-page #header { padding-top: 4.8rem; }
    .history-page .history-hero { grid-template-columns: 1fr; padding: 1.55rem; }
    .history-page .history-hero h1 { font-size: 2rem; }
    .history-hero-visual { max-width: 22rem; }
    .history-door { display: flex; }
    .history-door figure { height: 10rem; }
    .history-home-intro { align-items: start; grid-template-columns: 1fr; }
    .history-home-intro .button { white-space: normal; }
    .history-home-cards { grid-template-columns: 1fr; }
    .history-home-cards a { grid-template-columns: 6rem minmax(0, 1fr); }
    .founder-card { grid-template-columns: 7rem minmax(0,1fr); }
    .founder-card img { min-height: 9rem; }
    .founding-story { grid-template-columns: 1fr; gap: .35rem; }
    .founding-chapter { gap: .55rem; grid-template-columns: 1fr; padding: 1.65rem 0; }
    .chapter-index { align-items: baseline; display: flex; gap: .6rem; }
    .chapter-index small { margin-top: 0; }
    .founder-independent-photo { height: 14rem; }
    .founder-feature > div { padding: 1.2rem; }
    .maryknoll-image-row { grid-template-columns: 1fr; }
    .maryknoll-center-photo img { height: auto; max-height: none; }
    .opening-photo-grid { grid-template-columns: 1fr; }
    .opening-photo-grid img,
    .opening-photo-grid .opening-photo-wide img { height: auto; max-height: 15rem; }
    .founding-early-years-grid { grid-template-columns: 1fr; }
    .founding-early-years-grid img { height: auto; max-height: 15rem; }
    .history-timeline { padding-left: 1.5rem; }
    .history-timeline::before { left: .25rem; }
    .timeline-entry::before { left: -1.7rem; }
    .timeline-entry summary { grid-template-columns: 5.3rem minmax(0,1fr) auto; padding: 1rem; }
    .timeline-year { font-size: 1.1rem; }
    .timeline-body { grid-template-columns: 1fr; padding: 1rem; }
    .timeline-body img { height: 12rem; }
    .archive-section { padding: 2rem 0 2.25rem; }
    .archive-section-head { gap: .3rem; grid-template-columns: 1fr; }
    .archive-section-index { margin: 0; }
    .archive-photo-grid { grid-template-columns: 1fr; }
    .archive-card-media { flex-basis: clamp(14rem, 62vw, 18rem); height: clamp(14rem, 62vw, 18rem); }
}
@media (prefers-reduced-motion: reduce) {
    .history-page *, .history-page *::before, .history-page *::after { transition-duration: .01ms !important; }
}

/* 第十九輪：完整單張歷史影像、信仰意象與可放大的相簿閱讀。 */
.history-page #main {
    background-color: #fffdf8;
    background-image:
        radial-gradient(circle at 92% 7%, rgba(192, 155, 78, .09) 0 2px, transparent 2.5px),
        radial-gradient(circle at 94% 9%, rgba(119, 183, 207, .11) 0 1.5px, transparent 2px),
        linear-gradient(90deg, transparent 0, transparent 96%, rgba(91, 154, 182, .045) 96%, rgba(91, 154, 182, .045) 96.15%, transparent 96.15%);
    background-size: 3.3rem 3.3rem, 2.6rem 2.6rem, 100% 100%;
}
.history-page .history-hero > * { position: relative; z-index: 1; }
.history-page .history-hero-visual img {
    background: #f6f0e4;
    object-fit: contain;
    transform: none;
}
.history-page .history-door figure {
    align-items: center;
    display: flex;
    justify-content: center;
}
.history-page .history-door figure img,
.history-page .history-home-cards img {
    object-fit: contain;
}
.history-page .timeline-body img {
    background: #f6f1e7;
    object-fit: contain;
    padding: .35rem;
}
.history-page .history-source-bar { display: none; }

/* 相簿以真正的大視窗閱讀：先完整呈現，點擊後可進一步放大。 */
#archive-lightbox {
    box-sizing: border-box;
    height: min(92vh, 62rem);
    margin: auto;
    max-height: 92vh;
    max-width: min(96vw, 82rem);
    padding: .85rem;
    width: min(96vw, 82rem);
}
.archive-lightbox-inner {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    height: 100%;
    margin: 0;
    min-height: 0;
}
.archive-lightbox-inner img {
    align-self: center;
    cursor: zoom-in;
    height: 100%;
    justify-self: center;
    max-height: none;
    max-width: 100%;
    min-height: 0;
    object-fit: contain;
    width: 100%;
}
.archive-lightbox-hint {
    color: #cce5ef;
    font-size: .78rem;
    line-height: 1.4;
    margin: .2rem .2rem 0;
    text-align: center;
}
#archive-lightbox.is-zoomed { overflow: auto; }
#archive-lightbox.is-zoomed .archive-lightbox-inner { height: auto; min-height: 100%; overflow: visible; }
#archive-lightbox.is-zoomed .archive-lightbox-inner img {
    cursor: zoom-out;
    height: auto;
    max-height: none;
    max-width: none;
    min-height: 0;
    object-fit: initial;
    width: 150%;
}
#archive-lightbox.is-zoomed .archive-lightbox-hint { position: sticky; bottom: 0; }

.archive-section--beginnings {
    background: linear-gradient(110deg, rgba(224, 243, 250, .44), rgba(255, 253, 247, .15));
    border-radius: 14px;
    margin-top: .65rem;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}
.archive-section--beginnings .archive-section-index { color: #548aa4; }

@media screen and (max-width: 736px) {
    #archive-lightbox { height: 90vh; max-width: 98vw; padding: .65rem; width: 98vw; }
    .archive-lightbox-inner img { max-width: 100%; }
    #archive-lightbox.is-zoomed .archive-lightbox-inner img { width: 175%; }
    .archive-section--beginnings { padding-left: 1rem; padding-right: 1rem; }
}


/* 第五十六輪：五年時段中尚待補錄的校史，以文雅的預留卡呈現。 */
.timeline-entry--future,
.timeline-entry--reserved {
    background: #f3f9fb;
    border-style: dashed;
}
.timeline-entry--future::before,
.timeline-entry--reserved::before { background: #8bcabc; }
.timeline-body--text-only {
    display: block;
    padding-right: 1.3rem;
}
.timeline-body--text-only p { max-width: 62rem; }
@media screen and (max-width: 736px) {
    .timeline-body--text-only { padding-right: 1rem; }
}


/* 2005–2010：兩張已核實歷史相片同列閱讀，手機自然轉為單欄。 */
.timeline-figure-pair {
    display: grid;
    gap: .8rem;
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.timeline-figure-pair figure { margin: 0; }
@media screen and (max-width: 980px) {
    .timeline-figure-pair { grid-column: 1; }
}
@media screen and (max-width: 736px) {
    .timeline-figure-pair { grid-template-columns: 1fr; }
}


/* 第九十九輪：每五年分組、組內獨立里程項目及供稿人物相片。 */
.timeline-entry--group > summary { align-items: start; }
.timeline-items { border-top: 1px solid #eee1c8; display: grid; gap: 1.15rem; padding: 1.25rem 1.3rem 1.4rem 8.3rem; }
.timeline-item { border-left: 3px solid #c8a064; min-width: 0; padding-left: 1rem; }
.timeline-item + .timeline-item { border-top: 1px solid #eee1c8; border-left-color: #8fbfd0; padding-top: 1.1rem; }
.timeline-item header { align-items: baseline; display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .55rem; }
.timeline-item-year { color: var(--history-gold); font-family: Georgia, serif; font-size: .93rem; font-weight: 700; letter-spacing: .05em; }
.timeline-item h3 { color: var(--history-ink); font-size: 1.02rem; line-height: 1.35; margin: 0; }
.timeline-item h3 small { color: var(--history-muted); display: block; font-family: Georgia, serif; font-size: .78em; font-weight: 400; margin-top: .16rem; }
.timeline-item-content { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.35fr) minmax(12rem, .65fr); }
.timeline-item-content p { color: var(--history-muted); margin: 0; }
.timeline-item-content p span[lang="en"] { display: block; font-family: Georgia, serif; font-size: .92em; font-style: italic; margin-top: .45rem; }
.timeline-item-content figure { margin: 0; min-width: 0; }
.timeline-item-content img { background: #f6f1e7; border: 1px solid #e0d5bd; display: block; height: 10.5rem; object-fit: contain; padding: .35rem; width: 100%; }
.timeline-item-content figcaption { color: var(--history-muted); font-size: .76rem; line-height: 1.45; padding-top: .4rem; }
.timeline-item-content figcaption span { display: block; font-family: Georgia, serif; font-style: italic; margin-top: .12rem; }
.timeline-people { border-top: 1px solid var(--history-line); margin-top: 2.6rem; padding: 2.5rem 0 1rem; }
.timeline-people > header { max-width: 58rem; }
.timeline-people h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); margin: 0 0 .6rem; }
.timeline-people h2 small { color: var(--history-muted); display: block; font-family: Georgia, serif; font-size: .45em; font-weight: 400; margin-top: .3rem; }
.timeline-people > header p { color: var(--history-muted); margin: 0 0 .5rem; }
.timeline-people > header p[lang="en"] { font-family: Georgia, serif; font-size: .94em; font-style: italic; }
.timeline-people-grid { display: grid; gap: 1rem; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 1.35rem; }
.timeline-people-grid figure { background: #fff; border: 1px solid var(--history-line); margin: 0; padding: .45rem; }
.timeline-people-grid img { background: #f6f1e7; display: block; height: 10rem; object-fit: contain; width: 100%; }
.timeline-people-grid figcaption { color: var(--history-muted); font-size: .76rem; line-height: 1.4; padding: .5rem .15rem .2rem; }
@media screen and (max-width: 980px) {
    .timeline-items { padding-left: 1.3rem; }
    .timeline-item-content { grid-template-columns: minmax(0, 1fr) minmax(10rem, .62fr); }
    .timeline-people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 736px) {
    .timeline-items { padding: 1rem; }
    .timeline-item-content { grid-template-columns: 1fr; }
    .timeline-item-content img { height: auto; max-height: 15rem; }
    .timeline-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline-people-grid img { height: 12rem; }
}

/* 第100輪：創校頁早期石硤尾相片以緊湊兩行相簿呈現，點擊沿用歷史相簿放大視窗。 */
.founding-chapter > .chapter-copy { min-width: 0; }
.chapter-copy > .founding-early-kowloon { min-width: 0; width: 100%; }
.founding-early-kowloon { border-top: 1px solid var(--history-line); margin-top: 1.45rem; padding-top: 1.35rem; }
.founding-early-kowloon > header { max-width: 58rem; }
.founding-early-kowloon > header h4 { color: var(--history-ink); font-size: 1.08rem; line-height: 1.35; margin: 0 0 .55rem; }
.founding-early-kowloon > header p { color: var(--history-muted); font-size: .88rem; margin: 0 0 .45rem; }
.founding-early-kowloon-gallery { gap: .75rem; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1rem; max-width: 100%; }
.founding-early-kowloon-gallery .archive-card-media { flex-basis: clamp(6.5rem, 11vw, 9rem); height: clamp(6.5rem, 11vw, 9rem); padding: .4rem; }
.founding-early-kowloon-gallery .archive-card-copy { padding: .55rem .65rem .65rem; }
.founding-early-kowloon-gallery .archive-card strong { font-size: .82rem; line-height: 1.3; }
.founding-early-kowloon-gallery .archive-card small { font-size: .7rem; line-height: 1.35; }
@media screen and (max-width: 980px) {
    .founding-early-kowloon-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media screen and (max-width: 736px) {
    .founding-early-kowloon-gallery { gap: .55rem; grid-template-columns: repeat(5, minmax(6.5rem, 1fr)); overflow-x: auto; padding-bottom: .5rem; }
    .founding-early-kowloon-gallery .archive-card-media { flex-basis: 6.3rem; height: 6.3rem; }
    .founding-early-kowloon-gallery .archive-card-copy { padding: .45rem .5rem .55rem; }
    .founding-early-kowloon-gallery .archive-card strong { font-size: .76rem; }
    .founding-early-kowloon-gallery .archive-card small { font-size: .65rem; }
}

.founding-early-kowloon .archive-card { min-width: 0; white-space: normal; }
.founding-early-kowloon .archive-card-copy { overflow-wrap: anywhere; }
#archive-lightbox .archive-lightbox-prev,
#archive-lightbox .archive-lightbox-next {
    background: rgba(255,255,255,.94);
    border: 0;
    border-radius: 50%;
    color: var(--history-ink);
    cursor: pointer;
    font-size: 2rem;
    height: 2.55rem;
    line-height: 2rem;
    padding: 0;
    position: absolute;
    top: 45%;
    width: 2.55rem;
    z-index: 2;
}
#archive-lightbox .archive-lightbox-prev { left: .65rem; }
#archive-lightbox .archive-lightbox-next { right: .65rem; }
@media screen and (max-width: 736px) {
    #archive-lightbox .archive-lightbox-prev { left: .2rem; }
    #archive-lightbox .archive-lightbox-next { right: .2rem; }
}

/* 第109輪：每個有事件的年份獨立顯示；相片只附於對應事件。 */
.history-timeline .timeline-item-content--text { grid-template-columns: minmax(0, 1fr); }
.history-timeline .timeline-photo-button.archive-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    width: 100%;
}
.history-timeline .timeline-photo-button.archive-card:hover { transform: none; }
.history-timeline .timeline-photo-button.archive-card:focus-visible {
    outline: 2px solid var(--history-ink);
    outline-offset: 3px;
}
.history-timeline .timeline-portrait { max-width: 15rem; }
.history-timeline .timeline-portrait img { height: 12rem; object-fit: contain; }
@media screen and (max-width: 736px) {
    .history-timeline .timeline-portrait { max-width: 13rem; }
    .history-timeline .timeline-portrait img { height: 12rem; }
}

/* 第111輪：年份直接展開，事件只保留一組中英文字及小相片。 */
.history-timeline--expanded { margin-top: 1.75rem; padding-left: 0; }
.history-timeline--expanded::before { display: none; }
.timeline-year-block {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    margin: 0;
    padding: 0 0 1.1rem;
}
.timeline-year-label {
    color: var(--history-gold);
    font-size: 1.12rem;
    line-height: 1.45;
    margin: 0;
    padding-top: .1rem;
}
.timeline-year-block > .timeline-items {
    border: 0;
    border-left: 2px solid var(--history-line);
    gap: .65rem;
    min-width: 0;
    padding: 0 0 .25rem 1.1rem;
}
.timeline-year-block .timeline-item { border: 0; padding: 0; }
.timeline-year-block .timeline-item + .timeline-item { border: 0; padding-top: 0; }
.history-timeline--expanded .timeline-item-content {
    align-items: start;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 8.5rem;
}
.history-timeline--expanded .timeline-item-content--text { grid-template-columns: minmax(0, 1fr); }
.history-timeline--expanded .timeline-item-content p { font-size: .95rem; line-height: 1.55; }
.history-timeline--expanded .timeline-item-content p span[lang="en"] {
    font-size: .9em;
    line-height: 1.45;
    margin-top: .2rem;
}
.history-timeline--expanded .timeline-item-content figure,
.history-timeline--expanded .timeline-portrait { max-width: 8.5rem; width: 100%; }
.history-timeline--expanded .timeline-item-content img {
    height: 6rem;
    max-height: none;
    object-fit: contain;
    padding: .2rem;
}
@media screen and (max-width: 736px) {
    .timeline-year-block { gap: .7rem; grid-template-columns: 3.7rem minmax(0, 1fr); padding-bottom: .95rem; }
    .timeline-year-label { font-size: 1rem; }
    .timeline-year-block > .timeline-items { gap: .65rem; padding-left: .7rem; }
    .history-timeline--expanded .timeline-item-content { gap: .35rem; grid-template-columns: minmax(0, 1fr); }
    .history-timeline--expanded .timeline-item-content figure,
    .history-timeline--expanded .timeline-portrait { max-width: 7rem; }
    .history-timeline--expanded .timeline-item-content img { height: 5rem; }
}

/* 第112輪：小相片緊貼對應段落，右側沿用首頁原書法作淺色水印。 */
.history-timeline--expanded .timeline-item-content {
    display: flex;
    gap: .75rem;
    max-width: 46rem;
}
.history-timeline--expanded .timeline-item-content p {
    flex: 0 1 auto;
    max-width: 36rem;
    min-width: 0;
}
.history-timeline--expanded .timeline-item-content--text { display: block; }
.history-timeline--expanded .timeline-item-content figure,
.history-timeline--expanded .timeline-portrait {
    flex: 0 0 8.5rem;
    max-width: 8.5rem;
    width: 8.5rem;
}
.history-timeline--expanded .timeline-watermark {
    display: none;
    pointer-events: none;
}
@media screen and (min-width: 1100px) {
    .history-timeline--expanded > .timeline-year-block { max-width: calc(100% - 13rem); }
    .history-timeline--expanded .timeline-watermark {
        bottom: 0;
        display: block;
        position: absolute;
        right: .75rem;
        top: 0;
        width: 11rem;
    }
    .history-timeline--expanded .timeline-watermark-art {
        background-color: rgba(167, 137, 76, .14);
        display: block;
        height: 19rem;
        -webkit-mask-image: url("../../images/history/round112/anniversary-calligraphy-watermark.png");
        mask-image: url("../../images/history/round112/anniversary-calligraphy-watermark.png");
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
        position: sticky;
        top: 3rem;
        width: 100%;
    }
}
@media screen and (max-width: 736px) {
    .history-timeline--expanded .timeline-item-content { flex-direction: column; gap: .35rem; }
    .history-timeline--expanded .timeline-item-content p { max-width: 100%; width: 100%; }
    .history-timeline--expanded .timeline-item-content figure,
    .history-timeline--expanded .timeline-portrait { flex: 0 0 auto; max-width: 7rem; width: 7rem; }
}

/* 第113輪：相片固定欄位對齊；原書法水印在相片旁放大至接近畫面高度。 */
.history-timeline--expanded .timeline-item-content {
    display: grid;
    grid-template-columns: minmax(0, 28rem) 8.5rem;
    max-width: 37.25rem;
    width: 100%;
}
.history-timeline--expanded .timeline-item-content p { grid-column: 1; grid-row: 1; }
.history-timeline--expanded .timeline-item-content figure { grid-column: 2; }
.history-timeline--expanded .timeline-item-content--text { display: block; }
@media screen and (min-width: 1100px) {
    .history-timeline--expanded {
        --timeline-watermark-width: min(36vw, 28.5rem, calc(82vh * 370 / 595));
    }
    .history-timeline--expanded > .timeline-year-block {
        max-width: min(44.75rem, calc(100% - var(--timeline-watermark-width) - 1.25rem));
    }
    .history-timeline--expanded .timeline-watermark {
        left: min(46rem, calc(100% - var(--timeline-watermark-width)));
        right: auto;
        width: var(--timeline-watermark-width);
    }
    .history-timeline--expanded .timeline-watermark-art {
        height: calc(var(--timeline-watermark-width) * 595 / 370);
    }
}
@media screen and (max-width: 736px) {
    .history-timeline--expanded .timeline-item-content { display: flex; }
    .history-timeline--expanded .timeline-item-content--text { display: block; }
}

/* 第113輪：相簿按鈕不沿用底稿的單行限制，完整展示中英圖說。 */
.archive-section .archive-card {
    min-width: 0;
    white-space: normal;
}
.archive-section .archive-card-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* 第114輪：相片欄參考闊度增加15%，同時將原水印向右移。
   桌面利用原有右側4rem內距，不把裝飾推到畫面之外。 */
@media screen and (min-width: 737px) {
    .history-timeline--expanded .timeline-item-content {
        grid-template-columns: minmax(0, 32.20rem) 8.5rem;
        max-width: 41.45rem;
    }
}
@media screen and (min-width: 1100px) {
    .history-timeline--expanded {
        margin-right: -4rem;
        width: calc(100% + 4rem);
    }
    .history-timeline--expanded > .timeline-year-block {
        max-width: min(48.95rem, calc(100% - var(--timeline-watermark-width) - 1.25rem));
    }
    .history-timeline--expanded .timeline-watermark {
        left: min(50.20rem, calc(100% - var(--timeline-watermark-width)));
    }
}
.history-timeline--expanded .timeline-video-link {
    display: inline-block;
    font-size: .9em;
    margin-top: .4rem;
}
.history-timeline--expanded .timeline-item-content .timeline-video-link > span[lang="en"] {
    display: inline;
    font-size: 1em;
    margin: 0;
}

/* 第115輪：桌面相片欄及書法標語再向右微移；窄螢幕維持原有文下相片。 */
@media screen and (min-width: 737px) {
    .history-timeline--expanded .timeline-item-content figure {
        transform: translateX(calc(1.75rem + 15%));
    }
}
@media screen and (min-width: 1100px) {
    .history-timeline--expanded {
        overflow-x: clip;
    }
    .history-timeline--expanded .timeline-watermark {
        transform: translateX(calc(1.75rem + 15%));
    }
}

/* 珍貴影片：桌面左紀錄片、右打氣影片；手機保持相同閱讀次序。 */
.archive-video-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.archive-video-card {
    background: #fff;
    border: 1px solid var(--history-line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}
.archive-video-frame {
    aspect-ratio: 16 / 9;
    background: #183e59;
    flex: none;
    position: relative;
}
.archive-video-frame iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}
.archive-video-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem 1.2rem 1.25rem;
}
.archive-video-copy h3 { font-size: 1.15rem; margin: 0 0 .75rem; }
.archive-video-copy h3 .archive-en { font-size: .85rem; }
.archive-video-copy p { font-size: .92rem; line-height: 1.6; margin: 0 0 .6rem; }
.archive-video-copy .archive-video-en { color: var(--history-muted); font-family: Georgia, serif; font-style: italic; }
.archive-video-link { align-self: flex-start; font-size: .9rem; margin-top: auto; padding-top: .3rem; }
@media screen and (max-width: 736px) {
    .archive-video-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 里程長廊暫停公開時，首頁卡片保留原有網格外觀但不提供連結。 */
.history-home-cards .history-pending-entry {
  background: #fff;
  border: 1px solid var(--history-line);
  border-radius: 12px;
  color: var(--history-ink);
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  min-height: 6.5rem;
  overflow: hidden;
  text-decoration: none;
}
.history-home-cards .history-pending-entry img { background: #f4eee1; height: 100%; object-fit: contain; width: 100%; }

/* 2026-11-25 校對：三張首頁歷史卡片文字略放大，桌面與手機各自適配。 */
.anniversary-home .history-home-cards > :is(a, .history-pending-entry) {
  align-self: stretch;
  border: 1px solid #e0d1ad;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  min-height: 6.8rem;
  padding: 0;
}
.anniversary-home .history-home-cards > :is(a, .history-pending-entry) > span {
  min-width: 0;
  padding: .85rem .8rem;
}
.anniversary-home .history-home-cards b {
  color: var(--navy-deep);
  font-size: 1.12rem;
  line-height: 1.4;
  transition: color .2s ease;
}
.anniversary-home .history-home-cards small {
  font-size: .86rem;
  line-height: 1.4;
  transition: color .2s ease;
}
.anniversary-home .history-home-cards .pending-note {
  display: inline-block;
  font-size: .66em;
  margin-left: .2em;
  padding: 0;
}
.anniversary-home .history-home-cards > :is(a, .history-pending-entry):hover b,
.anniversary-home .history-home-cards > :is(a, .history-pending-entry):hover small,
.anniversary-home .history-home-cards > a:focus-visible b,
.anniversary-home .history-home-cards > a:focus-visible small {
  color: var(--gold);
}
@media screen and (max-width: 736px) {
  .anniversary-home .history-home-cards > :is(a, .history-pending-entry) {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    min-height: 6.4rem;
  }
  .anniversary-home .history-home-cards b { font-size: 1.06rem; }
  .anniversary-home .history-home-cards small { font-size: .82rem; }
}
