/* Koopiatehas design details: things theme.json can't express.
   Language: hairline borders on cream (print rules), mono for spec/metadata,
   Fraunces display only in big headings, one accent per section. */

/* ---------- Global finish ---------- */
::selection {
    background: var(--wp--preset--color--brand);
    color: #FFFDF8;
}

:focus-visible {
    outline: 2px solid var(--wp--preset--color--brand);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* .alignfull blocks use WP core's `calc(50% - 50vw)` full-bleed trick, which
   can overflow by a few px on mobile browsers (100vw miscounts the viewport
   there) and open a horizontal-scroll gap. Clip it at the root as a safety net. */
body {
    overflow-x: hidden;
}

/* Site-wide gutter. theme.json's useRootPaddingAwareAlignments defines the
   --wp--style--root--padding-* vars but WP core doesn't reliably add the
   .has-global-padding class that applies them here, so set it directly. */
.wp-site-blocks > * {
    padding-left: var(--wp--preset--spacing--30);
    padding-right: var(--wp--preset--spacing--30);
}

.wp-site-blocks > .alignfull {
    padding-left: 0;
    padding-right: 0;
}

h1, h2, h3 {
    text-wrap: balance;
}

.entry-content p {
    text-wrap: pretty;
}

/* Paper grain over cream surfaces (barely-there, fixed tile) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.38 0 0 0 0 0.33 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sticky nav row (second group inside the header part) */
body > .wp-site-blocks > header > .wp-block-group:last-child {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 246, 238, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Buttons: ink fills left-to-right on hover, plus a micro-lift */
.wp-block-button__link,
.kt-inquire,
.wpcf7 input[type="submit"] {
    background-image: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    transition: background-size 0.3s ease, transform 0.18s ease;
}

.wp-block-button__link:hover,
.kt-inquire:hover,
.wpcf7 input[type="submit"]:hover {
    background-size: 100% 100%;
    transform: translateY(-1px);
}

/* Scroll reveal (classes added by polish.js only) */
.kt-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.kt-reveal.kt-inview {
    opacity: 1;
    transform: none;
}

/* Headings print in left-to-right instead of fading up */
h2.kt-reveal {
    opacity: 1;
    transform: none;
    clip-path: inset(0 102% 0 -2%);
    transition: clip-path 0.4s cubic-bezier(0.45, 0, 0.25, 1), text-shadow 0.25s ease;
}

h2.kt-reveal.kt-inview {
    clip-path: inset(0 -2% 0 -2%);
}

@media (prefers-reduced-motion: reduce) {
    .kt-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Services marquee strip ---------- */
.kt-marquee {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--wp--preset--color--line);
    border-bottom: 1px solid var(--wp--preset--color--line);
    padding: 0.7rem 0;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
}

.kt-marquee__track {
    display: inline-block;
    animation: kt-marquee 38s linear infinite;
}

.kt-marquee:hover .kt-marquee__track {
    animation-play-state: paused;
}

@keyframes kt-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .kt-marquee__track {
        animation: none;
    }
}

/* ---------- Live receipt price calculator (hero signature moment) ---------- */
.kt-calc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.kt-receipt {
    position: relative;
    width: min(300px, 100%);
    background: #FFFDF8;
    padding: 1.3rem 1.2rem 1.6rem;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--wp--preset--color--contrast);
    box-shadow: 0 14px 34px rgba(11, 61, 46, 0.14);
    transform: rotate(1.5deg);
}

.kt-receipt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 8px;
    background:
        linear-gradient(-45deg, #FFFDF8 5.5px, transparent 0),
        linear-gradient(45deg, #FFFDF8 5.5px, transparent 0);
    background-size: 11px 11px;
    background-repeat: repeat-x;
}

.kt-receipt.is-printing {
    animation: kt-print 0.4s ease;
}

@keyframes kt-print {
    0% { transform: rotate(1.5deg) translateY(-7px); }
    60% { transform: rotate(1.5deg) translateY(2px); }
    100% { transform: rotate(1.5deg) translateY(0); }
}

.kt-receipt__head {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    border-bottom: 1px dashed var(--wp--preset--color--line);
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
}

.kt-receipt__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Rows that come and go (bind-on, volume pricing) keep their space reserved
   via visibility rather than display, so the card height never jumps. */
.kt-receipt__row.kt-r-bind-row,
.kt-receipt__row.kt-r-volume {
    visibility: hidden;
}

.kt-receipt__row.kt-r-bind-row.is-shown,
.kt-receipt__row.kt-r-volume.is-shown {
    visibility: visible;
}

.kt-receipt__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 2.95rem;
    border-top: 1px dashed var(--wp--preset--color--line);
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.kt-receipt__total output {
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--wp--preset--color--primary);
}

