/* Cornish Windbreaks: St Piran's flag (black field, white cross) as the frame of the page, the amber of
   the firm's own banners, and the fabric chips of its colour chart. Bebas Neue + Figtree. */

@font-face {
    font-family: "Bebas Neue";
    src: url("/fonts/bebas-neue.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/figtree.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --flag: #000;
    --cross: #fff;
    --ink: #1b1b1b;
    --muted: #4d4f4c;
    --paper: #fff;
    --mist: #eff1ee;
    --line: #d5d8d3;
    --amber: #b17506;          /* measured on the original's banners */
    --amber-hi: #e9a514;       /* on black */
    --amber-text: #865800;     /* amber text on white, 5.6:1 */
    --grass: #4f7a32;
    --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 14px;
    --menu-fg: #fff;
    --menu-focus: var(--amber-hi);
    --lb-accent: var(--amber-hi);
    --lb-accent-soft: rgba(233, 165, 20, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--amber-text);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--flag);
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin: 0 0 0.4em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h3 {
    font-size: 1.6rem;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--amber-hi);
    color: #000;
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.5;
    max-width: 62ch;
}

.fine {
    font-size: 0.92rem;
    color: var(--muted);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

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

.btn-amber {
    background: var(--amber-hi);
    color: #000;
}

.btn-amber:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

.btn-ghost {
    border-color: #fff;
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: #000;
}

.btn-line {
    border-color: var(--flag);
    color: var(--flag);
}

.btn-line:hover {
    background: var(--flag);
    color: #fff;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    border-bottom: 4px solid var(--cross);
    backdrop-filter: blur(8px);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand {
    flex: none;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.brand img {
    width: auto;
    height: 58px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    margin-left: auto;
}

.nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav a[aria-current] {
    color: var(--amber-hi);
    box-shadow: inset 0 -3px 0 var(--amber-hi);
}

.top-social {
    display: flex;
    gap: 2px;
}

.social {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
}

.social:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--amber-hi);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--amber-hi);
    color: #000;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 1120px) {
    .nav {
        order: 10;
        flex-basis: 100%;
        margin-left: 0;
    }

    .top-social {
        margin-left: auto;
    }
}

.nav-social {
    display: none;
}

@media (max-width: 520px) {
    .top-social {
        display: none;
    }

    .has-menu .nav-social {
        display: flex;
        gap: 4px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        margin-top: 4px;
    }

    html:not(.has-menu) .nav-social {
        display: flex;
        gap: 4px;
    }

    .call {
        margin-left: auto;
        padding: 0 14px;
    }

    .brand img {
        height: 48px;
    }
}

/* ---- hero: the flag ---- */

.hero {
    background: var(--flag);
    color: #fff;
}

.flag {
    --bar: clamp(14px, 2vw, 28px);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) var(--bar) minmax(0, 1fr);
    grid-template-rows: minmax(0, auto) var(--bar) clamp(240px, 24vw, 330px);
    max-width: 1440px;
    margin: 0 auto;
}

.q {
    padding: clamp(28px, 4.4vw, 60px) clamp(16px, 4vw, 56px);
}

.q1 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.q2 {
    grid-column: 3;
    grid-row: 1;
}

.q3 {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
}

.q4 {
    grid-column: 3;
    grid-row: 3;
}

.q-photo {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 220px;
}

.q-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q4 img {
    object-position: 50% 30%;
}

.bar {
    background: var(--cross);
    position: relative;
    z-index: 1;
}

.bar-v {
    grid-column: 2;
    grid-row: 1 / 4;
    transform-origin: 50% 60%;
}

.bar-h {
    grid-column: 1 / 4;
    grid-row: 2;
    transform-origin: 56% 50%;
}

.q-stamp {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    z-index: 2;
}

.stamp {
    display: grid;
    place-items: center;
    width: clamp(132px, 13vw, 184px);
    aspect-ratio: 1;
    margin: 0;
    border: 3px solid var(--amber-hi);
    border-radius: 50%;
    background: var(--flag);
    box-shadow: 0 0 0 6px var(--flag), 0 0 0 9px var(--amber-hi);
    color: var(--amber-hi);
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.1vw, 2.1rem);
    line-height: 0.92;
    text-align: center;
    transform: rotate(-8deg);
}

.q-stamp .stamp {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.hero h1 {
    font-size: clamp(3.2rem, 6.6vw, 6.6rem);
    line-height: 0.86;
    margin-bottom: 0.3em;
    text-wrap: balance;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 46ch;
    color: #e9e9e9;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.3em 0 0;
}

.feats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    max-width: 560px;
}

