/* Scoped to the marked portrait-stamp preview page. */
.hazerod-stamp-preview-page #primary { width: 100%; float: none; margin-right: 0; }
.hazerod-stamp-preview-page .site-main { padding-top: 12px; }
.hazerod-stamp-preview-page .entry-content { margin-bottom: 0; }
.hazerod-stamp-preview-page .site-header > .col-full { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hazerod-stamp-preview-page .site-header .site-branding { float: none; margin: 0 0 22px; }
.hazerod-stamp-preview-page .site-header .site-title { margin: 0; }
.hazerod-stamp-preview-page .site-header .site-description { margin: 4px 0 0; }
.hz-stamp-header-link { display: inline-flex; gap: 20px; align-items: center; margin-bottom: 22px; font-size: 12px; text-decoration: none; }
.hz-stamp-public-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.hz-stamp-public-footer strong { font-size: 20px; letter-spacing: -.04em; font-weight: 550; }
.hz-stamp-public-footer p { margin: 7px 0 0; font-size: 11px; color: var(--shop-muted); }
.hz-stamp-public-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; }
.hz-stamp-public-footer a { color: var(--shop-ink); text-decoration: none; }
.hazerod-stamp-preview-page .storefront-handheld-footer-bar { display: none; }
.hz-stamp { --hz-blue: #416fa1; padding-bottom: 34px; }
.hz-stamp [hidden] { display: none !important; }
.hz-stamp-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 68px); align-items: center; padding: 18px 0 58px; }
.hz-stamp-art { position: relative; margin: 0; background: #eaf0ea; border: 1px solid #dbe4d9; border-radius: 6px; overflow: hidden; }
.hz-stamp-art-kicker { display: block; padding: 25px 27px 0; color: #49665b; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.hz-stamp-art svg { display: block; width: 100%; height: auto; }
.hz-stamp-art figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 20px; margin: 0; padding: 0 27px 23px; color: #536c60; font-size: 10px; }
.hz-stamp-art figcaption span { color: #65776b; }
.hz-stamp-intro .shop-eyebrow { margin-bottom: 21px; }
.hz-stamp h1 { margin: 0 0 21px; font-size: clamp(2.7rem, 4.7vw, 4.1rem); font-weight: 550; letter-spacing: -.06em; line-height: 1.05; }
.hz-stamp-title-dot { color: var(--hz-blue); }
.hz-stamp-lead { margin: 0 0 12px; font-size: 17px; letter-spacing: -.02em; color: var(--shop-ink); }
.hz-stamp-description { max-width: 390px; margin-bottom: 23px; font-size: 14px; line-height: 1.8; color: var(--shop-muted); }
.hz-stamp-version { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 25px; padding: 9px 14px; border: 1px solid var(--shop-line); border-radius: 3px; background: #fffefa; font-size: 12px; }
.hz-stamp-version strong { margin-left: 10px; font-weight: 600; }
.hz-stamp-swatch { width: 17px; height: 17px; border-radius: 50%; background: var(--hz-blue); border: 3px solid #e2eaf3; box-shadow: 0 0 0 1px #bdcddd; }
.hz-stamp-availability { display: flex; gap: 12px; margin: 0 0 24px; padding: 18px 0; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); font-size: 12px; }
.hz-stamp-availability > span { font-size: 22px; line-height: 1.4; color: var(--shop-accent); }
.hz-stamp-availability strong, .hz-stamp-availability div > span { display: block; }
.hz-stamp-availability strong { font-weight: 600; }
.hz-stamp-availability div > span { margin-top: 3px; color: var(--shop-muted); }
.hz-stamp-jump { display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; padding: 7px 0; border-bottom: 1px solid #a8bfb3; text-decoration: none; font-size: 13px; font-weight: 550; }
.hz-stamp-jump span { font-size: 20px; }
.hz-stamp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); border-top: 1px solid var(--shop-line); padding: 44px 0 40px; scroll-margin-top: 24px; }
.hz-stamp-step { margin: 0 0 14px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--shop-accent); }
.hz-stamp-editor h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.16; font-weight: 550; margin: 0 0 13px; }
.hz-stamp-editor > p:not(.hz-stamp-step):not(.hz-stamp-status):not(.hz-stamp-error) { max-width: 390px; font-size: 13px; color: var(--shop-muted); line-height: 1.8; }
.hz-stamp-file-picker { margin: 24px 0 15px; }
.hz-stamp-choose { display: flex; gap: 18px; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 14px 18px; font-size: 13px; text-align: left; line-height: 1.5; }
.hz-stamp-choose:disabled { opacity: .55; cursor: not-allowed; }
.hz-stamp-file-help { font-size: 10px; color: var(--shop-muted); margin: 8px 0 0; }
.hz-stamp fieldset { background: transparent; padding: 19px 0 0; border: 0; border-top: 1px solid var(--shop-line); margin: 23px 0 0; }
.hz-stamp legend { font-size: 12px; font-weight: 600; padding: 0 12px 0 0; }
.hz-stamp-controls:disabled { opacity: .45; }
.hz-stamp-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 14px; margin-bottom: 12px; }
.hz-stamp-control label, .hz-stamp-control output { font-size: 11px; margin: 0; font-weight: 500; }
.hz-stamp-control output { color: var(--shop-muted); font-variant-numeric: tabular-nums; }
.hz-stamp input[type="range"] { grid-column: 1 / -1; width: 100%; min-height: 30px; margin: 0; padding: 3px 0; accent-color: var(--shop-accent); cursor: pointer; background: transparent; }
.hz-stamp input:disabled { cursor: not-allowed; }
.hz-stamp-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.hz-stamp-actions button { flex: 1 1 auto; min-height: 44px; background: transparent; color: var(--shop-ink); border: 1px solid #bdcdc1; padding: 9px 10px; font-size: 11px; line-height: 1.5; }
.hz-stamp-actions button:hover:not(:disabled) { background: var(--shop-soft); border-color: var(--shop-accent); }
.hz-stamp-actions button:disabled { cursor: not-allowed; }
.hz-stamp-status { min-height: 38px; margin: 16px 0 0; color: var(--shop-muted); font-size: 11px; line-height: 1.7; }
.hz-stamp-error { padding: 12px 14px; border-left: 3px solid #a63731; border-radius: 3px; color: #7b2521; background: #fff0ec; font-size: 12px; line-height: 1.6; margin: 16px 0; }
.hz-stamp-proof { padding: 23px; background: #f0f3ed; border: 1px solid var(--shop-line); border-radius: 5px; align-self: start; }
.hz-stamp-proof-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 9px; letter-spacing: .12em; margin-bottom: 18px; color: #587166; }
.hz-stamp-proof-heading span:last-child { letter-spacing: .01em; }
.hz-stamp-canvas-wrap { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #fffdf7; border: 1px solid #e1e6db; border-radius: 3px; }
.hz-stamp-canvas-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.hz-stamp-placeholder { width: 100%; text-align: center; padding: 18px; }
.hz-stamp-placeholder svg { display: block; width: 116px; max-width: 45%; height: auto; margin: 0 auto 18px; color: #91a899; }
.hz-stamp-placeholder strong, .hz-stamp-placeholder span { display: block; }
.hz-stamp-placeholder strong { font-size: 13px; font-weight: 500; }
.hz-stamp-placeholder span { margin-top: 6px; font-size: 11px; color: var(--shop-muted); }
.hz-stamp-proof-note { margin: 17px 0 0; font-size: 11px; line-height: 1.7; color: var(--shop-muted); }
.hz-stamp-privacy { display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 25px 0 0; border-top: 1px solid var(--shop-line); }
.hz-stamp-privacy > span { font-size: 28px; color: var(--shop-accent); line-height: 1; }
.hz-stamp-privacy h2 { font-size: 16px; margin: 0 0 8px; letter-spacing: -.02em; }
.hz-stamp-privacy p { max-width: 720px; font-size: 12px; line-height: 1.8; margin: 0; color: var(--shop-muted); }
@media (max-width: 800px) {
    .hz-stamp-hero { grid-template-columns: 1fr 1fr; gap: 25px; }
    .hz-stamp h1 { font-size: 2.8rem; }
    .hz-stamp-lead { font-size: 15px; }
    .hz-stamp-workspace { gap: 28px; }
    .hz-stamp-proof { padding: 16px; }
}
@media (max-width: 650px) {
    .hazerod-stamp-preview-page .site-header > .col-full { flex-wrap: nowrap; gap: 15px; }
    .hazerod-stamp-preview-page .site-header .site-branding { max-width: none; }
    .hz-stamp-header-link { font-size: 11px; gap: 9px; }
    .hz-stamp-public-footer { display: block; }
    .hz-stamp-public-footer nav { margin-top: 20px; font-size: 11px; }
    .hz-stamp-hero { grid-template-columns: 1fr; gap: 27px; padding-top: 6px; padding-bottom: 32px; }
    .hz-stamp-art { max-width: 490px; width: 100%; }
    .hz-stamp-art svg { max-height: 340px; }
    .hz-stamp-art-kicker { padding: 20px 22px 0; font-size: 9px; }
    .hz-stamp-art figcaption { padding: 0 22px 18px; }
    .hz-stamp-intro .shop-eyebrow { margin-bottom: 17px; }
    .hz-stamp h1 { font-size: clamp(2.7rem, 10vw, 3.5rem); margin-bottom: 17px; }
    .hz-stamp-description { max-width: 100%; }
    .hz-stamp-version { margin-bottom: 19px; }
    .hz-stamp-workspace { grid-template-columns: 1fr; padding-top: 29px; gap: 21px; }
    .hz-stamp-proof { max-width: 490px; width: 100%; }
    .hz-stamp-status { min-height: 0; }
    .hz-stamp-privacy { grid-template-columns: 20px 1fr; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .hz-stamp *, .hz-stamp *::before, .hz-stamp *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Legible crop instructions and controls; the preview remains browser-local. */
.hazerod-public-catalog .hz-stamp { --shop-muted: #475c50; }
.hazerod-public-catalog .hz-stamp-art figcaption,
.hazerod-public-catalog .hz-stamp-art figcaption span,
.hz-stamp :is(.hz-stamp-step, .hz-stamp-file-help, .hz-stamp-proof-heading, .hz-stamp-status, .hz-stamp-proof-note) {
    color: #475c50; font-size: 12px; line-height: 1.7;
}
.hz-stamp-control label, .hz-stamp-control output { font-size: 13px; }
.hz-stamp-actions button { font-size: 13px; }
.hz-stamp :is(button, input, a, summary):focus-visible { outline: 3px solid #1e4b3e; outline-offset: 4px; }
.hz-stamp-choose { text-align: start; }
.hz-stamp-version strong { margin-left: 0; margin-inline-start: 10px; }
.hz-stamp input[type=range] { min-height: 36px; }
@media (max-width: 650px) {
    .hz-stamp-art-kicker { font-size: 11px; }
    .hz-stamp-hero { gap: 22px; }
    .hz-stamp-workspace { padding-top: 24px; }
}
