/* Task D: one shared layout for every footer detail page. */
body.iw-detail { background: #fff; }
body.iw-detail main#main.iw-detail-main {
  display: block;
  width: min(1160px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 128px 0 96px !important;
  background: none !important;
}
body.iw-detail .page-breadcrumb {
  width: 100%; margin: 0 0 26px !important; padding: 0 !important;
  color: #6b7c8c !important; font-size: 13px !important;
}
body.iw-detail .page-breadcrumb a { color: #1f668f !important; }
body.iw-detail .page-breadcrumb [aria-current] { color: #6b7c8c !important; }

body.iw-detail .detail-head {
  padding: 0 0 30px; margin: 0 0 40px; border-bottom: 1px solid #dfe7ee;
}
body.iw-detail .detail-head h1 {
  max-width: 22ch; margin: 0;
  color: #0b1b2b !important;
  font: 700 clamp(34px, 3.6vw, 52px)/1.08 var(--iw-type) !important;
  letter-spacing: -.035em !important;
}
body.iw-detail .detail-effective {
  margin: 14px 0 0; color: #6b7c8c; font-size: 14px; line-height: 1.5;
}
body.iw-detail .detail-intro {
  max-width: 68ch; margin: 18px 0 0; color: #46596c;
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65;
}

body.iw-detail .detail-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
body.iw-detail .detail-layout.no-toc { grid-template-columns: minmax(0, 820px); }

body.iw-detail details.detail-toc {
  position: sticky; top: 104px; display: block; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
}
body.iw-detail details.detail-toc > summary {
  display: block; min-height: 0; margin: 0 0 12px; padding: 0 !important; border: 0 !important;
  color: #6b7c8c !important; font: 600 12px/1.4 var(--iw-type) !important;
  letter-spacing: .14em !important; text-transform: uppercase !important; cursor: default;
}
body.iw-detail details.detail-toc > summary::after { content: none !important; }
body.iw-detail details.detail-toc ul {
  display: flex; flex-direction: column; gap: 9px;
  margin: 0; padding: 0; list-style: none; border-left: 1px solid #dfe7ee;
}
body.iw-detail details.detail-toc li { margin: 0; padding: 0 0 0 14px; font-size: 13.5px; line-height: 1.4; }
body.iw-detail details.detail-toc a { color: #46596c; text-decoration: none; }
body.iw-detail details.detail-toc a:hover { color: #1f668f; text-decoration: underline; text-underline-offset: 3px; }

body.iw-detail .detail-body { min-width: 0; max-width: 820px; color: #33475b; font-size: 17px; line-height: 1.7; }
body.iw-detail .detail-body h2 {
  margin: 46px 0 14px; color: #0b1b2b !important;
  font: 700 clamp(24px, 2.3vw, 32px)/1.2 var(--iw-type) !important; letter-spacing: -.02em !important;
}
body.iw-detail .detail-body h2:first-child { margin-top: 0; }
body.iw-detail .detail-body h3 {
  margin: 30px 0 10px; color: #0b1b2b !important;
  font: 650 20px/1.35 var(--iw-type) !important; letter-spacing: -.01em !important;
}
body.iw-detail .detail-body p { margin: 0 0 18px; color: #33475b; }
body.iw-detail .detail-body ul, body.iw-detail .detail-body ol { margin: 0 0 18px; padding-left: 22px; }
body.iw-detail .detail-body li { margin: 7px 0; color: #33475b; }
body.iw-detail .detail-body a { color: #1f668f; text-underline-offset: 2px; }
body.iw-detail .detail-body strong { color: #0b1b2b; }

/* FAQ accordions inside the same card language as the rest of the store. */
body.iw-detail .detail-body details {
  margin: 0 0 12px !important; padding: 0 !important;
  border: 1px solid #dfe7ee !important; border-radius: 14px !important; background: #fff !important;
  box-shadow: none !important; overflow: hidden;
}
body.iw-detail .detail-body details[open] { box-shadow: 0 10px 30px rgba(15, 34, 56, .07) !important; }
body.iw-detail .detail-body details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 0; margin: 0; padding: 18px 22px !important;
  border: 0 !important; color: #0b1b2b !important;
  font: 600 16.5px/1.4 var(--iw-type) !important; text-transform: none !important; cursor: pointer;
}
body.iw-detail .detail-body details > summary::after { content: "+"; color: #1f668f; font-size: 22px; font-weight: 300; }
body.iw-detail .detail-body details[open] > summary::after { content: "−"; }
body.iw-detail .detail-body details > :not(summary) { margin: 0; padding: 0 22px 18px; }
body.iw-detail .detail-body details > p { margin: 0 !important; }

/* Contact / manual / tracking components. */
body.iw-detail .detail-card {
  margin: 0 0 18px; padding: 24px; border: 1px solid #dfe7ee; border-radius: 16px; background: #f8fafc;
}
body.iw-detail .detail-card p:last-child { margin-bottom: 0; }
body.iw-detail .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
body.iw-detail .detail-actions a, body.iw-detail .detail-actions button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 20px; border: 1px solid #0b1b2b; border-radius: 999px;
  background: #0b1b2b; color: #fff !important; font: 600 14px/1 inherit; text-decoration: none; cursor: pointer;
}
body.iw-detail .detail-actions a.secondary { background: #fff; color: #0b1b2b !important; }
body.iw-detail .detail-form { display: grid; gap: 14px; margin: 8px 0 0; }
body.iw-detail .detail-form label { display: grid; gap: 6px; color: #46596c; font-size: 14px; font-weight: 600; }
body.iw-detail .detail-form :is(input, textarea, select) {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #c9d6e0; border-radius: 10px;
  background: #fff; color: #0b1b2b; font: 400 15px/1.45 inherit;
}
body.iw-detail .detail-form textarea { min-height: 120px; resize: vertical; }
body.iw-detail .detail-form button {
  justify-self: start; min-height: 46px; padding: 0 26px; border: 0; border-radius: 999px;
  background: #0b1b2b; color: #fff; font: 600 15px/1 inherit; cursor: pointer;
}
body.iw-detail .preview-note { margin: 2px 0 0 !important; color: #1f668f !important; font-size: 14px !important; }
body.iw-detail .preview-note[hidden] { display: none !important; }

/* Product cards on the three collection pages reuse products.html .model-grid. */
body.iw-detail .model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
body.iw-detail .model-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid #dfe7ee; border-radius: 18px; background: #fff; }
body.iw-detail .model-card img { width: 100%; height: 230px; object-fit: contain; }
body.iw-detail .model-card h2 { margin: 0; font-size: 24px !important; }
body.iw-detail .model-card h2 a { color: #0b1b2b; text-decoration: none; }
body.iw-detail .model-card p { margin: 0; }
body.iw-detail .model-card .view-btn { align-self: flex-start; margin-top: auto; }

/* Article / list cards (blog, recipes). */
body.iw-detail .card-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
body.iw-detail .card-list > li { margin: 0; padding: 24px; border: 1px solid #dfe7ee; border-radius: 16px; background: #fff; }
body.iw-detail .card-list h2 { margin: 0 0 8px; font-size: 24px !important; }
body.iw-detail .card-list h2 a { color: #0b1b2b; text-decoration: none; }
body.iw-detail .card-list h2 a:hover { color: #1f668f; }
body.iw-detail .card-list .card-date { margin: 0 0 8px; color: #6b7c8c; font-size: 13px; }

@media (max-width: 900px) {
  body.iw-detail main#main.iw-detail-main { width: calc(100% - 32px); padding: 104px 0 64px !important; }
  body.iw-detail .detail-head { padding-bottom: 22px; margin-bottom: 26px; }
  body.iw-detail .detail-layout, body.iw-detail .detail-layout.no-toc { display: block; }
  body.iw-detail details.detail-toc {
    position: static; margin: 0 0 28px !important; padding: 0 0 4px !important;
    border: 0 !important; border-bottom: 1px solid #dfe7ee !important; border-radius: 0 !important;
  }
  body.iw-detail details.detail-toc > summary {
    display: flex; justify-content: space-between; align-items: center; min-height: 44px;
    margin: 0 !important; color: #0b1b2b !important;
    font: 600 14px/1.4 var(--iw-type) !important; letter-spacing: 0 !important; text-transform: none !important;
    cursor: pointer; list-style: none;
  }
  body.iw-detail details.detail-toc > summary::-webkit-details-marker { display: none; }
  body.iw-detail details.detail-toc > summary::after { content: "+"; color: #1f668f; font-size: 20px; }
  body.iw-detail details.detail-toc[open] > summary::after { content: "−"; }
  body.iw-detail details.detail-toc ul { gap: 10px; padding: 8px 0 12px 14px; border-left: 0; }
  body.iw-detail .model-grid { grid-template-columns: 1fr; }
}

body.iw-detail .detail-form fieldset { margin: 4px 0; padding: 16px; border: 1px solid #dfe7ee; border-radius: 12px; }
body.iw-detail .detail-form legend { padding: 0 6px; color: #46596c; font-size: 14px; font-weight: 600; }
body.iw-detail .detail-form label.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: 13.5px; font-weight: 400; line-height: 1.5; }
body.iw-detail .detail-form label.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: 0 0 auto; padding: 0; }
body.iw-detail .form-hint { margin: -8px 0 0; color: #6b7c8c; font-size: 13px; line-height: 1.5; }
body.iw-detail .eyebrow { margin: 0 0 10px; color: #1f668f; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* F1-2: cart recovery / empty commerce bar belong to cart and checkout only. */
body:not([data-page="cart"]):not([data-page="checkout"]) .cart-recovery,
body:not([data-page="cart"]):not([data-page="checkout"]) .commerce-notice:empty,
body.iw-detail .cart-recovery,
body.iw-detail .commerce-notice { display: none !important; }

/* F1-3: cover image at the top of every blog / recipe card. */
body.iw-detail .card-list .card-cover { display: block; margin: 0 0 18px; border-radius: 12px; overflow: hidden; background: #eef4f8; }
body.iw-detail .card-list .card-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* T: guide cover */
body.iw-detail .guide-cover{display:block;width:100%;max-width:760px;height:auto;max-height:420px;object-fit:cover;border-radius:24px;margin:0 0 30px}