.feats li {
    padding-left: 16px;
    border-left: 3px solid var(--amber-hi);
    color: #dcdcdc;
    font-size: 0.98rem;
    line-height: 1.4;
}

.feats strong {
    display: block;
    color: var(--amber-hi);
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 4px;
}

@media (max-width: 860px) {
    .flag {
        grid-template-columns: minmax(0, 1fr) var(--bar) minmax(0, 1fr);
        grid-template-rows: auto var(--bar) clamp(200px, 46vw, 320px) auto;
    }

    .q1 {
        grid-column: 1 / 4;
        grid-row: 1;
        padding-bottom: 76px;
    }

    .q2 {
        grid-column: 1;
        grid-row: 3;
    }

    .stamp {
        width: 118px;
        font-size: 1.35rem;
    }

    .q4 {
        grid-column: 3;
        grid-row: 3;
    }

    .bar-v {
        grid-row: 2 / 4;
    }

    .q3 {
        grid-column: 1 / 4;
        grid-row: 4;
        padding-top: 30px;
        padding-bottom: 34px;
        border-top: var(--bar) solid var(--cross);
    }

    .feats strong {
        font-size: 1.4rem;
    }

    .feats li {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .feats {
        gap: 16px 18px;
    }

    .feats li {
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .bar-h {
        animation: bar-x 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .bar-v {
        animation: bar-y 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero h1,
    .hero-lead,
    .hero-cta {
        animation: rise 0.7s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero-lead {
        animation-delay: 0.55s;
    }

    .hero-cta {
        animation-delay: 0.65s;
    }

    .q-stamp .stamp {
        animation: stamp 0.5s 0.95s cubic-bezier(0.3, 1.6, 0.5, 1) both;
    }
}

@keyframes bar-x {
    from { transform: scaleX(0); }
}

@keyframes bar-y {
    from { transform: scaleY(0); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
}

@keyframes stamp {
    from { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg) scale(1.5); }
}

/* ---- section heads ---- */

.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 24px;
    margin-bottom: 26px;
}

.sec-head h2 {
    margin: 0;
}

.sec-head p {
    margin: 0;
    color: var(--muted);
    max-width: 52ch;
}

/* ---- the range: a bento of the products ---- */

.range {
    padding: clamp(48px, 8vw, 96px) 0;
}

.range-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 14px;
}

.range-grid li {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--flag);
}

.range-grid .r-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.range-grid .r-2,
.range-grid .r-3 {
    grid-row: span 2;
}

.range-grid a {
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.range-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s;
    opacity: 0.88;
}

.range-grid a:hover img,
.range-grid a:focus-visible img {
    transform: scale(1.05);
    opacity: 1;
}

.range-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 30%, rgba(0, 0, 0, 0));
    line-height: 1.35;
}

.range-text strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 4px;
}

.range-text span {
    display: block;
    font-size: 0.92rem;
    color: #e6e6e6;
}

.range-grid li:nth-child(n + 4) .range-text span {
    display: none;
}

@media (max-width: 900px) {
    .range-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;
    }

    .range-grid .r-1 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .range-grid .r-2,
    .range-grid .r-3 {
        grid-row: span 1;
    }

    .range-grid li:nth-child(n + 2) .range-text span {
        display: none;
    }
}

@media (max-width: 420px) {
    .range-grid {
        grid-auto-rows: 160px;
        gap: 10px;
    }

    .range-grid .r-1 {
        grid-row: span 2;
    }

    .range-text {
        padding: 40px 12px 12px;
    }

    .range-text strong {
        font-size: 1.45rem;
    }
}

/* ---- builder ---- */

.builder {
    padding: clamp(48px, 8vw, 96px) 0;
    background: var(--mist);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.b-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    grid-template-areas: "controls stage" "controls out";
    gap: 20px 40px;
    align-items: start;
}

.b-controls {
    grid-area: controls;
    display: grid;
    gap: 18px;
}

.b-stage {
    grid-area: stage;
    margin: 0;
    padding: 18px 18px 10px;
    border-radius: var(--radius);
    background: linear-gradient(#cfe6f5, #eef6fb 70%);
    border: 1px solid var(--line);
}

.b-out {
    grid-area: out;
}

.builder fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.builder legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 800;
}

.seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seg label,
.b-check {
    position: relative;
    cursor: pointer;
}

