/*
 * jode.io docs layer (on top of site.css). Three columns: the docs menu on the left, the page in the middle,
 * "On this page" on the right. Below 1241px the right column goes; below 961px the menu becomes a drawer.
 * Approved mockup: mockups/docs-site.html.
 */
body.docs { background: var(--surface); }
.docs-tag {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--on-deep-soft);
	border: 1px solid var(--deep-line);
	border-radius: 999px;
	padding: 3px 10px;
	margin-left: -12px;
	text-decoration: none;
}
.nav a[aria-current="page"] {
	color: var(--on-deep);
	text-decoration: underline;
	text-decoration-color: var(--spark);
	text-decoration-thickness: 2px;
	text-underline-offset: 9px;
}

/* ---------- Shell ---------- */
.dshell { display: grid; grid-template-columns: 300px minmax(0, 1fr) 260px; min-height: calc(100dvh - var(--nav-h)); }
.dside {
	position: sticky;
	top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
	align-self: start;
	height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--paper);
	border-right: 1px solid var(--line);
	padding: 24px 16px 28px;
	display: grid;
	grid-template-rows: auto 1fr auto; /* search, menu, foot (the phone title bar joins below 961px) */
	align-content: start;
	gap: 18px;
}
.dside__top { display: none; align-items: center; justify-content: space-between; gap: 12px; }
.dside__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.dside__close {
	all: unset;
	cursor: pointer;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--line);
	color: var(--ink);
}
.dside__close svg { width: 20px; height: 20px; }
.dside__close:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }

