/* R3.17: white reading paper, blush chapter markers and measured ink bands.
   Deliberately scoped to public surfaces. No setup, account, commission or owner CSS. */
body[data-sfw-surface="r317"] {
  --sfw-r317-white:#fff;
  --sfw-r317-ink:#242126;
  --sfw-r317-blush:#f5dfe9;
  --sfw-r317-edge:#d9c8cf;
  --sfw-paper-canvas:#fff;
  --sfw-paper:#fff;
  --sfw-paper-soft:#fbf5f8;
  --sfw-paper-shadow:3px 4px 0 #e7cfd9,0 8px 18px #28282807;
  background:#fff;
}
body[data-sfw-surface="r317"] :is(.commerce-catalogue-shell,.customer-reading-shell,.sfw-studio-main) {background:#fff;}

/* A coloured title plane ends before the white content begins. */
body.homepage-remaster #plans-extras,
body.homepage-remaster #information,
body.homepage-remaster #collections-directory,
body.homepage-remaster #customer-contact {background:#fff;background-image:none;}
body.homepage-remaster #plans-extras .plans-intro {
  padding:28px 32px;margin-bottom:28px;border:1px solid #dfbdcd;border-bottom:3px solid #242126;
  border-radius:12px 12px 3px 3px;background:#f5dfe9;box-shadow:3px 4px 0 #efe1e7;
}
body.homepage-remaster #plans-extras .plans-intro :is(h2,p) {color:#242126;}
body.homepage-remaster #plans-extras .plans-intro .eyebrow {color:#515151;}
body.homepage-remaster #information .information-intro {padding-bottom:24px;border-bottom:2px solid #242126;}
body.homepage-remaster #collections-directory .all-products-directory__intro {
  gap:18px;padding:22px 24px;margin-bottom:24px;border:1px solid #d9c8cf;border-left:6px solid #242126;
  border-radius:4px 10px 10px 4px;background:#fbf5f8;
}
body.homepage-remaster #collections-directory .all-products-directory__intro>p {color:#62545f;}
body.homepage-remaster #collections-directory .r317-tip-jump {
  display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid #b78a9e;
  border-radius:7px;background:#fff;color:#4c4c4c;text-decoration:none;font:600 13px/1.5 var(--font-body,system-ui);
}

/* Three columns share row tracks; a tall original poster cannot push one
   column's next card below its neighbours. DOM reading order remains grouped. */
body.homepage-remaster #all-products-directory-groups .r7-directory-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px;align-items:stretch;
}
body.homepage-remaster #all-products-directory-groups .r39-directory-group {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px repeat(3,minmax(232px,1fr));
  gap:18px;align-content:stretch;min-width:0;
}
body.homepage-remaster #all-products-directory-groups .r39-directory-group>h4 {
  padding:0 0 11px;border-bottom:2px solid #242126;font:600 14px/1.4 var(--font-body,system-ui);
}
body.homepage-remaster #all-products-directory-groups .r39-directory-group>h4 span {
  border:0;border-radius:6px;background:#242126;color:#fff;
}
body.homepage-remaster #all-products-directory-groups [data-r6-family] {
  display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);align-items:start;gap:14px;
  min-height:232px;padding:14px;border-radius:10px;background:#fff;
}
body.homepage-remaster #all-products-directory-groups .oct-directory-art {
  align-self:start;max-height:none;padding:0;background:#fff;border-radius:6px;
}
body.homepage-remaster #all-products-directory-groups .oct-directory-art--plans {gap:4px;padding:4px;}
body.homepage-remaster #all-products-directory-groups .oct-directory-art>.r5-art-frame {
  width:min(100%,calc(202px * var(--directory-art-ratio,3/4)));height:auto;max-height:none;margin-inline:auto;
}
/* A long authored poster stays whole inside a deliberate compact frame. */
body.homepage-remaster #all-products-directory-groups .oct-directory-art>img {
  width:100%;height:202px;min-height:0;max-height:202px;object-fit:contain;background:#fbf5f8;
}
body.homepage-remaster #all-products-directory-groups .r7-directory-copy {padding:0;gap:8px;}
body.homepage-remaster #all-products-directory-groups .r7-directory-copy h3 {font-size:22px;line-height:1.22;}
body.homepage-remaster #all-products-directory-groups .r7-directory-copy p {font-size:13px;line-height:1.65;}
body.homepage-remaster #all-products-directory-groups .r7-directory-copy>:last-child {margin-top:auto;}
@supports(grid-template-rows:subgrid) {
  body.homepage-remaster #all-products-directory-groups .r39-directory-group {
    grid-row:span 4;grid-template-rows:subgrid;
  }
}

