/* Roomsy docs (/docs). Builds on the homepage tokens in styles-standalone.css. */

:root { --f-display: "DM Serif Display", "Instrument Serif", "Times New Roman", serif; }
body.docs { background: var(--paper); color: var(--ink); font-family: var(--f-sans); }
/* Zero-specificity resets, so every component rule below (and .btn) wins. */
:where(body.docs) :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(body.docs) :where(a) { color: inherit; text-decoration: none; }
html { scroll-padding-top: 88px; }

/* ---- Page nav (same as pricing/contact) ---- */
.pp-nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 232, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pp-nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.pp-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.pp-brand img { height: 28px; width: auto; display: block; }
.pp-nav-mid { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.pp-nav-mid a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background .15s; }
.pp-nav-mid a:hover { background: rgba(21,20,15,.05); }
.pp-nav-mid a.on { color: var(--ink); background: rgba(21,20,15,.06); }
.pp-nav-end { display: flex; gap: 6px; }
.pp-nav-end .btn { padding: 10px 14px; font-size: 13px; }
.pp-nav-end .btn-primary { padding: 10px 16px; }
@media (max-width: 900px) { .pp-nav-mid a:not(.on) { display: none; } }
@media (max-width: 720px) { .pp-nav-mid { display: none; } }
@media (max-width: 360px) { .pp-nav-end .btn { padding: 9px 10px; } }

.pp-eyebrow { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }

/* ---- Search ---- */
.d-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--ink-3); transition: border-color .15s, box-shadow .15s; }
.d-search:focus-within { border-color: var(--ink-4); box-shadow: 0 0 0 4px rgba(199,90,58,.12); }
.d-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); padding: 10px 0; }
.d-search input::-webkit-search-cancel-button { display: none; }
.d-search kbd { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.d-search-big { max-width: 640px; margin: 32px auto 0; border-radius: 16px; padding: 0 18px; box-shadow: var(--shadow-card); }
.d-search-big input { font-size: 16px; padding: 16px 0; }
.d-search-results { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 40; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); max-height: min(70vh, 520px); overflow: auto; padding: 6px; text-align: left; }
.d-search-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.d-search-results a:hover, .d-search-results a.on { background: var(--paper); }
.d-search-results strong { display: block; font-size: 14px; font-weight: 600; }
.d-search-results span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.d-search-results mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 3px; padding: 0 1px; }
.d-search-results .d-sr-path { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 2px; }
.d-search-empty { padding: 14px 12px; font-size: 13.5px; color: var(--ink-3); }

/* ---- Layout ---- */
.d-wrap { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 0; max-width: 1400px; margin: 0 auto; }
.d-side { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 28px 20px 40px 28px; border-right: 1px solid var(--line); }
.d-side .d-search { margin-bottom: 22px; }
.d-side-nav > summary { display: none; }
.d-side-home { display: block; font-size: 14px; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; margin-bottom: 14px; }
.d-side-group { margin-bottom: 20px; }
.d-side-title { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); padding: 0 10px; margin-bottom: 6px; }
.d-side ul { list-style: none; }
.d-side li a { display: block; font-size: 14px; line-height: 1.35; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; transition: background .12s, color .12s; }
.d-side li a:hover, .d-side-home:hover { background: rgba(21,20,15,.045); color: var(--ink); }
.d-side li a.on, .d-side-home.on { background: var(--white); color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--accent), 0 1px 0 rgba(21,20,15,.04); }

.d-main { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; padding: 40px 40px 80px 56px; min-width: 0; }
.d-article { min-width: 0; max-width: 820px; }

/* ---- Article ---- */
.d-crumbs { display: flex; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 18px; }
.d-crumbs a:hover { color: var(--ink); }
.d-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.d-lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-3); max-width: 680px; }
.d-meta { display: flex; gap: 18px; margin-top: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-4); letter-spacing: .04em; }

.d-body { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.d-body > * + * { margin-top: 18px; }
.d-body h2 { position: relative; font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); margin-top: 56px; }
.d-body > h2:first-child { margin-top: 36px; }
.d-body h2 .anchor { position: absolute; left: -26px; top: 2px; color: var(--ink-4); opacity: 0; font-family: var(--f-sans); font-size: 22px; transition: opacity .15s; }
.d-body h2:hover .anchor { opacity: 1; }
.d-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 32px; letter-spacing: -0.005em; }
.d-body p { max-width: 72ch; }
.d-body a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(138,58,33,.3); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.d-body a:hover { text-decoration-color: currentColor; }
.d-body a.app-link::after { content: '↗'; font-size: .8em; margin-left: 2px; text-decoration: none; display: inline-block; }
.d-body strong { color: var(--ink); font-weight: 600; }
.d-body code { font-family: var(--f-mono); font-size: .88em; background: var(--line-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--ink); }

