/*
 * Page content (Phase 2): sections and cards rebuilt from the live Elementor container settings, spacing as live,
 * and the site's own content classes from live's Additional CSS (post 16). Values through the token map (plan §3).
 * Loaded on the site and in the editor.
 */

/* Sections touch each other; the block-gap margins of flow layout are not used inside them. */
.wp-block-post-content > .gdb-sec { margin-block: 0; }
.gdb-sec > *, .gdb-card > *, .gdb-cards > * { margin-block: 0; }

/* Section: boxed 760px column, padding 48/24 (32/16 on phones). A flex column, so margins add up as on live. */
.gdb-sec { display: flex; flex-direction: column; padding: var(--wp--preset--spacing--70) max(var(--wp--preset--spacing--50), calc((100% - 760px) / 2)); }
.gdb-sec-soft { background: var(--wp--preset--color--surface-soft); }
/* First section of every page: a faint honey sheen in the top corner (live Additional CSS, DS-OD-06). */
.gdb-sec-lead { background-image: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--wp--preset--color--shine) 16%, transparent), transparent 60%); }
@media (max-width: 767px) {
	.gdb-sec { padding: var(--wp--preset--spacing--60) max(var(--wp--preset--spacing--40), calc((100% - 760px) / 2)); }
}

/* Spacing: each block's own bottom margin (paragraph 16, heading 16, list 0). Where live had more (the gap after an
   Elementor widget), the converter set it on the block itself (make-docs.php). */
:is(.gdb-sec, .gdb-card) > p, .gdb-sec > :is(h1, h2, h3, h4), .gdb-sec > .rank-math-breadcrumb { margin-bottom: var(--wp--preset--spacing--40); }

/* UI text in Source Sans 3 (live Additional CSS, DS-OD-06). */
.rank-math-breadcrumb, .gd-label, .gd-jump, .gd-sources, .gd-table-wrap table, figcaption { font-family: var(--wp--preset--font-family--source-sans); }

/* Breadcrumb (Rank Math markup): links not underlined, its paragraph keeps the live 16px margin. */
.rank-math-breadcrumb a { text-decoration: none; }
.rank-math-breadcrumb p { margin: 0 0 var(--wp--preset--spacing--40); }