/* Search */
.dsearch { position: relative; display: grid; gap: 8px; }
.dsearch__field { position: relative; }
.dsearch input {
	width: 100%;
	height: 44px;
	padding: 0 44px 0 40px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-s);
}
.dsearch input::placeholder { color: #7a849c; }
.dsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dsearch input::-webkit-search-cancel-button { display: none; }
.dsearch__ico { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.dsearch kbd {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 22px;
	color: var(--ink-soft);
	background: var(--paper);
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: 6px;
	padding: 0 7px;
	pointer-events: none;
}
.dsearch__count { font-size: 13px; color: var(--ink-soft); }
.dsearch__count:empty { display: none; }

/* Menu */
.dnav { display: grid; align-content: start; gap: 2px; }
.dgroup__head {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 9px 10px;
	border-radius: 8px;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}
.dgroup__head:hover { background: rgba(10, 28, 63, 0.05); }
.dgroup__head:focus-visible { outline: 3px solid var(--spark); outline-offset: 1px; }
.dgroup__chev { width: 15px; height: 15px; flex: none; color: var(--ink-soft); transition: transform 0.18s; }
.dgroup__head[aria-expanded="true"] .dgroup__chev { transform: rotate(90deg); }
.dgroup__count { margin-left: auto; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: #7a849c; }
.dgroup__list { list-style: none; margin: 2px 0 10px 17px; padding: 0 0 0 10px; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.dlink {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 8px;
	color: var(--ink-soft);
	text-decoration: none;
	font-size: var(--fs-s);
	line-height: 1.35;
}
.dlink:hover { color: var(--ink); background: rgba(10, 28, 63, 0.05); }
.dlink[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
/* The section of the open page that is in view (feature pages list their sections in the menu) */
.dlink.is-on { color: var(--accent-ink); font-weight: 600; }
.dlink[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--accent); }
.dlink mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.dchip { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 5px; color: #166534; background: var(--ok-soft); }
.dnav__empty { font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.55; padding: 4px 10px; }
.dside__foot { align-self: end; border-top: 1px solid var(--line); padding-top: 16px; display: grid; align-content: start; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.dside__foot a { color: var(--accent-ink); }

/* ---------- Page ---------- */
.dmain { min-width: 0; padding: 36px clamp(20px, 4vw, 64px) 96px; }
.dpage { max-width: 780px; margin: 0 auto; }
.dcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.dcrumb a { color: var(--ink-soft); text-decoration: none; }
.dcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.dcrumb__sep { color: #9aa3b8; }
.dpage__head { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.dpage h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; font-weight: 700; }
.dpage__lead { font-size: var(--fs-l); color: var(--ink-soft); line-height: 1.6; }
.dpage__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.dpill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--ink-soft);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 12px;
}
.dpill svg { width: 14px; height: 14px; }
.dpill--pro { color: var(--accent-ink); background: var(--accent-soft); border-color: #c9d8fb; font-weight: 600; }
.dpill--free { color: #166534; background: var(--ok-soft); border-color: #bfe5cc; font-weight: 600; }

/* "On this page" for narrow screens */
.dtoc-m { display: none; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.dtoc-m summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 600; font-size: var(--fs-s); }
.dtoc-m summary::-webkit-details-marker { display: none; }
.dtoc-m summary svg { width: 15px; height: 15px; color: var(--ink-soft); transition: transform 0.18s; }
.dtoc-m[open] summary svg { transform: rotate(90deg); }
.dtoc-m ol { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 6px; font-size: var(--fs-s); }
.dtoc-m a { color: var(--accent-ink); text-decoration: none; }
.dtoc-m a:hover { text-decoration: underline; }

/* Sections: one rhythm rule (gap) per section, never margins per child */
.dsec { padding-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.dsec > * { min-width: 0; }
.dsec h2 { font-size: 28px; line-height: 1.2; font-weight: 700; display: flex; align-items: baseline; gap: 10px; scroll-margin-top: 24px; }
.dsec h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; margin-top: 12px; }
.dsec p, .dsec li { line-height: 1.75; }
.danchor { opacity: 0; font-family: var(--font-mono); font-size: 19px; font-weight: 500; color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
.dsec h2:hover .danchor, .danchor:focus-visible { opacity: 1; }
.dsec strong { font-weight: 650; }

/* Callouts */
.dcall { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border: 1px solid; border-radius: 12px; line-height: 1.65; }
.dcall svg { width: 22px; height: 22px; margin-top: 2px; }
.dcall--tip { background: var(--accent-soft); border-color: #c9d8fb; color: #1b2f5e; }
.dcall--tip svg { color: var(--accent); }
.dcall--note { background: #fff8eb; border-color: #f3dcae; color: #5b3a06; }
.dcall--note svg { color: #c2780a; }

/* Flow: the editorial path in 6 numbered cards */
.dflow { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dflow li { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dflow__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dflow__n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.dflow__top svg { width: 22px; height: 22px; color: var(--accent); }
.dflow b { font-family: var(--font-display); font-size: 17.5px; line-height: 1.25; }
.dflow__d { font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.55; }
.dflow li:last-child { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.dflow li:last-child .dflow__n { color: var(--spark); }
.dflow li:last-child svg { color: var(--spark); }
.dflow li:last-child .dflow__d { color: var(--on-deep-soft); }

/* Numbered steps with a rail: used for the 4 levels and for the generation steps */
.dsteps { list-style: none; margin: 4px 0; padding: 0; display: grid; }
.dsteps > li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding-bottom: 24px; }
.dsteps > li:last-child { padding-bottom: 0; }
.dsteps > li::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.dsteps > li:last-child::before { display: none; }
.dsteps__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--on-deep); font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.dsteps__b { display: grid; gap: 8px; padding-top: 7px; min-width: 0; }
.dsteps__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dsteps__h b { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; }
.dsteps__b p { color: var(--ink-soft); }
.dwhen { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.dwhen--always { background: var(--ok-soft); color: #166534; }
.dwhen--opt { background: #fff1db; color: #8a5300; }
.dkeys { display: flex; flex-wrap: wrap; gap: 6px; }
.dkey { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.dex { justify-self: start; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 5px 10px; overflow-wrap: anywhere; }
.dex svg { width: 15px; height: 15px; flex: none; }

/* Where each part runs */
.dwhere { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); gap: 8px; margin: 4px 0; }
.dwhere__box { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dwhere__box svg { width: 26px; height: 26px; color: var(--accent); }
.dwhere__box b { font-family: var(--font-display); font-size: 18px; }
.dwhere__box p { font-size: var(--fs-s); line-height: 1.55; color: var(--ink-soft); }
.dwhere__box--jode { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.dwhere__box--jode svg { color: var(--spark); }
.dwhere__box--jode p { color: var(--on-deep-soft); }
.dwhere__arrow { display: grid; place-items: center; color: #8f99b0; }
.dwhere__arrow svg { width: 24px; height: 24px; }

/* Tables */
.dtable-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.dtable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-s); }
.dtable th { text-align: left; background: var(--paper); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td:first-child { font-weight: 600; white-space: nowrap; }
.dneed { display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; white-space: nowrap; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.dneed--must { background: var(--accent-soft); color: var(--accent-ink); border-color: #c9d8fb; }

/* Free and PRO cards */
.dplans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dplan { display: grid; gap: 14px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dplan--pro { border-color: #c9d8fb; background: linear-gradient(180deg, var(--accent-soft), var(--surface) 140px); }
.dplan__top { display: grid; gap: 4px; }
.dplan__name { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.dplan--free .dplan__name { color: #166534; }
.dplan--pro .dplan__name { color: var(--accent-ink); }
.dplan__price { font-size: 13.5px; color: var(--ink-soft); }
.dplan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: var(--fs-s); }
.dplan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; line-height: 1.5; }
.dplan li svg { width: 18px; height: 18px; margin-top: 1px; }
.dplan--free li svg { color: var(--ok); }
.dplan--pro li svg { color: var(--accent); }

/* Check list */
.dchecks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dchecks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.dchecks__ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-top: 1px; }
.dchecks__ico svg { width: 15px; height: 15px; }
.dchecks p { color: var(--ink-soft); }
.dchecks strong { color: var(--ink); }

/* Plain bullet list with a bold lead */
.dlist { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.dlist li::marker { color: var(--accent); }

/* Next steps */
.dnext { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dcard { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--surface); transition: border-color 0.2s, transform 0.15s; }
.dcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.dcard__k { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.dcard b { font-family: var(--font-display); font-size: 17.5px; line-height: 1.3; }
.dcard__d { font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.5; }

/* Pager + page foot */
.dpager { max-width: 780px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dpager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color 0.2s; }
.dpager a:hover { border-color: var(--accent); }
.dpager .next { grid-column: 2; text-align: right; }
.dpager small { font-size: 13px; color: var(--ink-soft); }
.dpager b { font-size: var(--fs-m); color: var(--accent-ink); font-weight: 600; }
.dfoot { max-width: 780px; margin: 24px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13.5px; color: var(--ink-soft); }

/* "On this page" (right column) */
.dtoc { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); align-self: start; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 40px 24px 24px 0; }
.dtoc__title { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.dtoc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.dtoc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); text-decoration: none; }
.dtoc a:hover { color: var(--ink); }
.dtoc a.is-on { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
.dtoc__top { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.dtoc__top:hover { color: var(--accent-ink); }
.dtoc__top svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* Docs bar (narrow screens) */
.ddocbar { display: none; }
.dscrim { position: fixed; inset: 0; z-index: 65; background: rgba(10, 28, 63, 0.45); }
body.is-locked { overflow: hidden; }

/* Top bar spans the whole width on docs pages, so the wordmark lines up with the menu */
.docs .topbar .wrap { max-width: none; }

/* A label exactly as it appears in the plugin (button, tab, field) */
/* Long labels wrap (a narrow phone must never scroll sideways); each wrapped line keeps the chip look. */
.dui { display: inline; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.94em; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dui-path { display: inline; color: var(--ink); font-weight: 600; }

/* Questions and answers */
.dfaqs { display: grid; gap: 10px; }
.dfaq { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dfaq summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 18px; font-weight: 600; line-height: 1.5; }
.dfaq summary::-webkit-details-marker { display: none; }
.dfaq summary svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--ink-soft); transition: transform 0.18s; }
.dfaq[open] summary svg { transform: rotate(90deg); }
.dfaq summary:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 12px; }
.dfaq__a { display: grid; gap: 12px; padding: 0 18px 16px; color: var(--ink-soft); line-height: 1.7; }

/* Glossary */
.dgloss { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dgloss > div { display: grid; grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dgloss > div:last-child { border-bottom: 0; }
.dgloss > div:nth-child(even) { background: var(--paper); }
.dgloss dt { font-weight: 700; color: var(--ink); line-height: 1.55; }
.dgloss dd { margin: 0; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 640px) {
	.dgloss > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Screenshot of the plugin with its caption; click opens it full size */
.dfig { margin: 4px 0; display: grid; gap: 10px; }
/* The frame hugs the picture: a narrow card stays card-sized, a wide screen fills the column */
.dfig__zoom { justify-self: start; display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 14px 34px -24px rgba(10, 28, 63, 0.45); cursor: zoom-in; }
.dfig__zoom:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; }
.dfig img { display: block; max-width: 100%; height: auto; }
.dfig figcaption { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.dzoom { width: min(1400px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 30px 80px rgba(10, 28, 63, 0.45); overflow: auto; }
.dzoom::backdrop { background: rgba(10, 28, 63, 0.7); }
.dzoom img { display: block; width: 100%; height: auto; cursor: zoom-out; }
.dzoom__x { all: unset; position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(10, 28, 63, 0.25); cursor: pointer; font-size: 22px; line-height: 1; }
.dzoom__x:focus-visible { outline: 3px solid var(--spark); }

/* Code-like value the reader types or sees (an address, a file name) */
.dcode { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; }

@media (max-width: 1240px) {
	.dshell { grid-template-columns: 280px minmax(0, 1fr); }
	.dtoc { display: none; }
	.dtoc-m { display: block; }
}
@media (max-width: 960px) {
	.dshell { grid-template-columns: minmax(0, 1fr); }
	.ddocbar {
		position: sticky;
		top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
		z-index: 40;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px var(--gutter-r) 10px var(--gutter-l);
		background: var(--surface);
		border-bottom: 1px solid var(--line);
	}
	.ddocbar__btn {
		all: unset;
		cursor: pointer;
		flex: none;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 40px;
		padding: 0 14px;
		border: 1px solid var(--line);
		border-radius: 10px;
		font-size: var(--fs-s);
		font-weight: 600;
		color: var(--ink);
	}
	.ddocbar__btn svg { width: 18px; height: 18px; }
	.ddocbar__btn:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }
	.ddocbar__cur { min-width: 0; font-size: var(--fs-s); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.dside {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 70;
		width: min(340px, 88vw);
		height: 100dvh;
		padding-top: calc(16px + env(safe-area-inset-top, 0px));
		transform: translateX(-105%);
		transition: transform 0.22s ease;
		box-shadow: 0 0 40px rgba(10, 28, 63, 0.25);
		grid-template-rows: auto auto 1fr auto;
	}
	.dside.is-open { transform: none; }
	.dside__top { display: flex; }
	.dsearch kbd { display: none; }
	.dmain { padding-top: 28px; }
}
@media (max-width: 760px) {
	.dflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dwhere { grid-template-columns: minmax(0, 1fr); }
	.dwhere__arrow { height: 26px; }
	.dwhere__arrow svg { transform: rotate(90deg); }
	.dplans, .dnext { grid-template-columns: minmax(0, 1fr); }
	.dsec h2 { font-size: 25px; }
}
@media (max-width: 520px) {
	.dflow { grid-template-columns: minmax(0, 1fr); }
	.dpager { grid-template-columns: minmax(0, 1fr); }
	.dpager .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.dside, .dgroup__chev, .dcard { transition: none; }
}