.d-list { list-style: none; }
.d-list li { position: relative; padding-left: 22px; }
.d-list li + li { margin-top: 8px; }
.d-list li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.d-steps { list-style: none; counter-reset: step; border-left: 1px dashed var(--line); margin-left: 15px; padding-left: 0; }
.d-steps li { counter-increment: step; position: relative; padding: 0 0 18px 32px; }
.d-steps li:last-child { padding-bottom: 2px; }
.d-steps li::before { content: counter(step); position: absolute; left: -16px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper-2); font-family: var(--f-mono); font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--paper); }
.d-step-title { font-weight: 600; color: var(--ink); line-height: 1.5; padding-top: 3px; }
.d-step-text { color: var(--ink-3); margin-top: 4px; font-size: 15px; }

.d-shot { margin: 28px 0; }
.d-zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.d-zoom:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.d-zoom img { width: 100%; height: auto; display: block; }
.d-shot-medium { max-width: 600px; }
.d-shot-phone { max-width: 260px; }
.d-shot-phone .d-zoom { border-radius: 26px; border-width: 6px; border-color: var(--ink); }
.d-shot figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.d-shot figcaption a { color: var(--ink-2); }
.d-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.d-gallery .d-shot { margin: 0; }
.d-gallery .d-shot-phone { justify-self: center; }

.d-callout { border-radius: 14px; padding: 16px 18px 16px 52px; position: relative; font-size: 15px; line-height: 1.6; border: 1px solid; }
.d-callout::before { position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-family: var(--f-sans); }
.d-callout-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.d-tip { background: #EEF2E6; border-color: #D5DFC6; }
.d-tip::before { content: '✓'; background: var(--green); color: #fff; }
.d-note { background: var(--white); border-color: var(--line); }
.d-note::before { content: 'i'; background: var(--slate); color: #fff; font-family: Georgia, serif; font-style: italic; }
.d-warning { background: #FBF0DC; border-color: #EED8AD; }
.d-warning::before { content: '!'; background: var(--amber); color: #fff; }

.d-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.d-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.d-table th { text-align: left; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.d-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table td:first-child { min-width: 160px; }

.d-mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
:is(.d-body, .d-related) a.d-mini-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--ink-2); transition: border-color .15s, transform .15s; }
:is(.d-body, .d-related) a.d-mini-card:hover { border-color: var(--ink-4); transform: translateY(-2px); }
.d-mini-card strong { display: block; color: var(--ink); margin-bottom: 2px; }
.d-mini-card strong::after { content: ' →'; color: var(--accent); }
.d-mini-card span { font-size: 14px; color: var(--ink-3); }

.d-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.d-pager a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--white); transition: border-color .15s; }
.d-pager a:hover { border-color: var(--ink-4); }
.d-pager span { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.d-pager strong { font-weight: 500; }
.d-next { text-align: right; }
.d-prev span::before { content: '← '; }
.d-next span::after { content: ' →'; }

.d-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 28px 30px; border-radius: 18px; background: var(--ink); color: var(--paper-2); }
.d-help h2 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin-bottom: 6px; }
.d-help p { color: rgba(246,242,232,.75); font-size: 15px; line-height: 1.55; max-width: 460px; }
.d-help strong { color: var(--paper-2); }
.d-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.d-help .btn-primary { background: var(--accent); color: #fff; }
.d-help .btn-primary:hover { background: #fff; color: var(--ink); }
.d-help .btn-outline { color: var(--paper-2); border-color: rgba(246,242,232,.3); }
.d-help .btn-outline:hover { border-color: var(--paper-2); }

.d-toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; font-size: 13px; }
.d-toc-title { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.d-toc ul { list-style: none; border-left: 1px solid var(--line); }
.d-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); line-height: 1.4; transition: color .12s, border-color .12s; }
.d-toc a:hover { color: var(--ink); }
.d-toc a.on { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }

/* ---- Common questions ---- */
.d-faq { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.d-body .d-faq > * + * { margin-top: 0; }
.d-faq-item { padding: 18px 22px; }
.d-faq-item + .d-faq-item { border-top: 1px solid var(--line-2); }
.d-body .d-faq-item h3 { margin-top: 0; font-size: 16.5px; }
.d-faq-item p { margin-top: 6px; font-size: 15px; color: var(--ink-3); }

/* ---- Related guides ---- */
.d-related { margin-top: 56px; }
.d-related h2 { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin-bottom: 14px; }

/* ---- Glossary ---- */
.d-az { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 64px; z-index: 5; padding: 12px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.d-body .d-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-family: var(--f-mono); font-size: 13px; text-decoration: none; }
.d-body .d-az a:hover { border-color: var(--ink-4); color: var(--ink); }
.d-body h2.d-az-letter { margin-top: 40px; font-size: 40px; color: var(--accent); }
.d-terms { border-top: 1px solid var(--line); }
.d-body .d-terms > * + * { margin-top: 0; }
.d-term { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.d-body .d-term h3 { margin-top: 0; font-size: 18px; }
.d-term-full { font-weight: 400; color: var(--ink-3); }
.d-term p { margin-top: 6px; }
.d-body .d-term-aka { font-family: var(--f-mono); font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.d-term-see { font-size: 14px; color: var(--ink-3); }
.d-term-see a::after { content: ' →'; }
/* Clear the sticky nav and A–Z bar when jumping to a letter or term. */
.d-az-letter, .d-term h3 { scroll-margin-top: 140px; }

/* ---- Docs home ---- */
.d-hero { padding: 88px 28px 56px; text-align: center; }
.d-hero-inner { max-width: 900px; margin: 0 auto; }
.d-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6.5vw, 84px); line-height: 1.0; letter-spacing: -0.025em; margin-bottom: 18px; }
.d-hero h1 em { color: var(--accent); font-style: italic; }
.d-hero .lead { color: var(--ink-3); font-size: 19px; line-height: 1.55; max-width: 620px; margin: 0 auto; }
.d-popular { margin-top: 18px; font-size: 13.5px; color: var(--ink-4); display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; }
.d-popular a { color: var(--ink-2); border-bottom: 1px solid var(--line); }
.d-popular a:hover { color: var(--accent-ink); border-color: var(--accent); }

.d-home { max-width: 1240px; margin: 0 auto; padding: 0 28px 96px; }
.d-start { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 36px; display: grid; grid-template-columns: 300px 1fr; gap: 40px; box-shadow: var(--shadow-card); }
.d-start-head h2, .d-sec-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 34px; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 10px; }
.d-start-head p, .d-sec-head p { color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.d-start-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-start-list a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper-2); transition: border-color .15s, background .15s; }
.d-start-list a:hover { border-color: var(--ink-4); background: var(--white); }
.d-start-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.d-start-list strong { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.d-start-list span span { display: block; font-size: 13px; line-height: 1.45; color: var(--ink-3); }

.d-sec { margin-top: 72px; }
.d-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.d-sec-head p { max-width: 520px; }
.d-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.d-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.d-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--ink-4); }
.d-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.d-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.d-card:hover .d-card-img img { transform: scale(1.03); }
.d-card-body { padding: 18px 20px 20px; }
.d-card-body strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.005em; }
.d-card-body span { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.d-home .d-help { margin-top: 80px; }
.d-sec-head p a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.d-q-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.d-q-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font-size: 15px; font-weight: 500; line-height: 1.4; transition: border-color .15s, transform .15s; }
.d-q-list a::after { content: '→'; color: var(--accent); flex: none; }
.d-q-list a:hover { border-color: var(--ink-4); transform: translateY(-2px); }

