/* Clear destinations: this creator, the courtyard, and a quiet creator credit. */
.site-return{display:grid;grid-template-columns:auto auto;justify-content:start;gap:10px;align-items:stretch}
.site-return .site-home{justify-content:center;min-height:46px;font-size:.9375rem;line-height:1.4;text-align:center;white-space:normal}
.site-return #quickcards-home{background:linear-gradient(110deg,#ead1a8,#d1ae78);border-color:#ead1a8;color:#243147;box-shadow:inset 0 1px #fff1d3}
.site-return #quickcards-home:hover{background:#f1dcb7}
.creator-credit{font-size:.875rem;line-height:1.6;color:#c3c7d0;margin:2px 0 0}
.creator-credit a{display:inline-flex;align-items:center;min-height:44px;color:#efd3a5;text-underline-offset:4px;padding-inline:4px}
.creator-credit a:focus-visible{outline:3px solid #ffda91;outline-offset:3px}
@media(max-width:480px){.site-return{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.site-return .site-home{padding:10px 8px;font-size:.875rem}.creator-credit{font-size:.875rem}}
@media(forced-colors:active){.site-return #quickcards-home{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}.creator-credit{color:CanvasText}.creator-credit a{color:LinkText}.creator-credit a:focus-visible{outline-color:Highlight}}
/* Home focuses a reading heading, not an input. Keep control focus rings intact. */
#entry-title[tabindex="-1"]:focus{outline:none}

/* R16: a dedicated entrance; card browsing begins in its own route. */
html[data-qc-view="home"] #workspace{width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none;color:inherit}
html[data-qc-view="home"] #quickcard-welcome{margin-top:4px}
html[data-qc-view="home"] .browse-footer{padding-top:12px}
html[data-qc-view="home"] #back-to-top{display:none}
html[data-qc-view="home"] #quickcards-home[aria-current="page"]{background:#24354d;color:#f5e3c8;border-color:#a98e65;box-shadow:none}
html[data-qc-view="editor"] .editor-path{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
html[data-qc-view="editor"] #editor-home{min-height:44px;align-self:stretch;padding-inline:16px;flex:0 0 auto}
html[data-qc-surface="premium"] #editor-home{background:linear-gradient(#334259,#23334c);color:#f8e7c9;border-color:#a98f65}
@media(max-width:760px){
 html[data-qc-view="home"] #quickcard-welcome{padding:20px 6px 12px}
 html[data-qc-view="home"] .site-head h1{font-size:clamp(2.5rem,9vw,3rem)}
 html[data-qc-view="home"] .site-head .lede{font-size:1rem;margin-top:10px}
 html[data-qc-view="home"] .pip-window{margin-top:14px}
 html[data-qc-view="home"] .entry-choices{margin-top:16px}
 html[data-qc-view="home"] .entry-choices .button{min-height:48px;font-size:.9375rem}
 html[data-qc-view="home"] .entry-free,html[data-qc-view="home"] .entry-inquiry{margin-block:10px 0;font-size:.875rem;line-height:1.5}
}
@media(forced-colors:active){html[data-qc-view="home"] #quickcards-home[aria-current="page"],html[data-qc-surface="premium"] #editor-home{background:ButtonFace;color:ButtonText;border-color:ButtonText}}

/* R03: the existing owner panel is reachable without creating a selection. */
@media(max-width:760px){.browse-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5rem),1fr));align-items:stretch}.browse-tools .button{flex-wrap:wrap;overflow-wrap:normal;word-break:normal}}
@media(max-width:480px){.browse-tools #browse-all [aria-hidden]{display:none}}

/* Finishing details R01: quiet progress and useful empty/error states. */
.qc-flow-steps{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;padding:0;margin:0 0 16px;font-size:.8125rem;line-height:1.5;color:#4b5d70}
.qc-flow-steps li{display:flex;align-items:center;gap:6px;min-width:0}
.qc-flow-steps li>span:first-child{display:inline-grid;place-items:center;min-width:22px;height:22px;border:1px solid #a4afbb;border-radius:50%;font-size:.75rem}
.qc-flow-steps li[aria-current=step]{color:#162d47;font-weight:750}
.qc-flow-steps li[aria-current=step]>span:first-child{background:#1b3654;color:#fff;border-color:#1b3654;box-shadow:0 0 0 3px #c6a56b26}
.review-heading{min-width:0}.review-heading .qc-flow-steps{margin:6px 0 0;font-size:.75rem;gap:5px 12px}
#preview-dialog .review-head .review-heading h2{margin:0}
.qc-empty-state{padding:24px 18px;text-align:center;border:1px solid #c9b891;border-radius:16px;background:linear-gradient(145deg,#fcfaf4,#f1ece2);color:#273b51;margin:16px 0}
.qc-empty-state[hidden]{display:none}.qc-empty-state h3{font:1.35rem/1.3 Georgia,serif;margin:0 0 10px}.qc-empty-state p{max-width:42ch;margin:8px auto 18px;line-height:1.6}
.qc-empty-state>:is(img,.catalog-cover-frame){display:block;width:96px!important;height:82px!important;object-fit:cover;margin:0 auto 16px;border-radius:12px}
.status.error:not(:empty){padding:12px 14px;border:1px solid #b47467;border-radius:10px;background:#fff6f1;color:#7d2b23}
html[data-qc-surface=premium] .qc-flow-steps{color:#d3deec}html[data-qc-surface=premium] .qc-flow-steps li[aria-current=step]{color:#f5dfb3}
html[data-qc-surface=premium] .qc-empty-state{background:linear-gradient(145deg,#172d48,#0d1d32);border-color:#a18354;color:#eff3f9}
@media(max-width:360px){.qc-flow-steps{gap:5px 10px}.review-heading .qc-flow-steps{gap:4px 8px}.review-heading .qc-flow-steps li{gap:4px}.qc-empty-state{padding:20px 12px}}
@media(forced-colors:active){.qc-flow-steps li[aria-current=step],html[data-qc-surface=premium] .qc-flow-steps li[aria-current=step]{color:CanvasText}.qc-flow-steps li[aria-current=step]>span:first-child{background:Highlight;color:HighlightText;border-color:Highlight;box-shadow:none}.qc-empty-state,.status.error:not(:empty){background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText}}

/* Full-width progress beneath the title keeps every label readable at 320px. */
#preview-dialog .review-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
#preview-dialog .review-heading{display:contents}
#preview-dialog .review-heading h2{grid-column:1;grid-row:1}
#preview-dialog .review-head>.button{grid-column:2;grid-row:1}
#preview-dialog .review-heading .qc-flow-steps{grid-column:1/-1;grid-row:2;color:#c9d5e3;margin:0;gap:6px 16px}
#preview-dialog .review-heading .qc-flow-steps li[aria-current=step]{color:#fff0cf}
#preview-dialog .review-heading .qc-flow-steps li[aria-current=step]>span:first-child{background:#ebd0a0;color:#152c45;border-color:#ebd0a0}
@media(forced-colors:active){#preview-dialog .review-heading .qc-flow-steps,#preview-dialog .review-heading .qc-flow-steps li[aria-current=step]{color:CanvasText}#preview-dialog .review-heading .qc-flow-steps li[aria-current=step]>span:first-child{background:Highlight;color:HighlightText}}

/* Product families first; ranges belong only to Quick Cards. */
.card-family-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;padding-bottom:16px;border-bottom:1px solid var(--paper-edge)}
.card-family-nav .button{min-height:48px;text-align:center;font-size:1rem;line-height:1.35;white-space:normal;padding:12px 10px;text-decoration:none}
.card-family-nav .button[aria-current=page]{background:#213b55;color:#fff7e9;border-color:#213b55;box-shadow:inset 0 1px #ffffff25}
html[data-qc-surface=premium] .card-family-nav .button[aria-current=page]{background:linear-gradient(120deg,#f0d7ae,#c5a16b);color:#172b43;border-color:#edcea0}
html[data-qc-family=quick-cards] .browse-tabs{display:flex}
#card-range-tabs[hidden]{display:none!important}
.need-something-else{margin:30px 0 16px;padding:20px 0;border-top:1px solid var(--paper-edge)}
.need-something-else[hidden]{display:none}.need-something-else h2{font:1.25rem/1.3 Georgia,serif;margin:0 0 10px}
.need-something-else nav{display:flex;gap:6px 20px;flex-wrap:wrap}.need-something-else a{display:inline-flex;align-items:center;min-height:44px;color:var(--navy);text-underline-offset:4px;font-size:.9375rem}
.need-something-else p{font-size:.8125rem;line-height:1.6;color:var(--muted);margin:8px 0 0}
html[data-qc-surface=premium] .need-something-else a{color:#f0d4a5}html[data-qc-surface=premium] .need-something-else p{color:#c5cfdb}
@media(max-width:600px){.card-family-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:12px}.card-family-nav .button{font-size:.9375rem;padding:10px 8px}.need-something-else nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.need-something-else a{overflow-wrap:anywhere}}
@media(forced-colors:active){.card-family-nav .button[aria-current=page],html[data-qc-surface=premium] .card-family-nav .button[aria-current=page]{background:Highlight;color:HighlightText;border-color:Highlight;box-shadow:none}.need-something-else a,html[data-qc-surface=premium] .need-something-else a{color:LinkText}.need-something-else p,html[data-qc-surface=premium] .need-something-else p{color:CanvasText}}

html[data-qc-surface=premium] .card-family-nav .button:not([aria-current=page]){background:linear-gradient(150deg,#26384e,#18283c);color:#eee0c9;border-color:#a88d62;box-shadow:inset 0 1px #ffffff12}
.card-family-nav .button:focus-visible{outline:3px solid #ca9b54;outline-offset:3px}

.collection-open>h3{font:1.625rem/1.2 Georgia,serif;letter-spacing:-.02em;margin:0 0 8px;overflow-wrap:anywhere}

/* The category row spans the navigation; ranges and tools share the next row. */
.browse-nav{flex-wrap:wrap;align-items:center}
.card-family-nav{flex:1 0 100%;align-items:stretch}
.card-family-nav .button{align-self:stretch}
@media(max-width:600px){.collection-intro>h2{font-size:1.75rem}.collection-intro>p{font-size:.9375rem}.collection-intro{margin-bottom:16px}}

@media(max-width:600px){html[data-qc-surface=premium] .collection-intro>h2{font-size:1.75rem;line-height:1.2}html[data-qc-surface=premium] .collection-intro>p:not(.eyebrow){margin-block:10px}}

.theme-card-types{margin:18px 0 22px;padding:16px;border:1px solid #bda275;border-radius:12px;background:#f4efe5}.theme-card-types[hidden]{display:none}.theme-type-caption{font-size:.9375rem;margin:0 0 10px;line-height:1.5}.theme-type-links{display:flex;flex-wrap:wrap;gap:8px}.theme-type-links .button{min-height:44px;font-size:.875rem;text-align:center;text-decoration:none;padding:10px 13px}.theme-type-links .button[aria-current=page]{color:#fff5e3;background:#213b55;border-color:#213b55}.theme-type-links a:focus-visible{outline:3px solid #d6ad68;outline-offset:3px}html[data-qc-surface=premium] .theme-card-types{background:#172b43;border-color:#a58a60;color:#f1e7d8}html[data-qc-surface=premium] .theme-type-links .button{background:#24394f;color:#f1e7d8;border-color:#a58a60}html[data-qc-surface=premium] .theme-type-links .button[aria-current=page]{background:linear-gradient(120deg,#efd4a6,#cba972);color:#172b43;border-color:#efd4a6}@media(max-width:600px){.theme-card-types{padding:12px}.theme-type-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.theme-type-links .button{padding:10px 7px;white-space:normal}}@media(forced-colors:active){.theme-card-types,html[data-qc-surface=premium] .theme-card-types{background:Canvas;color:CanvasText;border-color:CanvasText}.theme-type-links .button[aria-current=page],html[data-qc-surface=premium] .theme-type-links .button[aria-current=page]{background:Highlight;color:HighlightText;border-color:Highlight}}

.theme-navigation{margin:0 0 12px;border-bottom:1px solid var(--paper-edge)}.theme-navigation>summary{min-height:44px;display:list-item;cursor:pointer;padding:10px 0;font-weight:650;font-size:.9375rem}.theme-navigation .collection-nav{margin:8px 0 16px}.theme-navigation>summary:focus-visible{outline:3px solid #d6ad68;outline-offset:3px}@media(max-width:600px){#gallery-title{font-size:1.875rem;line-height:1.2}.theme-card-types{margin:14px 0 18px}}

/* Keep contextual inquiry links readable on the Premium surface. */
#gallery-view p.help a{color:#203e60;text-underline-offset:3px;text-decoration-thickness:1.5px}#gallery-view p.help a:focus-visible{outline:3px solid #d6ad68;outline-offset:3px}html[data-qc-surface=premium] #gallery-view p.help a{color:#f0d4a5}@media(forced-colors:active){#gallery-view p.help a,html[data-qc-surface=premium] #gallery-view p.help a{color:LinkText}}