/* Cards: two per row (48%), one on phones. */
.gdb-cards { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--40); padding: 10px; } /* 10px: Elementor's default container padding, live has no own value here */
.gdb-card { width: 48%; display: flex; flex-direction: column; padding: var(--wp--preset--spacing--50); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line, #E6D8C8); border-radius: 8px; }
@media (max-width: 767px) {
	.gdb-cards { flex-direction: column; }
	.gdb-card { width: 100%; padding: var(--wp--preset--spacing--40); }
}

/* Small muted line (kit typography "Small"): the byline. */
.gdb-byline { font: 400 var(--wp--preset--font-size--small)/1.5 var(--wp--preset--font-family--source-sans); color: var(--wp--preset--color--muted); }

/* Site content classes (live Additional CSS). */
.gd-label { color: var(--wp--preset--color--brand); letter-spacing: 0.02em; }
.gd-hl { position: relative; white-space: nowrap; z-index: 0; padding: 0 0.06em; }
.gd-hl::after { content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.06em; height: 0.36em; background: color-mix(in srgb, var(--wp--preset--color--shine) 45%, transparent); border-radius: 0.12em 0.3em 0.18em 0.25em; z-index: -1; }
/* Phones (2026-11-09): a long key phrase wraps instead of running off the screen (8 guide titles did at 360px), and
   the honey band follows every line (a background cloned per line; the single ::after band cannot). */
@media (max-width: 760px) {
	.gd-hl { white-space: normal; background: linear-gradient(color-mix(in srgb, var(--wp--preset--color--shine) 45%, transparent), color-mix(in srgb, var(--wp--preset--color--shine) 45%, transparent)) no-repeat left 0 bottom 0.06em / 100% 0.36em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
	.gd-hl::after { content: none; }
}
.gd-jump { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
sup a { text-decoration: none; }

/* Contact form (WPForms, Shortcode block as on live): full column width (WPForms centres it with auto margins,
   which would shrink a flex item), the 16px widget gap after it as on live, UI font. The submit button is the locked
   primary action (DS-OD-04): set through WPForms' own variables, so no !important is needed (live used it). */
.gdb-sec > .wpforms-container { width: 100%; }
.gdb-sec > .wpforms-container:not(:last-child) { margin-bottom: calc(24px + var(--wp--preset--spacing--40)); }
div.wpforms-container-full { --wpforms-button-background-color: var(--wp--preset--color--action); --wpforms-button-border-color: var(--wp--preset--color--action); --wpforms-button-text-color: var(--wp--custom--color--white); --wpforms-button-border-radius: var(--wp--custom--radius--button); }
div.wpforms-container-full .wpforms-form { font-family: var(--wp--preset--font-family--source-sans); }
div.wpforms-container-full .wpforms-form button[type=submit],
div.wpforms-container-full .wpforms-form .wpforms-submit { font-family: var(--wp--preset--font-family--source-sans); font-weight: 600; padding: 16px 32px; height: auto; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
div.wpforms-container-full .wpforms-form button[type=submit]:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover { background: var(--wp--preset--color--action-hover); border-color: var(--wp--preset--color--action-hover); box-shadow: 0 6px 18px -6px var(--wp--preset--color--shine); }
div.wpforms-container-full .wpforms-form .wpforms-field-description a { color: var(--wp--preset--color--action); text-decoration: underline; }

/* ---------- Guide content classes (used in the guides; here so the editor shows them too) ---------- */
/* Lead and small type (kit "Lead" and "Small"). */
.gdb-lead { font-size: var(--wp--preset--font-size--lead); line-height: var(--wp--custom--line-height--lead); }
.gdb-small { font-size: var(--wp--preset--font-size--small); line-height: var(--wp--custom--line-height--small); color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--source-sans); }

/* Boxes: live's final look in the guides (gd-guide.css overrode the Elementor box settings). */
.gd-box { display: flex; flex-direction: column; }
.gd-box > * { margin-block: 0; }
.gd-box > p { margin-bottom: var(--wp--preset--spacing--40); }
.gd-box--card { width: 48%; padding: var(--wp--preset--spacing--50); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line, #E6D8C8); border-radius: 8px; }
.gd-box--short { border-top: 2px solid var(--wp--preset--color--shine); padding: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--10); }
.gd-box--note { border-top: 1px solid var(--wp--preset--color--line, #E6D8C8); border-bottom: 1px solid var(--wp--preset--color--line, #E6D8C8); padding: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--30); }
.gd-box--caution { border-left: 4px solid var(--wp--preset--color--warning); padding: var(--wp--preset--spacing--10) 0 var(--wp--preset--spacing--10) 20px; }
@media (max-width: 767px) {
	.gd-box--card { width: 100%; padding: var(--wp--preset--spacing--40); }
}
/* "Where to go next" and sources: a rule above instead of the tinted band. */
.gdb-sec.gd-band { background: none; border-top: 1px solid var(--wp--preset--color--line, #E6D8C8); }
@media (min-width: 768px) {
	.gd-band .gdb-cards > .gd-box { flex: 1 1 calc(50% - 16px); max-width: calc(50% - 8px); }
}

/* Tables (live Additional CSS on top of the Hello theme's table defaults); core's table figure and its default
   borders are neutralised. Hello's striped odd body rows also reach row headers there (its selector wins). */
.gd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gd-table-wrap .wp-block-table { margin: 0; overflow: visible; }
.gd-table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; margin: 0 0 15px; font-size: 0.9em; font-family: var(--wp--preset--font-family--source-sans); }
.gd-table-wrap thead, .gd-table-wrap tfoot { border: 0; }
.gd-table-wrap :is(th, td) { border: 1px solid var(--wp--preset--color--line, #E6D8C8); padding: 8px 16px; line-height: 1.5; text-align: left; vertical-align: top; }
.gd-table-wrap th { background: var(--wp--preset--color--surface-soft); color: var(--wp--preset--color--brand); font-weight: 700; }
.gd-table-wrap tbody > tr:nth-child(odd) > :is(td, th) { background: var(--wp--custom--color--table-stripe); }
.gd-table-wrap thead:first-child > tr:first-child > :is(td, th) { border-top-color: var(--wp--custom--color--table-head-line); }

/* Glossary entries and source lists. */
.gd-term { margin: 0 0 var(--wp--preset--spacing--40); }
.gd-term :is(dt, dd) { margin: 0; }
.gd-sources { list-style: none; padding: 0; margin: 0; }
.gd-sources li { margin: 0 0 8px; overflow-wrap: anywhere; }

/* Images with a caption (Elementor image widget: no margins, caption in small UI type). */
.gdb-sec > .wp-block-image { margin: 0; }
.gdb-sec > .wp-block-image img { display: block; }
.gdb-sec > .wp-block-image figcaption { margin: 0; font: italic 400 var(--wp--preset--font-size--small)/1.5 var(--wp--preset--font-family--source-sans); color: var(--wp--custom--color--caption); }

/* FAQ (core/details in a gdb-faq group): the look of live's Elementor accordion. The icon floats left as on live, so
   the second line of a long question runs under it; phone values are Elementor's. */
.gdb-faq > details { border: 1px solid var(--wp--preset--color--line, #E6D8C8); }
.gdb-faq > details + details { border-top: 0; }
.gdb-faq > details > summary { display: block; list-style: none; padding: 15px 20px; font: 700 var(--wp--preset--font-size--heading-3)/1 var(--wp--preset--font-family--literata); color: var(--wp--preset--color--brand); cursor: pointer; }
.gdb-faq > details > summary::-webkit-details-marker { display: none; }
/* Icon: live's Font Awesome plus/minus (assets/icons/fa-plus.svg, fa-minus.svg): a 1em glyph in live's float box,
   1.5em x 26px (1.2em x 22px on phones; its line box was 2px / 1px taller than the glyph). */
.gdb-faq > details > summary::before { --gdb-faq-icon: url(../icons/fa-plus.svg); content: ""; float: left; width: 1em; height: 1em; margin: 0 0.5em 2px 0; background: currentColor; -webkit-mask: var(--gdb-faq-icon) center / contain no-repeat; mask: var(--gdb-faq-icon) center / contain no-repeat; }
.gdb-faq > details[open] > summary::before { --gdb-faq-icon: url(../icons/fa-minus.svg); }
.gdb-faq > details[open] > summary { border-bottom: 1px solid var(--wp--preset--color--line, #E6D8C8); }
.gdb-faq > details > :not(summary) { margin: 0 20px; }
.gdb-faq > details > summary + * { margin-top: 15px; }
.gdb-faq > details > p { margin-bottom: var(--wp--preset--spacing--40); }
.gdb-faq > details[open] { padding-bottom: 15px; }
@media (max-width: 767px) {
	.gdb-faq > details > summary { padding: 12px 15px; }
	.gdb-faq > details > summary::before { margin: 0 0.2em 1px 0; }
	.gdb-faq > details > :not(summary) { margin-inline: 15px; }
	.gdb-faq > details > summary + * { margin-top: 7px; }
	.gdb-faq > details[open] { padding-bottom: 7px; }
}

/* Superscript citations and subscripts as on live (Hello theme reset): they do not stretch the line. */
:is(sup, sub) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