/* ---- Lightbox ---- */
.d-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(21,20,15,.86); display: flex; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.d-lightbox[hidden] { display: none; }
.d-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.d-lightbox-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; }
body.d-noscroll { overflow: hidden; }

/* ---- Footer ---- */
.pp-footer { padding: 56px 0 36px; border-top: 1px solid var(--line); background: var(--paper); }
.pp-footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.pp-footer a { color: var(--ink-3); margin: 0 10px; transition: color .15s; }
.pp-footer a:hover { color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 1240px) {
  .d-main { grid-template-columns: minmax(0, 1fr); padding: 36px 36px 72px 44px; }
  .d-toc { display: none; }
}
@media (max-width: 1000px) {
  .d-start { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
}
@media (max-width: 900px) {
  .d-wrap { grid-template-columns: 1fr; }
  .d-side { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .d-side .d-search { margin-bottom: 12px; }
  .d-side-nav > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
  .d-side-nav > summary::-webkit-details-marker { display: none; }
  .d-side-nav > summary::after { content: '▾'; color: var(--ink-4); }
  .d-side-nav[open] > summary { margin-bottom: 14px; }
  .d-main { padding: 28px 20px 64px; }
  .d-body h2 { font-size: 28px; margin-top: 44px; }
  .d-body h2 .anchor { display: none; }
}
@media (max-width: 640px) {
  .d-start-list { grid-template-columns: 1fr; }
  .d-hero { padding: 56px 20px 36px; }
  .d-home { padding: 0 16px 72px; }
  .d-pager { grid-template-columns: 1fr; }
  .d-q-list { grid-template-columns: 1fr; }
  .d-lead { font-size: 17px; }
  .d-search kbd { display: none; }
  .d-help { padding: 24px; }
}
@media print {
  .pp-nav, .d-side, .d-toc, .d-pager, .d-help, .d-related, .d-az, .pp-footer { display: none !important; }
  .d-wrap, .d-main { display: block; padding: 0; }
  .d-zoom { box-shadow: none; }
}