.seg input,
.b-check input,
.chip-opt input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.seg span {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    padding: 4px 14px;
    border: 2px solid var(--flag);
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    line-height: 1.15;
}

.seg small,
.b-check small {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--muted);
}

.seg input:checked + span {
    background: var(--flag);
    color: #fff;
}

.seg input:checked + span small {
    color: #d4d4d4;
}

.seg input:focus-visible + span,
.b-check input:focus-visible + span,
.chip-opt input:focus-visible ~ img {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
}

.chip-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-opt {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 2px;
    width: 64px;
    font-size: 0.74rem;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
}

.chip-opt img {
    width: 56px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--line);
}

.chip-opt input:checked ~ img {
    border-color: var(--flag);
    box-shadow: 0 0 0 2px var(--amber-hi);
}

.chip-opt input:checked ~ span {
    font-weight: 800;
}

.b-sub {
    margin: 10px 0 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.b-check span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 700;
}

.b-check span::before {
    content: "";
    flex: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--flag);
    border-radius: 6px;
    background: #fff;
}

.b-check input:checked + span::before {
    background: var(--flag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23e9a514' stroke-width='3'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.b-stage svg {
    display: block;
    width: 100%;
    height: auto;
}

.b-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin: 6px 0 0;
    font-weight: 800;
    line-height: 1.3;
}

.b-scale [data-mini-price] {
    color: var(--amber-text);
}

.b-ground {
    fill: var(--grass);
}

.b-ground-line {
    stroke: #2f4c1d;
    stroke-width: 2;
}

.b-seam {
    fill: none;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 1;
}

.b-mesh {
    opacity: 0.82;
}

.b-wood {
    fill: #d9b27c;
    stroke: #8c6a3e;
    stroke-width: 0.6;
}

.b-steel {
    fill: #a4adb2;
    stroke: #5f676b;
    stroke-width: 0.6;
}

.b-bar {
    fill: #fff;
    stroke: #1b1b1b;
    stroke-width: 1;
}

.b-dim {
    stroke: #fff;
    stroke-width: 2;
}

@media (prefers-reduced-motion: no-preference) {
    .b-panel {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: billow 4s calc(var(--i) * -0.6s) ease-in-out infinite alternate;
    }

    .b-pole {
        animation: drive 0.35s calc(var(--i) * 0.04s) cubic-bezier(0.3, 1.4, 0.5, 1) both;
    }
}

@keyframes billow {
    from { transform: skewX(-1.2deg); }
    to { transform: skewX(1.2deg); }
}

@keyframes drive {
    from { transform: translateY(-14px); opacity: 0; }
}

.b-code {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3.4rem, 8vw, 5.4rem);
    line-height: 0.9;
}

.b-spec {
    color: var(--muted);
    margin: 4px 0 8px;
}

.b-price {
    margin: 0 0 4px;
    font-family: var(--display);
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    line-height: 1;
    color: var(--amber-text);
}

.b-price small {
    font-family: var(--text);
    font-size: 0.9rem;
    color: var(--muted);
}

.b-gate {
    margin-bottom: 14px;
}

.b-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 820px) {
    .b-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "stage" "controls" "out";
    }

    .b-stage {
        position: sticky;
        top: 80px;
        z-index: 2;
    }
}

@media (max-width: 520px) {
    .b-stage {
        top: 70px;
        padding: 10px 10px 6px;
    }
}

/* ---- photo strip ---- */

.strip {
    padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.strip-row {
    list-style: none;
    margin: 0;
    padding: 0 var(--gutter) 14px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.strip-row li {
    flex: none;
    scroll-snap-align: start;
}

.strip-row img {
    height: clamp(220px, 32vw, 340px);
    width: auto;
    border-radius: var(--radius);
}

/* ---- since '74 ---- */

.since {
    background: var(--flag);
    color: #fff;
    padding: clamp(56px, 9vw, 110px) 0;
    border-top: clamp(14px, 2.2vw, 30px) solid var(--cross);
}

.since-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px 56px;
    align-items: center;
}

.since-big {
    font-size: clamp(3.6rem, 10vw, 9rem);
    line-height: 0.84;
    color: var(--amber-hi);
    margin: 0;
}

.since p {
    color: #e3e3e3;
}

.since .btn-line {
    border-color: #fff;
    color: #fff;
}

.since .btn-line:hover {
    background: #fff;
    color: #000;
}

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

/* ---- how to order ---- */

.order {
    background: var(--amber-hi);
    color: #000;
    padding: clamp(32px, 5vw, 52px) 0;
}

.order-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px 40px;
    align-items: center;
}

