/* Shared, deliberately readable yarn calculator and accessory presentation. */
.yarn-calculator { border: 1px solid var(--line); margin: 18px 0 8px; background: #fff9; }
.yarn-calculator > summary { display: flex; justify-content: space-between; gap: 15px; align-items: center; cursor: pointer; padding: 13px 15px; font-size: 12px; list-style: none; }
.yarn-calculator > summary::-webkit-details-marker { display: none; }
.calculator-toggle { font-size: 19px; line-height: 1; }
.yarn-calculator[open] .calculator-toggle { transform: rotate(45deg); }
.calculator-content { padding: 0 15px 15px; }
.calculator-content > p { font-size: 12px; margin-bottom: 12px; }
.calculator-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(65px, .65fr) minmax(0, 1fr); gap: 9px; }
.calculator-fields label { display: grid; gap: 6px; font-size: 11px; }
.calculator-fields input, .calculator-fields select { min-width: 0; width: 100%; min-height: 43px; padding: 9px; border: 1px solid var(--line); background: white; font-size: 12px; }
.calculator-content .calculator-feedback { font-size: 11px; color: var(--muted); margin: 12px 0; }
.calculator-result { display: grid; gap: 5px; background: var(--tint); padding: 14px; margin: 14px 0; }
.calculator-result > strong { font-size: 22px; font-weight: 500; }
.calculator-result > span { font-size: 12px; }
.calculator-result > p { font-size: 12px; margin: 5px 0; }
.calculator-result small { font-size: 11px; line-height: 1.6; }
.calculator-result button { margin-top: 8px; background: white; min-height: 44px; }
.calculator-content .calculator-basis { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.accessory-jump { display: inline-block; margin: 2px 0 10px; font-size: 11px; }
.product-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; margin: 6px 0 10px; font-size: 11px; }
.product-links a { margin: 0; white-space: nowrap; }
.kompakt .product-info > .product-links { grid-column: 1 / -1 !important; }
.kompakt .product-info > .yarn-calculator, .kompakt .product-info > .accessory-jump { grid-column: 1 / -1; }
.accessory-section { padding: 30px 0 55px; }
.accessory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.accessory-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: white; }
.accessory-photo { height: 175px; padding: 20px; display: grid; place-items: center; background: #f0f0e9; }
.accessory-photo img { width: 100%; height: 135px; object-fit: contain; mix-blend-mode: multiply; }
.accessory-body { padding: 23px; display: flex; flex-direction: column; flex: 1; }
.accessory-body .eyebrow { font-size: 10px; color: var(--warm); }
.accessory-body h3 { font: 26px var(--serif); margin-bottom: 12px; }
.accessory-body > p { font-size: 12px; color: var(--muted); }
.accessory-body label { display: grid; gap: 7px; font-size: 11px; margin-top: auto; }
.accessory-body select { width: 100%; padding: 10px; min-height: 44px; border: 1px solid var(--line); background: white; font-size: 13px; }
.accessory-body .accessory-pack { margin-top: auto; min-height: 44px; display: flex; align-items: center; }
.accessory-price { display: flex; align-items: baseline; gap: 10px; margin: 17px 0 4px; }
.accessory-price strong { font-size: 24px; font-weight: 400; }
.accessory-price span { font-size: 11px; color: var(--muted); }
.accessory-body .accessory-tax { font-size: 11px; margin: 4px 0 17px; }
.accessory-body > button { min-height: 45px; }
.accessory-picture-note { font-size: 11px; color: var(--muted); margin: 18px 0 0; }
.stock-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; margin: 10px 0 3px; font-size: 12px; }
.stock-summary > strong { font-size: 12px; font-weight: 500; }
.stock-summary > small { font-size: 10px; color: var(--muted); }
.stock-summary[data-stock-state="empty"] > strong { color: #866243; }
.stock-summary[data-stock-state="unknown"] > strong { color: var(--muted); }
.stock-batches { flex-basis: 100%; font-size: 11px; }
.stock-batches ul { margin: 5px 0 0; padding-left: 17px; }
.atelier .color-card .color-stock { order: 3; display: block; margin-top: 7px; font-size: 11px; color: var(--accent); }
.atelier .color-card .color-stock[data-stock-state="empty"], .atelier .color-card .color-stock[data-stock-state="unknown"] { color: var(--muted); }
.accessory-body > .stock-summary { margin-top: 15px; }
.kompakt .product-info > [data-selected-stock] { grid-column: 2; }
@media (max-width: 820px) {
  .kompakt .product-info > [data-selected-stock] { grid-column: 1 / -1 !important; }
}
.needle-accessory-link { display: block; text-decoration: none; }
.needle-accessory-link small { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.needle-accessory-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.atelier .facts-with-gauge { display: grid; grid-template-columns: repeat(var(--fact-columns, 4), minmax(0, 1fr)); gap: 16px 0; }
.atelier .facts-with-gauge .fact { min-width: 0; margin: 0; padding: 0 14px; border-right: 1px solid var(--line); }
.atelier .facts-with-gauge .fact:first-child { padding-left: 0; }
.atelier .facts-with-gauge .fact:last-child { border-right: 0; padding-right: 0; }
.atelier .gauge-fact strong { font-size: 17px; white-space: nowrap; }
.gauge-fact small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.atelier.kompakt .facts-with-gauge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atelier.kompakt .facts-with-gauge .fact:nth-child(odd) { padding-left: 0; }
.atelier.kompakt .facts-with-gauge .fact:nth-child(even) { border-right: 0; }
.accessory-strengths { margin-top: auto; }
.accessory-strengths .accessory-range { font-size: 11px; margin-bottom: 8px; color: var(--ink); }
.recommended-strengths { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 14px; }
.recommended-strengths button { min-height: 44px; min-width: 58px; padding: 8px 11px; border: 1px solid var(--accent); background: var(--tint); font-size: 12px; }
.recommended-strengths button[aria-pressed="true"] { background: var(--accent); color: white; }
.accessory-strengths .accessory-compatibility { font-size: 11px; line-height: 1.6; padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--tint); margin: 12px 0 0; }
[data-compatibility="outside"] .accessory-compatibility { border-color: #a66c29; color: #65451f; background: #faf0dc; }
@media (max-width: 1300px) {
  .atelier .facts-with-gauge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atelier .facts-with-gauge .fact:nth-child(odd) { padding-left: 0; }
  .atelier .facts-with-gauge .fact:nth-child(even) { border-right: 0; }
  .atelier .facts-with-gauge .gauge-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .calculator-fields { grid-template-columns: minmax(90px, 1fr) 90px; }
  .calculator-fields label:last-child { grid-column: 1 / -1; }
  .accessory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .accessory-grid { grid-template-columns: 1fr; }
  .accessory-photo { height: 160px; }
  .accessory-photo img { height: 120px; }
  .accessory-section { padding: 24px 0 35px; }
  .accessory-body { padding: 20px; }
  .kompakt .product-info > .yarn-calculator, .kompakt .product-info > .accessory-jump { grid-column: 1 / -1 !important; }
}
