/* About, policy, gallery, FAQ and error pages. Shared brand tokens come from site-design.css. */
.dm-content-page [hidden], .dm-error-page [hidden] { display: none !important; }
.dm-content-page { --dm-page-radius: 14px; }
.dm-content-page .dm-page-header { min-height: 248px; padding-block: 42px; }
.dm-content-page .dm-page-header h1 { font-size: clamp(34px,4vw,52px); }
.dm-about-lead { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding-block: 72px; }
.dm-about-lead > * { min-width: 0; }
.dm-about-lead h2 { margin: 20px 0 24px; font-size: clamp(34px,3.4vw,48px); line-height: 1.15; }
.dm-about-lead h2 em { font-style: normal; color: var(--dm-action); }
.dm-about-lead p { max-width: 530px; color: var(--dm-muted); font-size: 17px; line-height: 1.85; margin: 0; }
.dm-about-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 26px 0 30px; }
.dm-about-tags span { display: inline-flex; align-items: center; gap: 7px; color: var(--dm-action); font-size: 12px; font-weight: 650; }
.dm-about-tags .dm-icon { width: 18px; height: 18px; }
.dm-about-figure { position: relative; margin: 0; border-radius: var(--dm-page-radius); overflow: hidden; background: var(--dm-soft); }
.dm-about-figure > img { display: block; width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.dm-about-figure figcaption { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 8px; background: #fff; border-left: 3px solid var(--dm-logo-yellow); font-size: 12px; }
.dm-about-figure figcaption .dm-icon { width: 36px; height: 36px; }
.dm-about-figure strong { display: block; margin-top: 3px; font-size: 16px; }
.dm-document-layout { display: grid; grid-template-columns: 280px minmax(0,760px); justify-content: space-between; gap: 72px; padding-block: 64px 88px; }
.dm-document-layout--about { border-top: 1px solid var(--dm-line); }
.dm-document-sidebar, .dm-faq-page-sidebar { align-self: start; position: sticky; top: 112px; min-width: 0; }
.dm-side-label { display: block; color: var(--dm-muted); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.dm-page-toc { border: 1px solid var(--dm-line); border-radius: 12px; padding: 24px 20px 16px; background: #fff; }
.dm-page-toc a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; color: var(--dm-deep); font-size: 14px; line-height: 1.6; text-decoration: none; border-top: 1px solid var(--dm-line); }
.dm-page-toc a > span:first-child { color: var(--dm-muted); font-size: 11px; }
.dm-page-toc a:hover { color: var(--dm-action); text-decoration: underline; }
.dm-page-toc a[aria-current] { color: var(--dm-action); font-weight: 750; }
.dm-document-related { margin-top: 26px; padding: 0 4px; }
.dm-document-related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; color: var(--dm-muted); text-decoration: none; }
.dm-document-related a[aria-current] { color: var(--dm-action); font-weight: 750; }
.dm-document-related a:hover { text-decoration: underline; }
.dm-document-related .dm-icon { width: 16px; height: 16px; }
.dm-document-body { min-width: 0; }
.dm-document-body > .dm-eyebrow { margin-bottom: 18px; }
.dm-document-prose { color: #334f43; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.dm-document-prose > p:first-child { margin-top: 0; font-size: 19px; line-height: 1.8; color: var(--dm-deep); }
.dm-document-prose h2 { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--dm-line); font-size: 28px; line-height: 1.3; }
.dm-document-prose h3 { font-size: 22px; }
.dm-document-prose ul, .dm-document-prose ol { padding-left: 24px; }
.dm-document-prose li { padding-left: 4px; margin-block: 10px; }
.dm-document-prose li::marker { color: var(--dm-action); }
.dm-document-prose blockquote { border-left: 3px solid var(--dm-logo-yellow); background: var(--dm-soft); border-radius: 0 8px 8px 0; margin: 28px 0; padding: 20px 26px; }
.dm-document-prose .article-table { overflow-x: auto; width: 100%; margin-block: 16px; border: 1px solid var(--dm-line); border-radius: 8px; }
.dm-document-prose .article-table-hint { font-size: 12px; color: var(--dm-muted); }
.dm-document-prose table { min-width: 520px; }
.dm-document-note { display: flex; gap: 14px; padding: 24px; margin-top: 36px; background: var(--dm-soft); border-radius: 10px; font-size: 14px; }
.dm-document-note p { margin: 0; overflow-wrap: anywhere; }
.dm-document-note a { color: var(--dm-action); text-decoration: underline; }
.dm-page-help { margin-top: 24px; border-radius: 12px; padding: 26px; background: var(--dm-deep); color: white; }
.dm-page-help > .dm-icon { color: var(--dm-logo-yellow); width: 28px; height: 28px; }
.dm-page-help h2 { color: white; font-size: 23px; line-height: 1.3; margin: 18px 0 12px; }
.dm-page-help p { color: var(--dm-footer-muted); font-size: 14px; line-height: 1.75; margin: 0; }
.dm-page-help a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--dm-footer-line); min-height: 48px; color: var(--dm-logo-yellow); font-size: 14px; font-weight: 750; text-decoration: none; }
.dm-page-help a:focus-visible { outline-color: var(--dm-logo-yellow); }
.dm-preference-panel { display: flex; align-items: flex-start; gap: 22px; padding: 30px; margin-top: 40px; border: 1px solid var(--dm-line); border-radius: 12px; background: var(--dm-soft); }
.dm-preference-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; height: 48px; background: white; border-radius: 12px; color: var(--dm-action); }
.dm-preference-panel h2 { margin: 0 0 14px; font-size: 25px; }
.dm-preference-panel p { color: var(--dm-muted); font-size: 15px; margin: 0 0 22px; }
/* Photo grid, with a native dialog enhanced only when JavaScript is available. */
.dm-gallery-section { padding-block: 64px 32px; }
.dm-page-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.dm-page-toolbar h2 { margin: 14px 0 0; font-size: 36px; }
.dm-page-toolbar > p { display: flex; align-items: center; gap: 10px; color: var(--dm-muted); font-size: 13px; margin: 0 0 6px; }
.dm-page-toolbar strong { color: var(--dm-action); }
.dm-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.dm-gallery-grid > li { min-width: 0; }
.dm-gallery-card { margin: 0; }
.dm-gallery-link { display: block; position: relative; aspect-ratio: 4/3; padding: 16px; overflow: hidden; border: 1px solid var(--dm-line); border-radius: 12px; background: var(--dm-paper); transition: box-shadow .2s, border-color .2s; }
.dm-gallery-link picture { display: block; width: 100%; height: 100%; }
.dm-gallery-image { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.dm-gallery-link:hover { border-color: #96b9a4; box-shadow: 0 12px 24px rgb(11 64 51 / .07); }
.dm-gallery-link:hover img { transform: scale(1.035); }
.dm-gallery-index { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; min-width: 32px; height: 28px; border-radius: 5px; background: white; color: var(--dm-deep); font-size: 11px; }
.dm-gallery-expand { position: absolute; bottom: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--dm-deep); background: white; font-size: 23px; }
.dm-gallery-card figcaption { padding: 16px 2px 8px; color: var(--dm-deep); font-size: 15px; font-weight: 650; }
.dm-gallery-dialog { width: min(1000px,calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid var(--dm-line); border-radius: 14px; background: white; color: var(--dm-deep); box-shadow: 0 24px 80px rgb(0 0 0 / .25); }
.dm-gallery-dialog::backdrop { background: rgb(7 45 36 / .82); backdrop-filter: blur(7px); }
.dm-gallery-dialog-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--dm-line); font-size: 13px; font-weight: 750; }
.dm-gallery-dialog button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--dm-line); border-radius: 50%; background: white; color: var(--dm-deep); font-size: 24px; cursor: pointer; }
.dm-gallery-dialog button:hover { background: var(--dm-soft); }
.dm-gallery-dialog-image { background: var(--dm-paper); padding: 20px; }
.dm-gallery-dialog-image img { display: block; width: 100%; height: min(60dvh,560px); object-fit: contain; }
.dm-gallery-dialog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; }
.dm-gallery-dialog-bottom > div { min-width: 0; text-align: center; }
.dm-gallery-dialog-bottom p { font-size: 14px; font-weight: 650; margin: 0; }
.dm-gallery-dialog-bottom span { color: var(--dm-muted); font-size: 12px; }
.dm-gallery-dialog-bottom button { flex: 0 0 44px; }
.dm-gallery-open { overflow: hidden; }
/* Search supplements the fully server-rendered FAQ list. */
.dm-faq-page-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 64px; padding-block: 64px 32px; }
.dm-faq-page-content { min-width: 0; }
.dm-topic-count { margin-left: auto; display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--dm-soft); font-size: 11px; color: var(--dm-action); }
.dm-faq-search { background: var(--dm-soft); padding: 26px; border: 1px solid var(--dm-line); border-radius: 12px; margin-bottom: 40px; }
.dm-faq-search label { display: block; color: var(--dm-deep); font-size: 14px; font-weight: 750; margin-bottom: 12px; }
.dm-faq-search > div { display: flex; position: relative; }
.dm-faq-search input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 50px 12px 16px; border: 1px solid var(--dm-line-strong); border-radius: 6px; background: white; color: var(--dm-deep); font-size: 16px; }
.dm-faq-search button { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: white; color: var(--dm-muted); font-size: 25px; cursor: pointer; }
.dm-faq-search p { font-size: 12px; color: var(--dm-muted); margin: 12px 0 0; }
.dm-faq-topic { margin-bottom: 40px; }
.dm-faq-topic > h2 { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 26px; margin: 0 0 22px; }
.dm-faq-topic > h2 span { flex-shrink: 0; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--dm-muted); }
.dm-faq-topic .dm-faq-list { border: 1px solid var(--dm-line); border-radius: 12px; overflow: hidden; background: white; }
.dm-faq-topic .dm-faq-list details { border-color: var(--dm-line); }
.dm-faq-topic .dm-faq-list details:last-child { border-bottom: 0; }
.dm-faq-topic .dm-faq-list summary { padding: 22px 24px; }
.dm-faq-topic .dm-faq-list details[open] { background: #f7faf8; }
.dm-faq-topic .dm-faq-list summary:focus-visible { outline-offset: -5px; }
.dm-faq-topic .dm-faq-answer { padding: 0 72px 26px 24px; font-size: 15px; }
.dm-page-empty { padding: 56px 32px; border: 1px dashed var(--dm-line-strong); border-radius: 12px; text-align: center; background: var(--dm-soft); }
.dm-page-empty > .dm-icon { width: 42px; height: 42px; margin: 0 auto 22px; color: var(--dm-action); }
.dm-page-empty h2 { font-size: 26px; margin: 0 0 14px; }
.dm-page-empty p { color: var(--dm-muted); margin: 0 0 26px; }
/* Clear, recoverable error states; 500 also works without database or scripts. */
.dm-error-page { padding-block: 72px; background: var(--dm-paper); }
.dm-error-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; min-height: 400px; padding: 64px; border: 1px solid var(--dm-line); border-radius: 18px; background: white; }
.dm-error-visual { display: grid; place-items: center; padding-block: 32px; position: relative; background: var(--dm-soft); border-radius: 14px; }
.dm-error-visual > span { font-size: clamp(80px,10vw,144px); font-weight: 750; line-height: 1.2; letter-spacing: -.07em; color: var(--dm-deep); }
.dm-error-visual .dm-icon { width: 54px; height: 54px; padding: 12px; margin-top: 10px; background: var(--dm-logo-yellow); border-radius: 12px; }
.dm-error-panel h1 { margin: 18px 0; font-size: clamp(30px,3.5vw,44px); }
.dm-error-panel p { font-size: 16px; line-height: 1.8; color: var(--dm-muted); }
.dm-error-panel p a { color: var(--dm-action); overflow-wrap: anywhere; }
.dm-error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dm-error-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.dm-error-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--dm-action); text-decoration: none; }
.dm-error-links .dm-icon { width: 18px; height: 18px; }
.dm-error-standalone { min-height: 100vh; background: var(--dm-paper); }
.dm-error-brand { display: block; padding-block: 32px; }
.dm-error-brand img { width: 220px; height: auto; }
@media (max-width: 1100px) {
    .dm-about-lead { gap: 40px; }
    .dm-document-layout, .dm-faq-page-layout { grid-template-columns: 240px minmax(0,1fr); gap: 40px; }
    .dm-error-panel { gap: 40px; padding: 40px; }
}
@media (max-width: 767px) {
    .dm-content-page .dm-page-header { min-height: 0; padding-block: 30px; }
    .dm-about-lead { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
    .dm-about-lead h2 { font-size: 34px; margin-block: 18px; }
    .dm-about-lead p { font-size: 16px; }
    .dm-about-figure > img { aspect-ratio: 1.25; }
    .dm-about-figure figcaption { left: 14px; right: 14px; bottom: 14px; padding: 16px; }
    .dm-about-figure strong { font-size: 14px; }
    .dm-document-layout, .dm-faq-page-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 48px; }
    .dm-document-sidebar, .dm-faq-page-sidebar { position: static; }
    .dm-page-toc { padding: 20px; }
    .dm-page-help { padding: 22px; }
    .dm-document-prose > p:first-child { font-size: 18px; }
    .dm-document-prose h2 { font-size: 25px; }
    .dm-document-prose h3 { font-size: 21px; }
    .dm-document-note { padding: 20px; gap: 12px; }
    .dm-preference-panel { padding: 22px; flex-direction: column; gap: 16px; }
    .dm-preference-panel h2 { font-size: 23px; }
    .dm-gallery-section { padding-block: 40px 20px; }
    .dm-page-toolbar { flex-direction: column; align-items: flex-start; gap: 18px; }
    .dm-page-toolbar h2 { font-size: 30px; }
    .dm-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
    .dm-gallery-link { aspect-ratio: 1.2; padding: 10px; }
    .dm-gallery-card figcaption { font-size: 14px; }
    .dm-gallery-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
    .dm-gallery-dialog-top { padding: 10px 14px; }
    .dm-gallery-dialog-image { padding: 12px; }
    .dm-gallery-dialog-image img { height: 48dvh; }
    .dm-gallery-dialog-bottom { padding: 12px; gap: 12px; }
    .dm-faq-page-sidebar { display: flex; flex-direction: column; }
    .dm-faq-page-sidebar .dm-page-help { display: none; }
    .dm-faq-page-sidebar .dm-page-toc { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; }
    .dm-faq-page-sidebar .dm-side-label { flex: 1 0 100%; margin-bottom: 4px; }
    .dm-faq-page-sidebar .dm-page-toc a { border: 1px solid var(--dm-line); border-radius: 24px; padding: 8px 14px; background: var(--dm-soft); font-size: 12px; }
    .dm-faq-search { padding: 20px; margin-bottom: 28px; }
    .dm-faq-topic > h2 { font-size: 23px; gap: 12px; }
    .dm-faq-topic .dm-faq-list summary { padding: 20px 18px; font-size: 15px; }
    .dm-faq-topic .dm-faq-answer { padding: 0 18px 22px; font-size: 14px; }
    .dm-page-empty { padding: 36px 22px; }
    .dm-error-page { padding-block: 36px; }
    .dm-error-panel { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
    .dm-error-visual { padding: 18px; display: flex; justify-content: center; gap: 30px; }
    .dm-error-visual > span { font-size: 80px; }
    .dm-error-visual .dm-icon { margin: 0; }
    .dm-error-panel h1 { font-size: 30px; }
    .dm-error-panel p { font-size: 15px; }
}
@media (max-width: 479px) {
    .dm-gallery-grid { grid-template-columns: 1fr; }
    .dm-gallery-link { aspect-ratio: 4/3; }
    .dm-about-lead h2 { font-size: 30px; }
    .dm-error-actions .dm-button { width: 100%; }
}
