/*
Theme Name: CNR Frame
Theme URI: https://cnrautoparts.com/
Author: CNR Frame
Description: A focused, accessible block theme for local image conversion, contact sheets, and palette extraction.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cnr-frame
Tags: full-site-editing, custom-colors
*/

:root {
  color-scheme: light;
  --canvas: #f3f8f7;
  --surface: #fff;
  --ink: #173c39;
  --muted: #536c68;
  --teal: #17655c;
  --line: #ccdcd8;
  --control-border: #738d84;
  --wash: #e6f1ed;
  --hover: #104d46;
  --error: #9c2f24;
  --focus: #945421;
  --width: 880px;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
img, video, canvas, svg { max-width: 100%; height: auto; }
figure { margin-inline: 0; }
iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a, button, summary, input, select, textarea { touch-action: manipulation; }
a { color: var(--teal); text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--hover); text-decoration-thickness: 2px; }
a:active { color: var(--ink); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.1vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.625rem); }
h3 { font-size: 1.125rem; }
p, ul, ol, pre { overflow-wrap: anywhere; }
::selection { background: #c6e7dd; color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -120px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; color: white; }
.site-header, .site-footer { padding-inline: 20px; }
.header-inner, .footer-inner { max-width: var(--width); margin-inline: auto; }
.header-inner { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-height: 44px; flex-shrink: 0; }
.brand:hover { color: var(--teal); }
.brand-mark { position: relative; display: inline-block; width: 31px; height: 31px; flex: 0 0 31px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 23px; height: 23px; border: 2px solid var(--teal); }
.brand-mark::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brand-mark::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.25rem; font-weight: 720; line-height: 1.2; letter-spacing: -.045em; }
.brand-descriptor { margin-top: 5px; font-size: .5625rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(4px, 2vw, 20px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 5px; text-decoration: none; font-size: .8125rem; color: var(--muted); font-weight: 550; }
.site-nav a:hover, .site-nav a:active { color: var(--teal); box-shadow: inset 0 -2px var(--teal); }
.guided-flow, .article-layout, .static-page, .guide-archive { width: min(calc(100% - 40px), var(--width)); margin-inline: auto; padding-bottom: clamp(48px, 7vw, 80px); }
.guided-flow { padding-top: 32px; }
.workspace-intro { padding: 8px 0 29px; }
.intro-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eyebrow { font-size: .625rem; font-weight: 700; letter-spacing: .13em; line-height: 1.5; color: var(--muted); margin: 0; }
.local-badge { display: inline-flex; gap: 7px; align-items: center; font-size: .6875rem; color: var(--teal); padding: 5px 10px; background: var(--wash); border: 1px solid #d4e7de; border-radius: 30px; }
.local-dot { width: 6px; height: 6px; display: inline-block; background: var(--teal); border-radius: 50%; flex-shrink: 0; }
.workspace-intro h1 { margin-block: 19px 15px; max-width: 24ch; line-height: 1.13; font-weight: 620; letter-spacing: -.045em; }
.intro-description { max-width: 55ch; font-size: .9375rem; line-height: 1.7; margin-block: 0; color: var(--muted); }
.flow-shell { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 0; }
.flow-shell > *, .flow-main, .tool-panel, .autosite-tool, .autosite-tool > * { min-width: 0; }
.flow-navigation { position: sticky; top: 24px; padding-top: 4px; }
.flow-navigation > .eyebrow { padding: 0 0 13px 2px; }
.step-list { padding: 0; margin: 0; list-style: none; }
.step-list li { position: relative; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; top: 45px; bottom: 0; left: 14px; width: 1px; background: var(--line); }
.step-list a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0 18px; min-height: 72px; font-size: .8125rem; font-weight: 650; line-height: 1.4; color: var(--ink); text-decoration: none; }
.step-number { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; font-size: .625rem; border: 1px solid var(--line); background: var(--canvas); border-radius: 50%; flex: 0 0 29px; margin-top: -3px; font-variant-numeric: tabular-nums; color: var(--teal); }
.step-list small { display: block; font-size: .6875rem; line-height: 1.5; color: var(--muted); margin-top: 5px; font-weight: 400; }
.step-list a:hover .step-number { color: white; background: var(--teal); border-color: var(--teal); }
.step-list a:active .step-number { background: var(--ink); }
.workflow-note { margin-top: 19px; border-top: 1px solid var(--line); padding: 17px 0 0; color: var(--muted); font-size: .6875rem; }
.privacy-symbol { font-size: 1.35rem; color: var(--teal); }
.workflow-note p { margin: 3px 0 0; line-height: 1.8; }
.workflow-note strong { font-weight: 550; color: var(--teal); }
.tool-workspace { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 18px #173c3905; }
.workspace-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 19px 23px 15px; }
.workspace-top .eyebrow { color: var(--teal); }
.workspace-caption { font-size: .625rem; color: var(--muted); }
.tool-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 16px; gap: 3px; border-bottom: 1px solid var(--line); margin: 0; }
.tool-selector a { display: flex; gap: 9px; align-items: center; padding: 11px 7px 15px; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 650; border-bottom: 2px solid transparent; min-height: 62px; line-height: 1.4; }
.tool-selector small { display: block; color: var(--muted); font-size: .625rem; font-weight: 400; margin-top: 3px; }
.tool-tab-icon { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; font-size: 1.3rem; font-weight: 400; background: var(--canvas); flex: 0 0 30px; }
.tool-selector a[aria-selected="true"] { border-bottom-color: var(--teal); color: var(--teal); }
.tool-selector a[aria-selected="true"] .tool-tab-icon { background: var(--wash); border-color: #a8cbc0; }
.tool-selector a:hover { background: var(--canvas); color: var(--teal); }
.tool-selector a:active { background: var(--wash); }
.input-section-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 23px 24px 0; margin: 0; }
.input-section-label > span:last-child { color: var(--muted); font-size: .625rem; }
.tool-panel { margin: 0; padding: 20px 24px 24px; }
.tool-panel > h2 { margin: 0 0 8px; font-size: clamp(1.1875rem, 2.1vw, 1.375rem); }
.tool-description { color: var(--muted); font-size: .8125rem; line-height: 1.65; margin: 0 0 20px; max-width: 62ch; }
.tool-limit { color: var(--muted); font-size: .6875rem; line-height: 1.7; margin: 18px 0 0; }
.tool-limit strong { color: var(--ink); font-weight: 600; }
.runtime-unavailable { padding: 16px; margin: 20px 24px; background: #fff5f1; color: var(--error); border-left: 3px solid var(--error); border-radius: 0 6px 6px 0; font-size: .8125rem; }
.runtime-unavailable p { margin-bottom: 0; }
.tool-help { margin-top: 12px; border-top: 1px solid var(--line); font-size: .75rem; }
summary { cursor: pointer; min-height: 44px; padding: 12px 4px 12px 0; line-height: 1.6; font-weight: 550; color: var(--teal); }
summary:hover { color: var(--hover); text-decoration: underline; text-underline-offset: 4px; }
summary:active { color: var(--ink); }
details[open] > summary { color: var(--ink); }
details > div { padding-bottom: 8px; color: var(--muted); }
details p { margin: 0 0 10px; }
.sample-downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; margin-top: 6px; font-size: .6875rem; }
.sample-downloads span { color: var(--muted); }
.sample-downloads a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
.review-note { padding: 20px 24px; margin: 0; background: #f6faf8; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; display: flex; gap: 13px; align-items: flex-start; }
.review-mark { color: var(--teal); font-size: 1.5rem; line-height: 1; padding-top: 2px; }
.review-note h2 { font-size: .75rem; font-weight: 650; letter-spacing: 0; margin: 0 0 5px; }
.review-note p { margin: 0; font-size: .6875rem; color: var(--muted); line-height: 1.7; }

/* Trusted autosite controls: one column, distinct input and result surfaces. */
.autosite-tool { --ast-accent: var(--teal); --ast-border: var(--control-border); width: 100%; max-width: 100%; color: var(--ink); font-size: .8125rem; padding: 0; border: 0; border-radius: 0; margin-block: 20px; background: white; }
.autosite-tool .ast-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.autosite-tool :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.autosite-tool .ast-note { color: var(--muted); font-size: .6875rem; line-height: 1.7; padding: 10px 12px; background: var(--wash); border-radius: 6px; }
.autosite-tool .ast-limits { color: var(--muted); font-size: .6875rem; line-height: 1.7; margin-block: 16px 8px; }
.autosite-tool .ast-status { min-height: 28px; font-size: .75rem; color: var(--muted); }
.autosite-tool .ast-status[data-state="error"] { color: var(--error); border-left: 3px solid var(--error); padding: 10px 12px; background: #fff5f1; border-radius: 0 4px 4px 0; }
.autosite-tool .ast-status[data-state="working"] { color: var(--teal); border-left: 3px solid var(--teal); padding: 10px 12px; background: var(--wash); border-radius: 0 4px 4px 0; }
.autosite-tool .ast-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.autosite-tool .result-title { border-top: 1px solid var(--line); margin: 15px 0 7px; padding-top: 20px; font-size: .875rem; }
.autosite-tool .result-hint { font-size: .6875rem; color: var(--muted); margin: 0 0 10px; }
.autosite-tool .ast-result { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; line-height: 1.75; min-height: 126px; max-height: 440px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8f6; margin: 12px 0; }
.autosite-tool button.ast-action { background: white; color: var(--teal); border-color: #8dad9f; }
.autosite-tool button.ast-action:hover:not(:disabled) { background: var(--wash); color: var(--teal); }
.autosite-tool button.ast-action:active:not(:disabled) { background: #dcece5; }
.autosite-tool button.ast-action:disabled { opacity: 1; background: #edf0ef; color: #5c6a66; border-color: #bcc9c3; }
.autosite-tool h2, .autosite-tool h3 { font-size: 1rem; margin: 16px 0 12px; letter-spacing: -.01em; }
.autosite-tool > :first-child { margin-top: 0; }
.autosite-tool form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.autosite-tool label { display: block; font-weight: 600; font-size: .8125rem; line-height: 1.5; margin: 10px 0 7px; overflow-wrap: anywhere; }
.autosite-tool :where(input, select, textarea) { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 10px 12px; }
.autosite-tool textarea { resize: vertical; min-height: 120px; }
.autosite-tool input[type="file"] { min-height: 98px; padding: 24px 14px; border: 1px dashed var(--control-border); border-radius: 8px; background: #f7fbf9; font-size: .75rem; cursor: pointer; white-space: normal; }
.autosite-tool input[type="file"]:hover { background: var(--wash); border-color: var(--teal); }
.autosite-tool input::file-selector-button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--control-border); border-radius: 5px; color: var(--teal); background: white; font: inherit; font-weight: 600; margin-right: 10px; cursor: pointer; }
.autosite-tool input::file-selector-button:hover { background: var(--wash); }
.autosite-tool input[type="color"] { padding: 4px; min-height: 44px; }
.autosite-tool input[type="checkbox"], .autosite-tool input[type="radio"] { width: 22px; min-height: 22px; margin: 11px; accent-color: var(--teal); }
.autosite-tool input[type="range"] { padding: 0; accent-color: var(--teal); }
.autosite-tool button, .autosite-tool a[download], .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--teal); border-radius: 6px; background: var(--teal); color: white; font-size: .8125rem; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: normal; overflow-wrap: anywhere; cursor: pointer; transition: background-color .15s ease; }
.autosite-tool button:hover, .autosite-tool a[download]:hover, .wp-block-button__link:hover { background: var(--hover); border-color: var(--hover); color: white; }
.autosite-tool button:active, .autosite-tool a[download]:active, .wp-block-button__link:active { background: var(--ink); transform: translateY(1px); }
.autosite-tool :where(button[type="reset"], .secondary, [data-action="clear"], [data-action="copy"], [data-action="download"]) { background: white; color: var(--teal); border-color: #8dad9f; }
.autosite-tool :where(button[type="reset"], .secondary, [data-action="clear"], [data-action="copy"], [data-action="download"]):hover { background: var(--wash); color: var(--teal); border-color: var(--teal); }
.autosite-tool :where(button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"]) { opacity: 1; background: #edf0ef; color: #5c6a66; border-color: #bcc9c3; cursor: not-allowed; transform: none; }
.autosite-tool button:disabled:hover { background: #edf0ef; color: #5c6a66; border-color: #bcc9c3; }
.autosite-tool :where(.actions, .autosite-actions, .tool-actions, .result-actions, .buttons) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.autosite-tool pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; min-height: 126px; max-height: 440px; max-width: 100%; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8f6; margin: 20px 0 12px; }
.autosite-tool :where(.result, .results, .autosite-result, .autosite-output) { min-width: 0; max-width: 100%; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.autosite-tool :where(img, canvas) { display: block; max-width: 100%; height: auto; border-radius: 5px; }
.autosite-tool :where([role="status"], .status, .autosite-status) { min-height: 28px; padding-block: 5px; font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.autosite-tool :where([role="alert"], .error, .autosite-error, [data-state="error"]) { color: var(--error); border-left: 3px solid currentColor; padding: 10px 12px; background: #fff5f1; border-radius: 0 4px 4px 0; font-size: .8125rem; }
.autosite-tool [aria-invalid="true"] { border: 2px solid var(--error); background: #fffafa; }
.autosite-tool :where(.palette, .swatches, .color-list) { display: flex; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.autosite-tool :where(.swatch, .color-swatch) { min-width: 0; overflow-wrap: anywhere; }
.autosite-tool code { white-space: pre-wrap; overflow-wrap: anywhere; }
.autosite-tool table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.autosite-tool :where(th, td) { padding: 8px; border: 1px solid var(--line); overflow-wrap: anywhere; }

.latest-guides { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-heading h2 { margin: 7px 0 0; }
.section-index { font-size: .5625rem; font-weight: 650; letter-spacing: .1em; color: var(--muted); padding-bottom: 4px; }
.section-description { font-size: .8125rem; color: var(--muted); max-width: 66ch; margin: 12px 0 18px; }
.guide-categories { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 10px; }
.guide-categories a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--teal); font-size: .6875rem; text-decoration: none; }
.guide-categories a::before { content: ""; width: 4px; height: 4px; border: 1px solid var(--teal); margin-right: 7px; }
.guide-categories a:hover { text-decoration: underline; }
.guide-list { padding: 0; margin: 0; list-style: none; }
.guide-entry { display: grid; grid-template-columns: 28px minmax(0, 1fr) 26px; gap: 14px; padding: 21px 0; border-top: 1px solid var(--line); }
.guide-entry:last-child { border-bottom: 1px solid var(--line); }
.guide-number { font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 5px; }
.guide-entry h3 { margin: 0 0 7px; font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.45; }
.guide-entry h3 a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: 5px; }
.guide-entry h3 a:hover { color: var(--teal); text-decoration: underline; }
.guide-entry p { font-size: .8125rem; margin: 0 0 8px; color: var(--muted); max-width: 65ch; }
.guide-entry time { font-size: .625rem; color: var(--muted); }
.guide-arrow { color: var(--teal); font-size: 1.25rem; padding-top: 5px; }
.guide-empty { padding: 24px; margin-top: 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .875rem; }
.guide-empty p { margin: 0 0 8px; }
.guide-empty p:last-child { margin-bottom: 0; }
/* Keep the existing numbered guide rows when rendered by core post blocks. */
.cnr-frame-guide-query .guide-list { counter-reset: cnr-frame-guide; }
.cnr-frame-guide-query .guide-list > li { margin-block: 0; }
.cnr-frame-guide-query .guide-number::before { counter-increment: cnr-frame-guide; content: counter(cnr-frame-guide, decimal-leading-zero); }
.cnr-frame-guide-query .guide-entry { margin: 0; border-bottom: 0; }
.cnr-frame-guide-query .guide-list > li:last-child .guide-entry { border-bottom: 1px solid var(--line); }
.cnr-frame-guide-query .guide-entry > *, .cnr-frame-guide-query .wp-block-post-excerpt, .cnr-frame-guide-query .wp-block-post-date { margin: 0; }
.tool-directory { margin-top: 42px; }
.directory-list { list-style: none; padding: 0; margin: 22px 0 25px; }
.directory-list li { border-top: 1px solid var(--line); }
.directory-list li:last-child { border-bottom: 1px solid var(--line); }
.directory-list a { display: grid; grid-template-columns: 148px minmax(0, 1fr) 20px; gap: 18px; align-items: center; min-height: 78px; padding: 14px 4px; text-decoration: none; color: var(--ink); }
.directory-list strong { font-size: .875rem; font-weight: 600; }
.directory-list .directory-description { color: var(--muted); font-size: .75rem; }
.directory-list a:hover { background: var(--wash); }
.directory-list a:active { background: #dcece5; }
.directory-list a > :last-child { font-size: 1.1rem; color: var(--teal); }
.site-faq { border-bottom: 1px solid var(--line); font-size: .8125rem; }
.site-faq summary { padding-block: 15px; color: var(--ink); }
.site-faq div { max-width: 73ch; font-size: .8125rem; padding-left: 16px; }
.site-footer { background: #eaf2ef; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 25px 23px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brand-compact .brand-mark { width: 23px; height: 23px; flex-basis: 23px; }
.brand-compact .brand-mark::before, .brand-compact .brand-mark::after { width: 17px; height: 17px; }
.brand-compact .brand-name { font-size: 1.0625rem; }
.local-note { font-size: .6875rem; display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; }
.footer-nav { display: flex; gap: 4px 21px; flex-wrap: wrap; margin-top: 13px; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .6875rem; text-decoration: none; color: var(--muted); }
.footer-nav a:hover { text-decoration: underline; color: var(--teal); }
.footer-colophon { font-size: .625rem; color: var(--muted); margin: 6px 0 0; }

/* Articles and static pages deliberately do not include the homepage tools. */
.article-layout, .static-page, .guide-archive { padding-top: clamp(30px, 5vw, 56px); }
.article-body, .static-page > *, .article-layout > .related-guides { max-width: 70ch; margin-inline: auto; }
.article-body > h1 { margin-block: 13px 16px; max-width: 24ch; font-size: clamp(2rem, 4.5vw, 2.9rem); }
.breadcrumb { font-size: .75rem; margin-bottom: 25px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.article-categories { font-size: .75rem; }
.article-meta { display: flex; gap: 10px 20px; color: var(--muted); font-size: .75rem; margin: 0 0 28px; }
.article-meta p { margin: 0; }
.article-toc { background: var(--wash); padding: 20px 24px; border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; margin-block: 28px; }
.article-toc h2 { font-size: .8125rem; margin: 0 0 10px; letter-spacing: 0; }
.article-toc ol { padding-left: 20px; margin: 0; }
.article-toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; }
.article-toc .toc-subheading { margin-left: 18px; }
.wp-block-post-content { line-height: 1.85; }
.wp-block-post-content > * { max-width: 100%; }
.wp-block-post-content :where(h2, h3) { scroll-margin-top: 25px; margin-top: 2.25rem; }
.wp-block-post-content :where(p, li) { font-size: 1rem; }
.wp-block-post-content :where(pre, code) { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.wp-block-post-content pre { padding: 18px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.wp-block-post-content table { border-collapse: collapse; width: 100%; }
.wp-block-post-content th, .wp-block-post-content td { padding: 10px; border: 1px solid var(--line); }
.wp-block-post-content blockquote { border-left: 3px solid var(--teal); padding-left: 20px; margin-inline: 0; color: var(--muted); }
.related-tool { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; margin-top: 40px; }
.related-tool h2 { font-size: 1.125rem; margin: 6px 0 8px; }
.related-tool p { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.related-tool a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; font-weight: 600; }
.related-guides { margin-top: 42px; }
.related-guides h2 { font-size: 1.375rem; }
.static-page { min-height: 55vh; }
.static-page > h1 { margin-top: 0; margin-bottom: 30px; }
.static-page .wp-block-post-content { max-width: 70ch; }
.guide-archive > h1 { margin: 12px 0 20px; }
.archive-query { margin-top: 25px; }
.archive-query .wp-block-post-template { padding: 0; list-style: none; }
.archive-entry { padding: 24px 0; border-top: 1px solid var(--line); }
.archive-entry .wp-block-post-title { font-size: 1.5rem; line-height: 1.4; margin-block: 8px 12px; }
.archive-entry .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.archive-entry .wp-block-post-title a:hover { text-decoration: underline; color: var(--teal); }
.archive-entry .wp-block-post-terms, .archive-entry .wp-block-post-date { font-size: .75rem; color: var(--muted); }
.archive-entry .wp-block-post-excerpt { font-size: .9375rem; color: var(--muted); }
.wp-block-query-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; }

@media (max-width: 767px) {
  .flow-shell { grid-template-columns: 1fr; gap: 19px; }
  .flow-navigation { position: static; padding: 0; }
  .flow-navigation > .eyebrow { display: none; }
  .step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-block: 1px solid var(--line); padding-block: 5px; }
  .step-list li:not(:last-child)::after { display: none; }
  .step-list a { min-height: 66px; align-items: center; gap: 7px; padding: 8px 0; font-size: .6875rem; }
  .step-list small { font-size: .5625rem; margin-top: 3px; }
  .step-number { margin: 0; width: 25px; height: 25px; flex-basis: 25px; font-size: .5625rem; }
  .workflow-note { display: none; }
  .latest-guides { margin-top: 40px; }
  .tool-selector a { padding-inline: 9px; }
}
@media (max-width: 479px) {
  .site-header, .site-footer { padding-inline: 16px; }
  .header-inner { gap: 4px 16px; padding-block: 14px 10px; min-height: 112px; }
  .brand { margin-right: 20px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 4px 12px; }
  .site-nav a { font-size: .75rem; padding-inline: 0; }
  .guided-flow, .article-layout, .static-page, .guide-archive { width: calc(100% - 32px); }
  .guided-flow { padding-top: 23px; }
  .workspace-intro { padding-bottom: 22px; }
  .intro-topline { gap: 9px; }
  .intro-topline > .eyebrow { font-size: .5625rem; letter-spacing: .09em; }
  .local-badge { font-size: .5625rem; padding: 4px 7px; }
  .workspace-intro h1 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); }
  .intro-description { font-size: .8125rem; }
  .step-list a { flex-direction: column; align-items: flex-start; min-height: 82px; gap: 7px; }
  .step-list small { font-size: .5625rem; }
  .tool-selector { padding-inline: 6px; gap: 0; }
  .tool-selector a { flex-direction: column; align-items: flex-start; padding: 9px 7px 11px; font-size: .6875rem; gap: 6px; }
  .tool-selector small { font-size: .5625rem; }
  .tool-tab-icon { height: 27px; width: 27px; flex-basis: 27px; font-size: 1.125rem; }
  .workspace-top { padding: 17px 15px 12px; }
  .workspace-caption { display: none; }
  .input-section-label { padding: 19px 15px 0; }
  .input-section-label > span:last-child { font-size: .5625rem; }
  .tool-panel { padding: 16px 15px 19px; }
  .tool-panel > h2 { font-size: 1.125rem; }
  .autosite-tool input[type="file"] { padding: 12px 8px; min-height: 88px; font-size: .6875rem; }
  .autosite-tool input::file-selector-button { padding-inline: 8px; margin-right: 4px; }
  .autosite-tool :where(.actions, .autosite-actions, .tool-actions, .result-actions, .buttons) > :where(button, a) { flex: 1 1 auto; }
  .autosite-tool pre { padding: 12px; font-size: .6875rem; }
  .review-note { padding: 18px 15px; gap: 10px; }
  .section-index { display: none; }
  .section-heading h2 { font-size: 1.375rem; }
  .guide-entry { grid-template-columns: 22px minmax(0, 1fr) 14px; gap: 8px; padding-block: 18px; }
  .directory-list a { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 12px; padding-block: 16px; }
  .directory-list .directory-description { grid-row: 2; grid-column: 1; }
  .directory-list a > :last-child { grid-column: 2; grid-row: 1 / 3; }
  .footer-top { gap: 6px; }
  .footer-nav { gap: 0 16px; }
  .article-toc { padding: 16px; }
  .article-body > h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .tool-selector a[aria-selected="true"] { outline: 2px solid Highlight; }
  .brand-mark::before, .brand-mark::after { border-color: CanvasText; }
  .local-dot { border: 2px solid CanvasText; }
}
@media print {
  .site-header, .site-footer, .article-toc, .related-tool, .related-guides, .flow-navigation, .tool-selector, .skip-link { display: none; }
  body { color: #000; background: #fff; }
  .article-layout, .static-page { width: 100%; padding: 0; }
  a { color: #000; }
  .article-body h2, .article-body h3 { break-after: avoid; }
  .article-body pre, .article-body figure { break-inside: avoid; }
}
