.temple-page { --temple-space: 56px; }
.temple-intro { padding-block: 38px 24px; }
.temple-intro .eyebrow { margin-bottom: 14px; }
.temple-intro h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; margin-bottom: 16px; }
.temple-intro p:last-child { margin-bottom: 0; }
.temple-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.temple-shot { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.temple-shot a { display: block; }
.temple-shot a:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.temple-shot a:focus-visible { outline-offset: -4px; }
.temple-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; image-rendering: auto; }
.temple-shot figcaption { padding: 12px 14px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.temple-gallery-note { margin-block: 16px 0; }
.temple-section { padding-block: var(--temple-space); border-top: 1px solid var(--line); }
.temple-section .section-heading { margin-bottom: 26px; }
.temple-section .section-heading > p:last-child { max-width: 820px; margin-bottom: 0; }
.temple-downloads { margin-top: 32px; }
.temple-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.temple-download-card { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.temple-recommended { border-color: var(--accent); }
.temple-download-card h3, .temple-download-card p { margin: 0; }
.temple-download-card .button { gap: 12px; margin-top: auto; min-height: 48px; }
.temple-download-card .small { font-size: .8125rem; }
.temple-secondary-label { border-color: var(--line); color: var(--muted); }
.temple-file-size { font-size: .75rem; font-weight: 500; white-space: nowrap; }
.temple-download-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-block: 20px 0; font-size: .875rem; }
.temple-section .guide-nav { padding-top: 20px; border-top: 1px solid var(--line); }
.temple-page .guide-callout p:last-child { margin-bottom: 0; }
.temple-steps { margin: 32px 0; padding: 0; list-style: none; counter-reset: temple-step; }
.temple-steps > li { position: relative; padding: 0 0 34px 56px; margin: 0 0 34px; border-bottom: 1px solid var(--line); counter-increment: temple-step; }
.temple-steps > li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.temple-steps > li::before { content: counter(temple-step); position: absolute; top: -2px; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-weight: 750; }
.temple-steps h3 { font-size: 1.4rem; margin-bottom: 16px; }
.temple-steps > li > p:last-child { margin-bottom: 0; }
.temple-page pre { max-width: 100%; margin: 16px 0 20px; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #151d27; line-height: 1.65; }
.temple-page pre:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.temple-page pre code { font-size: .875rem; overflow-wrap: normal; white-space: pre; }
.temple-command-label { margin-bottom: -8px; color: var(--text); font-size: .875rem; font-weight: 650; }
.temple-private-note { padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: .875rem; }
.temple-details { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.temple-details summary { padding: 15px 20px; color: var(--text); font-weight: 650; cursor: pointer; }
.temple-details summary::marker { color: var(--accent); }
.temple-details summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.temple-details > div { padding: 4px 20px 20px; }
.temple-details > div > :last-child { margin-bottom: 0; }
.temple-details ol { color: var(--muted); padding-left: 20px; margin-block: 0 16px; }
.temple-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.temple-controls { width: 100%; border-collapse: collapse; text-align: left; }
.temple-controls th, .temple-controls td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.temple-controls thead { background: var(--surface); }
.temple-controls tbody th { width: 35%; font-weight: 500; }
.temple-controls td { color: var(--muted); }
.temple-controls tr:last-child > * { border-bottom: 0; }
.temple-table-wrap + .note { margin-block: 20px; }
.temple-help-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 0; }
.temple-help-list dt { font-size: 1.0625rem; font-weight: 650; margin-bottom: 8px; }
.temple-help-list dd { margin: 0; color: var(--muted); font-size: .9375rem; }
.temple-maintainers { margin-top: 36px; }

@media (max-width: 960px) {
    .temple-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .temple-download-card { padding: 24px; }
    .temple-download-card .button { flex-wrap: wrap; justify-content: flex-start; gap: 4px 14px; }
}

@media (max-width: 680px) {
    .temple-page { --temple-space: 40px; }
    .temple-intro { padding-top: 28px; }
    .temple-gallery { gap: 16px; }
    .temple-download-grid, .temple-help-list { grid-template-columns: minmax(0, 1fr); }
    .temple-steps > li { padding-left: 0; }
    .temple-steps > li::before { position: static; margin-bottom: 14px; }
    .temple-page pre { padding: 14px; }
    .temple-controls th, .temple-controls td { padding: 12px; }
    .temple-controls tbody th { width: 42%; }
}

@media (max-width: 480px) {
    .temple-gallery { grid-template-columns: minmax(0, 1fr); }
}
