/* The existing Spider palette: neutral black, ember thread and pale silk.
   Mona Sans is the site's display face; the section inherits its body family.
   Color belongs to the written price. Controls stay neutral. */
.sp-thread-price {
    --thread-ground: #0b0b0b;
    --thread-text: #f5f5f5;
    --thread-muted: #b4b4b4;
    --thread-rule: #343434;
    --thread-ember: #ff7951;
    --thread-silk: #e8b8a4;
    position: relative;
    padding: clamp(64px, 7.6vw, 112px) 0 40px;
    background: var(--thread-ground);
    color: var(--thread-text);
    border-block: 1px solid #292929;
    font-family: var(--as-font-1, system-ui, sans-serif);
    scroll-margin-top: 108px;
}

.sp-thread-price *,
.sp-thread-price *::before,
.sp-thread-price *::after { box-sizing: border-box; }

.sp-thread-price__inner {
    width: min(1280px, calc(100% - 96px));
    margin-inline: auto;
}

.sp-thread-price__header {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 48px;
}

.sp-thread-price__header h2 {
    margin: 0;
    color: var(--thread-text);
    font-family: var(--as-font-3, var(--as-font-1, system-ui, sans-serif));
    font-size: clamp(36px, 4.6vw, 64px);
    font-weight: 550;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.sp-thread-price__header > p {
    max-width: 37ch;
    margin: 0 0 4px;
    color: var(--thread-muted);
    font-size: 16px;
    line-height: 1.65;
}

.sp-thread-price__choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--thread-rule);
}

.sp-thread-price__choice {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--thread-muted);
    background: transparent;
    font-size: 16px;
    font-weight: 550;
    line-height: 1.35;
    text-decoration: none;
    transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}

