.afdsp {
    --afdsp-navy: #071b34;
    --afdsp-blue: #123f68;
    --afdsp-cyan: #18bce3;
    --afdsp-cyan-soft: #dff7fc;
    --afdsp-ink: #0b1828;
    --afdsp-muted: #526477;
    --afdsp-line: #cfdae4;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--afdsp-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1rem, .98rem + .12vw, 1.075rem);
    line-height: 1.5;
}

.afdsp *, .afdsp *::before, .afdsp *::after { box-sizing: border-box; }
.afdsp button, .afdsp summary { font: inherit; }
.afdsp a { color: #075d86; text-underline-offset: .15em; }
.afdsp[hidden], .afdsp [hidden] { display: none !important; }

.afdsp--full {
    overflow: hidden;
    border: 1px solid #b9cad9;
    border-radius: 1rem;
    background: #f5f9fc;
    box-shadow: 0 .4rem 1.6rem rgba(7, 27, 52, .11);
}

.afdsp-header {
    padding: clamp(1.1rem, 3vw, 2.25rem);
    color: #fff;
    background: linear-gradient(135deg, var(--afdsp-navy), var(--afdsp-blue));
}

.afdsp-eyebrow { margin: 0 0 .35rem; color: #9fe9f8; font-size: .78em; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.afdsp-title { margin: 0; color: inherit; font-size: clamp(1.65rem, 1.2rem + 2.2vw, 3rem); line-height: 1.08; }
.afdsp-intro { margin: .65rem 0 0; color: #e8f4fb; }
.afdsp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .5rem; background: var(--afdsp-navy); }
.afdsp-tab { min-width: 0; min-height: 2.75rem; border: 0; border-radius: .55rem; padding: .6rem .35rem; color: #dcebf5; background: transparent; cursor: pointer; font-weight: 700; }
.afdsp-tab:hover, .afdsp-tab:focus-visible { background: rgba(255,255,255,.12); outline: 2px solid transparent; }
.afdsp-tab.is-active { color: var(--afdsp-navy); background: var(--afdsp-cyan); }
.afdsp-panel { padding: clamp(.8rem, 2.5vw, 1.5rem); }
.afdsp-board { overflow: hidden; border-radius: .8rem; background: #fff; box-shadow: 0 .15rem .8rem rgba(7, 27, 52, .07); }
.afdsp-stale { margin: 0; padding: .65rem .85rem; color: #5c4600; background: #fff4c7; font-size: .88em; font-weight: 650; }
.afdsp-price-grid { display: grid; }
.afdsp-price { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 1rem; border-bottom: 1px solid var(--afdsp-line); }
.afdsp-price span { color: var(--afdsp-muted); font-size: .82em; font-weight: 650; }
.afdsp-price strong { margin-top: .25rem; color: var(--afdsp-navy); font-size: clamp(1.75rem, 1.4rem + 2vw, 2.75rem); line-height: 1.05; white-space: nowrap; }
.afdsp-price small { margin-top: .25rem; color: var(--afdsp-muted); font-weight: 700; }
.afdsp-price--scenario { background: linear-gradient(135deg, var(--afdsp-cyan-soft), #fff); }
.afdsp-price--scenario strong, .afdsp-price--saving strong { color: #007aa5; }
.afdsp-facts { display: grid; gap: .75rem; padding: 1rem; background: #edf4f8; }
.afdsp-facts > div { display: flex; flex-direction: column; min-width: 0; border-left: .25rem solid var(--afdsp-cyan); padding: .25rem 0 .25rem .75rem; }
.afdsp-facts span, .afdsp-compact-station span { color: var(--afdsp-muted); font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.afdsp-facts strong { font-size: 1.08em; }
.afdsp-station small, .afdsp-station time { color: var(--afdsp-muted); font-size: .86em; }
.afdsp-station b { margin-top: .2rem; color: var(--afdsp-blue); }
.afdsp-station time { margin-top: .1rem; }

.afdsp-receipt { position: relative; width: 100%; margin-top: 1rem; padding: clamp(1rem, 2.5vw, 1.5rem); background: #fff; box-shadow: 0 .2rem .9rem rgba(7, 27, 52, .08); }
.afdsp-receipt h3 { margin: 0 0 .25rem; color: var(--afdsp-navy); font-size: 1.15em; text-transform: uppercase; letter-spacing: .08em; }
.afdsp-demand { display: grid; gap: .35rem; padding: .9rem 0; border-top: 1px dashed #8495a5; }
.afdsp-demand h4, .afdsp-demand p { margin: 0; }
.afdsp-demand h4 { font-size: 1em; }
.afdsp-demand p { display: flex; flex-direction: column; }
.afdsp-demand p strong { font-variant-numeric: tabular-nums; }
.afdsp-demand p span, .afdsp-demand a { color: var(--afdsp-muted); font-size: .86em; }
.afdsp-receipt-note { border-top: 1px dashed #8495a5; padding-top: .9rem; }
.afdsp-receipt-note p { margin: .25rem 0 0; color: var(--afdsp-muted); font-size: .9em; }
.afdsp-method { margin-top: 1rem; border: 1px solid var(--afdsp-line); border-radius: .7rem; padding: 1rem; background: #fff; }
.afdsp-method h3 { margin: 0 0 .4rem; color: var(--afdsp-navy); font-size: 1.1em; }
.afdsp-method p { margin: .25rem 0; }
.afdsp-source { color: var(--afdsp-muted); font-size: .78em; }
.afdsp-unavailable, .afdsp--error { margin: 0; border: 1px solid #e1b7b7; border-radius: .6rem; padding: 1rem; color: #6e1f1f; background: #fff4f4; }

.afdsp--compact { overflow: hidden; border: 1px solid #b9cad9; border-radius: .85rem; background: #fff; box-shadow: 0 .2rem 1rem rgba(7, 27, 52, .09); }
.afdsp-compact-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; padding: .7rem .9rem; color: #fff; background: var(--afdsp-navy); }
.afdsp-compact-heading p { margin: 0; font-weight: 750; }
.afdsp-compact-heading .afdsp-stale { border-radius: 99px; padding: .2rem .55rem; font-size: .7em; }
.afdsp-compact-prices { display: grid; }
.afdsp-compact-prices > div { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: .75rem .9rem; border-bottom: 1px solid var(--afdsp-line); }
.afdsp-compact-prices span { color: var(--afdsp-muted); font-size: .78em; font-weight: 650; }
.afdsp-compact-prices strong { color: var(--afdsp-navy); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.15; white-space: nowrap; }
.afdsp-compact-prices .afdsp-compact-scenario { background: var(--afdsp-cyan-soft); }
.afdsp-compact-prices .afdsp-compact-scenario strong, .afdsp-compact-prices .afdsp-compact-saving strong { color: #007aa5; }
.afdsp-compact-saving small { margin-top: .1rem; color: var(--afdsp-muted); }
.afdsp-compact-station { display: flex; flex-direction: column; margin: 0; padding: .7rem .9rem; background: #edf4f8; }
.afdsp-compact-details { border-top: 1px solid var(--afdsp-line); padding: .65rem .9rem; }
.afdsp-compact-details summary { color: #075d86; cursor: pointer; font-weight: 700; }
.afdsp-compact-details p { margin: .55rem 0 0; font-size: .86em; }
.afdsp--compact > .afdsp-source { margin: 0; padding: .45rem .9rem; }

@media (min-width: 44rem) {
    .afdsp-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .afdsp-price { border-right: 1px solid var(--afdsp-line); border-bottom: 0; }
    .afdsp-price:last-child { border-right: 0; }
    .afdsp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .afdsp-demand { grid-template-columns: minmax(0, 1.6fr) minmax(9rem, 1fr) auto; align-items: start; }
    .afdsp-demand a { text-align: right; }
    .afdsp--compact .afdsp-compact-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .afdsp--compact .afdsp-compact-prices > div { border-right: 1px solid var(--afdsp-line); border-bottom: 0; }
    .afdsp--compact .afdsp-compact-prices > div:last-child { border-right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .afdsp-tab { transition: background-color .16s ease, color .16s ease; }
}

/* Gutenberg component builder. Native block-support classes and inline styles stay authoritative. */
.afdsp--builder {
    container-type: inline-size;
    overflow: visible;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.afdsp--builder > .afdsp-component + .afdsp-component { margin-top: var(--wp--style--block-gap, 1rem); }
.afdsp--builder .afdsp-component { box-sizing: border-box; max-width: 100%; }
.afdsp--builder .afdsp-builder-header { padding: clamp(.25rem, 1.5vw, 1rem) 0; }
.afdsp--builder .afdsp-builder-header .afdsp-title { color: inherit; font-family: inherit; }
.afdsp--builder .afdsp-builder-header .afdsp-intro { color: inherit; opacity: .72; }
.afdsp--builder .afdsp-builder-header .afdsp-eyebrow { color: inherit; opacity: .75; }
.afdsp--builder .afdsp-builder-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 24rem); border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: .65rem; padding: .25rem; background: color-mix(in srgb, currentColor 5%, transparent); }
.afdsp--builder .afdsp-builder-tabs .afdsp-tab { color: inherit; }
.afdsp--builder .afdsp-builder-tabs .afdsp-tab.is-active { color: #fff; background: var(--afdsp-cyan, #008fc5); }

.afdsp--builder .afdsp-layout--grid { display: grid; grid-template-columns: repeat(var(--afdsp-columns, 3), minmax(0, 1fr)); gap: var(--wp--style--block-gap, .75rem); }
.afdsp--builder .afdsp-layout--list { display: flex; flex-direction: column; gap: var(--wp--style--block-gap, .75rem); }
.afdsp--builder .afdsp-layout--inline { display: flex; flex-flow: row wrap; gap: var(--wp--style--block-gap, .75rem); }
.afdsp--builder .afdsp-layout--inline > * { flex: 1 1 12rem; }
.afdsp--builder .afdsp-price-board { overflow: hidden; border-radius: .75rem; padding: .55rem; }
.afdsp--builder .afdsp-metric { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(.85rem, 2vw, 1.25rem); }
.afdsp--builder .afdsp-metric-label { font-size: .7em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .75; }
.afdsp--builder .afdsp-metric strong { margin-top: .3rem; font-size: clamp(1.65em, 1.15em + 2.4cqi, 2.75em); line-height: 1; white-space: nowrap; }
.afdsp--builder .afdsp-metric small { margin-top: .35rem; opacity: .7; }
.afdsp--builder .afdsp-builder-facts { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: .65rem; padding: 1rem; }
.afdsp--builder .afdsp-tank-saving, .afdsp--builder .afdsp-builder-station { min-width: 0; padding: .5rem; }
.afdsp--builder .afdsp-tank-saving { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.afdsp--builder .afdsp-tank-saving span, .afdsp--builder .afdsp-builder-station > span { font-size: .78em; opacity: .72; }
.afdsp--builder .afdsp-tank-saving strong, .afdsp--builder .afdsp-builder-station b { color: var(--afdsp-accent, #0085b5); font-size: 1.2em; }
.afdsp--builder .afdsp-station-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.afdsp--builder .afdsp-station-row > div { display: flex; flex-direction: column; min-width: 0; }
.afdsp--builder .afdsp-station-row > div:last-child { align-items: end; flex: 0 0 auto; }
.afdsp--builder .afdsp-station-row small { opacity: .72; }

.afdsp--builder .afdsp-builder-demands { margin-top: clamp(2rem, 5vw, 3rem); }
.afdsp--builder .afdsp-demands-heading { margin-bottom: 1rem; }
.afdsp--builder .afdsp-demands-heading::before { display: block; width: 8.5rem; height: .25rem; margin-bottom: .8rem; background: linear-gradient(90deg, var(--afdsp-blue), var(--afdsp-cyan)); content: ""; }
.afdsp--builder .afdsp-demands-heading h3 { margin: 0; color: inherit; font-family: inherit; font-size: 1.55em; }
.afdsp--builder .afdsp-demands-heading p { margin: .25rem 0 0; opacity: .72; }
.afdsp--builder .afdsp-demand-list { margin: 0; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); padding: 0; background: color-mix(in srgb, currentColor 2%, transparent); list-style: none; counter-reset: afdsp-demand; }
.afdsp--builder .afdsp-demand-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(11rem, .42fr); gap: 1rem; padding: 1.15rem; border-bottom: 1px dashed color-mix(in srgb, currentColor 20%, transparent); counter-increment: afdsp-demand; }
.afdsp--builder .afdsp-demand-list li::before { color: color-mix(in srgb, currentColor 55%, transparent); font-weight: 800; content: counter(afdsp-demand) "."; }
.afdsp--builder .afdsp-demand-copy h4, .afdsp--builder .afdsp-demand-copy p { margin: 0; }
.afdsp--builder .afdsp-demand-copy h4 { color: inherit; font-family: inherit; font-size: 1em; }
.afdsp--builder .afdsp-demand-copy p { margin-top: .25rem; opacity: .7; }
.afdsp--builder .afdsp-demand-copy a { display: inline-block; margin-top: .45rem; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: .2rem; padding: .1rem .45rem; color: inherit; font-size: .75em; text-decoration: none; }
.afdsp--builder .afdsp-demand-calc { display: flex; flex-direction: column; border-left: 1px dashed color-mix(in srgb, currentColor 20%, transparent); padding-left: 1rem; }
.afdsp--builder .afdsp-demand-calc span { font-size: .7em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.afdsp--builder .afdsp-demand-calc strong { margin-top: .25rem; font-variant-numeric: tabular-nums; }
.afdsp--builder .afdsp-demand-calc small { opacity: .7; }
.afdsp--builder .afdsp-demand-note { padding: 1.15rem; }
.afdsp--builder .afdsp-demand-note p { margin: .25rem 0 0; opacity: .72; }
.afdsp--builder .afdsp-builder-method { border-top: 1px dashed color-mix(in srgb, currentColor 20%, transparent); padding-top: 1rem; }
.afdsp--builder .afdsp-builder-method h3 { margin: 0; color: inherit; font-family: inherit; font-size: 1em; }
.afdsp--builder .afdsp-builder-method p { margin: .35rem 0 0; }

/* Editorial style follows the second visual reference. */
.afdsp--builder.is-style-editorial { --afdsp-accent: #0088bd; }
.afdsp--builder.is-style-editorial:not(.has-text-color) { color: #08233b; }
.afdsp--builder.is-style-editorial .afdsp-price-board:not(.has-background) { background: #062a46; box-shadow: 0 .45rem 1rem rgba(4, 35, 58, .18); }
.afdsp--builder.is-style-editorial .afdsp-price-board:not(.has-text-color) { color: #fff; }
.afdsp--builder.is-style-editorial .afdsp-metric--scenario:not(.has-background) { background: rgba(17, 174, 224, .12); }
.afdsp--builder.is-style-editorial .afdsp-metric--scenario:not(.has-text-color) strong,
.afdsp--builder.is-style-editorial .afdsp-metric--saving:not(.has-text-color) strong { color: #34c6f4; }
.afdsp--builder.is-style-editorial .afdsp-builder-facts:not(.has-background) { background: #e4f6fd; }
.afdsp--builder.is-style-editorial .afdsp-builder-demands:not(.has-background) { background: #fff; }

/* Card keeps the original encapsulated visual language. */
.afdsp--builder:not(.is-style-editorial):not(.is-style-theme), .afdsp--builder.is-style-card { overflow: hidden; border: 1px solid #b9cad9; border-radius: 1rem; padding: clamp(.8rem, 2.5vw, 1.5rem); box-shadow: 0 .4rem 1.6rem rgba(7, 27, 52, .11); }
.afdsp--builder:not(.is-style-editorial):not(.is-style-theme):not(.has-background), .afdsp--builder.is-style-card:not(.has-background) { background: #f5f9fc; }
.afdsp--builder:not(.is-style-editorial):not(.is-style-theme) .afdsp-builder-header:not(.has-background), .afdsp--builder.is-style-card .afdsp-builder-header:not(.has-background) { border-radius: .75rem; padding: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--afdsp-navy), var(--afdsp-blue)); }
.afdsp--builder:not(.is-style-editorial):not(.is-style-theme) .afdsp-price-board:not(.has-background), .afdsp--builder.is-style-card .afdsp-price-board:not(.has-background) { background: #fff; }

/* Theme style only supplies structure; colors and type inherit from theme/block supports. */
.afdsp--builder.is-style-theme { --afdsp-accent: currentColor; }
.afdsp--builder.is-style-theme a { color: inherit; }
.afdsp--builder.is-style-theme .afdsp-builder-tabs .afdsp-tab.is-active { color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); }
.afdsp--builder.is-style-theme .afdsp-price-board:not(.has-background),
.afdsp--builder.is-style-theme .afdsp-builder-facts:not(.has-background),
.afdsp--builder.is-style-theme .afdsp-builder-demands:not(.has-background) { background: transparent; }

@container (max-width: 42rem) {
    .afdsp--builder .afdsp-layout--grid { grid-template-columns: 1fr; }
    .afdsp--builder .afdsp-demand-list li { grid-template-columns: 1.6rem minmax(0, 1fr); }
    .afdsp--builder .afdsp-demand-calc { grid-column: 2; border-top: 1px dashed color-mix(in srgb, currentColor 20%, transparent); border-left: 0; padding-top: .75rem; padding-left: 0; }
    .afdsp--builder .afdsp-station-row { align-items: start; flex-direction: column; }
    .afdsp--builder .afdsp-station-row > div:last-child { align-items: start; }
}