/* A real optional tip destination is a separate, visible studio note. */
body.homepage-remaster #all-products-directory-groups .r39-directory-notes {display:block;margin-top:26px;padding:0;border:0;}
body[data-sfw-surface="r317"] .r317-tip-card {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 28px;
  padding:22px 26px;border:1px solid #242126;border-radius:10px;background:#242126;color:#fff;
  box-shadow:3px 4px 0 #e7cfd9;
}
body[data-sfw-surface="r317"] .r317-tip-card h3 {margin:0 0 5px;color:#fff;font:400 25px/1.2 var(--font-label,serif);}
body[data-sfw-surface="r317"] .r317-tip-card p {max-width:68ch;margin:0;color:#e4d9df;font:400 13px/1.65 var(--font-body,system-ui);}
body[data-sfw-surface="r317"] .r317-tip-card .r317-tip-card__action {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;
  border:1px solid #f5dfe9;border-radius:7px;background:#f5dfe9;color:#272727;text-decoration:none;
  font:600 13px/1.5 var(--font-body,system-ui);white-space:nowrap;
}
body[data-sfw-surface="r317"] .r317-tip-card__status {color:#e4d9df;font:400 12px/1.6 var(--font-body,system-ui);}
body[data-sfw-surface="r317"] .r317-tip-card a:focus-visible {outline:3px solid #fff;outline-offset:4px;}

/* P6 facts are one compact component, with no inherited side-only rails. */
body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts {
  min-width:0;margin:0 0 16px;border:1px solid #c9b9c1;border-radius:8px;overflow:hidden;background:#fff;
}
body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts>h5 {
  margin:0;padding:9px 13px;background:#242126;color:#fff;font:600 12px/1.5 var(--font-body,system-ui);
  letter-spacing:.055em;
}
body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts .r5-plan-facts {
  gap:0;margin:0;padding:0 13px;border:0;border-radius:0;background:#fff;color:#514650;box-shadow:none;
}
body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts .r5-plan-facts li {padding:11px 0;gap:10px;}
body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts .r5-plan-facts li+li {border-top:1px solid #eadfe4;}
body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts .commerce-line-icon {flex:none;color:#606060;}

/* Lower-page rhythm returns: pale guidance, an ink FAQ chapter, white contact. */
body.homepage-remaster #customer-journey {
  background:#fbf5f8;border-top:3px solid #242126;border-bottom:1px solid #dfcbd5;box-shadow:none;
}
body.homepage-remaster #customer-journey .public-journey__intro {border-bottom:1px solid #c9acba;}
body.homepage-remaster #customer-journey #after-payment {
  background:#fff;border:1px solid #cdb7c2;border-left:0;
  grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);align-items:start;
}
body.homepage-remaster #customer-journey #after-payment>*,
body.homepage-remaster #after-payment .after-payment__layout>* {min-width:0;}
body.homepage-remaster #after-payment .after-payment__layout {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.homepage-remaster #customer-journey #after-payment .r3-section-heading {
  margin:0;padding:22px 28px;background:#242126;border-radius:10px;align-self:start;
}
body.homepage-remaster #after-payment :is(h2,h3,p) {overflow-wrap:anywhere;}
body.homepage-remaster #after-payment .r3-section-heading :is(h2,p),
body.homepage-remaster #after-payment .r3-section-heading>p:last-child {color:#fff;}
body.homepage-remaster #after-payment .r3-section-heading .eyebrow {color:#e9b9d0;}
body.homepage-remaster[data-exact-design="r2"] #customer-knowledge {
  --oct-ink:#fff;--oct-muted:#e4d9df;--oct-line:#595959;
  background:#242126;background-image:none;color:#fff;border-block:1px solid #242126;box-shadow:none;
}
body.homepage-remaster #customer-knowledge .r3-section-heading {border-color:#595959;}
body.homepage-remaster #customer-knowledge .r3-section-heading h2 {color:#fff;}
body.homepage-remaster #customer-knowledge .r3-section-heading>p:last-child {color:#e4d9df;}
body.homepage-remaster #customer-knowledge .r2-script-accent {color:#edb7d0;}
body.homepage-remaster #customer-knowledge .r2-faq-categories {background:#302a31;border-color:#595959;box-shadow:none;}
body.homepage-remaster #customer-knowledge .r2-faq-categories button {color:#fff;}
body.homepage-remaster #customer-knowledge .r2-faq-categories button span {color:#e9b9d0;}
body.homepage-remaster #customer-knowledge .r2-faq-categories button:hover {background:#393939;}
body.homepage-remaster #customer-knowledge .r2-faq-categories button[aria-pressed="true"] {color:#272727;background:#f5dfe9;border-color:#f5dfe9;box-shadow:none;}
body.homepage-remaster #customer-knowledge .r2-faq-categories button[aria-pressed="true"] span {color:#535353;}
body.homepage-remaster #customer-knowledge .faq-grid details,
body.homepage-remaster #customer-knowledge .faq-grid details[open] {background:#fff;border-color:#e1cdd7;color:#242126;box-shadow:none;}
body.homepage-remaster #customer-knowledge .faq-grid summary {color:#242126;}
body.homepage-remaster #customer-knowledge .faq-grid :is(p,.r31-faq-terms) {color:#62545f;}
body.homepage-remaster #customer-knowledge .r2-faq-comparison {--oct-ink:#242126;--oct-muted:#62545f;color:#242126;background:#fff;}
body.homepage-remaster #customer-knowledge #customer-preparation {border-color:#595959;}
body.homepage-remaster #customer-knowledge .trust-card {background:#302a31;border-color:#595959;color:#fff;}
body.homepage-remaster #customer-knowledge .trust-card :is(h2,summary) {color:#fff;}
body.homepage-remaster #customer-knowledge .trust-card p {color:#e4d9df;}
body.homepage-remaster #customer-knowledge .trust-card a {color:#edb7d0;}
body.homepage-remaster #customer-knowledge :is(button,a,summary):focus-visible {outline-color:#db93b4;}
body.homepage-remaster #customer-contact .contact-card {background:#fff;border-top:4px solid #242126;}

/* Catalogue covers now own their 3:4 space, rather than floating in a wide box. */
body.atelier-catalogue .commerce-catalogue-heading>.site-container {
  background:#f5dfe9;border-color:#d5b4c4;border-bottom:3px solid #242126;box-shadow:none;
}
body.atelier-catalogue .commerce-showroom .showroom-sale-card {background:#fff;border-radius:10px;}
body.atelier-catalogue .commerce-showroom .showroom-art {
  width:100%;height:auto;aspect-ratio:var(--commerce-art-ratio,3/4);padding:0;
  background:#fff;border:1px solid #d9c8cf;border-radius:7px;box-shadow:none;
}
body.atelier-catalogue .commerce-showroom .showroom-art>img {
  display:block;position:static;width:100%;height:auto;aspect-ratio:auto;max-width:100%;max-height:none;object-fit:contain;
}
body.atelier-catalogue .commerce-showroom .showroom-art>.r5-art-frame {height:auto;aspect-ratio:var(--commerce-art-ratio,3/4);border-radius:6px;}
body.atelier-catalogue .commerce-showroom .atelier-card-caption {color:#525252;border-bottom-color:#dcc5d1;}
body.atelier-catalogue .commerce-showroom .commerce-card-detail {background:#242126;border-color:#242126;color:#fff;}
body.atelier-catalogue .commerce-showroom .catalogue-related {margin-bottom:18px;}
body.atelier-catalogue .commerce-showroom #showroom-tabs .r317-tip-card {
  display:grid;gap:12px;margin:16px 0 0;padding:15px 12px;box-shadow:none;border-radius:7px;
}
body.atelier-catalogue .commerce-showroom #showroom-tabs .r317-tip-card h3 {font-size:21px;}
body.atelier-catalogue .commerce-showroom #showroom-tabs .r317-tip-card p {font-size:12px;}
body.atelier-catalogue .commerce-showroom #showroom-tabs .r317-tip-card a {margin:0;padding:9px 10px;background:#f5dfe9;color:#272727;}

/* Public library and journal titles also have a distinct plane, on white paper. */
body.sfw-studio-page .sfw-studio-intro {
  padding:28px;border:1px solid #d5b4c4;border-bottom:3px solid #242126;border-radius:10px 10px 3px 3px;background:#f5dfe9;
}
body.sfw-studio-page .sfw-studio-intro__note {background:#fff;transform:none;}
body.sfw-studio-page .sfw-studio-note {background:#fff;border-left-color:#242126;}
body.sfw-studio-page .sfw-update-entry {background:#fff;}
body.sfw-studio-page .sfw-studio-toolbar {padding:14px;border-color:#d9c8cf;border-radius:8px;background:#fbf5f8;}
body.sfw-studio-page .sfw-item-card[data-kind="character"] .sfw-item-card__image-link {aspect-ratio:1/2;max-height:none;}
body.sfw-studio-page .sfw-item-card[data-kind="house"] .sfw-item-card__image-link {aspect-ratio:8/5;max-height:none;}
body.sfw-studio-page .sfw-item-card__image-link {background:#fbf5f8;border-color:#fff;}
body.sfw-studio-page .sfw-item-card__image-link img {object-fit:contain;object-position:center;}
body.sfw-studio-page .sfw-item-card[data-edition="collector"] {border-top:4px solid #242126;}
body.sfw-studio-page .sfw-item-card[data-edition="collector"] .sfw-studio-badge {background:#242126;color:#fff;border-color:#242126;}
body.sfw-help-page .oct03-help {background:#fff;}
body.sfw-help-page .oct03-help>.sfw-help-intro {background:#f5dfe9;border-bottom:3px solid #242126;border-radius:10px 10px 0 0;padding-inline:28px;}
body[data-sfw-surface="r317"] .customer-reading-title {background:#f5dfe9;border-bottom:3px solid #242126;}
body[data-sfw-surface="r317"] .policy-document {background:#fff;}
body.collection-discovery .customer-closed-copy {background:#fff;}

@media(max-width:1200px) and (min-width:1001px) {
  body.homepage-remaster #all-products-directory-groups [data-r6-family] {grid-template-columns:36% minmax(0,1fr);gap:11px;padding:12px;}
  body.homepage-remaster #all-products-directory-groups .r7-directory-copy h3 {font-size:19px;}
}
@media(max-width:1000px) {
  body.homepage-remaster #all-products-directory-groups .r7-directory-grid {grid-template-columns:1fr;gap:24px;}
  body.homepage-remaster #all-products-directory-groups .r39-directory-group {grid-row:auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto;gap:16px;}
  body.homepage-remaster #all-products-directory-groups .r39-directory-group>h4 {grid-column:1/-1;}
  body.homepage-remaster #all-products-directory-groups [data-r6-family] {display:flex;flex-direction:column;}
  body.homepage-remaster #all-products-directory-groups .oct-directory-art {width:auto;max-width:100%;height:188px;max-height:188px;}
  body.homepage-remaster #all-products-directory-groups .oct-directory-art>.r5-art-frame {width:min(100%,calc(188px * var(--directory-art-ratio,3/4)));height:auto;max-height:none;}
  body.homepage-remaster #all-products-directory-groups .oct-directory-art>img {width:auto;max-width:100%;height:188px;}
  body.homepage-remaster #all-products-directory-groups .r7-directory-copy {flex:1;}
}
@media(max-width:900px) {
  body.homepage-remaster #customer-journey #after-payment {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:700px) {
  body.homepage-remaster #plans-extras .plans-intro {padding:22px 20px;}
  body.homepage-remaster #collections-directory .all-products-directory__intro {padding:18px;}
  body.homepage-remaster #all-products-directory-groups .r39-directory-group {grid-template-columns:1fr;gap:14px;}
  body.homepage-remaster #all-products-directory-groups [data-r6-family] {display:grid;grid-template-columns:104px minmax(0,1fr);min-height:174px;padding:12px;}
  body.homepage-remaster #all-products-directory-groups .oct-directory-art {width:100%;height:auto;max-height:none;}
  body.homepage-remaster #all-products-directory-groups .oct-directory-art>.r5-art-frame {width:100%;height:auto;max-height:none;}
  body.homepage-remaster #all-products-directory-groups .oct-directory-art>img {width:100%;height:144px;max-height:144px;}
  body.homepage-remaster #all-products-directory-groups .r7-directory-copy h3 {font-size:21px;}
  body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts {grid-column:1/-1;grid-row:4;margin:12px 0 0;}
  body.homepage-remaster #customer-journey #after-payment .r3-section-heading {margin:0;padding:20px;}
  body.homepage-remaster #after-payment .after-payment__layout {grid-template-columns:minmax(0,1fr);}
  body[data-sfw-surface="r317"] .r317-tip-card {padding:20px;gap:14px;}
  body.sfw-studio-page .sfw-studio-intro {padding:23px 20px;}
  body.sfw-help-page .oct03-help>.sfw-help-intro {padding-inline:20px;}
}
@media(max-width:600px) {
  body.atelier-catalogue .commerce-showroom .showroom-art {width:46%;flex-basis:46%;height:auto;}
  body.atelier-catalogue .commerce-showroom .showroom-art>img {width:100%;height:auto;}
}
@media(max-width:380px) {
  body.homepage-remaster #all-products-directory-groups [data-r6-family] {grid-template-columns:88px minmax(0,1fr);gap:10px;}
}
@media(forced-colors:active) {
  body[data-sfw-surface="r317"] .r317-tip-card,
  body.homepage-remaster #core-plan-gateway-grid .r317-plan-facts {border-color:CanvasText;box-shadow:none;}
  body[data-sfw-surface="r317"] .r317-tip-card a:focus-visible {outline-color:Highlight;}
}