.order h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 24px;
}

.order-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.35;
    font-size: 0.95rem;
}

.order-list svg {
    flex: none;
    margin-top: 2px;
}

.order a {
    color: #000;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.order a:hover {
    color: #fff;
}

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

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

@media (max-width: 520px) {
    .order-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- footer ---- */

.foot {
    background: var(--flag);
    color: #d8d8d8;
    padding: 56px 0 24px;
    font-size: 0.95rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.foot h2 {
    color: #fff;
    font-size: 1.7rem;
}

.foot-brand img {
    width: 160px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.foot a {
    color: #fff;
}

.foot a:hover {
    color: var(--amber-hi);
}

.foot address {
    font-style: normal;
    margin-bottom: 10px;
}

.foot-phone {
    font-family: var(--display);
    font-size: 2rem;
    text-decoration: none;
}

.foot-social {
    display: flex;
    gap: 16px;
}

.foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.88rem;
}

.foot-bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* ---- inner pages ---- */

.shead {
    background: var(--flag);
    color: #fff;
    padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px);
    border-bottom: clamp(14px, 2.2vw, 30px) solid var(--cross);
}

.shead .lead {
    color: #e3e3e3;
}

.shead a {
    color: var(--amber-hi);
}

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.jump a {
    padding: 8px 16px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.jump a:hover {
    background: #fff;
    color: #000;
}

.crumbs {
    margin-bottom: 18px;
    font-size: 0.92rem;
    color: #cfcfcf;
}

.crumbs a {
    color: #fff;
}

.crumbs [aria-current] {
    color: var(--amber-hi);
}

/* product hero */

.phero {
    background: var(--flag);
    color: #fff;
    padding: clamp(32px, 6vw, 72px) 0;
    border-bottom: clamp(14px, 2.2vw, 30px) solid var(--cross);
}

.phero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 48px;
    align-items: center;
}

.phero .lead {
    color: #e3e3e3;
}

.phero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.phero .btn-line {
    border-color: #fff;
    color: #fff;
}

.phero .btn-line:hover {
    background: #fff;
    color: #000;
}

.phero-photos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.phero-photos.n1 {
    grid-template-columns: minmax(0, 1fr);
}

.phero-photos li:first-child {
    grid-column: 1 / -1;
}

.phero-photos.n2 li:first-child {
    grid-column: auto;
}

.phero-photos figure {
    margin: 0;
    height: 100%;
}

.phero-photos a,
.phero-photos img {
    display: block;
    width: 100%;
    height: 100%;
}

.phero-photos img {
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
}

.phero-photos.n3 li:first-child img {
    aspect-ratio: 16 / 9;
}

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

.pbody {
    padding: clamp(40px, 7vw, 80px) 0;
}

.pbody-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px 56px;
    align-items: start;
}

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

.prose {
    max-width: 70ch;
}

