@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Serif+JP:wght@400;500&family=Noto+Serif+TC:wght@400;500&display=swap');
.hab-page,.hab-chapter{font-family:"Noto Serif",Georgia,"Times New Roman",serif}
.hab-han{font-family:"Noto Serif JP","Noto Serif TC","Noto Serif CJK JP","Noto Serif CJK TC","Yu Mincho","PMingLiU","Songti TC",serif;font-weight:400;white-space:nowrap}
.hab-page{--hab-ink:#26231f;--hab-muted:#6e665e;--hab-line:#ded6ca;--hab-paper:#f5f0e7;--hab-warm:#b27b45;--hab-dark:#4a3728;background:#fbfaf7;color:var(--hab-ink)}
.hab-shell{width:min(1180px,calc(100% - 48px));margin:0 auto}
.hab-hero{padding:72px 0 64px;background:linear-gradient(180deg,#f6f0e5 0%,#fbfaf7 100%);border-bottom:1px solid var(--hab-line)}
.hab-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:68px;align-items:center}
.hab-kicker{font:700 10px/1.35 Arial,sans-serif;text-transform:uppercase;letter-spacing:.14em;color:#8a633d;margin-bottom:12px}
.hab-hero h1{font-size:clamp(46px,6vw,82px);font-weight:400;line-height:.98;letter-spacing:-.035em;margin:0 0 26px;max-width:800px}
.hab-lead{font-size:20px;line-height:1.62;color:#49433d;max-width:760px;margin:0 0 18px}
.hab-note{font-size:14px;line-height:1.7;color:var(--hab-muted);max-width:730px;margin:0}
.hab-stats{display:flex;gap:30px;margin-top:34px;padding-top:24px;border-top:1px solid var(--hab-line)}
.hab-stats div{display:flex;flex-direction:column;gap:3px}.hab-stats strong{font-size:28px;font-weight:400}.hab-stats span{font:10px/1.25 Arial,sans-serif;text-transform:uppercase;letter-spacing:.09em;color:var(--hab-muted)}
.hab-hero-visual{position:relative;min-height:500px;border:1px solid #d7cdbf;background:radial-gradient(circle at 50% 34%,#fff 0 12%,#eee5d8 44%,#e1d3c0 100%);overflow:hidden}
.hab-cosmos{position:absolute;width:280px;height:280px;border:1px solid rgba(105,78,54,.19);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-54%);box-shadow:0 0 0 48px rgba(105,78,54,.04),0 0 0 96px rgba(105,78,54,.025)}
.hab-stupa{position:absolute;left:12%;bottom:13%;width:120px;height:215px}.hab-stupa-base{position:absolute;bottom:0;left:4px;width:112px;height:34px;background:#5b4b3e;clip-path:polygon(12% 0,88% 0,100% 100%,0 100%)}.hab-stupa-dome{position:absolute;bottom:34px;left:19px;width:82px;height:78px;background:#8a725c;border-radius:50% 50% 18% 18%}.hab-stupa-finial{position:absolute;bottom:108px;left:52px;width:16px;height:96px;background:#4e4035}.hab-stupa-finial:before,.hab-stupa-finial:after{content:"";position:absolute;left:50%;transform:translateX(-50%);width:68px;height:6px;background:#4e4035}.hab-stupa-finial:before{top:16px}.hab-stupa-finial:after{top:35px}
.hab-pagoda{position:absolute;left:50%;bottom:12%;transform:translateX(-50%);width:180px;height:310px}.hab-pagoda span{position:absolute;left:50%;transform:translateX(-50%);height:42px;background:#76543a;border:1px solid rgba(60,43,31,.3);clip-path:polygon(14% 0,86% 0,100% 38%,83% 40%,83% 100%,17% 100%,17% 40%,0 38%)}.hab-pagoda span:nth-child(1){bottom:0;width:180px}.hab-pagoda span:nth-child(2){bottom:67px;width:154px}.hab-pagoda span:nth-child(3){bottom:134px;width:126px}.hab-pagoda span:nth-child(4){bottom:201px;width:98px}.hab-pagoda:before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:6px;height:74px;background:#4e4035}
.hab-hall{position:absolute;right:7%;bottom:13%;width:180px;height:145px}.hab-hall-roof{position:absolute;left:0;top:0;width:180px;height:48px;background:#594434;clip-path:polygon(12% 0,88% 0,100% 46%,82% 38%,82% 58%,18% 58%,18% 38%,0 46%)}.hab-hall-body{position:absolute;left:25px;bottom:0;width:130px;height:96px;background:repeating-linear-gradient(90deg,#8b684a 0 9px,#d7b98f 9px 26px);border-bottom:12px solid #6b503b}
.hab-route{position:absolute;left:12%;right:8%;bottom:10%;height:2px;background:linear-gradient(90deg,#5b4b3e,#76543a,#594434);opacity:.45}
.hab-overview{padding:72px 0}.hab-section-head{max-width:760px;margin-bottom:30px}.hab-section-head h2{font-size:42px;font-weight:400;line-height:1.1;margin:0 0 14px}.hab-section-head p{font-size:17px;line-height:1.65;color:var(--hab-muted);margin:0}
.hab-part-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.hab-part-card{display:flex;flex-direction:column;min-height:220px;padding:26px;border:1px solid var(--hab-line);background:#fff;color:inherit;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}.hab-part-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(56,43,28,.08);text-decoration:none}.hab-part-num{font:400 42px/1 "Noto Serif",Georgia,serif;color:#b58b60;margin-bottom:auto}.hab-part-card strong{font-size:20px;line-height:1.25;font-weight:500;margin-bottom:10px}.hab-part-card small{font:10px/1.3 Arial,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:var(--hab-muted)}
.hab-chapter{padding:74px 0;border-top:1px solid var(--hab-line)}.hab-chapter:nth-of-type(even){background:#f7f3ec}.hab-chapter-head{display:grid;grid-template-columns:96px 1fr;gap:28px;align-items:start}.hab-chapter-head>span{font:400 72px/1 "Noto Serif",Georgia,serif;color:#b58b60}.hab-chapter-head h2{font-size:44px;font-weight:400;line-height:1.1;margin:0}
.hab-slot{margin-top:34px;min-height:180px;border:1px dashed #cfc3b4;background:rgba(255,255,255,.56);display:grid;place-items:center;padding:28px}.hab-slot p{margin:0;color:#8b8177;font-size:14px}
@media(max-width:900px){.hab-hero-grid{grid-template-columns:1fr}.hab-hero-visual{min-height:430px}.hab-part-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.hab-shell{width:min(100% - 30px,1180px)}.hab-hero{padding:46px 0}.hab-hero h1{font-size:46px}.hab-hero-visual{min-height:360px}.hab-stats{gap:20px;flex-wrap:wrap}.hab-part-grid{grid-template-columns:1fr}.hab-chapter-head{grid-template-columns:1fr}.hab-chapter-head>span{font-size:48px}.hab-chapter-head h2{font-size:34px}}



/* Vietnamese text on this French-language dossier:
   force a Windows/Chrome-safe Latin stack for stacked tone marks. */
.hab-vietnam,
.hab-vietnam h2,
.hab-vietnam h3,
.hab-vietnam p,
.hab-vietnam a,
.hab-vietnam li,
.hab-vietnam strong,
.hab-vietnam em,
.hab-vietnam td,
.hab-vietnam th{
  font-family:"Noto Serif",Georgia,"Times New Roman",serif!important;
  font-variant-ligatures:none;
  font-feature-settings:normal;
  font-kerning:normal;
  text-rendering:auto;
  font-synthesis:none;
}
.hab-vietnam .hab-han{
  font-family:"Noto Serif TC","Noto Serif CJK TC","PMingLiU","Songti TC","Times New Roman",serif!important;
  font-variant-ligatures:normal;
  white-space:nowrap;
}

/* Long-form dossier */
.hab-intro,.hab-toc-section{padding:72px 0;border-bottom:1px solid var(--hab-line)}
.hab-intro{background:#fff}
.hab-intro .hab-section-head{max-width:900px}
.hab-intro .hab-section-head p{font-size:17px;line-height:1.88;margin:0 0 24px;text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto}
.hab-toc-section{background:#f1eadf}
.hab-toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.hab-toc-group{background:#fff;border:1px solid var(--hab-line);padding:22px 24px}
.hab-toc-part{display:flex;gap:12px;align-items:flex-start;color:var(--hab-ink);font-size:17px;line-height:1.35;font-weight:600;text-decoration:none;margin-bottom:14px}
.hab-toc-part:hover{text-decoration:none;color:#8a633d}
.hab-toc-part span{flex:0 0 auto;font:400 28px/1 "Noto Serif",Georgia,serif;color:#b58b60;min-width:34px}
.hab-toc ol{margin:0;padding-left:24px}
.hab-toc li{padding:4px 0 4px 3px;color:#8d8378}
.hab-toc li a{font-size:13px;line-height:1.45;color:#5d554c;text-decoration:none}
.hab-toc li a:hover{color:#8a633d;text-decoration:underline}
.hab-chapter{scroll-margin-top:30px}
.hab-chapter .hab-shell{max-width:1040px}
.hab-chapter h3{scroll-margin-top:28px;margin:68px 0 22px;font-size:31px;line-height:1.25;font-weight:500;letter-spacing:-.012em}
.hab-chapter h3:first-of-type{margin-top:50px}
.hab-chapter p{max-width:920px;font-size:17px;line-height:1.94;color:#403a34;margin:0 0 27px;text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto}
.hab-chapter em{font-style:italic}
.hab-illustration-slot{max-width:900px;min-height:105px;margin:24px 0 6px;border:1px dashed #cbbdab;background:linear-gradient(135deg,rgba(244,238,228,.82),rgba(255,255,255,.8));display:grid;place-items:center;color:#96887a;font:700 9px/1.4 Arial,sans-serif;text-transform:uppercase;letter-spacing:.13em}
.hab-source-note{max-width:900px;margin:48px 0 0;padding:18px 20px;border-left:3px solid #b58b60;background:#f5f0e7;font-size:13px;line-height:1.65;color:#665e55}
.hab-chapter table{max-width:900px;width:100%;border-collapse:collapse;margin:24px 0 30px;font-size:14px}
.hab-chapter th,.hab-chapter td{padding:11px 13px;border:1px solid #d8cfc4;text-align:left;vertical-align:top}
.hab-chapter th{background:#eee5d8;font-weight:600}
.hab-backtop{position:fixed;right:18px;bottom:18px;z-index:20}
.hab-backtop a{display:block;padding:9px 12px;background:rgba(50,43,36,.9);color:#fff;text-decoration:none;font:700 9px/1 Arial,sans-serif;text-transform:uppercase;letter-spacing:.08em}
@media(max-width:800px){.hab-toc{grid-template-columns:1fr}.hab-chapter h3{font-size:26px;margin-top:56px}.hab-chapter p{font-size:16px;line-height:1.86;margin-bottom:24px;text-align:left}.hab-intro .hab-section-head p{text-align:left;line-height:1.78}}


/* Shared Buddhist architecture hero image */
.hab-hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  justify-self: end;
  border: 1px solid #d7cdbf;
  overflow: hidden;
  background: #eee5d8 url("../..assets/images/buddhist-architecture-five-monuments-20261019.jpg") center center / cover no-repeat !important;
}
.hab-hero-visual > * {
  display: block !important;
}
.hab-hero-image img {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
}
@media(max-width:900px){
  .hab-hero-visual{
    max-width: 480px;
    justify-self:center;
  }
}
@media(max-width:620px){
  .hab-hero-visual{
    max-width:100%;
  }
}
/* End shared Buddhist architecture hero image */


/* Buddhist architecture timelines */
.hab-timeline{
  margin:64px 0 92px;
  padding:30px 30px 34px;
  border:1px solid var(--hab-line);
  background:linear-gradient(180deg,#fff 0%,#f7f2e9 100%);
  box-shadow:0 14px 34px rgba(68,53,37,.045);
}
.hab-timeline-head{
  max-width:820px;
  margin:0 0 34px;
}
.hab-timeline .hab-kicker{
  margin-bottom:10px;
}
.hab-chapter .hab-timeline h3{
  margin:0 0 12px;
  font-size:27px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:-.01em;
}
.hab-chapter .hab-timeline-head p{
  max-width:780px;
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:var(--hab-muted);
  text-align:left;
  hyphens:none;
  -webkit-hyphens:none;
}
.hab-timeline-track{
  --hab-timeline-count:6;
  display:grid;
  grid-template-columns:repeat(var(--hab-timeline-count),minmax(0,1fr));
  margin:0;
  padding:0;
  list-style:none;
}
.hab-timeline-track li{
  position:relative;
  min-width:0;
  padding:20px 12px 0 0;
  border-top:2px solid #c9b69f;
}
.hab-timeline-track li+li{
  padding-left:14px;
}
.hab-timeline-track li::before{
  content:"";
  position:absolute;
  top:-6px;
  left:0;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#8a633d;
  box-shadow:0 0 0 4px #f7f2e9;
}
.hab-timeline-track li+li::before{
  left:14px;
}
.hab-timeline-date{
  display:block;
  margin:0 0 9px;
  font:700 10px/1.3 Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#8a633d;
}
.hab-timeline-event{
  display:block;
  margin:0 0 8px;
  font-size:14px;
  line-height:1.35;
  font-weight:600;
  color:var(--hab-ink);
  overflow-wrap:anywhere;
}
.hab-chapter .hab-timeline-track p{
  margin:0;
  font-size:12.5px;
  line-height:1.62;
  color:#5f574f;
  text-align:left;
  hyphens:none;
  -webkit-hyphens:none;
  overflow-wrap:anywhere;
}
.hab-timeline+ h3{
  margin-top:76px!important;
}
@media(max-width:820px){
  .hab-timeline{
    margin:58px 0 82px;
    padding:26px 24px 30px;
  }
  .hab-timeline-track{
    display:block;
    padding-left:8px;
  }
  .hab-timeline-track li,
  .hab-timeline-track li+li{
    margin:0;
    padding:0 0 28px 24px;
    border-top:0;
    border-left:2px solid #c9b69f;
  }
  .hab-timeline-track li:last-child{
    padding-bottom:0;
  }
  .hab-timeline-track li::before,
  .hab-timeline-track li+li::before{
    top:3px;
    left:-6px;
  }
  .hab-timeline-date{
    margin-bottom:6px;
  }
  .hab-timeline-event{
    font-size:15px;
  }
  .hab-chapter .hab-timeline-track p{
    font-size:13px;
    line-height:1.68;
  }
}
@media(max-width:520px){
  .hab-timeline{
    margin:52px 0 74px;
    padding:24px 20px 28px;
  }
  .hab-chapter .hab-timeline h3{
    font-size:24px;
  }
}
/* End Buddhist architecture timelines */

/* Buddhist architecture sites map */
.hab-map-section{
  padding:72px 0 82px;
  background:#fbfaf7;
  border-bottom:1px solid var(--hab-line);
}
.hab-map-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:24px;
}
.hab-map-head .hab-section-head{margin-bottom:0;max-width:820px}
.hab-map-count{
  flex:0 0 auto;
  padding-bottom:4px;
  font:700 11px/1.4 Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#765a3d;
  white-space:nowrap;
}
.hab-map-filters{
  display:grid;
  grid-template-columns:minmax(240px,1.45fr) minmax(170px,.8fr) minmax(190px,.9fr) auto;
  gap:12px;
  align-items:end;
  margin:0 0 18px;
}
.hab-map-filters label{
  display:grid;
  gap:6px;
  font:700 10px/1.3 Arial,sans-serif;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:#625b53;
}
.hab-map-filters input,
.hab-map-filters select{
  width:100%;
  min-width:0;
  height:42px;
  padding:0 12px;
  border:1px solid #d8d0c4;
  border-radius:0;
  background:#fff;
  color:#25211d;
  font:13px/1.2 Arial,sans-serif;
}
.hab-map-filters input:focus,
.hab-map-filters select:focus{
  outline:1px solid #8a633d;
  outline-offset:1px;
}
.hab-map-filters button{
  height:42px;
  padding:0 16px;
  border:1px solid #b9aa95;
  border-radius:0;
  background:#fff;
  color:#51483e;
  font:700 10px/1 Arial,sans-serif;
  letter-spacing:.07em;
  text-transform:uppercase;
  cursor:pointer;
}
.hab-map-filters button:hover{background:#f5f0e7}
.hab-sites-map{
  width:100%;
  height:620px;
  border:1px solid var(--hab-line);
  background:#e8e4dd;
  z-index:1;
  font-family:Arial,sans-serif;
}
.hab-sites-map .leaflet-popup-content-wrapper,
.hab-sites-map .leaflet-popup-tip{border-radius:0}
.hab-sites-map .leaflet-popup-content{
  min-width:225px;
  margin:16px 18px;
  font:12px/1.5 Arial,sans-serif;
  color:#403a34;
}
.hab-map-popup strong{
  display:block;
  margin:0 0 5px;
  font:500 16px/1.35 "Noto Serif",Georgia,"Times New Roman",serif;
  color:#26231f;
}
.hab-map-popup-native{
  margin:0 0 7px;
  font:13px/1.4 "Noto Serif JP","Noto Serif TC","Noto Serif",serif;
  color:#625b53;
}
.hab-map-popup-meta{
  margin:0 0 5px;
  color:#8a633d;
  font-size:10px;
  line-height:1.35;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.hab-map-popup-place{margin:0 0 8px;color:#5e574f}
.hab-map-popup-related{
  margin:9px 0 0;
  padding-top:8px;
  border-top:1px solid #e7dfd4;
  color:#5e574f;
}
.hab-map-popup-related span{
  display:block;
  margin-bottom:3px;
  font-size:9px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#83776a;
}
.hab-map-popup a{
  display:inline-block;
  margin-top:10px;
  color:#8a633d;
  text-decoration:underline;
  text-underline-offset:2px;
}
.hab-map-loading,.hab-map-error{
  display:grid;
  place-items:center;
  min-height:100%;
  padding:28px;
  color:#645d55;
  font:13px/1.5 Arial,sans-serif;
}
.hab-map-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:14px;
  color:#655d54;
  font:11px/1.4 Arial,sans-serif;
}
.hab-map-legend-item{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.hab-map-dot{
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(60,50,40,.14);
}
@media(max-width:900px){
  .hab-map-head{align-items:flex-start;flex-direction:column;gap:8px}
  .hab-map-filters{grid-template-columns:1fr 1fr}
  .hab-sites-map{height:520px}
}
@media(max-width:600px){
  .hab-map-section{padding:54px 0 64px}
  .hab-map-filters{grid-template-columns:1fr}
  .hab-sites-map{height:430px}
  .hab-map-count{padding-bottom:0}
  .hab-map-legend{gap:8px 14px}
}
/* End Buddhist architecture sites map */


/* Buddhist architecture subsection illustrations */
.hab-illustration-image{
  max-width:900px;
  margin:24px 0 6px;
}
.hab-illustration-image img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #d8cfc4;
  background:#fff;
}
/* End Buddhist architecture subsection illustrations */
