/* Desktop layout: the owner-approved desktop bundle (FuelWatchNI-Final-Design-Handover-
 * 2026-10-01/desktop, 1 Oct 2026 prototype), ported as-is in layout (F, 12 Oct 2026):
 * site header, search on the left and the pump with the Northern Ireland average on the
 * right (never swapped), stations on the left and the comparison column on the right,
 * footer links. Sizes, crop offsets and colours are the bundle's own (styles.css, including
 * its "Owner revision 02" and "Crop revision" rules); copy and components are the product's.
 *
 * Additive only. EVERY rule is inside the desktop media query and under
 * html[data-desktop=desktop-layout], so below 761px the approved mobile page is unchanged
 * (a test checks this). The same query is DESKTOP_QUERY in app.js. */

@media (min-width: 761px) {
  html[data-desktop=desktop-layout] .app.phone { max-width: none; --desk-line: #d8d5cd; --desk-orange: #cf654a; }
  html[data-desktop=desktop-layout] .app.phone[data-theme=dark] { --desk-line: #49616d; }

  /* ---- Search page: header ------------------------------------------------------------ */
  html[data-desktop=desktop-layout] .search-view.search-desk { max-width: none; padding: 0; }
  html[data-desktop=desktop-layout] .search-desk .search-brand { max-width: 1344px; height: auto; margin: 0 auto; padding: 8px 32px; border-bottom: 1px solid var(--desk-line); }
  html[data-desktop=desktop-layout] .search-desk .search-brand img { width: 320px; max-width: 100%; max-height: none; }
  html[data-desktop=desktop-layout] .search-desk .search-appearance { top: 34px; right: max(32px, calc((100% - 1344px) / 2 + 32px)); }

  /* ---- Search page: hero, search on the left, pump on the right -------------------------- */
  html[data-desktop=desktop-layout] .search-desk .search-main { max-width: 1280px; margin: 0 auto; padding: 42px 32px 0; }
  html[data-desktop=desktop-layout] .search-desk-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding-bottom: 36px; }
  html[data-desktop=desktop-layout] .search-desk-copy { max-width: 565px; min-width: 0; }
  html[data-desktop=desktop-layout] .search-desk h1 { font-size: 60px; line-height: 1.08; letter-spacing: -2.8px; font-weight: 800; text-align: left; margin: 0 0 28px; }
  html[data-desktop=desktop-layout] .search-desk .search-desk-box { gap: 14px; padding: 23px; background: var(--surface); border: 1px solid var(--desk-line); border-radius: 15px; box-shadow: 0 10px 24px #102b3a0a; }
  html[data-desktop=desktop-layout] .search-desk .search-input-wrap > svg { left: 14px; width: 19px; height: 19px; }
  html[data-desktop=desktop-layout] .search-desk .search-input-wrap input { height: 48px; padding-left: 44px; border-radius: 8px; border-color: #9dacae; background: var(--bg); }
  html[data-desktop=desktop-layout] .search-desk #search-station::placeholder { font-size: 16px; }
  html[data-desktop=desktop-layout] .search-desk-actions { display: flex; align-items: center; gap: 12px; margin-top: 3px; }
  html[data-desktop=desktop-layout] .search-desk .search-desk-actions .search-submit { flex: 1; width: auto; min-height: 48px; border-radius: 8px; padding: 11px 44px 11px 20px; font-size: 15px; font-weight: 700; }
  html[data-desktop=desktop-layout] .search-desk .search-desk-actions .search-submit svg { right: 16px; width: 18px; height: 18px; }
  html[data-desktop=desktop-layout] .search-desk .search-desk-actions [data-action=location] { flex: none; width: auto; min-height: 44px; padding: 0 8px; gap: 6px; border-radius: 8px; background: none; color: var(--ink); font-size: 14px; font-weight: 700; }
  html[data-desktop=desktop-layout] .search-desk .search-desk-actions [data-action=location] svg { width: 17px; height: 17px; }
  html[data-desktop=desktop-layout] .search-desk .search-privacy { justify-content: flex-start; text-align: left; margin: 0; font-size: 12px; }
  html[data-desktop=desktop-layout] .search-desk .search-notice { margin-bottom: 18px; }

  /* ---- Pump: the Northern Ireland average (bundle "pump-scene", crop revision) ----------- */
  html[data-desktop=desktop-layout] .fwni-pump { --r-ink: var(--ink); --r-bg: var(--bg); --r-muted: var(--muted); min-width: 0; text-align: center; color: var(--ink); font-family: Manrope, system-ui, sans-serif; font-weight: 600; }
  html[data-desktop=desktop-layout] .fwni-pump-eyebrow { margin: 0 0 15px; font-size: 10px; line-height: 1.6; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  html[data-desktop=desktop-layout] .fwni-pump .results-fuels.results-fuels-swipe { display: block; width: 300px; max-width: 100%; margin: 0 auto; }
  html[data-desktop=desktop-layout] .fwni-pump button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
  html[data-desktop=desktop-layout] .fwni-pump .results-pill[aria-pressed=true] { color: var(--r-bg); font-weight: 700; }
  html[data-desktop=desktop-layout] .fwni-pump button:focus-visible { outline: 3px solid var(--desk-orange); outline-offset: 3px; }
  html[data-desktop=desktop-layout] .fwni-pump-wrap { position: relative; width: 420px; height: 350px; max-width: 100%; margin: 20px auto 0; overflow: hidden; border-radius: 24px; isolation: isolate; }
  html[data-desktop=desktop-layout] .fwni-pump-img { position: absolute; z-index: 1; width: 750px; max-width: none; height: auto; left: -90px; top: -24px; }
  html[data-desktop=desktop-layout] .fwni-pump-display { position: absolute; z-index: 2; left: 60px; top: 92px; width: 305px; height: 224px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #102b3a; }
  html[data-desktop=desktop-layout] .fwni-pump-label { margin-bottom: 20px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  html[data-desktop=desktop-layout] .fwni-pump-number { display: flex; align-items: center; gap: 5px; min-height: 80px; }
  html[data-desktop=desktop-layout] .fwni-pump-digit { position: relative; width: 58px; height: 80px; border: 1px solid #d0cbc2; border-radius: 5px; background: #fffdf9; box-shadow: 0 2px 3px #102b3a35; font-size: 59px; font-weight: 800; line-height: 80px; perspective: 180px; }
  html[data-desktop=desktop-layout] .fwni-pump-digit::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #102b3a28; }
  html[data-desktop=desktop-layout] .fwni-pump-flap { position: absolute; inset: 0 0 50%; overflow: hidden; background: #fffdf9; transform-origin: bottom; backface-visibility: hidden; border-radius: 5px 5px 0 0; }
  html[data-desktop=desktop-layout] .fwni-pump-flip .fwni-pump-flap { animation: fwni-pump-turn .65s cubic-bezier(.3, .7, .2, 1) both; }
  html[data-desktop=desktop-layout] .fwni-pump-number > :nth-child(2) .fwni-pump-flap { animation-delay: 60ms; }
  html[data-desktop=desktop-layout] .fwni-pump-number > :nth-child(3) .fwni-pump-flap { animation-delay: 120ms; }
  html[data-desktop=desktop-layout] .fwni-pump-number > :nth-child(4) .fwni-pump-flap { animation-delay: 180ms; }
  html[data-desktop=desktop-layout] .fwni-pump-number > :nth-child(5) .fwni-pump-flap { animation-delay: 240ms; }
  html[data-desktop=desktop-layout] .fwni-pump-point { margin: 0 -2px; font-size: 40px; font-weight: 800; line-height: 80px; }
  html[data-desktop=desktop-layout] .fwni-pump-none { font-size: 59px; font-weight: 800; line-height: 80px; }
  html[data-desktop=desktop-layout] .fwni-pump-unit { margin-top: 18px; font-size: 12px; letter-spacing: .04em; }
  html[data-desktop=desktop-layout] .fwni-pump-caption { max-width: 350px; min-height: 20px; margin: 14px auto 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

  /* ---- Results page: header ------------------------------------------------------------- */
  html[data-desktop=desktop-layout] .results-view.results-desk { min-height: 100vh; min-height: 100dvh; }
  html[data-desktop=desktop-layout] .results-desk .results-desk-header { display: flex; align-items: center; gap: 32px; max-width: 1344px; min-height: 0; margin: 0 auto; padding: 8px 32px; text-align: left; border-bottom: 1px solid var(--desk-line); }
  html[data-desktop=desktop-layout] .results-desk .results-desk-logo { display: block; flex: none; width: 320px; height: auto; }
  html[data-desktop=desktop-layout] .results-desk .results-desk-brandline { margin-left: auto; text-align: right; }
  html[data-desktop=desktop-layout] .results-desk .results-headline { font-size: 20px; line-height: 1.3; }
  html[data-desktop=desktop-layout] .results-desk .results-tagline { margin: 2px 0 0 !important; font-size: 13px; }
  html[data-desktop=desktop-layout] .results-desk .results-appearance-button { position: static; flex: none; }
  html[data-desktop=desktop-layout] .results-desk .results-appearance-panel { top: 84px; right: 24px; }

  /* ---- Results page: title, two columns ------------------------------------------------- */
  html[data-desktop=desktop-layout] .results-desk main { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  html[data-desktop=desktop-layout] .results-desk .results-page-title { display: block; min-height: 0; padding: 26px 0 0; text-align: left; }
  html[data-desktop=desktop-layout] .results-desk .results-back { position: static; transform: none; display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; min-height: 44px; padding: 0 4px 0 0; color: var(--r-muted); font-size: 13px !important; }
  html[data-desktop=desktop-layout] .results-desk .results-back > span:first-child { font-size: 20px; line-height: 1; }
  html[data-desktop=desktop-layout] .results-desk .results-page-title h1 { font-size: 39px; font-weight: 800; letter-spacing: -1.6px; line-height: 1.2; text-align: left; }
  html[data-desktop=desktop-layout] .results-desk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: start; padding: 24px 0 45px; }
  html[data-desktop=desktop-layout] .results-desk-list, html[data-desktop=desktop-layout] .results-desk-aside { min-width: 0; }
  html[data-desktop=desktop-layout] .results-desk-aside { display: grid; gap: 16px; }
  html[data-desktop=desktop-layout] .results-desk-single { max-width: 560px; margin: 0 auto; padding: 16px 0 48px; }

  /* toolbar: the swipe fuel pills at the left, the sort switch at the right */
  html[data-desktop=desktop-layout] .results-desk-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  html[data-desktop=desktop-layout] .results-desk-fuels { flex: none; width: 300px; max-width: 100%; }
  html[data-desktop=desktop-layout] .results-desk .results-desk-fuels .results-fuels { margin-top: 0; }
  html[data-desktop=desktop-layout] .results-desk .results-sort-row { margin: 0; min-height: 44px; }
  html[data-desktop=desktop-layout] .results-desk .results-selected-scope { margin: 0 0 16px; border-left: 3px solid var(--desk-orange); }
  html[data-desktop=desktop-layout] .results-desk .results-price-notice { margin: 0 0 16px; }

  /* station rows: identity | price | distance | directions, one card per station */
  html[data-desktop=desktop-layout] .results-desk .results-stations { gap: 10px; }
  html[data-desktop=desktop-layout] .results-desk .results-station { grid-template-columns: minmax(0, 1fr) 120px 110px 48px; gap: 12px; align-items: center; padding: 16px 18px; background: var(--r-surface); border: 1px solid var(--r-border); border-radius: 10px; }
  html[data-desktop=desktop-layout] .results-desk .results-identity { padding: 0; background: none; border: 0; border-radius: 0; }
  html[data-desktop=desktop-layout] .results-desk .results-identity h2 { font-size: 15px; font-weight: 700; }
  html[data-desktop=desktop-layout] .results-desk .results-feedback { max-width: 320px; }
  html[data-desktop=desktop-layout] .results-desk .results-price-group { display: contents; }
  html[data-desktop=desktop-layout] .results-desk .results-price { grid-column: 2; font-size: 30px; }
  html[data-desktop=desktop-layout] .results-desk .results-price-missing { grid-column: 2; margin: 0 !important; }
  html[data-desktop=desktop-layout] .results-desk .results-distance { grid-column: 3; font-size: 13px; }
  html[data-desktop=desktop-layout] .results-desk .results-map-action { grid-column: 4; justify-self: center; }

  /* right column: the comparison as the bundle's navy card; widening as a side card */
  html[data-desktop=desktop-layout] .results-desk .results-summary { margin: 0; }
  html[data-desktop=desktop-layout] .results-desk .results-summary-toggle, html[data-desktop=desktop-layout] .results-desk .results-summary-unavailable { padding: 22px 22px 26px; border: 0; border-radius: 12px; background: #102b3a; color: #f5ece4; text-align: left; }
  html[data-desktop=desktop-layout] .results-desk[data-theme=dark] .results-summary-toggle, html[data-desktop=desktop-layout] .results-desk[data-theme=dark] .results-summary-unavailable { background: #193745; border: 1px solid var(--desk-line); }
  html[data-desktop=desktop-layout] .results-desk .results-metrics { grid-template-columns: 1fr 1fr; row-gap: 14px; padding: 0; }
  html[data-desktop=desktop-layout] .results-desk .results-metric { padding: 0; }
  html[data-desktop=desktop-layout] .results-desk .results-metric + .results-metric::before { display: none; }
  html[data-desktop=desktop-layout] .results-desk .results-metric:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  html[data-desktop=desktop-layout] .results-desk .results-metric:nth-child(1), html[data-desktop=desktop-layout] .results-desk .results-metric:nth-child(3) { grid-row: 2; padding-top: 14px; border-top: 1px solid #ffffff25; }
  html[data-desktop=desktop-layout] .results-desk .results-metric:nth-child(3) { text-align: right; }
  html[data-desktop=desktop-layout] .results-desk .results-metric-label { font-size: 12px; color: #becdc9; }
  html[data-desktop=desktop-layout] .results-desk .results-metric strong { font-size: 20px; }
  html[data-desktop=desktop-layout] .results-desk .results-metric:nth-child(2) strong { font-size: 42px; letter-spacing: -1.5px; line-height: 1.15; }
  html[data-desktop=desktop-layout] .results-desk .results-summary-toggle .results-below-average { color: #a2d6ad; }
  html[data-desktop=desktop-layout] .results-desk .results-summary-caption { margin-top: 12px; font-size: 12px; color: #becdc9; }
  html[data-desktop=desktop-layout] .results-desk .results-summary-detail { margin: 12px 0 0; color: #becdc9; border-top-color: #ffffff25; }
  html[data-desktop=desktop-layout] .results-desk .results-summary-arrow { background: #102b3a; color: #f5ece4; }
  html[data-desktop=desktop-layout] .results-desk[data-theme=dark] .results-summary-arrow { background: #193745; }
  html[data-desktop=desktop-layout] .results-desk .results-desk-aside .results-distance-notice { margin: 0 !important; text-align: left; }
  html[data-desktop=desktop-layout] .results-desk .results-desk-aside .results-widen, html[data-desktop=desktop-layout] .results-desk .results-desk-aside .results-add-place { margin: 0; padding: 16px 18px 18px; border: 1px solid var(--desk-line); border-radius: 12px; text-align: left; }
  html[data-desktop=desktop-layout] .results-desk .results-desk-aside .results-widen-immediate h2 { margin: 0 0 4px; font-size: 15px; }
  html[data-desktop=desktop-layout] .results-desk .results-desk-aside .results-scope-options .results-pill { padding-left: 4px; padding-right: 4px; white-space: nowrap; font-size: 12.5px !important; }
  html[data-desktop=desktop-layout] .results-desk .results-summary-toggle .results-summary-arrow { bottom: 4px; }

  /* ---- footer links (both pages) ----------------------------------------------------------- */
  html[data-desktop=desktop-layout] .fwni-desk-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 18px 0 24px; border-top: 1px solid var(--desk-line); }
  html[data-desktop=desktop-layout] .results-desk .fwni-desk-footer a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 7px; font: 600 12.5px/1.4 Manrope, system-ui, sans-serif; color: var(--r-muted); text-decoration: none; }
  html[data-desktop=desktop-layout] .results-desk .fwni-desk-footer a:focus-visible { outline: 3px solid var(--r-ink); outline-offset: 3px; }
}

/* The bundle's mid-width rules (its "max-width:1000px" and "761-1100px" revisions). */
@media (min-width: 761px) and (max-width: 1100px) {
  html[data-desktop=desktop-layout] .search-desk .search-brand img, html[data-desktop=desktop-layout] .results-desk .results-desk-logo { width: 280px; }
  html[data-desktop=desktop-layout] .search-desk .search-appearance { top: 30px; }
  html[data-desktop=desktop-layout] .search-desk-hero { gap: 26px; }
  html[data-desktop=desktop-layout] .search-desk h1 { font-size: 48px; }
  html[data-desktop=desktop-layout] .fwni-pump-wrap { width: 350px; height: 310px; }
  html[data-desktop=desktop-layout] .fwni-pump-img { width: 650px; left: -85px; top: -26px; }
  html[data-desktop=desktop-layout] .fwni-pump-display { left: 45px; top: 76px; width: 264px; height: 192px; }
  html[data-desktop=desktop-layout] .fwni-pump-label { margin-bottom: 15px; font-size: 11px; }
  html[data-desktop=desktop-layout] .fwni-pump-number { min-height: 68px; }
  html[data-desktop=desktop-layout] .fwni-pump-digit { width: 50px; height: 68px; font-size: 49px; line-height: 68px; }
  html[data-desktop=desktop-layout] .fwni-pump-point { font-size: 34px; line-height: 68px; }
  html[data-desktop=desktop-layout] .fwni-pump-none { font-size: 49px; line-height: 68px; }
  html[data-desktop=desktop-layout] .fwni-pump-unit { margin-top: 14px; font-size: 10px; }
  html[data-desktop=desktop-layout] .results-desk-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 18px; }
  html[data-desktop=desktop-layout] .results-desk-toolbar { flex-wrap: wrap; }
  html[data-desktop=desktop-layout] .results-desk .results-station { grid-template-columns: minmax(0, 1fr) 96px 80px 44px; gap: 8px; padding: 14px; }
  html[data-desktop=desktop-layout] .results-desk .results-price { font-size: 26px; }
}

/* Narrow desktop (761-960px): the hero columns are narrower than the bundle's 350px pump
 * crop, so the same crop is scaled by 6/7; the actions may wrap; the station placeholder
 * keeps the product's smaller size so it is not cut off (see product.css). */
@media (min-width: 761px) and (max-width: 960px) {
  html[data-desktop=desktop-layout] .search-desk #search-station::placeholder { font-size: 14px; }
  html[data-desktop=desktop-layout] .search-desk-actions { flex-wrap: wrap; }
  html[data-desktop=desktop-layout] .search-desk .search-desk-actions .search-submit { flex: 1 1 100%; }
  html[data-desktop=desktop-layout] .fwni-pump-wrap { width: 300px; height: 266px; border-radius: 20px; }
  html[data-desktop=desktop-layout] .fwni-pump-img { width: 557px; left: -73px; top: -22px; }
  html[data-desktop=desktop-layout] .fwni-pump-display { left: 39px; top: 65px; width: 226px; height: 165px; }
  html[data-desktop=desktop-layout] .fwni-pump-label { margin-bottom: 12px; font-size: 10px; }
  html[data-desktop=desktop-layout] .fwni-pump-number { min-height: 58px; gap: 4px; }
  html[data-desktop=desktop-layout] .fwni-pump-digit { width: 43px; height: 58px; font-size: 42px; line-height: 58px; }
  html[data-desktop=desktop-layout] .fwni-pump-point { font-size: 29px; line-height: 58px; }
  html[data-desktop=desktop-layout] .fwni-pump-none { font-size: 42px; line-height: 58px; }
  html[data-desktop=desktop-layout] .fwni-pump-unit { margin-top: 12px; }
  html[data-desktop=desktop-layout] .fwni-pump .results-fuels.results-fuels-swipe { width: 280px; }
}

@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  html[data-desktop=desktop-layout] .fwni-pump-flap { animation: none !important; }
}

@keyframes fwni-pump-turn { 0% { transform: rotateX(0); } 45% { transform: rotateX(-150deg); background: #d8d5cd; } 100% { transform: rotateX(0); } }