.prose h2 {
    margin-top: 1.1em;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.ticks {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ticks li {
    position: relative;
    padding-left: 32px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 20px;
    height: 20px;
    background: var(--flag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14M3 10h14' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center / 20px no-repeat;
    border-radius: 3px;
}

.spec {
    margin: 0 0 1.4em;
    border-top: 2px solid var(--flag);
}

.spec div {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 4px 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.spec dt {
    font-weight: 800;
}

.spec dd {
    margin: 0;
}

@media (max-width: 520px) {
    .spec div {
        grid-template-columns: minmax(0, 1fr);
    }
}

.colours-box {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--mist);
    border: 1px solid var(--line);
}

.colours-box h2 {
    font-size: 2.2rem;
}

.colours-box h3 {
    font-family: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 14px 0 8px;
}

.chips {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
}

.chips li {
    font-size: 0.85rem;
    line-height: 1.2;
}

.chips img {
    width: 100%;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-bottom: 4px;
}

.chips-printed img {
    height: 64px;
}

/* sizes and prices */

.sizes {
    padding: clamp(40px, 7vw, 80px) 0;
    background: var(--mist);
    border-top: 1px solid var(--line);
}

.sizes.alt {
    background: var(--paper);
}

.ptables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 18px 0 26px;
}

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

.ptable {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 8px;
    min-width: 0;
}

.ptable h3 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.ptable h3 span {
    display: block;
    font-family: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.3;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 9px 8px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

thead th {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--muted);
    border-bottom: 2px solid var(--flag);
}

tbody th {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

td.num {
    font-weight: 800;
}

td small {
    color: var(--muted);
    font-weight: 500;
}

tr.gate {
    background: var(--mist);
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}

.wide-figure {
    margin: 10px 0 0;
    max-width: 720px;
}

.wide-figure img {
    border-radius: var(--radius);
}

/* parts and colour rows */

.parts,
.colourway,
.others,
.about-shows {
    padding: clamp(40px, 7vw, 80px) 0;
}

.colourway {
    background: var(--flag);
    color: #fff;
}

.cw-list,
.parts-list,
.others-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.parts-list.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cw-list figure,
.parts-list figure {
    margin: 0;
}

.cw-list img,
.parts-list img {
    width: 100%;
    border-radius: 10px;
}

.parts-list.four img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.cw-list figcaption {
    font-family: var(--display);
    font-size: 1.6rem;
    margin-top: 6px;
}

.parts-list figcaption {
    margin-top: 10px;
}

@media (max-width: 760px) {
    .cw-list,
    .parts-list.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.others {
    border-top: 1px solid var(--line);
}

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

.others-list a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.25;
}

.others-list img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

.others-list a:hover {
    color: var(--amber-text);
}

@media (max-width: 900px) {
    .others-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* products overview: fabric card */

.fabric {
    padding: clamp(40px, 7vw, 80px) 0;
    background: var(--mist);
    border-top: 1px solid var(--line);
}

.fabric-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 32px 56px;
}

.fabric-groups h3 {
    font-size: 1.7rem;
    margin: 16px 0 8px;
}

.chart-link img {
    border-radius: 10px;
    border: 1px solid var(--line);
}

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

.spares-cta {
    padding: 28px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.spares-cta p {
    margin: 0;
}

/* spares */

.spares {
    padding: clamp(40px, 7vw, 80px) 0;
    background: var(--mist);
    border-top: 1px solid var(--line);
}

.spares-grid {
    list-style: none;
    margin: 18px 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.spares-grid li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 12px 14px;
    min-width: 0;
}

.spares-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.spares-grid h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.spares-grid h3 small {
    display: block;
    font-family: var(--text);
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
}

.spares-grid dl {
    margin: 0;
}

.spares-grid dl div {
    padding: 5px 0;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    line-height: 1.35;
}

.spares-grid dt {
    font-weight: 800;
}

.spares-grid dd {
    margin: 0;
}

@media (max-width: 1000px) {
    .spares-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.notes {
    padding: 18px 20px;
    border-left: 6px solid var(--flag);
    background: #fff;
}

.notes p:last-child {
    margin: 0;
}

/* gallery */

.gallery {
    padding: clamp(32px, 6vw, 64px) 0;
}

.gallery-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 4 240px;
    column-gap: 12px;
}

.gallery-grid li {
    break-inside: avoid;
    margin-bottom: 12px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 520px) {
    .gallery-grid {
        columns: 2;
        column-gap: 8px;
    }

    .gallery-grid li {
        margin-bottom: 8px;
    }
}

/* about */

.about-hero {
    background: var(--flag);
    color: #fff;
    padding: clamp(40px, 7vw, 88px) 0;
    border-bottom: clamp(14px, 2.2vw, 30px) solid var(--cross);
}

.about-hero .lead {
    color: #e6e6e6;
}

.about-hero p {
    color: #d6d6d6;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px 56px;
    align-items: center;
}

.about-hero .stamp {
    color: var(--amber-hi);
}

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

.about-body {
    padding: clamp(40px, 7vw, 80px) 0 0;
}

.about-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px 56px;
    align-items: start;
}

.about-photo {
    margin: 0;
}

.about-photo img {
    border-radius: var(--radius);
}

@media (max-width: 860px) {
    .about-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* coastal canvas */

.cc-hero {
    background: var(--flag);
    color: #fff;
    padding-top: clamp(36px, 6vw, 72px);
}

.cc-hero .lead {
    color: #e6e6e6;
}

.cc-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.cc-logo img {
    width: 260px;
}

.cc-photo {
    margin: 24px 0 0;
}

.cc-photo img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.cc-body {
    padding: clamp(40px, 7vw, 80px) 0;
}

.cc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px 56px;
}

.cc-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cc-links a {
    display: block;
    padding: 12px 16px;
    border: 2px solid var(--flag);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.cc-links a:hover {
    background: var(--flag);
    color: #fff;
}

.cc-contact {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--mist);
    border: 1px solid var(--line);
}

.cc-contact dl {
    margin: 0 0 18px;
}

.cc-contact dl div {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.cc-contact dt {
    font-weight: 800;
}

.cc-contact dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.cc-contact figure {
    margin: 0;
    max-width: 280px;
}

.cc-contact figure img {
    border-radius: 8px;
}

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

/* contact */

.contact {
    padding: clamp(40px, 7vw, 80px) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px 48px;
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 12px;
}

.ccard {
    display: block;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 2px solid var(--flag);
    color: var(--ink);
    text-decoration: none;
}

a.ccard:hover {
    background: var(--flag);
    color: #fff;
}

.ccard > span {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--muted);
}

a.ccard:hover > span {
    color: #ccc;
}

.ccard strong {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.ccard-phone {
    background: var(--amber-hi);
    border-color: var(--amber-hi);
}

.ccard-phone > span {
    color: #000;
}

.ccard-phone strong {
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1;
}

.ccard address {
    font-style: normal;
    margin: 4px 0 8px;
}

.ccard p {
    margin: 0 0 4px;
}

.map-shot {
    margin: 0;
}

.map-shot img {
    border-radius: var(--radius);
}

.form-box {
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--mist);
    border: 1px solid var(--line);
}

.contact-form > div {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #8a8d88;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--flag);
    outline: 3px solid var(--amber);
    outline-offset: 1px;
}

.form-hint {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-sent {
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: var(--flag);
    color: #fff;
}

.contact-sent strong {
    display: block;
    color: var(--amber-hi);
}

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

/* legal */

.legal {
    padding: clamp(40px, 7vw, 80px) 0;
}

.legal h3 {
    font-size: 1.7rem;
    margin-top: 1.2em;
}

/* 404 */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px var(--gutter);
    background: var(--flag);
    color: #fff;
    text-align: center;
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    width: 200px;
    margin: 0 auto 28px;
    border-radius: 8px;
}

.not-found h1 {
    color: var(--amber-hi);
}

.not-found a:not(.btn) {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* ---- menu: /js/menu.js folds the navigation behind a button on a phone ----
   Paste this block into the site's css/site.css, after the header's own rules. Then:
   - Set the width in the @media line to the one below which the navigation no longer fits on one line
     (on the header row or a row of its own): the menu folds there, never into two rows of links.
   - Recolour it with --menu-fg (button text and bars), --menu-bg (button), --menu-panel (the open
     menu's background, default: none, it opens inside the header) and --menu-focus (focus ring),
     set on :root or on the header.
   - The open menu is a column under the header row: .menu-nav takes the row's full width. A header that
     is not a wrapping flex row needs its own placement for .menu-nav.is-open. In a header that sets
     `order` on its items, give .menu-toggle one after the phone button and .menu-nav the last.
   - Below 420 px the word hides and the button is a round icon; the word stays its accessible name.
     Raise that width if logo, phone button, language switch and button still do not fit on one row
     at 360 px; the phone number itself never hides. */

.menu-toggle {
    display: none;
}

@media (max-width: 760px) {
    .has-menu .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 44px;
        padding: 0 14px;
        border: 2px solid currentColor;
        border-radius: 999px;
        background: var(--menu-bg, transparent);
        color: var(--menu-fg, inherit);
        font: inherit;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }

    .has-menu .menu-toggle:focus-visible {
        outline: 3px solid var(--menu-focus, currentColor);
        outline-offset: 3px;
    }

    .has-menu .menu-nav:not(.is-open) {
        display: none;
    }

    .has-menu .menu-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        width: 100%;
        margin-inline: 0;
        gap: 2px;
        padding-block: 6px 4px;
        background: var(--menu-panel, none);
    }

    .has-menu .menu-nav.is-open a {
        padding-block: 12px;
    }
}

@media (max-width: 420px) {
    .has-menu .menu-toggle {
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* three bars that turn into a cross while the menu is open */
.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .menu-bars,
    .menu-bars::before,
    .menu-bars::after {
        transition: none;
    }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

/* price tables on a phone: the weight with tension bars goes under its price */
@media (max-width: 520px) {
    .ptable {
        padding: 14px 10px 6px;
    }

    th,
    td {
        padding: 8px 4px;
        font-size: 0.86rem;
    }

    thead th {
        font-size: 0.72rem;
        white-space: normal;
    }

    tbody th {
        font-size: 1.1rem;
    }

    td small {
        display: block;
    }
}
