/* Lịch sử page — static design preview. */
.history-page{--history-gold:#a16b2c;--history-ink:#153650;--history-paper:#fbfaf5;--history-line:#e9e4d9;color:var(--history-ink);background:radial-gradient(ellipse at 0 42%,#ece9d92b,transparent 50%),var(--history-paper);text-align:left}
.history-page h1,.history-page h2,.history-page h3,.history-page p,.history-page figure{margin:0}
.history-page a{text-decoration:none}
.history-page :is(section,article)[id]{scroll-margin-top:24px}
.history-page a:focus-visible,.history-page summary:focus-visible{outline:2px solid var(--history-gold);outline-offset:4px}
.history-icon{display:inline-block;flex:0 0 auto;width:22px;height:22px;background:currentColor;-webkit-mask:var(--history-icon) center/contain no-repeat;mask:var(--history-icon) center/contain no-repeat}
.history-arrow{display:inline-block;flex:0 0 auto;width:17px;height:17px;background:currentColor;-webkit-mask:url("../icons/arrow-right.svg") center/contain no-repeat;mask:url("../icons/arrow-right.svg") center/contain no-repeat}
.history-hero{position:relative;isolation:isolate;display:grid;place-items:center;min-height:clamp(310px,30.5vw,460px);overflow:hidden;padding:32px 20px 38px;background:#f1dfbd var(--history-hero-image,url("../images/bg2.jpg")) center 52%/cover no-repeat}
.history-hero::before{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#ecd7ad00 10%,#fffcefdb 37%,#fffdf5ef 54%,#fff5da8c 71%,#e8ce9d33);content:""}
.history-hero::after{position:absolute;z-index:-1;inset:0;box-shadow:inset 0 0 70px #8d62272b;content:"";pointer-events:none}
.history-hero-landscape{position:absolute;z-index:-2;inset:0 0 0 59%;background:url("../images/bg1.jpg") 8% center/auto 125% no-repeat;filter:sepia(.65) saturate(.65);-webkit-mask-image:linear-gradient(90deg,transparent,#000 45%);mask-image:linear-gradient(90deg,transparent,#000 45%)}
.history-hero-portrait{position:absolute;z-index:-1;bottom:-12%;left:0;width:31%;max-width:450px;height:115%;object-fit:cover;object-position:center 28%;filter:sepia(.8) contrast(1.05);-webkit-mask-image:linear-gradient(90deg,#000 40%,transparent 98%);mask-image:linear-gradient(90deg,#000 40%,transparent 98%)}
.history-hero-copy{width:min(650px,70%);text-align:center}
.history-hero h1{color:#9a6526;font-family:var(--serif);font-size:clamp(46px,5.5vw,80px);font-weight:800;line-height:1.15;letter-spacing:.025em}
@supports (background-clip:text) or (-webkit-background-clip:text){.history-hero h1{background:linear-gradient(180deg,#f0ce7c 10%,#a56c21 48%,#6f430f 85%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 1px 0 #fffbdb)}}
.history-hero-years{margin-top:2px!important;font-family:var(--serif);font-size:clamp(22px,2.3vw,34px);font-weight:800;letter-spacing:.055em;line-height:1.35}
.history-hero-subtitle{font-family:var(--serif);font-size:clamp(18px,2.2vw,31px);font-weight:800;line-height:1.4}
.history-ornament{display:flex;align-items:center;justify-content:center;gap:9px;margin:10px 0;color:#78613e}
.history-ornament::before,.history-ornament::after{width:30px;height:1px;background:currentColor;content:""}
.history-ornament .history-icon{width:13px;height:17px}
.history-hero-quote{color:#513f2b;font-family:var(--serif);font-size:clamp(17px,1.85vw,26px);font-style:italic;line-height:1.5}
.history-container{width:min(calc(100% - 64px),1360px);margin-inline:auto;padding-bottom:36px}
.history-breadcrumb{display:flex;align-items:center;gap:9px;min-height:49px;color:#697178;font-size:12px}
.history-breadcrumb a{display:inline-flex;align-items:center;gap:7px}
.history-breadcrumb a:hover{color:var(--history-gold)}
.history-breadcrumb .history-icon{width:12px;height:12px}
.history-breadcrumb>.history-icon{width:7px;height:9px;color:#8b9296}
.history-breadcrumb [aria-current]{color:var(--history-ink)}
.history-layout{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:start;gap:24px}
.history-sidebar{min-width:0}
.history-navigation{padding:10px 10px 18px;border:1px solid #fff;background:linear-gradient(110deg,#fffefa,#f6f7f38c);box-shadow:0 2px 12px #65684606}
.history-navigation>summary{display:flex;align-items:center;gap:12px;padding:12px 10px 17px;color:#704b27;font-family:var(--serif);font-size:24px;font-weight:700;line-height:1.25;list-style:none;cursor:pointer}
.history-navigation>summary::-webkit-details-marker,.history-chapter-detail>summary::-webkit-details-marker{display:none}
.history-navigation>summary>.history-icon:first-child{width:30px;height:30px;color:var(--history-gold)}
.history-navigation-chevron{display:none;width:12px;height:12px;margin-left:auto}
.history-nav-link{display:flex;align-items:flex-start;gap:12px;margin-bottom:2px;padding:11px 12px;border-radius:5px;color:#40484a;font-size:13px;line-height:1.6}
.history-nav-link .history-icon{width:17px;height:18px;margin-top:2px;color:#8a8c87}
.history-nav-link:hover{background:#eeeade;color:var(--history-gold)}
.history-nav-link.is-active{background:linear-gradient(100deg,#0c6797,#075184);box-shadow:inset 0 0 0 1px #ffffff40,0 2px 5px #174d6d15;color:#fff}
.history-nav-link.is-active .history-icon{color:#fff}
.history-nav-secondary{margin:20px 10px 0;padding-top:13px;border-top:1px solid #dcd9d1}
.history-nav-secondary .history-nav-link{padding-inline:2px}
.history-scripture{position:relative;min-height:485px;margin:24px 10px 0!important;padding:24px 19px;background:#e8cf9c url("../images/bg2.jpg") 85% bottom/auto 100% no-repeat;color:#67401d}
.history-scripture::before{position:absolute;inset:0;background:linear-gradient(#fff4d9b3,transparent 56%);content:""}
.history-scripture blockquote{position:relative;margin:0;font-family:var(--serif);font-size:18px;font-style:italic;line-height:1.7}
.history-scripture figcaption{position:relative;margin-top:10px;font-family:var(--serif);font-size:13px;font-style:italic}
.history-main{min-width:0}
.history-section-title{display:flex;align-items:center;gap:13px;color:#312a24;font-family:var(--serif);font-size:clamp(21px,2vw,28px);font-weight:700;line-height:1.4}
.history-section-title>.history-icon{width:27px;height:27px;color:var(--history-gold)}
.history-overview{position:relative;isolation:isolate;overflow:hidden;min-height:255px;padding:23px 25px 22px;background:#f5efdf}
.history-overview::before{position:absolute;z-index:-2;inset:0;background:var(--history-overview-image,url("../images/bg1.jpg")) right center/auto 140% no-repeat;filter:sepia(.75);content:""}
.history-overview::after{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#fffef8 25%,#fffef8f5 49%,#fffdf5c9 65%,#fff6e321 100%);content:""}
.history-overview-copy{max-width:82%}
.history-overview h3{margin:3px 0 12px;color:var(--history-ink);font-family:var(--serif);font-size:15px;font-weight:700;line-height:1.6}
.history-overview-copy>p{max-width:680px;color:#414448;font-size:13px;line-height:1.75}
.history-overview-button{min-width:185px;margin-top:14px;padding:9px 23px;font-size:12px;box-shadow:none}
.history-chapters{padding-top:22px}
.history-chapter-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px 14px;margin-top:13px}
.history-chapter-card{display:flex;flex-direction:column;grid-column:span 3;overflow:hidden;border:1px solid #eeeee7;border-radius:5px;background:#fffefa;box-shadow:0 3px 12px #454f5410}
.history-chapter-card:nth-child(n+5){grid-column:span 4}
.history-chapter-card:target{outline:2px solid #b7884c;outline-offset:4px}
.history-chapter-image{position:relative;aspect-ratio:1.7;background:#e7dbc8}
.history-chapter-photo{position:absolute;inset:0;overflow:hidden;border-radius:4px 4px 0 0}
.history-chapter-image img{display:block;width:100%;height:100%;object-fit:cover}
.history-chapter-card:nth-child(3) .history-chapter-image img{filter:sepia(.8) saturate(.55)}
.history-chapter-card:nth-child(4) .history-chapter-image img{filter:sepia(.45);transform:scale(1.16)}
.history-chapter-card:nth-child(5) .history-chapter-image{aspect-ratio:2.2}
.history-chapter-card:nth-child(6) .history-chapter-image,.history-chapter-card:nth-child(7) .history-chapter-image{aspect-ratio:2.2}
.history-chapter-number{position:absolute;bottom:-12px;left:10px;display:grid;place-items:center;width:30px;height:30px;border:3px solid #fffdf5;border-radius:50%;background:linear-gradient(140deg,#c09453,#8d591e);box-shadow:0 1px 4px #7753282b;color:#fff;font-family:var(--serif);font-size:19px;font-weight:700;line-height:1}
.history-chapter-body{display:flex;flex:1;flex-direction:column;padding:16px 12px 13px}
.history-chapter-body>h3{min-height:2.85em;color:#12374f;font-family:var(--serif);font-size:16px;font-weight:700;line-height:1.4}
.history-chapter-body>p{min-height:3.3em;margin-top:7px;color:#737475;font-size:12px;line-height:1.65}
.history-chapter-detail{margin-top:auto;padding-top:10px}
.history-chapter-detail>summary{display:flex;align-items:center;gap:12px;width:fit-content;min-height:24px;color:#12374f;font-size:12px;font-weight:600;list-style:none;cursor:pointer}
.history-chapter-detail>summary:hover{color:var(--history-gold)}
.history-chapter-detail[open]>summary{color:var(--history-gold)}
.history-chapter-detail[open]>summary .history-arrow{transform:rotate(90deg)}
.history-chapter-detail>p{margin-top:10px;padding-top:10px;border-top:1px solid var(--history-line);color:#5c6368;font-size:13px;line-height:1.75}
.history-timeline-section{padding-top:26px}
.history-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));margin:16px 0 0;padding:0;list-style:none}
.history-timeline li{min-width:0;text-align:center}
.history-timeline .history-timeline-item{position:relative;display:flex;align-items:center;flex-direction:column;height:100%;padding:0 6px;color:var(--history-ink)}
.history-timeline .history-timeline-item::before{position:absolute;top:108px;right:0;left:0;height:2px;background:linear-gradient(#b48b51,#996727);content:""}
.history-timeline-image{width:100%;max-width:150px;height:90px;margin-bottom:12px;overflow:hidden;border-radius:45% 45% 7% 7%;-webkit-mask-image:linear-gradient(transparent,#000 13%,#000 85%,transparent);mask-image:linear-gradient(transparent,#000 13%,#000 85%,transparent)}
.history-timeline-image img{display:block;width:100%;height:100%;object-fit:cover;filter:sepia(.75) saturate(.6);mix-blend-mode:multiply}
.history-timeline li:nth-child(2) .history-timeline-image img,.history-timeline li:last-child .history-timeline-image img{object-position:left center}
.history-timeline-point{position:relative;z-index:1;display:block;width:13px;height:13px;margin-bottom:10px;border:1px solid #f8d39b;border-radius:50%;background:linear-gradient(135deg,#bd8844,#8d581b);box-shadow:0 0 0 2px #af7c3220}
.history-timeline strong{font-family:var(--serif);font-size:18px;line-height:1.4;white-space:nowrap}
.history-timeline-caption{margin-top:3px;color:#656769;font-size:11px;line-height:1.6}
.history-timeline li:last-child strong{color:#9e1728}
.history-related{padding-top:28px}
.history-related .history-section-title{color:#744a23}
.history-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.history-related-link{display:flex;align-items:center;gap:12px;min-width:0;min-height:78px;padding:14px 12px;border:1px solid #ece9e0;border-radius:4px;background:#fffefa;box-shadow:0 3px 8px #49432705}
.history-related-link>.history-icon:first-child{width:34px;height:34px;color:#a16b2c}
.history-related-link>span:not(.history-icon){font-size:12px;line-height:1.5}
.history-related-link .history-related-chevron{width:9px;height:12px;margin-left:auto;color:#43525a}
.history-related-link:hover{border-color:#c2a06f;background:#faf3e7}
@media(min-width:1181px){.page-template-history .site-header{gap:20px;padding-inline:clamp(24px,3vw,65px)}.page-template-history .primary-menu{gap:clamp(16px,1.8vw,32px)}}
@media(max-width:1180px){
  .history-container{width:calc(100% - 40px)}
  .history-layout{grid-template-columns:225px minmax(0,1fr);gap:18px}
  .history-navigation{padding-inline:5px}
  .history-navigation>summary{font-size:22px}
  .history-nav-link{gap:10px;padding-inline:10px;font-size:12px}
  .history-overview{padding:20px 18px}
  .history-overview-copy{max-width:90%}
  .history-chapter-grid{gap:15px 10px}
  .history-chapter-body{padding-inline:9px}
  .history-chapter-body>h3{font-size:14px}
  .history-chapter-body>p{font-size:11px}
  .history-section-title{gap:10px;font-size:21px}
  .history-related-grid{gap:8px}
  .history-related-link{gap:8px;padding:10px 8px}
  .history-related-link>.history-icon:first-child{width:28px;height:28px}
  .history-related-link>span:not(.history-icon){font-size:11px}
}
@media(max-width:950px){
  .history-layout{grid-template-columns:195px minmax(0,1fr);gap:16px}
  .history-navigation>summary{gap:8px;font-size:20px}
  .history-nav-link{gap:8px;padding:9px 7px;font-size:11px}
  .history-nav-link .history-icon{width:15px;height:16px}
  .history-chapter-card,.history-chapter-card:nth-child(n+5){grid-column:span 6}
  .history-chapter-card:last-child{grid-column:span 12;display:grid;grid-template-columns:1fr 1fr}
  .history-chapter-card:last-child .history-chapter-image{height:100%;aspect-ratio:auto}
  .history-chapter-card:last-child .history-chapter-number{top:10px;bottom:auto}
  .history-chapter-image,.history-chapter-card:nth-child(n+5) .history-chapter-image{aspect-ratio:1.8}
  .history-chapter-body>h3{font-size:16px}
  .history-chapter-body>p{font-size:12px}
  .history-overview h3{margin-left:0;font-size:13px}
  .history-overview-copy{max-width:100%}
  .history-overview::after{background:linear-gradient(90deg,#fffef8fa,#fffef8ec 65%,#fff6e380)}
  .history-timeline strong{font-size:14px}
  .history-timeline-caption{font-size:10px}
  .history-timeline-image{height:70px}
  .history-timeline .history-timeline-item::before{top:88px}
  .history-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .history-scripture{margin-inline:0!important;padding-inline:15px}
  .history-scripture blockquote{font-size:16px}
}
@media(max-width:720px){
  .history-hero{min-height:310px;padding:32px 16px}
  .history-hero-copy{width:min(100%,480px)}
  .history-hero-portrait{width:44%;left:-10%;opacity:.23}
  .history-hero::before{background:linear-gradient(90deg,#fff8e6a6,#fffcefec 46%,#fff7e2ad)}
  .history-hero h1{font-size:48px}
  .history-hero-subtitle{font-size:20px}
  .history-hero-quote{font-size:18px}
  .history-container{width:calc(100% - 32px);padding-bottom:28px}
  .history-breadcrumb{min-height:46px}
  .history-layout{grid-template-columns:1fr;gap:18px}
  .history-navigation{padding:0 10px}
  .history-navigation>summary{padding-block:14px;font-size:21px}
  .history-navigation-chevron{display:block;transform:rotate(90deg)}
  .history-navigation[open] .history-navigation-chevron{transform:rotate(-90deg)}
  .history-navigation nav{padding-bottom:12px}
  .history-nav-link{font-size:13px;padding:10px}
  .history-nav-secondary{margin-top:12px}
  .history-scripture{display:none}
  .history-overview{padding:24px 20px}
  .history-overview::after{background:#fffef8ed}
  .history-overview-copy{text-align:center}
  .history-overview .history-section-title{justify-content:center}
  .history-overview h3{margin:9px 0 13px;font-size:14px}
  .history-overview-copy>p{font-size:13px;line-height:1.8}
  .history-section-title{font-size:21px}
  .history-chapter-grid{gap:16px 12px}
  .history-chapter-body{padding:18px 12px 14px}
  .history-chapter-body{text-align:center}
  .history-chapter-detail>summary{margin-inline:auto}
  .history-chapter-body>h3{font-size:16px}
  .history-chapter-body>p{min-height:0;font-size:12px}
  .history-chapter-detail>summary{min-height:34px;font-size:13px}
  .history-timeline-section{padding-top:28px}
  .history-timeline{grid-template-columns:1fr;margin-top:20px}
  .history-timeline li{text-align:left}
  .history-timeline .history-timeline-item{display:grid;grid-template-columns:24px 95px 1fr;grid-template-rows:auto auto;gap:0 13px;min-height:104px;padding:0 0 16px}
  .history-timeline .history-timeline-item::before{top:0;bottom:0;left:11px;width:2px;height:auto}
  .history-timeline li:last-child .history-timeline-item::before{height:48px}
  .history-timeline-point{grid-column:1;grid-row:1/3;align-self:center;margin:0 0 0 5px}
  .history-timeline-image{grid-column:2;grid-row:1/3;width:95px;height:75px;margin:0;border-radius:7px;-webkit-mask-image:none;mask-image:none}
  .history-timeline strong{grid-column:3;grid-row:1;align-self:end;font-size:20px}
  .history-timeline-caption{grid-column:3;grid-row:2;align-self:start;font-size:12px}
  .history-timeline-caption br{display:none}
  .history-related{padding-top:16px}
  .history-related-link{min-height:80px;padding:14px 12px}
  .history-related-link>span:not(.history-icon){font-size:12px}
}
@media(max-width:420px){
  .history-hero h1{font-size:43px}
  .history-hero-subtitle{font-size:17px}
  .history-container{width:calc(100% - 24px)}
  .history-chapter-card,.history-chapter-card:nth-child(n+5){grid-column:span 12}
  .history-chapter-card:last-child{display:block}
  .history-chapter-card:last-child .history-chapter-image{height:auto;aspect-ratio:1.8}
  .history-chapter-card:last-child .history-chapter-number{top:auto;bottom:-12px}
  .history-chapter-body>h3{min-height:0;font-size:18px}
  .history-chapter-body>p{font-size:13px}
  .history-section-title{gap:9px;font-size:18px}
  .history-section-title>.history-icon{width:24px;height:24px}
  .history-related-grid{grid-template-columns:1fr}
  .history-related-link{min-height:68px}
  .history-related-link>span:not(.history-icon){font-size:14px}
}

.history-chapter-more{display:inline-flex;align-items:center;gap:12px;width:fit-content;min-height:34px;margin-top:auto;padding-top:10px;color:#12374f;font-size:12px;font-weight:600}
.history-chapter-more:hover{color:var(--history-gold)}
@media(max-width:720px){.history-chapter-more{margin-inline:auto}}
