/* What the theme adds to the design: states the canvas handled in script, and editor pages. */
.site [hidden] { display: none !important; }
.site .navl a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site header nav a[aria-current="location"] { color: var(--ink); }
.site .mpanel a.mlink { padding: 12px 0; border-bottom: 1px solid var(--line); }
.site .mpanel a.mlink:last-child { border-bottom: 0; }
.site button.req[aria-pressed="true"] { border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--bsoft); }
.doc { flex: 1 0 auto; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; box-sizing: border-box; }
.doc-wide { max-width: 1100px; }
.doc h1 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.15; }
.doc h2 { margin: 36px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--soft); }
.site .doc a { text-decoration: none; font-weight: 600; }
/* The zone list has an inline display, which would beat the design's own phone rule. */
@media (max-width: 900px) { .site nav.zi { display: none !important; } }
/* Links never carry underlines. */
.site a { text-decoration: none; }
/* Sticky header, and anchors that scroll smoothly and stop below it. */
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.site > header { position: sticky; top: 0; z-index: 20; }
.admin-bar .site > header { top: 32px; }
.site nav.zi { top: 96px !important; }
/* The phone menu floats over the page, so opening it moves nothing. */
.site .mpanel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 90px); overflow-y: auto; box-sizing: border-box; background: var(--card); border-bottom: 1px solid var(--line); }
@media (max-width: 782px) { .admin-bar .site > header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site > header { top: 0; } }
/* One row on phones, so the sticky header stays short. */
@media (max-width: 460px) {
	.site > header > div { padding-left: 14px !important; padding-right: 14px !important; column-gap: 8px !important; }
	.site > header .acts { gap: 6px !important; }
	.site > header .acts .btn-p { padding: 0 11px !important; font-size: 14px !important; }
}
/* Signed in: the account button takes the place of the two header buttons. */
.site a.account-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 7px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; font-size: 15px; white-space: nowrap; }
.account-btn .avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
@media (max-width: 460px) {
	.site a.account-btn { width: 44px; justify-content: center; padding: 0; }
	.account-btn .account-text { display: none; }
}
/* Arrow over plain text; links, buttons and fields keep their own cursor. */
html { cursor: default; }

/* Footer */
.site .foot { width: 100%; border-top: 1px solid var(--line); background: var(--card); font-size: 14.5px; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.site .foot a.foot-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.foot-brand p { margin: 14px 0 10px; max-width: 280px; color: var(--soft); }
.site .foot a.foot-mail { color: var(--btext); font-weight: 600; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col h2 { margin: 0 0 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site .foot-col a { display: inline-flex; align-items: center; min-height: 34px; color: var(--soft); font-weight: 500; }
.site .foot-col a:hover { color: var(--btext); }
/* The version next to Changelog: grey and quiet, orange is for Pro. */
.foot-ver { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--soft); font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.foot-lang { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.site .foot-lang a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--soft); font-weight: 600; }
.site .foot-lang a:hover { color: var(--btext); }
.site .foot-lang a[aria-current] { background: var(--bsoft); color: var(--btext); }
.foot-end { max-width: 1200px; margin: 0 auto; padding: 20px 24px 28px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) {
	.foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; gap: 28px 20px; }
	.foot-brand { grid-column: 1 / -1; }
	.site .foot-col a { min-height: 44px; }
}

/* Page not found */
.site .lost { flex: 1 0 auto; display: grid; place-items: center; padding: 88px 24px 104px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; text-align: center; }
.lost-in { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 620px; }
.lost-code { padding: 5px 14px; border: 1px solid var(--bline); border-radius: 999px; background: var(--card); font-size: 13px; color: var(--btext); }
.lost h1 { margin: 0; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.lost p { margin: 0; color: var(--soft); font-size: 17px; }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.site a.lost-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; }
.site a.lost-btn.btn-p { background: var(--fill); }
.site a.lost-btn.btn-p:hover { background: #b23d00; }
.site a.lost-btn.btn-s { border: 1px solid var(--line); background: var(--card); }
.site .lost-more { margin-top: 14px; font-size: 15px; color: var(--muted); }
.site .lost-more a { font-weight: 600; }
/* "See all areas", under the grid it opens. The gap of the section is pulled in so it sits close to the cards. */
.site .areas-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: -28px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.site .areas-toggle:hover { border-color: var(--brand); }
.areas-toggle span { font-size: 18px; color: var(--muted); }