.kt-receipt--volume .kt-receipt__total output {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kt-r-volume span {
    font-size: 0.68rem;
    color: var(--wp--preset--color--muted);
}

.kt-receipt__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0.7rem;
    font-weight: 500;
    /* Reserve two lines: the volume-pricing CTA is longer and wraps, the
       default one doesn't - fixed height keeps the card size constant. */
    min-height: calc(1.7em * 2);
}

.kt-receipt__note {
    text-align: center;
    font-size: 0.68rem;
    color: var(--wp--preset--color--muted);
    margin-top: 0.35rem;
}

.kt-calc__controls {
    width: min(300px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.kt-calc__controls input[type="range"] {
    width: 100%;
    accent-color: var(--wp--preset--color--brand);
}

.kt-calc__toggle {
    display: flex;
    gap: 0.4rem;
}

.kt-calc__toggle button {
    flex: 1;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 999px;
    background: transparent;
    color: var(--wp--preset--color--contrast);
    cursor: pointer;
}

.kt-calc__toggle button.is-active {
    background: var(--wp--preset--color--primary-dark);
    border-color: var(--wp--preset--color--primary-dark);
    color: var(--wp--preset--color--base);
}

.kt-calc__check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.kt-calc__check input {
    accent-color: var(--wp--preset--color--brand);
}

/* ---------- Halftone dot accent (riso motif, behind the stamp) ---------- */
.kt-halftone {
    position: relative;
}

.kt-halftone::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    z-index: -1;
    background-image: radial-gradient(var(--wp--preset--color--line) 1.3px, transparent 1.3px);
    background-size: 14px 14px;
    -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

/* ---------- Print-craft details: calibration strip, misregistration, dog-ear ---------- */
.kt-calibration {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 1.3rem auto 0;
}

.kt-calibration span {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}

.kt-calibration span:nth-child(1) { background: #00AEEF; }
.kt-calibration span:nth-child(2) { background: #EC008C; }
.kt-calibration span:nth-child(3) { background: #FFF200; }
.kt-calibration span:nth-child(4) { background: #1A1A1A; }
.kt-calibration span:nth-child(5) { background: var(--wp--preset--color--brand); }

/* CMYK registration: the hero's italic word starts off-register; a print
   head sweeps left-to-right once, leaving clean registered text behind. */
h1 em {
    position: relative;
    display: inline-block;
}

h1 em::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    text-shadow: 3px 0 0 rgba(236, 0, 140, 0.45), -3px 0 0 rgba(0, 174, 239, 0.45);
    clip-path: inset(0 0 0 0);
    animation: kt-register-sweep 1.8s cubic-bezier(0.45, 0, 0.25, 1) 0.6s forwards;
}

@keyframes kt-register-sweep {
    to { clip-path: inset(0 0 0 100%); }
}

h1 em::after {
    content: "";
    position: absolute;
    top: -6%;
    bottom: -6%;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: var(--wp--preset--color--brand);
    opacity: 0;
    pointer-events: none;
    animation: kt-register-head 1.8s cubic-bezier(0.45, 0, 0.25, 1) 0.6s forwards;
}

@keyframes kt-register-head {
    0% { left: 0; opacity: 1; }
    85% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    h1 em::before,
    h1 em::after {
        animation: none;
        content: none;
    }
}

h2 {
    transition: text-shadow 0.25s ease;
}

h2:hover {
    text-shadow: 1.5px 0 0 rgba(236, 0, 140, 0.22), -1.5px 0 0 rgba(0, 174, 239, 0.22);
}

/* Dog-ear page fold on card hover */
.kt-card {
    position: relative;
    overflow: hidden;
}

.kt-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0;
    border-color: var(--wp--preset--color--soft) var(--wp--preset--color--soft) var(--wp--preset--color--line) var(--wp--preset--color--line);
    transition: border-width 0.2s ease;
}

.kt-card:hover::after {
    border-width: 0 20px 20px 0;
}

/* ---------- Named people (B2B trust) ---------- */
.kt-person {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.kt-person p {
    margin: 0;
    line-height: 1.5;
}

.kt-avatar {
    flex: none;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--wp--preset--color--brand);
    color: var(--wp--preset--color--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--display);
    font-weight: 650;
    font-size: 1.05rem;
}

/* ---------- Eyebrow labels ---------- */
.kt-eyebrow {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--wp--preset--color--brand);
    margin-bottom: 0.4rem;
}

.has-primary-dark-background-color .kt-eyebrow {
    color: var(--wp--preset--color--brand);
}

/* ---------- Cards: hairline border, no shadows ---------- */
.kt-card {
    background: #FFFDF8;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Pin the mono spec line to the card bottom so rows align across columns */
.kt-card .kt-spec {
    margin-top: auto;
    padding-top: 0.75rem;
}

.kt-card > p:not(.kt-spec):last-of-type {
    margin-bottom: 1rem;
}

.kt-card:hover {
    border-color: var(--wp--preset--color--primary);
    transform: translateY(-2px);
}

.kt-card h2,
.kt-card h3 {
    margin-top: 0;
}

.kt-card a {
    text-decoration: none;
}

.kt-card a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: var(--wp--preset--color--brand);
}

/* Mono spec line inside cards: "A4–A3 · MV ja värviline · al 0,06 €" */
.kt-spec {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.8rem;
    color: var(--wp--preset--color--muted);
    letter-spacing: 0.02em;
    border-top: 1px solid var(--wp--preset--color--line);
    padding-top: 0.75rem;
    margin-top: 1rem;
}

/* ---------- Fact row under hero ---------- */
.kt-facts {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* ---------- Oversized process numbers ---------- */
.kt-step-number {
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
    color: var(--wp--preset--color--brand);
    opacity: 0.55;
    margin-bottom: 0.25rem;
}

/* ---------- Rotated stamp badge ---------- */
.kt-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 8.5rem;
    height: 8.5rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: rotate(-8deg);
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.5;
    padding: 1rem;
}

/* ---------- Big stat numbers (dark band) ---------- */
.kt-stat strong {
    display: block;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 550;
    line-height: 1.1;
    color: var(--wp--preset--color--brand);
}

/* ---------- Links: animated underline ---------- */
.entry-content p > a:not(.wp-block-button__link),
.entry-content li > a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.entry-content p > a:not(.wp-block-button__link):hover,
.entry-content li > a:hover {
    text-decoration-thickness: 2px;
    text-decoration-color: var(--wp--preset--color--brand);
}

/* ---------- Price tables: mono figures, print rules ---------- */
.kt-price-table table {
    width: 100%;
    border-collapse: collapse;
}

.kt-price-table th,
.kt-price-table td {
    border: 0;
    border-bottom: 1px solid var(--wp--preset--color--line);
    padding: 0.65rem 0.75rem 0.65rem 0;
    text-align: left;
}

.kt-price-table th {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--muted);
}

.kt-price-table td:last-child {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ---------- Live open/closed badge ---------- */
.kt-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: #FFFDF8;
}

.kt-open-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--wp--preset--color--muted);
}