.sp-thread-price__choice:first-child { padding-left: 0; }
.sp-thread-price__choice:last-child { padding-right: 0; }
.sp-thread-price__choice-short { display: none; }
.sp-thread-price__choice-mark { font-size: 24px; line-height: 1; }
.sp-thread-price__choice:hover { color: var(--thread-text); background: #151515; }
.sp-thread-price__choice:active { background: #232323; }
.sp-thread-price__choice[aria-selected="true"] { color: var(--thread-text); border-bottom-color: var(--thread-text); }
.sp-thread-price__choice[aria-selected="true"] .sp-thread-price__choice-mark { transform: rotate(45deg); }

.sp-thread-price :is(a, button, [role="tabpanel"]):focus-visible {
    outline: 2px solid var(--thread-ember);
    outline-offset: 5px;
}

.sp-thread-price__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding-block: 48px;
    scroll-margin-top: 132px;
}

.sp-thread-price__panel + .sp-thread-price__panel { border-top: 1px solid var(--thread-rule); }
.sp-thread-price.is-enhanced .sp-thread-price__panel { border: 0; }
.sp-thread-price__panel[hidden] { display: none; }

.sp-thread-price__visual { position: relative; min-width: 0; }
.sp-thread-price__rate-kind {
    position: relative;
    z-index: 1;
    margin: 0 0 -8px;
    color: var(--thread-text);
    font-size: 16px;
    font-weight: 550;
    line-height: 1.5;
}

.sp-thread-price__drawing { display: block; width: 100%; height: auto; overflow: visible; }
.sp-thread-price__drawing path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sp-thread-price__guide { stroke: #aaa5a2; stroke-width: 6.4; }
.sp-thread-price__ink { stroke: var(--thread-ember); stroke-width: 6.4; }
.sp-thread-price__loose-thread { stroke: #77706b; stroke-width: 1.2; }
.sp-thread-price__tail { stroke: var(--thread-silk); stroke-width: 1.4; }
.sp-thread-price__spider { pointer-events: none; }
.sp-thread-price__legs { stroke: var(--thread-silk); stroke-width: 1.7; }
.sp-thread-price__abdomen { fill: #3c2922; stroke: #ff9069; stroke-width: 1.4; }
.sp-thread-price__drawing .sp-thread-price__body-mark { stroke: #ff9069; stroke-width: 1.2; }
.sp-thread-price__head { fill: #eaa481; stroke: #ffd5bf; stroke-width: .8; }
.sp-thread-price__drawing .sp-thread-price__palps { stroke: var(--thread-silk); stroke-width: 1.2; }
.sp-thread-price__eye { fill: #17120f; }

.sp-thread-price__unit {
    margin: -8px 0 0;
    color: var(--thread-muted);
    font-size: 16px;
    line-height: 1.5;
}

.sp-thread-price__quoted {
    margin: 40px 0;
    color: var(--thread-text);
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 550;
    line-height: 1.1;
}

.sp-thread-price__detail { padding-left: 32px; border-left: 1px solid var(--thread-rule); }
.sp-thread-price__detail h3 {
    margin: 0 0 16px;
    color: var(--thread-text);
    font-family: var(--as-font-3, var(--as-font-1, system-ui, sans-serif));
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 550;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.sp-thread-price__description,
.sp-thread-price__context {
    margin: 0;
    color: var(--thread-muted);
    font-size: 16px;
    line-height: 1.6;
}

.sp-thread-price__facts { margin: 28px 0 20px; }
.sp-thread-price__facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--thread-rule);
    font-size: 16px;
    line-height: 1.5;
}

.sp-thread-price__facts > div:first-child { border-top: 1px solid var(--thread-rule); }
.sp-thread-price__facts dt { color: var(--thread-muted); font-weight: 400; }
.sp-thread-price__facts dd {
    max-width: 60%;
    margin: 0;
    color: var(--thread-text);
    font-weight: 550;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.sp-thread-price__context { font-size: 16px; line-height: 1.55; }
.sp-thread-price__quote {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 28px;
    padding: 16px 24px;
    border: 1px solid var(--thread-text);
    border-radius: 4px;
    color: #111;
    background: var(--thread-text);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 150ms ease-out, color 150ms ease-out, transform 100ms ease-out;
}

.sp-thread-price__quote > span:last-child { font-size: 24px; line-height: 1; }
.sp-thread-price__quote:hover { color: var(--thread-text); background: #242424; }
.sp-thread-price__quote:active { transform: scale(.985); }

.sp-thread-price__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--thread-rule);
    font-size: 16px;
    line-height: 1.5;
}

.sp-thread-price__footer p { max-width: 64ch; margin: 0; color: var(--thread-muted); }
.sp-thread-price__footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    color: var(--thread-text);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: #666;
}
.sp-thread-price__footer a:hover { text-decoration-color: var(--thread-text); }

.sp-thread-price__accessible-price,
.sp-thread-price__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1050px) {
    .sp-thread-price__inner { width: calc(100% - 64px); }
    .sp-thread-price__header { grid-template-columns: 1.2fr 1fr; gap: 32px; }
    .sp-thread-price__header > p { font-size: 16px; }
    .sp-thread-price__panel { grid-template-columns: 1.05fr 1fr; gap: 24px; }
    .sp-thread-price__detail { padding-left: 24px; }
    .sp-thread-price__choice { padding-inline: 16px; font-size: 16px; }
    .sp-thread-price__facts > div { flex-wrap: wrap; gap: 4px 12px; }
    .sp-thread-price__facts dd { max-width: 100%; }
}

@media (max-width: 760px) {
    .sp-thread-price { padding-block: 64px 32px; background: #000; scroll-margin-top: 92px; }
    .sp-thread-price__inner { width: calc(100% - 40px); }
    .sp-thread-price__header { display: block; margin-bottom: 28px; }
    .sp-thread-price__header h2 { font-size: clamp(34px, 7vw, 48px); }
    .sp-thread-price__header > p { max-width: 47ch; margin-top: 20px; }
    .sp-thread-price__choices { gap: 12px; }
    .sp-thread-price__choice { min-height: 56px; padding: 12px 0; gap: 4px; font-size: 16px; }
    .sp-thread-price__choice-full {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .sp-thread-price__choice-short { display: inline; }
    .sp-thread-price__choice-mark { font-size: 24px; }
    .sp-thread-price__panel { grid-template-columns: 1fr; gap: 32px; padding-block: 32px; }
    .sp-thread-price__visual { width: min(100%, 560px); margin-inline: auto; }
    .sp-thread-price__rate-kind { margin-bottom: -4px; }
    .sp-thread-price__unit { margin-top: 0; }
    .sp-thread-price__detail { border-left: 0; padding-left: 0; }
    .sp-thread-price__detail h3 { font-size: 28px; }
    .sp-thread-price__facts > div { flex-wrap: nowrap; font-size: 16px; }
    .sp-thread-price__facts dd { max-width: 58%; }
    .sp-thread-price__context { font-size: 16px; }
    .sp-thread-price__quote { display: flex; width: 100%; min-height: 56px; font-size: 16px; }
    .sp-thread-price__footer { display: block; padding-top: 24px; font-size: 16px; }
    .sp-thread-price__footer a { margin-top: 12px; }
}

@media (max-width: 360px) {
    .sp-thread-price__inner { width: calc(100% - 32px); }
    .sp-thread-price__header h2 { font-size: 32px; }
    .sp-thread-price__choice-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-thread-price__choice,
    .sp-thread-price__quote { transition-duration: 100ms; }
    .sp-thread-price__quote:active { transform: none; }
}

@media (forced-colors: active) {
    .sp-thread-price__choice[aria-selected="true"] { border-bottom-color: Highlight; }
    .sp-thread-price__guide,
    .sp-thread-price__ink,
    .sp-thread-price__tail,
    .sp-thread-price__legs { stroke: CanvasText; }
    .sp-thread-price__quote { border-color: ButtonText; color: ButtonText; background: ButtonFace; }
}
