/* Wire + Bead uses the website's shared heading scale and a light gallery palette. */
.wb-art-page, .wb-product-page { min-height: 80vh; padding: 24px 0 72px; color: #15383b; background: #f7f4ed; }
.wb-art-page > .container, .wb-product-shell { max-width: 1280px; }
.wb-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 10px 0 26px; color: #62746d; font-size: .72rem; line-height: 1.5; }
.wb-breadcrumb a, .wb-return a { color: #23696a; text-decoration: none; }
.wb-breadcrumb a:hover, .wb-return a:hover { text-decoration: underline; }
.wb-breadcrumb strong { color: #284e4e; font-weight: 600; }
.wb-art-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; align-items: end; padding: 16px 0 32px; }
.wb-art-intro h1 { margin: 14px 0 0; color: #163b3e; }
.wb-art-welcome > p { max-width: 690px; margin: 0; color: #4a635e; font-size: 1rem; line-height: 1.65; }
.wb-art-intro .wb-preview-note { margin-top: 22px; color: #61726a; font-size: .76rem; line-height: 1.6; }
.wb-preview-note strong { color: #355952; }
.wb-collection, .wb-artist { scroll-margin-top: 110px; }
.wb-collection-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 21px; padding-top: 22px; border-top: 1px solid #d5dfd4; color: #627369; font-size: .73rem; }
.wb-collection-caption > span:first-child { color: #2a5552; font-weight: 600; }
.wb-range-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.wb-card { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.wb-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border: 1px solid #deded3; border-radius: 13px; background: #efe9df; transition: border-color .2s ease; }
.wb-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Visual trim for the identified exports only; source artwork and its proportions stay intact. */
.wb-card-image.is-trimmed img, .wb-main-image-frame.is-trimmed img, .wb-thumb-image-frame.is-trimmed img { transform: scale(1.05); transform-origin: center top; }
.wb-card:hover .wb-card-image { border-color: #5e9688; }
.wb-card-copy { display: grid; gap: 7px; padding: 16px 2px 2px; }
.wb-card-copy small { color: #65766d; font-size: .68rem; line-height: 1.4; }
.wb-card-copy strong { color: #193f41; font-size: 1.13rem; line-height: 1.27; }
.wb-card-copy > span { color: #276a66; font-size: .73rem; }
.wb-card:hover .wb-card-copy > span { text-decoration: underline; }
.wb-overline { display: inline-block; color: #4b7566; font: 600 .67rem/1.5 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.wb-artist { --fs-heading-context: var(--fs-heading-panel); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 30px; align-items: center; max-width: 950px; margin: 64px auto 0; padding-top: 32px; border-top: 1px solid #d5dfd4; }
.wb-artist-portrait { display: block; width: 160px; height: 160px; object-fit: cover; object-position: 50% 25%; filter: grayscale(1); mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse, #000 35%, transparent 73%); mask-image: radial-gradient(ellipse, #000 35%, transparent 73%); }
.wb-artist h2 { margin: 8px 0 13px; color: #244849; }
.wb-artist p { margin: 0; color: #5a6e64; font-size: .79rem; line-height: 1.7; }
.wb-artist .wb-artist-disclosure { margin-top: 13px; font-size: .7rem; line-height: 1.6; }
.wb-artist-disclosure strong { color: #456457; }
.wb-artist > div, .wb-product-artist > div { min-width: 0; }
.wb-artist-signature { display: grid; justify-items: start; width: 240px; max-width: 100%; margin: 10px 0 3px; color: #357369; }
.wb-artist-signature-name { display: block; width: 240px; max-width: 100%; height: auto; object-fit: contain; }
.wb-artist-signature-caption { margin-top: 0; color: #6a8175; font: 500 .56rem/1.4 "JetBrains Mono", monospace; letter-spacing: .035em; text-transform: uppercase; }
.wb-return { margin-top: 34px; text-align: center; font-size: .78rem; }

.wb-product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery heading" "gallery details"; gap: 22px clamp(24px, 5vw, 70px); align-items: start; }
.wb-product-heading { grid-area: heading; min-width: 0; }
.wb-product-heading h1 { margin: 12px 0 18px; color: #163b3e; }
.wb-product-lead { margin: 0; color: #486159; font-size: .97rem; line-height: 1.65; }
.wb-product-gallery { grid-area: gallery; position: sticky; top: 105px; width: 100%; max-width: 520px; min-width: 0; justify-self: center; }
.wb-main-view { --wb-image-size: clamp(160px, calc(100svh - 390px), 420px); margin: 0; overflow: hidden; border: 1px solid #deded3; border-radius: 14px; background: #f0ebe2; touch-action: pan-y pinch-zoom; }
.wb-main-image-frame { position: relative; display: block; width: min(100%, var(--wb-image-size)); aspect-ratio: 1; margin: 0 auto; overflow: hidden; }
.wb-main-image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wb-main-view figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 11px 14px; border-top: 1px solid #e2e4db; color: #455f55; background: #fafaf5; font-size: .66rem; line-height: 1.5; }
.wb-main-view figcaption > span:last-child { color: #67776d; }
.wb-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 380px; margin: 12px auto 0; }
.wb-thumbnails button { display: grid; grid-template-rows: 58px minmax(32px, auto); gap: 4px; align-items: center; min-width: 0; margin: 0; padding: 5px 5px 4px; border: 2px solid #d5ddd2; border-radius: 9px; color: #405e55; background: #fafaf5; font-family: inherit; font-weight: 500; font-size: .64rem; line-height: 1.35; cursor: pointer; }
.wb-thumb-image-frame { display: block; width: min(100%, 58px); height: 58px; margin: 0 auto; overflow: hidden; border-radius: 4px; }
.wb-thumb-image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wb-thumbnails button[aria-pressed="true"] { border-color: #447f70; background: #e5efe5; color: #194f49; }
.wb-thumbnails button:hover { border-color: #447f70; }
.wb-product-copy { grid-area: details; min-width: 0; }
.wb-original-note { display: grid; gap: 6px; margin-bottom: 24px; padding: 16px 18px; border-radius: 9px; color: #56705e; background: #eaf0e4; font-size: .73rem; line-height: 1.55; }
.wb-original-note strong { color: #305642; }
.wb-piece-facts { margin: 0 0 26px; border-top: 1px solid #d5dfd4; }
.wb-piece-facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #d5dfd4; }
.wb-piece-facts dt { color: #69796d; font-size: .69rem; line-height: 1.55; }
.wb-piece-facts dd { margin: 0; color: #355749; font-size: .76rem; line-height: 1.55; }
.wb-sizes { margin: 0 0 26px; padding: 0; border: 0; }
.wb-sizes legend { padding: 0; color: #234d44; font-weight: 650; font-size: .85rem; }
.wb-sizes p { margin: 7px 0 14px; color: #64776a; font-size: .72rem; line-height: 1.55; }
.wb-size-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wb-size-options label { position: relative; cursor: pointer; }
.wb-size-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wb-size-options span { display: flex; min-height: 48px; align-items: center; justify-content: center; padding: 6px; border: 2px solid #cfdace; border-radius: 8px; color: #365e4e; background: #fafbf6; font-weight: 650; font-size: .77rem; }
.wb-size-options input:checked + span { border-color: #447f70; color: #194f49; background: #e5efe5; }
.wb-commission { margin: 0 0 17px; border-top: 1px solid #d5dfd4; border-bottom: 1px solid #d5dfd4; }
.wb-commission summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 52px; padding: 14px 0; list-style: none; color: #2a5e51; font-size: .82rem; font-weight: 600; cursor: pointer; }
.wb-commission summary::-webkit-details-marker { display: none; }
.wb-commission summary::after { content: "+"; flex: none; font-size: 1.15rem; font-weight: 400; }
.wb-commission[open] summary::after { content: "−"; }
.wb-commission-content { padding: 0 0 18px; }
.wb-commission p { margin: 0; color: #5c7065; font-size: .75rem; line-height: 1.6; }
.wb-commission label { display: block; margin: 16px 0 8px; color: #315b4a; font-size: .75rem; font-weight: 600; }
.wb-commission textarea { display: block; width: 100%; min-height: 88px; padding: 12px; border: 1px solid #c5d6c8; border-radius: 9px; color: #244c41; background: #fafbf6; font: inherit; font-size: .76rem; resize: vertical; }
.wb-commission button { margin-top: 12px; }
.wb-commission .wb-copy-status { min-height: 1.2em; margin: 9px 0 0; }
.wb-order-state { margin: 0; color: #67766b; font-size: .72rem; line-height: 1.6; }
.wb-product-artist { --fs-heading-context: var(--fs-heading-panel); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center; max-width: 800px; margin: 60px auto 0; padding-top: 28px; border-top: 1px solid #d5dfd4; }
.wb-product-artist .wb-artist-portrait { width: 96px; height: 96px; }
.wb-product-artist h2 { margin: 0 0 10px; color: #274f48; }
.wb-product-artist p { margin: 0 0 10px; color: #63736a; font-size: .73rem; line-height: 1.65; }
.wb-product-artist .wb-artist-signature { margin: 10px 0 13px; }
.wb-product-artist .wb-artist-signature { width: 205px; }
.wb-product-artist .wb-artist-signature-name { width: 205px; }
.wb-product-artist a { color: #276a60; font-size: .73rem; text-underline-offset: 3px; }
.wb-product-neighbours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 38px; padding-top: 24px; border-top: 1px solid #d5dfd4; }
.wb-product-neighbours a { display: grid; gap: 6px; align-content: start; min-height: 48px; color: #276a60; font-size: .81rem; line-height: 1.45; text-decoration: none; }
.wb-product-neighbours a:last-child { text-align: right; }
.wb-product-neighbours small { color: #67786d; font-size: .67rem; }
.wb-product-neighbours a:hover > span { text-decoration: underline; }
.wb-not-found { padding: 50px 0 100px; }
.wb-art-page a:focus-visible, .wb-product-page a:focus-visible, .wb-thumbnails button:focus-visible, .wb-size-options input:focus-visible + span, .wb-commission :is(button, summary, textarea):focus-visible { outline: 3px solid #427d6b; outline-offset: 3px; }

@media (max-width: 800px) {
  .wb-art-intro { grid-template-columns: 1fr; gap: 22px; }
  .wb-range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px; }
  .wb-product-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "gallery" "details"; gap: 24px; }
  .wb-product-gallery { position: static; max-width: 520px; }
  .wb-product-heading, .wb-product-copy { width: 100%; max-width: 650px; justify-self: center; }
  .wb-product-heading h1 { margin-bottom: 12px; }
  .wb-main-view { --wb-image-size: min(46svh, 380px); }
  .wb-artist { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
  .wb-artist-portrait { width: 120px; height: 120px; }
}
@media (max-width: 430px) {
  .wb-art-page, .wb-product-page { padding-top: 10px; padding-bottom: 48px; }
  .wb-breadcrumb { padding-bottom: 20px; gap: 6px; font-size: .68rem; }
  .wb-art-intro { padding: 18px 0 30px; }
  .wb-art-welcome > p { font-size: .9rem; }
  .wb-range-grid { gap: 24px 11px; }
  .wb-card-image { border-radius: 9px; }
  .wb-card-copy { gap: 5px; padding-top: 11px; }
  .wb-card-copy strong { font-size: .95rem; }
  .wb-card-copy small { font-size: .64rem; }
  .wb-card-copy > span { font-size: .65rem; }
  .wb-artist { grid-template-columns: 1fr; gap: 8px; margin-top: 42px; }
  .wb-artist-portrait { width: 110px; height: 110px; }
  .wb-product-artist { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; margin-top: 38px; align-items: start; }
  .wb-product-artist .wb-artist-portrait { width: 72px; height: 72px; }
  .wb-product-lead { font-size: .86rem; }
  .wb-piece-facts div { grid-template-columns: 100px minmax(0, 1fr); gap: 9px; }
  .wb-size-options { gap: 6px; }
  .wb-size-options span { padding: 4px; font-size: .72rem; }
  .wb-thumbnails { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-card-image { transition: none; }
}