.kt-open-badge--open .kt-open-dot {
    background: var(--wp--preset--color--brand);
    box-shadow: 0 0 0 0 rgba(0, 169, 92, 0.5);
    animation: kt-pulse 2s infinite;
}

.kt-open-badge--open {
    border-color: var(--wp--preset--color--brand);
    color: var(--wp--preset--color--primary);
}

.kt-open-badge--lunch .kt-open-dot {
    background: var(--wp--preset--color--accent);
}

@keyframes kt-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 169, 92, 0.45); }
    70% { box-shadow: 0 0 0 7px rgba(0, 169, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 169, 92, 0); }
}

/* ---------- Branch hours table ---------- */
.kt-hours table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.kt-hours td {
    border: 0;
    border-bottom: 1px solid var(--wp--preset--color--line);
    padding: 0.45rem 0;
}

.kt-hours td:last-child {
    font-family: var(--wp--preset--font-family--mono);
    text-align: right;
    white-space: nowrap;
}

.kt-hours .kt-today td {
    font-weight: 650;
    color: var(--wp--preset--color--primary);
}

/* ---------- Map embed ---------- */
.kt-map iframe {
    width: 100%;
    height: 320px;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 12px;
    display: block;
    filter: sepia(0.18) hue-rotate(60deg) saturate(0.75);
}

