.temple-page {
  --tp-ink: #3b261b;
  --tp-brown: #392419;
  --tp-cream: #f7efe2;
  --tp-paper: #fff8ed;
  --temple-border: #ba8d53;
  background: var(--tp-cream);
  color: var(--tp-ink);
}
.temple-content a:focus-visible { outline: 3px solid #965914; outline-offset: 4px; }
.temple-hero { background: #392419; color: #fff0d2; }
.temple-hero-inner {
  width: min(1440px, 100%);
  min-height: clamp(360px, 38vw, 530px);
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0;
  padding: 0;
}
.temple-hero-copy { padding: 36px 0 36px clamp(28px, 6vw, 100px); z-index: 1; text-align: left; }
.temple-hero h1 {
  font: 500 clamp(42px, 6vw, 88px)/1.2 var(--tp-serif);
  letter-spacing: .08em;
  color: #f7e5bc;
}
.temple-lead { margin: 14px 0 24px; color: inherit; font-family: var(--tp-serif); }
.temple-hero .temple-button.primary {
  border: 1px solid #d3a757;
  border-radius: 9px;
  background: linear-gradient(#f2d393, #cc984b);
  color: #382219;
}
.temple-hero-art { position: relative; width: 100%; margin: 0; align-self: stretch; }
.temple-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #392419, transparent 30%);
  pointer-events: none;
}
.temple-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.temple-directory, .temple-section { width: min(1180px, calc(100% - 40px)); }
.temple-directory { margin: 34px auto 20px; }
.temple-directory h2, .section-heading h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 34px);
  margin: 0 0 22px;
  font: 700 clamp(25px, 3vw, 39px)/1.3 var(--tp-serif);
}
.temple-directory h2::before, .temple-directory h2::after,
.section-heading h2::before, .section-heading h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--temple-border);
}
.temple-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.temple-directory-grid a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 78px;
  padding: 8px 6px;
  border: 1px solid #9b7459;
  border-radius: 10px;
  background: linear-gradient(155deg, #8e694e, #745039 75%, #6a4833);
  color: #fff4df;
  text-align: center;
  box-shadow: inset 0 1px 0 #f0c99655, 0 3px 0 #64432f, 0 5px 8px #45291a30;
}
.temple-directory-grid svg { width: 26px; height: 26px; stroke: #efd19b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.temple-directory-grid strong { font: 700 clamp(15px, 1.7vw, 19px)/1.35 var(--tp-serif); }
@media (hover: hover) {
  .temple-directory-grid a:hover { background: linear-gradient(155deg, #947056, #7d5941 75%, #6c4a36); }
}
.temple-directory-grid a:active { box-shadow: inset 0 2px 4px #27170e77; }
.temple-main { background: linear-gradient(#fff7eb, #f7efe2); border-top: 1px solid var(--tp-line); }
.temple-section { padding: 26px 0; }
.purpose-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.purpose-aside { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--temple-border); }
.purpose-aside h2 { margin: 8px 0 20px; font: 700 clamp(30px, 4vw, 49px)/1.25 var(--tp-serif); }
.purpose-illustration { background: transparent; }
.purpose-illustration, .purpose-illustration img { min-height: 0; }
.purpose-illustration img { height: auto; mix-blend-mode: multiply; }
.purpose-copy { padding: 0 0 0 clamp(22px, 4vw, 48px); }
.purpose-copy h3, .purpose-copy h4, .hall-strip h3, .social-panel h2 { font-family: var(--tp-serif); }
.section-heading { margin-bottom: 0; }
.hall-strip { gap: 14px; border: 0; border-radius: 0; background: transparent; }
.hall-strip article:nth-child(n) { border: 1px solid var(--temple-border); border-radius: 10px; background: #fff8ee80; }
.social-panel { padding: 18px 24px; gap: 16px; background: #fff8ee80; border-color: var(--temple-border); }
.temple-socials a { border-radius: 8px; }
@media (max-width: 680px) {
  .temple-hero-inner { grid-template-columns: 1fr; padding: 0; width: 100%; }
  .temple-hero-copy { padding: 29px 20px 20px; text-align: center; }
  .temple-hero-art { aspect-ratio: 16 / 9; }
  .temple-hero-art::after { background: linear-gradient(#392419, transparent 25%); }
  .temple-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purpose-panel { grid-template-columns: 1fr; }
  .purpose-aside { border-right: 0; }
  .purpose-break { display: none; }
  .purpose-illustration { max-width: 220px; margin-bottom: 18px; }
  .purpose-copy { padding: 0; }
  .temple-socials a { min-width: 0; padding: 10px; }
}


.temple-hero-inner { position: relative; min-height: clamp(330px, 36vw, 500px); grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
.temple-hero { background: linear-gradient(115deg, #352116, #452b1d); }
.temple-hero-copy { padding-left: clamp(22px, 6vw, 86px); }
.temple-hero h1 { font-size: clamp(36px, 5.8vw, 80px); letter-spacing: .06em; }
.temple-hero .temple-button.primary { font-family: var(--tp-serif); min-width: min(100%, 205px); }
.temple-hero-art img { object-position: center 39%; }
.temple-hero-art::after { background: linear-gradient(90deg, #3c2519, transparent 27%); }
.temple-emblem { display: block; width: 46px; margin: 0 auto 2px; color: #a56b2c; }
.temple-emblem svg, .temple-hero-lotus svg { width: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.35; }
.temple-hero-lotus { position: absolute; z-index: 1; left: -24px; bottom: -10px; width: clamp(125px, 20vw, 275px); color: #c49752; opacity: .5; pointer-events: none; transform: rotate(-20deg); }
.temple-directory { margin-top: 16px; }
.temple-main { background: radial-gradient(ellipse at 35% 5%, #fff8ee, transparent 68%), #f7efe2; }
.purpose-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); }
.purpose-aside h2 { padding: 0 15px 0 0; }
.purpose-aside h2::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 18px; background: var(--temple-border); }
.purpose-illustration { padding-right: 14px; }
.purpose-illustration img { mix-blend-mode: normal; }
.purpose-copy :is(h3, h4) { width: fit-content; border-bottom: 1px solid var(--temple-border); padding-bottom: 6px; }
.purpose-copy p { color: var(--tp-ink); font-family: var(--tp-serif); font-weight: 500; line-height: 1.8; }
.hall-strip { align-items: start; }
.hall-card { border: 1px solid var(--temple-border); border-radius: 10px; background: #fff8ee80; text-align: center; }
.hall-card summary { display: grid; justify-items: center; gap: 5px; padding: 13px 10px; cursor: pointer; list-style: none; }
.hall-card summary::-webkit-details-marker { display: none; }
.hall-card summary strong { display: flex; align-items: center; gap: 7px; font: 700 21px/1.4 var(--tp-serif); }
.hall-card summary strong svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hall-card summary > span { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.hall-card[open] summary > span span { display: inline-block; transform: rotate(90deg); }
.hall-card summary:hover { background: #f3e2c9; border-radius: 9px; }
.hall-card-info { padding: 10px 12px 14px; border-top: 1px solid var(--tp-line); }
.hall-link { margin-top: 15px; font-size: 14px; }
.social-panel { padding: 14px 20px; }
.social-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.social-intro .temple-emblem { margin: 0; }
.social-intro h2 { font-size: clamp(22px, 3vw, 31px); margin: 0; }
.social-intro p { font-size: 14px; border-left: 1px solid var(--temple-border); padding-left: 16px; }
.temple-socials a { min-width: 0; padding: 8px 13px; border-color: var(--temple-border); box-shadow: 0 2px 4px #4e291920; }
.temple-socials img { width: 24px; height: 24px; }
.temple-page :is(a, summary):focus-visible { outline: 2px solid #bb843b; outline-offset: 3px; }
@media (max-width: 680px) {
  .temple-hero-inner, .purpose-panel { grid-template-columns: 1fr; }
  .temple-hero-copy { padding: 29px 20px 20px; }
  .temple-hero-lotus { bottom: auto; top: 87px; width: 114px; }
  .temple-hero-art::after { background: linear-gradient(#3c2519, transparent 25%); }
  .purpose-illustration { margin: 0 0 14px; }
  .social-intro { justify-content: center; }
  .social-intro p { flex-basis: 100%; border: 0; padding: 0; }
}

#services { scroll-margin-top: 110px; }
