:root {
    --sfhto-orange: var(--sf-orange, #ed5b0b);
    --sfhto-orange-dark: var(--sf-orange-dark, #c94500);
    --sfhto-green: var(--sf-green, #274b2b);
    --sfhto-green-dark: var(--sf-green-dark, #17331d);
    --sfhto-cream: var(--sf-cream, #f7f4ed);
    --sfhto-charcoal: var(--sf-charcoal, #1c221d);
    --sfhto-muted: var(--sf-muted, #687067);
    --sfhto-line: var(--sf-line, #e5e8e3);
    --sfhto-white: #fff;
}

.sfhto-active .sf-page-header { display: none !important; }
.sfhto-active .sf-page-container { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.sfhto-active .sf-entry { margin: 0 !important; }
.sfhto-active .sf-entry-content { margin: 0 !important; max-width: none !important; }
.sfhto-active .sf-entry-content > * { max-width: none; }
.sfhto-page { color: var(--sfhto-charcoal); overflow: clip; }
.sfhto-container { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.sfhto-page h1,.sfhto-page h2,.sfhto-page h3 { margin-top: 0; }
.sfhto-page a { text-decoration: none; }

.sfhto-hero { padding: 86px 0 72px; background: linear-gradient(120deg,#132d19 0%,#234b2b 62%,#315e38 100%); color: #fff; }
.sfhto-hero__inner { max-width: 940px; }
.sfhto-eyebrow { margin: 0 0 12px; color: #f7c06f; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sfhto-eyebrow--orange { color: var(--sfhto-orange); }
.sfhto-hero h1 { max-width: 820px; margin-bottom: 18px; color: #fff; font-size: clamp(2.5rem,6vw,4.8rem); line-height: 1.02; }
.sfhto-hero__lead { max-width: 780px; margin-bottom: 28px; color: rgba(255,255,255,.86); font-size: 1.13rem; }
.sfhto-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sfhto-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .85rem 1.25rem; border-radius: 9px; font-weight: 850; text-decoration: none !important; transition: .18s ease; }
.sfhto-button:hover { transform: translateY(-1px); }
.sfhto-button--orange { background: var(--sfhto-orange); color: #fff !important; box-shadow: 0 8px 20px rgba(237,91,11,.22); }
.sfhto-button--orange:hover { background: var(--sfhto-orange-dark); }
.sfhto-button--light { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.1); color: #fff !important; }
.sfhto-button--light:hover { background: #fff; color: var(--sfhto-charcoal) !important; }

.sfhto-before { padding: 26px 0; background: var(--sfhto-green-dark); color: #fff; }
.sfhto-before h2 { margin-bottom: 16px; color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.sfhto-before__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.sfhto-before__grid > div { display:flex; align-items:flex-start; gap:9px; padding:11px 13px; border:1px solid rgba(255,255,255,.12); border-radius:10px; background:rgba(255,255,255,.05); }
.sfhto-before__grid span { color:#f3ad21; font-weight:900; }
.sfhto-before__grid p { margin:0; color:rgba(255,255,255,.86); font-size:.88rem; line-height:1.4; }

.sfhto-stepnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--sfhto-line); box-shadow: 0 4px 18px rgba(20,35,24,.05); backdrop-filter: blur(10px); }
.admin-bar .sfhto-stepnav { top: 32px; }
.sfhto-stepnav__inner { min-height: 68px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items:stretch; }
.sfhto-stepnav a { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 8px; color:var(--sfhto-charcoal); font-size:.82rem; font-weight:800; text-align:center; }
.sfhto-stepnav a:hover { background:var(--sfhto-cream); color:var(--sfhto-orange); }
.sfhto-stepnav span { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--sfhto-green); color:#fff; font-size:.72rem; }

.sfhto-section { padding: 84px 0; scroll-margin-top: 84px; }
.sfhto-section--white { background:#fff; }
.sfhto-section--cream { background:var(--sfhto-cream); }
.sfhto-section--green { background:var(--sfhto-green); color:#fff; }
.sfhto-section--green h2,.sfhto-section--green h3 { color:#fff; }
.sfhto-section--green .sfhto-lead { color:rgba(255,255,255,.82); }
.sfhto-section__grid { display:grid; grid-template-columns:90px minmax(0,1fr); gap:42px; align-items:start; }
.sfhto-stepnum { position:sticky; top:100px; display:grid; place-items:center; width:70px; height:70px; border-radius:18px; background:var(--sfhto-green-dark); color:#fff; font-size:1.2rem; font-weight:950; box-shadow:0 10px 25px rgba(20,35,24,.14); }
.sfhto-section--green .sfhto-stepnum { background:#fff; color:var(--sfhto-green); }
.sfhto-section__content { max-width: 990px; }
.sfhto-section__content > h2 { max-width:840px; margin-bottom:16px; font-size:clamp(2rem,4vw,3.05rem); }
.sfhto-lead { max-width:880px; color:var(--sfhto-muted); font-size:1.05rem; }

.sfhto-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:30px 0; }
.sfhto-choice-grid a { display:flex; flex-direction:column; gap:5px; padding:22px; border:1px solid var(--sfhto-line); border-radius:14px; color:var(--sfhto-charcoal); background:#fff; box-shadow:0 6px 20px rgba(20,35,24,.05); }
.sfhto-choice-grid a:hover { border-color:#cad4c9; box-shadow:0 12px 30px rgba(20,35,24,.1); }
.sfhto-choice-grid span { color:var(--sfhto-muted); font-size:.85rem; }
.sfhto-choice-grid strong { color:var(--sfhto-green); }
.sfhto-note { padding:16px 18px; border-left:4px solid var(--sfhto-orange); border-radius:8px; background:#fff6f0; color:#59493f; }
.sfhto-note--dark { margin-top:24px; border-color:#f3ad21; background:rgba(255,255,255,.09); color:#fff; }

.sfhto-quantity-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:32px 0 20px; }
.sfhto-quantity-card { overflow:hidden; display:flex; flex-direction:column; min-width:0; border:1px solid #dfe3dc; border-radius:16px; background:#fff; box-shadow:0 7px 24px rgba(20,35,24,.06); }
.sfhto-quantity-card__visual { height:154px; display:flex; align-items:flex-end; justify-content:center; padding:18px 18px 14px; background:linear-gradient(#f4f0e7,#eee8dc); border-bottom:1px solid #e4dfd5; }
.sfhto-page .sfhto-quantity-stack { box-sizing:border-box; width:min(100%,190px) !important; max-width:190px; height:118px; display:flex !important; flex-direction:row !important; align-items:flex-end !important; justify-content:center !important; gap:3px !important; padding:8px 10px; margin:0 auto; border-radius:8px 8px 4px 4px; background:linear-gradient(90deg,rgba(80,50,25,.09),rgba(255,255,255,.12),rgba(80,50,25,.06)); border-bottom:4px solid #7a5a39; }
.sfhto-page .sfhto-quantity-stack__row { box-sizing:border-box; min-width:0 !important; flex:1 1 0 !important; height:88px; display:flex !important; flex-direction:column-reverse !important; align-items:stretch !important; justify-content:flex-start !important; gap:2px !important; padding:0 1px !important; margin:0 !important; border:0 !important; background:transparent !important; }
.sfhto-page .sfhto-quantity-stack__line { box-sizing:border-box; display:block !important; flex:0 0 clamp(3px, calc(64px / var(--sf-row-lines, 4)), 7px) !important; width:100% !important; min-width:0 !important; max-width:none !important; min-height:3px !important; height:auto !important; margin:0 !important; padding:0 !important; border:0 !important; border-radius:4px; background:repeating-linear-gradient(90deg,#704a2b 0 9px,#bf8752 9px 18px,#8a5a35 18px 28px,#d19a61 28px 38px,#6b472b 38px 48px); box-shadow:inset 0 1px rgba(255,255,255,.35),0 1px 1px rgba(55,35,18,.18); }
.sfhto-quantity-card__body { padding:18px; }
.sfhto-quantity-card h3 { margin:0 0 5px; font-size:1.12rem; }
.sfhto-quantity-card strong { display:block; margin-bottom:6px; color:var(--sfhto-orange); font-size:.86rem; }
.sfhto-quantity-card p { margin:0; color:var(--sfhto-muted); font-size:.86rem; line-height:1.45; }
.sfhto-small-note { margin:10px 0 0; color:var(--sfhto-muted); font-size:.86rem; }

.sfhto-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:30px; }
.sfhto-info-grid article,.sfhto-confirm-grid article { display:flex; gap:14px; padding:20px; border:1px solid var(--sfhto-line); border-radius:14px; background:#fff; }
.sfhto-info-grid article > span,.sfhto-confirm-grid article > span { flex:0 0 auto; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#eaf2e9; color:var(--sfhto-green); font-weight:950; }
.sfhto-info-grid h3,.sfhto-confirm-grid h3 { margin:0 0 4px; font-size:1rem; }
.sfhto-info-grid p,.sfhto-confirm-grid p { margin:0; color:var(--sfhto-muted); font-size:.9rem; }

.sfhto-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin-top:30px; }
.sfhto-week > div { min-height:86px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border-radius:12px; font-weight:850; }
.sfhto-week span { font-size:.84rem; }
.sfhto-week b { font-size:1.3rem; }
.sfhto-week .on { background:#dff2df; color:#1f6528; border:1px solid #a8d7ad; }
.sfhto-week .off { background:rgba(255,255,255,.09); color:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.12); }

.sfhto-match-card { margin-top:32px; padding:30px; border-radius:18px; background:var(--sfhto-green-dark); color:#fff; box-shadow:0 14px 34px rgba(20,35,24,.16); }
.sfhto-match-card h3 { margin:18px 0 10px; color:#fff; font-size:1.5rem; }
.sfhto-match-card p:not(.sfhto-eyebrow) { color:rgba(255,255,255,.82); }
.sfhto-match-card__head { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.sfhto-match-card__head span { padding:6px 10px; border-radius:999px; background:var(--sfhto-orange); color:#fff; font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.sfhto-match-card__head strong { color:#f3d5a3; font-size:.9rem; }
.sfhto-match-card ul { padding-left:20px; color:rgba(255,255,255,.9); }
.sfhto-match-card a { color:#fff; font-weight:850; text-decoration:underline; text-underline-offset:3px; }

.sfhto-confirm-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:30px; }
.sfhto-final { padding:62px 0; background:#182119; color:#fff; }
.sfhto-final__inner { display:grid; grid-template-columns:1.25fr .75fr; gap:40px; align-items:center; }
.sfhto-final h2 { color:#fff; margin-bottom:10px; }
.sfhto-final p:not(.sfhto-eyebrow) { color:rgba(255,255,255,.75); margin-bottom:0; }
.sfhto-final .sfhto-actions { justify-content:flex-end; }

@media (max-width: 900px) {
    .sfhto-before__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sfhto-stepnav__inner { overflow-x:auto; grid-template-columns:repeat(6,minmax(130px,1fr)); scrollbar-width:none; }
    .sfhto-stepnav__inner::-webkit-scrollbar { display:none; }
    .sfhto-section__grid { grid-template-columns:64px minmax(0,1fr); gap:24px; }
    .sfhto-stepnum { width:56px; height:56px; border-radius:14px; }
    .sfhto-quantity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sfhto-confirm-grid { grid-template-columns:1fr; }
    .sfhto-final__inner { grid-template-columns:1fr; }
    .sfhto-final .sfhto-actions { justify-content:flex-start; }
}

@media (max-width: 600px) {
    .admin-bar .sfhto-stepnav { top:46px; }
    .sfhto-container { width:min(calc(100% - 28px),1180px); }
    .sfhto-hero { padding:58px 0 50px; }
    .sfhto-hero h1 { font-size:clamp(2.35rem,12vw,3.5rem); }
    .sfhto-before__grid { grid-template-columns:1fr; }
    .sfhto-section { padding:58px 0; }
    .sfhto-section__grid { grid-template-columns:1fr; gap:18px; }
    .sfhto-stepnum { position:static; width:50px; height:50px; }
    .sfhto-choice-grid { grid-template-columns:1fr; }
    .sfhto-quantity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .sfhto-quantity-card__visual { height:126px; padding:10px; }
    .sfhto-page .sfhto-quantity-stack { height:100px; padding:6px; gap:2px !important; }
    .sfhto-page .sfhto-quantity-stack__row { height:74px; }
    .sfhto-page .sfhto-quantity-stack__line { flex-basis:5px !important; }
    .sfhto-quantity-card__body { padding:13px; }
    .sfhto-quantity-card h3 { font-size:.98rem; }
    .sfhto-quantity-card strong,.sfhto-quantity-card p { font-size:.77rem; }
    .sfhto-info-grid { grid-template-columns:1fr; }
    .sfhto-week { gap:4px; }
    .sfhto-week > div { min-height:70px; border-radius:8px; }
    .sfhto-week span { font-size:.69rem; }
    .sfhto-match-card { padding:22px; }
    .sfhto-actions { width:100%; }
    .sfhto-actions .sfhto-button { flex:1 1 100%; }
}

/* v1.0.5 fixed quantity artwork: independent of legacy row/line markup. */
.sfhto-quantity-card__visual .sfhto-fixed-stack {
    display:block !important;
    width:min(100%,220px) !important;
    height:104px !important;
    max-width:220px !important;
    margin:0 auto !important;
    overflow:visible !important;
}
.sfhto-quantity-card__visual > .sfhto-quantity-stack { display:none !important; }
@media (max-width:600px) {
    .sfhto-quantity-card__visual .sfhto-fixed-stack {
        width:min(100%,190px) !important;
        height:auto !important;
    }
}