/* ---------- Language switcher ---------- */
.kt-lang {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: 1rem;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.kt-lang__item {
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--wp--preset--color--muted);
}

.kt-lang__item--current {
    background: var(--wp--preset--color--primary-dark);
    color: var(--wp--preset--color--base);
}

/* ---------- Topbar ---------- */
.kt-topbar {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.kt-topbar a {
    text-decoration: none;
}

.kt-topbar a:hover {
    text-decoration: underline;
    text-decoration-color: var(--wp--preset--color--brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ---------- Contact Form 7 ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    background: #FFFDF8;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font: inherit;
    transition: border-color 0.15s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
}

.wpcf7 input[type="submit"] {
    background: var(--wp--preset--color--primary-dark);
    color: var(--wp--preset--color--base);
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.9rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wpcf7 input[type="submit"]:hover {
    color: var(--wp--preset--color--base);
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
}

/* ---------- WooCommerce catalog ---------- */
.kt-inquire {
    display: inline-block;
    background: var(--wp--preset--color--primary-dark);
    color: var(--wp--preset--color--base) !important;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.kt-inquire:hover {
    color: var(--wp--preset--color--base) !important;
}

.woocommerce ul.products li.product {
    background: #FFFDF8;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 12px;
    padding: 1.25rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--wp--preset--font-family--body);
    font-weight: 650;
}

.woocommerce ul.products li.product .price {
    font-family: var(--wp--preset--font-family--mono);
    color: var(--wp--preset--color--primary);
}

.woocommerce span.onsale {
    background: var(--wp--preset--color--accent);
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================================================
   ADA polish pass: template-seam removal, per-scroll joy,
   page continuity. (Items 1-3 of the award-gap critique.)
   ============================================================ */

/* ---------- 1a. Quote form states as receipt slips ---------- */
.wpcf7 form .wpcf7-response-output {
    margin: 1.5rem 0 0;
    border: 0;
    padding: 0;
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    display: inline-block;
    position: relative;
    background: #FFFDF8;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1rem 1.3rem 1.2rem 2.6rem;
    box-shadow: 0 10px 26px rgba(11, 61, 46, 0.12);
    transform: rotate(-0.6deg);
    animation: kt-print 0.4s ease;
}

/* sawtooth bottom edge, same as the hero receipt */
.wpcf7 form .wpcf7-response-output::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 7px;
    background:
        linear-gradient(-45deg, #FFFDF8 5px, transparent 0),
        linear-gradient(45deg, #FFFDF8 5px, transparent 0);
    background-size: 10px 10px;
    background-repeat: repeat-x;
}

.wpcf7 form .wpcf7-response-output::before {
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    font-weight: 700;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-left: 3px solid var(--wp--preset--color--brand);
}

.wpcf7 form.sent .wpcf7-response-output::before {
    content: "✓";
    color: var(--wp--preset--color--brand);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    border-left: 3px solid var(--wp--preset--color--accent);
}

.wpcf7 form.failed .wpcf7-response-output::before,
.wpcf7 form.invalid .wpcf7-response-output::before,
.wpcf7 form.aborted .wpcf7-response-output::before,
.wpcf7 form.spam .wpcf7-response-output::before {
    content: "!";
    color: var(--wp--preset--color--accent);
}

.wpcf7-not-valid-tip {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--wp--preset--color--accent);
    margin-top: 0.3rem;
}

.wpcf7 .wpcf7-spinner {
    background-color: var(--wp--preset--color--brand);
}

/* ---------- 1b. File input without native chrome ---------- */
.wpcf7 input[type="file"] {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.8rem;
    color: var(--wp--preset--color--muted);
}

.wpcf7 input[type="file"]::file-selector-button {
    font: inherit;
    font-weight: 500;
    color: var(--wp--preset--color--primary);
    background: transparent;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    margin-right: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wpcf7 input[type="file"]::file-selector-button:hover {
    border-color: var(--wp--preset--color--primary);
    background: #FFFDF8;
}

/* ---------- 1c. WooCommerce product screens ---------- */
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
    border-radius: 8px;
    background: var(--wp--preset--color--soft);
    mix-blend-mode: multiply;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem;
    padding-top: 0.75rem;
}

.woocommerce ul.products li.product .price {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.woocommerce div.product .product_title {
    font-family: var(--wp--preset--font-family--display);
    font-weight: 550;
}

.woocommerce div.product p.price {
    font-family: var(--wp--preset--font-family--mono);
    color: var(--wp--preset--color--primary);
    font-size: 1.3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--wp--preset--color--brand);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: 1px solid var(--wp--preset--color--line);
}

.woocommerce .woocommerce-breadcrumb {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--muted);
}

.woocommerce .related.products > h2,
.woocommerce .woocommerce-tabs h2 {
    font-size: 1.3rem;
}

/* ---------- 1d. Campaigns / news lists ---------- */
ul.wp-block-latest-posts {
    list-style: none;
    padding: 0;
}

ul.wp-block-latest-posts > li {
    background: #FFFDF8;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 10px;
    padding: 1rem 1.3rem;
    margin-bottom: 0.7rem;
}

ul.wp-block-latest-posts > li > a {
    font-weight: 650;
    text-decoration: none;
}

ul.wp-block-latest-posts > li > a:hover {
    text-decoration: underline;
    text-decoration-color: var(--wp--preset--color--brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.wp-block-latest-posts__post-date {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp--preset--color--muted);
}

/* ---------- 2a. Site-wide open badge in the topbar ---------- */
.kt-topbar__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.kt-topbar__status .kt-open-dot {
    width: 0.45rem;
    height: 0.45rem;
}

.kt-topbar__status--open .kt-open-dot {
    background: var(--wp--preset--color--brand);
    animation: kt-pulse 2s infinite;
}

.kt-topbar__status--lunch .kt-open-dot {
    background: var(--wp--preset--color--accent);
}

.kt-topbar__status--closed .kt-open-dot {
    background: #6b7f75;
}

/* ---------- 3. Cross-page continuity (View Transitions) ---------- */
@view-transition {
    navigation: auto;
}

@keyframes kt-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes kt-page-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

::view-transition-old(root) {
    animation: kt-page-out 0.14s ease both;
}

::view-transition-new(root) {
    animation: kt-page-in 0.22s ease both;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* ---------- Colophon (printers credit their type) ---------- */
.kt-colophon {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7d938a;
    margin-top: 0.4rem;
}

/* ---------- Drop cap on the company story ---------- */
.kt-dropcap::first-letter {
    font-family: var(--wp--preset--font-family--display);
    font-weight: 600;
    font-size: 3.4em;
    float: left;
    line-height: 0.82;
    padding: 0.06em 0.12em 0 0;
    color: var(--wp--preset--color--primary);
}

/* ---------- Print stylesheet: a print shop's site prints beautifully ---------- */
@media print {
    body::before,
    .kt-topbar,
    .wp-block-navigation,
    .kt-lang,
    .kt-marquee,
    .kt-calibration,
    .kt-calc__controls,
    .wpcf7,
    .wp-block-buttons,
    .kt-receipt__cta,
    footer .wp-block-columns,
    footer .wp-block-separator {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }

    .wp-block-group,
    .kt-card {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    .kt-card {
        border: 1px solid #999;
        break-inside: avoid;
    }

    h1, h2, h3 {
        color: #000 !important;
        break-after: avoid;
    }

    .kt-price-table table {
        break-inside: avoid;
    }

    .kt-price-table th {
        color: #000;
    }

    .kt-receipt {
        transform: none;
        box-shadow: none;
        border: 1px solid #999;
    }

    a {
        color: #000 !important;
        text-decoration: none;
    }

    /* Footer shrinks to the essentials */
    footer .kt-colophon,
    footer .kt-facts {
        color: #000 !important;
    }
}
