/* ==========================================================================
   Fuel Bill Generator — stylesheet
   Sections: tokens, base, layout, form, items table, buttons,
   bill sheet, print rules, responsive.
   ========================================================================== */

:root {
    --bg: #eef1f6;
    --panel: #ffffff;
    --ink: #101828;
    --muted: #667085;
    --line: #d8dee8;
    --line-soft: #eaeef4;
    --brand: #0e7490;
    --brand-dark: #0b5b70;
    --brand-soft: #e6f4f8;
    --accent: #f59e0b;
    --danger: #c0392b;
    --ok: #067647;
    --radius: 10px;
    --radius-sm: 7px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .18);
    --font: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); }

/* ---------------------------------------------------------------- layout */

.topbar {
    background: #0c1a24;
    color: #e6edf3;
    border-bottom: 3px solid var(--brand);
}

.topbar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}

.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), #12a4c9);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.brand__sub {
    font-size: 12px;
    font-weight: 400;
    color: #93a4b5;
    margin-left: 4px;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 20px 60px;
}

.page__title {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -.2px;
}

.page__lead {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

/* ------------------------------------------------------------------ card */

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: #fbfcfe;
}

.card__head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1px;
}

.card__step {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    flex: none;
}

.card__body { padding: 18px; }

/* ------------------------------------------------------------------ form */

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field { display: flex; flex-direction: column; gap: 6px; }

.field--full { grid-column: 1 / -1; }

.field label {
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.field .hint { font-size: 12px; color: var(--muted); }

input, select, textarea {
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

input[type="number"] { -moz-appearance: textfield; }

textarea { resize: vertical; min-height: 74px; }

/* ============================================ new bill entry experience */

.topbar--entry {
    position: relative;
    overflow: hidden;
    background: #101e2b;
    border: 0;
}

.topbar--entry::after {
    content: "";
    position: absolute;
    top: -115px;
    right: 9%;
    width: 310px;
    height: 210px;
    border: 1px solid rgba(158, 218, 222, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(158, 218, 222, .025), 0 0 0 62px rgba(158, 218, 222, .02);
    pointer-events: none;
}

.topbar__inner--entry {
    position: relative;
    z-index: 1;
    max-width: none;
    min-height: 76px;
    padding: 14px clamp(18px, 2.5vw, 42px);
    justify-content: space-between;
}

.topbar--entry .brand { gap: 12px; }

.topbar--entry .brand__mark {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: #173745;
    color: #83d5d1;
}

.brand__mark svg { display: block; width: 23px; height: 23px; }

.brand__copy { display: flex; flex-direction: column; gap: 1px; }

.topbar--entry .brand__name {
    color: #f7fafc;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .1px;
}

.topbar--entry .brand__sub {
    margin: 0;
    color: #9aabb9;
    font-size: 11px;
    letter-spacing: .15px;
}

.topbar__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c8d4dc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #59c5a3;
    box-shadow: 0 0 0 4px rgba(89, 197, 163, .12);
}

.topbar__divider {
    height: 13px;
    width: 1px;
    margin: 0 3px;
    background: rgba(255, 255, 255, .2);
}

.page--entry {
    width: 100%;
    max-width: none;
    padding: 32px clamp(18px, 2.5vw, 42px) 58px;
}

.entry-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.entry-intro__main { max-width: 650px; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    color: #52717b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.35px;
}

.eyebrow__rule { width: 25px; height: 1px; background: #9ab5b8; }

.page--entry .page__title {
    margin: 0;
    color: #132533;
    font-size: clamp(30px, 4vw, 39px);
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.title-period { color: #1d8a8b; }

.page--entry .page__lead {
    max-width: 620px;
    margin: 9px 0 0;
    color: #657582;
    font-size: 14px;
    line-height: 1.65;
}

.entry-intro__aside {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 310px;
    flex: none;
    padding: 17px 20px;
    border: 1px solid #d9e6e6;
    border-radius: 12px;
    background: linear-gradient(130deg, #f7fbfa, #edf5f3);
}

.entry-intro__aside-label {
    color: #438084;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.entry-intro__aside strong { color: #19343d; font-size: 14px; }
.entry-intro__aside > span:last-child { color: #72828a; font-size: 11px; }

.entry-form { display: grid; gap: 16px; }

.entry-workspace {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    align-items: start;
    gap: 20px;
}

.entry-workspace > .entry-form { min-width: 0; }

.preview-panel {
    position: sticky;
    top: 18px;
    min-width: 0;
    padding: 17px;
    border: 1px solid #dfe6e9;
    border-radius: 14px;
    background: #f8fafb;
    box-shadow: 0 5px 18px rgba(17, 39, 56, .045);
}

.preview-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 1px 14px;
}

.preview-panel__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #488183;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.15px;
}

.preview-panel__head h2 {
    margin: 0;
    color: #213642;
    font-size: 17px;
    letter-spacing: -.25px;
}

.preview-panel__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #d5e8df;
    border-radius: 999px;
    background: #f1f9f5;
    color: #367b63;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .6px;
    white-space: nowrap;
}

.preview-panel__live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #49a881;
}

.preview-paper {
    position: relative;
    overflow: hidden;
    padding: 19px 17px 15px;
    border: 1px solid #e0e5e9;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(17, 39, 56, .035);
}

.preview-paper--thermal {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 22px 13px 16px;
    border-color: #d6d1cf;
    border-radius: 3px;
    box-shadow: none;
    font-family: var(--mono);
}

.preview-paper--thermal::before,
.preview-paper--thermal::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-conic-gradient(from 45deg, #aaa4a1 0 25%, transparent 0 50%) 0 0 / 12px 10px;
}

.preview-paper--thermal::before { top: 0; }
.preview-paper--thermal::after { bottom: 0; transform: rotate(180deg); }

.preview-paper--thermal .preview-paper__topline {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-bottom: 8px;
    border-bottom-style: dashed;
    color: #555;
    text-align: center;
}

.preview-paper--thermal .preview-paper__station {
    flex-direction: column;
    gap: 5px;
    padding: 12px 0 9px;
    text-align: center;
}

.preview-paper--thermal .preview-paper__mark {
    width: 43px;
    height: 43px;
    border: 2px solid #666;
    border-radius: 50%;
    background: #fff;
    color: #555;
}

.preview-paper--thermal .preview-paper__station strong {
    max-width: 100%;
    color: #252525;
    font-family: var(--font);
    font-size: 12px;
    white-space: normal;
}

.preview-paper--thermal .preview-paper__station small {
    max-width: 100%;
    color: #555;
    font-size: 8px;
}

.preview-paper--thermal .preview-paper__meta {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 0;
}

.preview-paper--thermal .preview-paper__meta div {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 5px;
}

.preview-paper--thermal .preview-paper__meta span,
.preview-paper--thermal .preview-paper__customer > span {
    color: #555;
    font-size: 8px;
    letter-spacing: 0;
}

.preview-paper--thermal .preview-paper__meta strong {
    color: #252525;
    font-family: var(--mono);
    font-size: 8px;
    white-space: normal;
}

.preview-paper--thermal .preview-paper__customer {
    gap: 3px;
    padding: 8px 0;
    border-top: 1px dashed #999;
    border-bottom: 1px dashed #999;
}

.preview-paper--thermal .preview-paper__customer strong,
.preview-paper--thermal .preview-paper__customer small {
    color: #252525;
    font-family: var(--mono);
    font-size: 8px;
}

.preview-paper--thermal .preview-paper__items { border-color: #999; }
.preview-paper--thermal .preview-paper__table-head { color: #555; font-family: var(--mono); }
.preview-paper--thermal .preview-paper__row { border-bottom-style: dashed; border-color: #aaa; }
.preview-paper--thermal .preview-paper__row strong { color: #222; font-family: var(--mono); font-size: 8px; }
.preview-paper--thermal .preview-paper__row small { color: #555; font-family: var(--mono); font-size: 8px; }
.preview-paper--thermal .preview-paper__totals { gap: 4px; padding: 8px 0; }
.preview-paper--thermal .preview-paper__totals > div,
.preview-paper--thermal .preview-paper__totals > div strong { color: #333; font-family: var(--mono); font-size: 8px; }
.preview-paper--thermal .preview-paper__totals .preview-paper__grand { border-color: #777; }
.preview-paper--thermal .preview-paper__totals .preview-paper__grand strong { color: #111; font-size: 12px; }
.preview-paper--thermal .preview-currency { font-size: 8px; }
.preview-paper--thermal .preview-paper__payment { color: #555; border-color: #999; }
.preview-paper--thermal .preview-paper__payment strong { color: #222; font-family: var(--mono); }
.preview-paper--thermal .preview-paper__thanks { border-color: #999; color: #333; font-family: var(--mono); }

.preview-paper--compact {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 4px;
    box-shadow: none;
}

.preview-paper--compact .preview-paper__topline {
    color: #43565f;
    font-size: 7px;
}

.preview-paper--compact .preview-paper__station { padding: 10px 0 8px; }
.preview-paper--compact .preview-paper__mark { width: 30px; height: 30px; border-radius: 50%; }
.preview-paper--compact .preview-paper__mark svg { width: 18px; height: 18px; }
.preview-paper--compact .preview-paper__station strong { font-size: 11px; }
.preview-paper--compact .preview-paper__meta { padding: 7px 0; }
.preview-paper--compact .preview-paper__customer { padding: 8px 0; }
.preview-paper--compact .preview-paper__totals { gap: 4px; padding: 8px 0; }
.preview-paper--compact .preview-paper__totals .preview-paper__grand { padding-top: 7px; }
.preview-paper--compact .preview-paper__totals .preview-paper__grand strong { font-size: 15px; }

.preview-paper__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8edf0;
    color: #778792;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .75px;
}

.preview-paper__station {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 11px;
}

.preview-paper__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    background: #e8f4f2;
    color: #277b7a;
}

.preview-paper__mark svg { display: block; width: 22px; height: 22px; }

.preview-paper__station > div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.preview-paper__station strong {
    overflow: hidden;
    color: #203541;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-paper__station small {
    overflow: hidden;
    color: #83909a;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-paper__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 10px 0;
    border-top: 1px dashed #dfe5e9;
    border-bottom: 1px dashed #dfe5e9;
}

.preview-paper__meta div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }

.preview-paper__meta span,
.preview-paper__customer > span {
    color: #87949d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .65px;
}

.preview-paper__meta strong {
    overflow: hidden;
    color: #43545e;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-paper__customer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 0 10px;
}

.preview-paper__customer strong { color: #263b46; font-size: 11px; }
.preview-paper__customer small { color: #82909a; font-size: 9px; }

.preview-paper__items { border-top: 1px solid #edf0f2; }

.preview-paper__table-head,
.preview-paper__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-paper__table-head {
    padding: 8px 0 6px;
    color: #87949d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .65px;
}

.preview-paper__row {
    padding: 7px 0;
    border-bottom: 1px solid #edf0f2;
}

.preview-paper__row > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.preview-paper__row strong { color: #354954; font-size: 10px; font-variant-numeric: tabular-nums; }
.preview-paper__row small { color: #82909a; font-size: 9px; }
.preview-paper__row > strong { white-space: nowrap; }

.preview-paper__totals { display: grid; gap: 6px; padding: 10px 0; }

.preview-paper__totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #778791;
    font-size: 10px;
}

.preview-paper__totals > div strong {
    color: #354954;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.preview-paper__totals .preview-paper__grand {
    margin-top: 3px;
    padding-top: 9px;
    border-top: 1px solid #dfe6e9;
    color: #233b46;
    font-weight: 700;
}

.preview-paper__totals .preview-paper__grand strong { color: #14777b; font-size: 17px; }
.preview-currency { margin-right: 3px; font-size: 11px; }

.preview-paper__payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px dashed #dfe5e9;
    color: #87949d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .65px;
}

.preview-paper__payment strong { color: #48616b; font-size: 10px; letter-spacing: 0; }

.preview-paper__thanks {
    padding-top: 8px;
    border-top: 1px solid #edf0f2;
    color: #82909a;
    font-size: 9px;
    text-align: center;
}

.preview-panel__note {
    margin: 11px 1px 0;
    color: #7d8b94;
    font-size: 10px;
    text-align: center;
}

.card--entry {
    margin: 0;
    border: 1px solid #e0e6ec;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(17, 39, 56, .035);
}

.card--entry .card__head {
    align-items: flex-start;
    padding: 21px 23px 0;
    border: 0;
    background: transparent;
}

.card--entry .card__head h2 {
    margin-top: 1px;
    color: #1d303d;
    font-size: 15px;
    letter-spacing: -.1px;
}

.card__subhead {
    margin: 3px 0 0;
    color: #7b8994;
    font-size: 12px;
}

.card--entry .card__step {
    width: 29px;
    height: 29px;
    border: 1px solid #d7e9e8;
    border-radius: 9px;
    background: #eff8f7;
    color: #247d7d;
    font-size: 10px;
}

.card--entry .card__body { padding: 17px 23px 23px; }

.page--entry .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 18px; }

.page--entry .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.page--entry .field { min-width: 0; gap: 7px; }

.page--entry .field label {
    color: #52616d;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .7px;
}

.page--entry input,
.page--entry select,
.page--entry textarea {
    min-height: 43px;
    padding: 10px 12px;
    border-color: #dce3e9;
    border-radius: 8px;
    background: #fff;
    color: #1d2e3a;
    font-size: 13px;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .02);
}

.page--entry input::placeholder,
.page--entry textarea::placeholder { color: #a0abb4; }

.page--entry input:focus,
.page--entry select:focus,
.page--entry textarea:focus {
    border-color: #3b9998;
    box-shadow: 0 0 0 3px rgba(48, 145, 145, .12);
}

.page--entry textarea { min-height: 82px; }

.layout-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.layout-option { position: relative; display: block; cursor: pointer; }

.layout-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.layout-option__content {
    display: flex;
    min-height: 75px;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #dfe6eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s, background .16s, box-shadow .16s, transform .16s;
}

.layout-option:hover .layout-option__content {
    border-color: #a9cecd;
    transform: translateY(-1px);
}

.layout-option > input:checked + .layout-option__content {
    border-color: #3a9694;
    background: #f3faf9;
    box-shadow: inset 0 0 0 1px #3a9694, 0 4px 12px rgba(44, 127, 128, .08);
}

.layout-option > input:focus-visible + .layout-option__content {
    outline: 3px solid rgba(48, 145, 145, .25);
    outline-offset: 2px;
}

.layout-option__icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: none;
    border: 1px solid #e4ebef;
    border-radius: 9px;
    background: #f7f9fa;
    color: #47636d;
}

.layout-option__icon svg { display: block; width: 22px; height: 22px; }

.layout-option > input:checked + .layout-option__content .layout-option__icon {
    border-color: #cfe6e3;
    background: #e5f4f1;
    color: #267c7b;
}

.layout-option__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.layout-option__copy strong { color: #243744; font-size: 12px; line-height: 1.3; }
.layout-option__copy small { color: #7a8994; font-size: 10px; line-height: 1.35; }

.layout-option__check {
    width: 15px;
    height: 15px;
    flex: none;
    border: 1px solid #cad5dc;
    border-radius: 50%;
}

.layout-option > input:checked + .layout-option__content .layout-option__check {
    border: 4px solid #318d8b;
    background: #fff;
}

.page--entry table.items { min-width: 740px; }

.page--entry table.items th {
    padding-bottom: 9px;
    color: #75838d;
    font-size: 9px;
    letter-spacing: .7px;
}

.page--entry table.items td { padding-top: 5px; padding-bottom: 5px; }

.page--entry table.items input { min-height: 40px; }

.page--entry .items-actions { margin-top: 13px; }

.page--entry .items-actions .btn {
    border-color: #cfe0e2;
    color: #246f76;
    background: #f7fbfb;
}

.page--entry .summary { gap: 10px; }

.page--entry .summary__cell {
    min-height: 68px;
    padding: 12px 14px;
    border-color: #e6ebef;
    background: #f8fafb;
}

.page--entry .summary__cell span { color: #71808b; font-size: 9px; letter-spacing: .65px; }
.page--entry .summary__cell b { color: #263946; font-size: 17px; }

.page--entry .summary__cell--total {
    border-color: #183b47;
    background: #183b47;
}

.page--entry .summary__cell--total span { color: #b4d8d8; }
.page--entry .summary__cell--total b { color: #fff; }

.entry-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    border: 1px solid #dce5e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(17, 39, 56, .035);
}

.entry-actions__copy { display: flex; align-items: center; gap: 11px; }

.entry-actions__check {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #edf7f3;
    color: #24856e;
    font-size: 14px;
    font-weight: 800;
}

.entry-actions__copy > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.entry-actions__copy strong { color: #304550; font-size: 12px; }
.entry-actions__copy small { color: #81909a; font-size: 10px; }

.page--entry .btn-row { gap: 9px; }

.page--entry .btn--primary {
    border-color: #14777b;
    background: #14777b;
    box-shadow: 0 4px 10px rgba(20, 119, 123, .15);
}

.page--entry .btn--primary:hover { border-color: #0e656b; background: #0e656b; }
.page--entry .btn--ghost { border-color: #dce3e8; color: #536570; }

/* --------------------------------------------------------- items table */

.items-wrap { overflow-x: auto; }

table.items {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

table.items th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
    font-weight: 700;
    padding: 0 8px 8px;
    white-space: nowrap;
}

table.items td {
    padding: 6px 8px 6px 0;
    vertical-align: middle;
}

table.items td:last-child { padding-right: 0; }

table.items .col-num { text-align: right; }

table.items .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.items-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .05s;
}

.btn:hover { background: #f5f7fa; }

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn--ghost { background: transparent; border-color: var(--line); }

.btn--danger {
    color: var(--danger);
    border-color: #f0cfca;
    background: #fdf3f2;
    padding: 9px 12px;
}

.btn--danger:hover { background: #fbe6e3; }

.btn--lg { padding: 13px 24px; font-size: 15px; }

.btn--icon { padding: 9px 11px; line-height: 1; }

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* --------------------------------------------------------------- summary */

.summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.summary__cell {
    background: #f8fafc;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
}

.summary__cell span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
    margin-bottom: 3px;
}

.summary__cell b {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.summary__cell--total {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.summary__cell--total span { color: #cdeaf1; }

.notice {
    border: 1px solid #f3d9a4;
    background: #fffaf0;
    color: #8a5a00;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.notice--error {
    border-color: #f0cfca;
    background: #fdf3f2;
    color: #9b2c1e;
}

/* ========================================================== bill sheet */

.bill-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bill-toolbar__note { font-size: 13px; color: var(--muted); }

.bill {
    background: #fff;
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 38px 30px;
    position: relative;
}

.bill::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), #12a4c9 55%, var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
}

.bill__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--ink);
}

.bill__station { display: flex; gap: 14px; }

.bill__logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #12a4c9);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    flex: none;
}

.bill__station h1 {
    margin: 0 0 3px;
    font-size: 21px;
    letter-spacing: -.3px;
}

.bill__station p {
    margin: 0;
    font-size: 12.5px;
    color: #475467;
    max-width: 340px;
}

.bill__station .meta { margin-top: 6px; font-size: 12.5px; color: #475467; }

.bill__doc { text-align: right; flex: none; }

.bill__doc .kind {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 8px;
}

.bill__doc dl { margin: 0; font-size: 12.5px; }

.bill__doc dl div { display: flex; justify-content: flex-end; gap: 8px; }

.bill__doc dt { color: var(--muted); }

.bill__doc dd { margin: 0; font-weight: 600; min-width: 96px; text-align: right; }

.bill__parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
}

.party h3 {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
}

.party p { margin: 0 0 2px; font-size: 13.5px; }

.party .name { font-weight: 700; font-size: 15px; }

.bill__table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 0;
}

.bill__table thead th {
    background: #f2f5f9;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #344054;
    padding: 10px 10px;
    text-align: left;
    white-space: nowrap;
}

.bill__table tbody td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
    vertical-align: top;
}

.bill__table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bill__table tfoot td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}

.bill__table tfoot tr:last-child td {
    border-bottom: none;
    border-top: 2px solid var(--ink);
    font-size: 15px;
    font-weight: 700;
    padding-top: 12px;
}

.bill__foot {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 26px;
    margin-top: 20px;
}

.words {
    background: #f8fafc;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.words h3 {
    margin: 0 0 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
}

.words p { margin: 0; font-size: 13.5px; font-weight: 600; }

.paybox { font-size: 13px; }

.paybox dl { margin: 0 0 16px; }

.paybox dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--line);
}

.paybox dt { color: var(--muted); }

.paybox dd { margin: 0; font-weight: 600; text-align: right; }

.sign {
    margin-top: 34px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--ink);
    padding-top: 5px;
}

.bill__notes {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* ================================================ alternate bill layouts */

.thermal-receipt {
    --receipt-ink: #171717;
    position: relative;
    width: 72mm;
    margin: 0 auto;
    padding: 9mm 4mm 7mm;
    overflow: hidden;
    background: #fff;
    color: var(--receipt-ink);
    border: 1px solid #d8d8d8;
    box-shadow: var(--shadow);
    font: 10px/1.2 var(--mono);
    letter-spacing: -.15px;
    overflow-wrap: anywhere;
}

.thermal-receipt::before,
.thermal-receipt::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    width: 100%;
    height: 3mm;
    background: repeating-conic-gradient(from 45deg, #9b9694 0 25%, transparent 0 50%) 0 0 / 7mm 6mm;
}

.thermal-receipt::before { top: 0; }
.thermal-receipt::after { bottom: 0; transform: rotate(180deg); }

.thermal-receipt__brand {
    text-align: center;
    padding-bottom: 5mm;
}

.thermal-receipt__emblem {
    width: 27mm;
    height: 27mm;
    margin: 2mm auto 2mm;
    border: 1px solid #9b9b9b;
    display: grid;
    place-items: center;
    background: #f8f8f8;
}

.thermal-receipt__emblem span {
    width: 20mm;
    height: 20mm;
    border: 2mm solid #4d4d4d;
    border-radius: 50%;
    position: relative;
}

.thermal-receipt__emblem span::before,
.thermal-receipt__emblem span::after {
    content: "";
    position: absolute;
    border: 1.2mm solid #4d4d4d;
    border-radius: 50%;
}

.thermal-receipt__emblem span::before { inset: 2mm -1mm -1mm 2mm; }
.thermal-receipt__emblem span::after { inset: 6mm 2mm 2mm -1mm; }

.thermal-receipt__brand h1 {
    display: inline-block;
    margin: 0;
    padding: 1mm 2mm;
    border-bottom: 1.2mm solid #555;
    font: 700 15px/1.1 var(--font);
    text-align: center;
}

.thermal-receipt__address {
    margin: 2mm 0 0;
    font-size: 8px;
    line-height: 1.25;
}

.thermal-receipt__welcome {
    margin: 5mm 0 0;
    text-align: center;
}

.thermal-receipt__details,
.thermal-receipt__vehicle,
.thermal-receipt__items {
    margin-top: 2mm;
}

.thermal-receipt__items { margin-top: 8mm; }

.thermal-receipt__item + .thermal-receipt__item {
    border-top: 1px dashed #777;
    margin-top: 3mm;
    padding-top: 3mm;
}

.thermal-receipt__total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #222;
    margin-top: 2mm;
    padding-top: 2mm;
}

.thermal-receipt__vehicle { margin-top: 8mm; }

.thermal-receipt__details--bottom { margin-top: 8mm; }

.thermal-receipt__footer {
    margin-top: 16mm;
    text-align: center;
    line-height: 1.25;
}

.compact-slip {
    width: 96mm;
    max-width: 100%;
    margin: 0 auto;
    padding: 7mm;
    background: #fff;
    color: #111827;
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: var(--shadow);
    font-size: 11px;
    line-height: 1.4;
}

.compact-slip__head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 9px;
    border-bottom: 2px solid #111827;
}

.compact-slip__mark {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: none;
    border: 1px solid #111827;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.compact-slip__head h1 { margin: 0; font-size: 15px; }
.compact-slip__head p { margin: 1px 0 0; font-size: 9px; color: #475467; }

.compact-slip__meta,
.compact-slip__customer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed #98a2b3;
    font-size: 10px;
}

.compact-slip__customer div { display: grid; gap: 2px; }
.compact-slip__customer span { color: var(--muted); font-size: 9px; }

.compact-slip__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 9px;
}

.compact-slip__table th,
.compact-slip__table td {
    padding: 5px 2px;
    border-bottom: 1px solid #eaecf0;
    text-align: right;
}

.compact-slip__table th:first-child,
.compact-slip__table td:first-child { text-align: left; }

.compact-slip__totals { margin: 7px 0 0; }

.compact-slip__totals div {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.compact-slip__totals dt { color: #475467; }
.compact-slip__totals dd { margin: 0; font-weight: 600; }

.compact-slip__totals .compact-slip__grand {
    border-top: 1px solid #111827;
    margin-top: 3px;
    padding-top: 6px;
    font-size: 13px;
    font-weight: 700;
}

.compact-slip__grand dt { color: #111827; }

.compact-slip__words {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed #98a2b3;
    font-size: 9px;
}

.compact-slip footer {
    margin-top: 10px;
    border-top: 1px solid #111827;
    padding-top: 6px;
    text-align: center;
    font-weight: 600;
}

/* ---------------------------------------------------------------- print */

@media print {
    @page { size: A4 portrait; margin: 12mm; }
    @page thermal { size: 80mm auto; margin: 0; }
    @page compact { size: 100mm auto; margin: 0; }

    body { background: #fff; }

    .no-print { display: none !important; }

    .page { max-width: none; padding: 0; margin: 0; }

    .bill {
        max-width: none;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .bill::before { display: none; }

    .bill__table thead th { background: #f2f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    .thermal-receipt {
        page: thermal;
        width: 72mm;
        min-height: 0;
        margin: 0;
        border: 0;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .compact-slip {
        page: compact;
        width: 96mm;
        max-width: none;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .summary__cell--total,
    .bill__logo,
    .bill__doc .kind { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    a { text-decoration: none; color: inherit; }
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 760px) {
    .grid,
    .grid--3,
    .summary,
    .bill__parties,
    .bill__foot { grid-template-columns: 1fr; }

    .bill { padding: 22px 18px; }

    .bill__head { flex-direction: column; }

    .bill__doc, .bill__doc dl div { text-align: left; justify-content: flex-start; }

    .bill__doc dd { text-align: left; }

    .thermal-receipt { width: min(72mm, 100%); }
}

@media (max-width: 900px) {
    .entry-workspace { grid-template-columns: minmax(0, 1fr); }
    .preview-panel { position: relative; top: auto; }
    .preview-paper { max-width: 480px; margin: 0 auto; }

    .page--entry .grid,
    .page--entry .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .entry-intro__aside { width: 260px; }
}

@media (max-width: 760px) {
    .topbar__inner--entry { min-height: 68px; padding: 12px 18px; }
    .topbar__status { display: none; }

    .page--entry { padding: 27px 18px 44px; }

    .entry-intro { align-items: flex-start; }
    .entry-intro__aside { display: none; }

    .card--entry .card__head { padding: 18px 18px 0; }
    .card--entry .card__body { padding: 15px 18px 19px; }

    .layout-choices { grid-template-columns: 1fr; }

    .entry-actions { align-items: flex-start; flex-direction: column; padding: 16px; }
    .entry-actions .btn-row { width: 100%; }
    .entry-actions .btn-row .btn { flex: 1; justify-content: center; }
}

@media (max-width: 560px) {
    .topbar__inner--entry { padding: 11px 15px; }
    .topbar--entry .brand__name { font-size: 14px; }
    .topbar--entry .brand__sub { font-size: 10px; }

    .page--entry { padding: 24px 14px 36px; }
    .page--entry .grid,
    .page--entry .grid--3 { grid-template-columns: minmax(0, 1fr); }

    .page--entry .field--full { grid-column: auto; }
    .page--entry .page__title { font-size: 31px; }
    .page--entry .page__lead { font-size: 13px; }

    .entry-actions .btn-row { flex-direction: column-reverse; }
    .entry-actions .btn-row .btn { width: 100%; }

    .page--entry .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.seo-section {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid #dbe3e7;
    color: #243945;
}

.seo-section__intro { max-width: 790px; }

.seo-section__intro .eyebrow,
.seo-section__howto-heading .eyebrow,
.seo-faq__heading .eyebrow { margin-bottom: 9px; }

.seo-section h2 {
    margin: 0;
    color: #17313e;
    font-size: clamp(23px, 2.6vw, 29px);
    line-height: 1.2;
    letter-spacing: -.7px;
}

.seo-section__intro > p {
    max-width: 760px;
    margin: 11px 0 0;
    color: #667782;
    font-size: 14px;
    line-height: 1.8;
}

.seo-section__definition {
    max-width: 940px;
    margin-top: 19px;
    padding: 17px 20px;
    border: 1px solid #e1e7eb;
    border-left: 3px solid #438f8d;
    border-radius: 9px;
    background: #fff;
}

.seo-section__definition h3 {
    margin: 0 0 7px;
    color: #29414c;
    font-size: 14px;
}

.seo-section__definition p {
    margin: 6px 0 0;
    color: #6c7b84;
    font-size: 12px;
    line-height: 1.75;
}

.seo-subsection-heading { margin: 29px 0 13px; }
.seo-subsection-heading .eyebrow { margin-bottom: 7px; }
.seo-subsection-heading h2 { font-size: 22px; }

.seo-section__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.seo-feature {
    min-height: 136px;
    padding: 16px;
    border: 1px solid #e1e7eb;
    border-radius: 11px;
    background: #fff;
}

.seo-feature__number {
    display: inline-block;
    margin-bottom: 11px;
    color: #398584;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .9px;
}

.seo-feature h3 {
    margin: 0 0 6px;
    color: #263e49;
    font-size: 14px;
    letter-spacing: -.1px;
}

.seo-feature p {
    margin: 0;
    color: #73828b;
    font-size: 12px;
    line-height: 1.65;
}

.seo-section__howto {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
    gap: 26px;
    margin-top: 22px;
    padding: 22px 24px;
    border: 1px solid #dfe7e9;
    border-radius: 12px;
    background: #f7f9fa;
}

.seo-section__howto h2,
.seo-faq__heading h2 { font-size: 20px; }

.seo-section__howto-heading > p {
    max-width: 280px;
    margin: 9px 0 0;
    color: #71818a;
    font-size: 11px;
    line-height: 1.65;
}

.seo-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fuel-step;
}

.seo-steps li {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    column-gap: 8px;
    counter-increment: fuel-step;
}

.seo-steps li::before {
    content: counter(fuel-step, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 1px;
    color: #398584;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
}

.seo-steps strong { grid-column: 2; color: #324a55; font-size: 12px; }
.seo-steps span { grid-column: 2; color: #71818a; font-size: 11px; line-height: 1.5; }

.seo-audience {
    margin-top: 30px;
}

.seo-audience__heading {
    max-width: 780px;
    margin-bottom: 17px;
}

.seo-audience__heading .eyebrow { margin-bottom: 8px; }
.seo-audience__heading h2 { font-size: 22px; }

.seo-audience__heading p {
    margin: 8px 0 0;
    color: #71818a;
    font-size: 12px;
    line-height: 1.7;
}

.seo-audience__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.seo-audience__grid article {
    min-height: 90px;
    padding: 14px 16px;
    border: 1px solid #e1e7eb;
    border-radius: 9px;
    background: #fff;
}

.seo-audience__grid h3 {
    margin: 0 0 5px;
    color: #324a55;
    font-size: 12px;
}

.seo-audience__grid p {
    margin: 0;
    color: #71818a;
    font-size: 11px;
    line-height: 1.55;
}

.seo-benefits {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
    gap: 24px;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid #dfe7e9;
    border-radius: 12px;
    background: #f7f9fa;
}

.seo-benefits__heading .eyebrow { margin-bottom: 8px; }
.seo-benefits__heading h2 { font-size: 20px; }

.seo-benefits__copy p {
    margin: 0 0 9px;
    color: #667782;
    font-size: 12px;
    line-height: 1.75;
}

.seo-benefits__copy p:last-child { margin-bottom: 0; }

.seo-faq {
    display: grid;
    grid-template-columns: minmax(190px, .68fr) minmax(0, 1.32fr);
    align-items: start;
    gap: 32px;
    margin-top: 34px;
    padding: 30px;
    border: 1px solid #dfe7ea;
    border-radius: 14px;
    background: #f7f9fa;
    box-shadow: 0 10px 28px rgba(26, 47, 58, .045);
}

.seo-faq__heading { max-width: 260px; }
.seo-faq__heading .eyebrow { margin-bottom: 9px; }
.seo-faq__heading h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }

.seo-faq__heading p {
    margin: 10px 0 0;
    color: #71818a;
    font-size: 14px;
    line-height: 1.75;
}

.seo-faq__list { display: grid; gap: 9px; }

.seo-faq details {
    overflow: hidden;
    border: 1px solid #e0e7eb;
    border-radius: 9px;
    background: #fff;
}

.seo-faq details[open] {
    border-color: #a9cbc9;
    box-shadow: 0 3px 12px rgba(38, 99, 99, .06);
}

.seo-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    color: #304954;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    cursor: pointer;
    list-style: none;
}

.seo-faq summary::-webkit-details-marker { display: none; }

.seo-faq summary::after {
    content: "+";
    display: grid;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: #eef4f4;
    color: #397f7e;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
}

.seo-faq summary:hover { background: #f8fafb; }
.seo-faq summary:focus-visible { outline: 2px solid #398584; outline-offset: -3px; }
.seo-faq details[open] summary { border-bottom: 1px solid #e7eeee; }
.seo-faq details[open] summary::after { content: "−"; background: #dceceb; }

.seo-faq details p {
    max-width: 760px;
    margin: 12px 18px 17px;
    color: #687982;
    font-size: 14px;
    line-height: 1.8;
}

.seo-faq details .seo-formula {
    display: inline-block;
    margin: 2px 18px 5px;
    padding: 9px 12px;
    border: 1px solid #e0e8e9;
    border-radius: 6px;
    background: #f7f9fa;
    color: #36545c;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .seo-section { margin-top: 34px; padding-top: 26px; }
    .seo-section__features { grid-template-columns: minmax(0, 1fr); }
    .seo-feature { min-height: 0; }
    .seo-section__howto,
    .seo-benefits,
    .seo-faq { grid-template-columns: minmax(0, 1fr); }
    .seo-section__howto { gap: 17px; padding: 19px; }
    .seo-benefits { gap: 13px; padding: 19px; }
    .seo-steps { grid-template-columns: minmax(0, 1fr); }
    .seo-faq { gap: 20px; padding: 20px; }
    .seo-faq__heading { max-width: none; }
    .seo-audience__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .seo-audience__grid { grid-template-columns: minmax(0, 1fr); }
}

.page--entry .eyebrow { font-size: 11px; }
.page--entry .page__lead { font-size: 16px; }
.entry-intro__aside-label { font-size: 10px; }
.entry-intro__aside strong { font-size: 16px; }
.entry-intro__aside > span:last-child { font-size: 13px; }

.card--entry .card__head h2 { font-size: 18px; }
.card--entry .card__subhead { font-size: 14px; }
.card--entry .card__step { font-size: 11px; }

.page--entry .field label { font-size: 12px; letter-spacing: .45px; }
.page--entry .field .hint { font-size: 13px; line-height: 1.55; }
.page--entry input,
.page--entry select,
.page--entry textarea { font-size: 15px; }

.layout-option__copy strong { font-size: 14px; }
.layout-option__copy small { font-size: 12px; }
.page--entry table.items th { font-size: 11px; }
.page--entry .summary__cell span { font-size: 11px; }
.page--entry .summary__cell b { font-size: 19px; }
.entry-actions__copy strong { font-size: 14px; }
.entry-actions__copy small { font-size: 12px; }

.seo-section__intro > p { font-size: 16px; }
.seo-section__definition h3 { font-size: 16px; }
.seo-section__definition p { font-size: 14px; }
.seo-subsection-heading h2,
.seo-section__howto h2,
.seo-audience__heading h2,
.seo-benefits__heading h2 { font-size: 25px; }
.seo-feature__number { font-size: 12px; }
.seo-feature h3,
.seo-audience__grid h3 { font-size: 16px; }
.seo-feature p,
.seo-section__howto-heading > p,
.seo-steps span,
.seo-audience__heading p,
.seo-audience__grid p,
.seo-benefits__copy p { font-size: 14px; }
.seo-steps li::before { font-size: 11px; }
.seo-steps strong { font-size: 15px; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 11px 15px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: #fff;
    color: #17313e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.content-topbar__inner { max-width: 1200px; }
.content-brand { color: inherit; text-decoration: none; }

.site-header-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.site-header-links a {
    color: #c7d7dc;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    text-underline-offset: 4px;
}

.site-header-links a:hover { color: #fff; text-decoration: underline; }
.site-header-links a:focus-visible { outline: 2px solid #8fdad7; outline-offset: 4px; }
.topbar--entry .topbar__status { margin-left: 20px; }
.content-topbar__inner .site-header-links { margin-left: auto; margin-right: 14px; }

.content-topbar__action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid rgba(143, 218, 215, .35);
    border-radius: 8px;
    background: #173b47;
    color: #eaf8f7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.content-topbar__action:hover { background: #20515b; }

.page--content {
    max-width: 1200px;
    padding: 25px clamp(18px, 3vw, 42px) 64px;
}

.content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #7b8992;
    font-size: 13px;
}

.content-breadcrumb a { color: #397b7e; text-decoration: none; }
.content-breadcrumb a:hover { text-decoration: underline; }

.content-page__intro {
    max-width: 900px;
    margin-bottom: 28px;
    padding-bottom: 25px;
    border-bottom: 1px solid #dbe3e7;
}

.page--content .page__title {
    margin: 0;
    color: #17313e;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -1.3px;
}

.page--content .page__lead {
    max-width: 780px;
    margin: 12px 0 0;
    color: #657681;
    font-size: 17px;
    line-height: 1.75;
}

.content-page__body {
    display: grid;
    max-width: 920px;
    gap: 16px;
    margin: 0 auto;
}

.info-panel {
    padding: clamp(21px, 3vw, 30px);
    border: 1px solid #e0e7eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(26, 47, 58, .035);
}

.info-panel h2 {
    margin: 0 0 12px;
    color: #233e4a;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.info-panel h3 {
    margin: 0 0 7px;
    color: #2d4a55;
    font-size: 17px;
}

.info-panel p,
.info-panel li {
    color: #586b76;
    font-size: 16px;
    line-height: 1.8;
}

.info-panel p { margin: 0 0 12px; }
.info-panel p:last-child { margin-bottom: 0; }
.info-panel ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; }
.info-panel--notice { border-left: 4px solid #438f8d; background: #fbfdfd; }
.info-updated { margin-bottom: 17px !important; color: #788891 !important; font-size: 13px !important; }
.content-text-link { color: #26767a; font-weight: 700; text-underline-offset: 3px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 17px;
}

.info-card {
    padding: 17px;
    border: 1px solid #e2e9ec;
    border-radius: 10px;
    background: #f8fafb;
}

.info-card p { margin: 0; font-size: 15px; }

.info-callout {
    margin: 15px 0;
    padding: 17px 19px;
    border: 1px solid #d6e8e6;
    border-radius: 10px;
    background: #f2f9f8;
}

.info-callout h3 { margin-bottom: 6px; }
.info-callout code { font-size: .92em; }
.contact-email { font-size: 20px !important; font-weight: 700; }
.contact-email a { color: #237579; text-underline-offset: 4px; }

.info-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 28px;
    border: 1px solid #1d4652;
    border-radius: 13px;
    background: #142e39;
    color: #eaf3f4;
}

.info-cta .eyebrow { margin-bottom: 8px; color: #9bc9c8; }
.info-cta h2 { margin: 0; color: #fff; font-size: 25px; }
.info-cta p { margin: 6px 0 0; color: #c0cfd2; font-size: 15px; line-height: 1.6; }
.info-cta .content-topbar__action { flex: none; background: #1f7478; }

.site-footer {
    border-top: 1px solid #24434d;
    background: #101f29;
    color: #dce7e9;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1.5fr);
    gap: 28px 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px clamp(18px, 3vw, 42px) 18px;
}

.site-footer__brand {
    color: #fff;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.2px;
    text-decoration: none;
}

.site-footer__brand-block p {
    max-width: 330px;
    margin: 9px 0 0;
    color: #aebfc5;
    font-size: 14px;
    line-height: 1.7;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.site-footer__links > div { display: grid; align-content: start; gap: 8px; }
.site-footer__links h2 { margin: 0 0 3px; color: #fff; font-size: 14px; }
.site-footer__links a { color: #b9c9ce; font-size: 14px; text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.site-footer__bottom {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(220, 231, 233, .14);
    color: #9fb1b7;
    font-size: 12px;
}

@media (max-width: 760px) {
    .content-page__intro { margin-bottom: 22px; }
    .page--content .page__lead { font-size: 16px; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 560px) {
    .topbar__inner { flex-wrap: wrap; row-gap: 8px; }
    .topbar__inner--entry { flex-wrap: wrap; row-gap: 8px; }
    .content-topbar__inner { min-height: 68px; }
    .content-brand .brand__sub { display: none; }
    .content-topbar__action { min-height: 39px; padding: 0 12px; font-size: 13px; }
    .site-header-links { gap: 12px; }
    .site-header-links a { font-size: 12px; }
    .page--content { padding-top: 20px; }
    .content-breadcrumb { margin-bottom: 19px; }
    .page--content .page__title { font-size: 34px; }
    .page--content .page__lead { font-size: 15px; }
    .info-grid,
    .site-footer__links { grid-template-columns: 1fr; }
    .info-cta { align-items: flex-start; flex-direction: column; padding: 21px; }
}
