/* Prime's editorial playbook: paper, forest, gold; usable examples before decoration. */
.examplePage { --example-border: #cdd2c7; --example-gold: #92601c; }
.examplePage [hidden] { display: none !important; }
.examplesWrap { width: min(calc(100% - 3rem), 76rem); margin-inline: auto; }
.examplePage h1, .examplePage h2, .examplePage h3 { font-family: var(--serif); letter-spacing: -.035em; }
.examplePage button { font: inherit; cursor: pointer; }
.examplePage button:disabled { cursor: default; opacity: .65; }
.examplePage button:focus-visible, .examplePage input:focus-visible, .examplePage textarea:focus-visible { outline: 3px solid var(--example-gold); outline-offset: 4px; }
.examplePage .eyebrow { color: var(--example-gold); font-size: .73rem; letter-spacing: .12em; font-weight: 700; }
.libraryHero, .recipeHero { padding-block: 2rem 4rem; }
.libraryHero .breadcrumb, .recipeHero .breadcrumb { margin-bottom: 3rem; }
.libraryHeroGrid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 6rem; align-items: center; }
.libraryHero h1 { font-size: clamp(2.5rem, 4.6vw, 4.35rem); line-height: 1.08; font-weight: 600; margin: 1.2rem 0 1.5rem; }
.libraryHero h1 em { font-style: normal; color: #62755e; }
.exampleLead { color: #536359; font-size: 1.04rem; line-height: 1.75; max-width: 39rem; }
.libraryHero .button { margin-top: 1.3rem; gap: 1rem; }
.libraryIndex { border-left: 1px solid var(--example-border); padding: 1rem 0 1rem 2.5rem; }
.indexLarge { font-family: var(--serif); color: var(--forest-800); font-size: 7.5rem; line-height: .95; letter-spacing: -.085em; }
.libraryIndex > p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: 1rem 0 2rem; }
.libraryIndex dl { margin: 0; }
.libraryIndex dl div { margin-top: 1.1rem; }
.libraryIndex dt { font-size: .85rem; font-weight: 700; }
.libraryIndex dd { margin: .25rem 0 0; font-size: .8rem; color: var(--muted); }
.editorialNote { display: block; margin-top: 2rem; font-size: .76rem; color: var(--muted); }
#library { scroll-margin-top: 6.5rem; padding-top: 2rem; border-top: 1px solid var(--example-border); }
.libraryTop { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.libraryTop h2 { max-width: 26ch; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 600; margin: .7rem 0 0; line-height: 1.12; }
.libraryDisclosure { max-width: 19rem; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.libraryControls { display: flex; align-items: end; gap: 1.5rem; justify-content: space-between; margin-top: 2.5rem; }
.filterGroup { display: flex; flex-wrap: wrap; gap: .5rem; }
.filterGroup button { border: 1px solid #afb9aa; padding: .65rem .9rem; min-height: 44px; border-radius: 3px; background: transparent; color: var(--forest-900); font-size: .84rem; }
.filterGroup button[aria-pressed="true"] { background: var(--forest-800); color: #fff; border-color: var(--forest-800); }
.exampleSearch { display: grid; gap: .4rem; font-size: .76rem; color: var(--muted); font-weight: 600; min-width: 13rem; }
.exampleSearch input { border: 1px solid #afb9aa; border-radius: 3px; min-height: 44px; background: #fffefb; color: var(--ink); padding: .65rem .8rem; width: 100%; font-size: .9rem; }
.resultCount { font-size: .76rem; color: var(--muted); margin: 1.4rem 0 .9rem; }
.exampleGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.5rem; }
.exampleCard { min-width: 0; border: 1px solid var(--example-border); background: #fffefb; }
.exampleCardLink { display: block; height: 100%; text-decoration: none; }
.exampleCardLink:hover .cardRead { text-decoration: underline; text-underline-offset: .25rem; }
.exampleCardLink:hover h2 > span { transform: translate(2px, -2px); }
.cardStage { display: grid; position: relative; place-items: center; padding: 2.5rem 2rem; min-height: 440px; border-bottom: 1px solid var(--example-border); }
.stageNumber { position: absolute; left: 1rem; top: .85rem; font-size: .65rem; font-weight: 600; color: #677267; }
.stage-welcome { background: #e9ebe2; }
.stage-returning { background: #e0e4d9; }
.stage-collection { background: #e2dfd3; }
.stage-black-friday { background: #dcded3; }
.stage-season { background: #e8dfcd; }
.stage-launch { background: #e2e9e0; }
.cardCopy { padding: 1.5rem; }
.cardCategory { color: var(--example-gold); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.cardCopy h2 { display: flex; gap: 1rem; justify-content: space-between; margin: .8rem 0; font-size: 1.6rem; font-weight: 600; }
.cardCopy h2 > span { transition: transform .15s ease; }
.cardCopy > p { line-height: 1.65; color: var(--muted); font-size: .9rem; margin: 0; max-width: 50ch; }
.cardRead { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; margin-top: .65rem; font-weight: 700; font-size: .85rem; }
.recipePopup { position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; border-radius: 16px; border: 1px solid #182a2426; background: var(--popup-bg); color: var(--popup-ink); padding: 2.5rem 1.65rem 1.4rem; box-shadow: 0 12px 24px -16px #182a2480; overflow-wrap: anywhere; }
.recipePopup.palette-welcome, .recipePopup.palette-black-friday, .recipePopup.palette-launch { text-align: center; }
.recipePopup.palette-collection { border-radius: 4px; border-top: 5px solid var(--popup-accent); }
.recipePopup.palette-season { border-radius: 4px; }
.recipePopup.palette-black-friday { border-radius: 4px; }
.popupClose { position: absolute; top: .2rem; right: .2rem; display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.35rem; line-height: 1; color: inherit; background: transparent; border: 0; border-radius: 50%; }
.popupEyebrow { font-size: .69rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; }
.recipePopup .popupTitle { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; line-height: 1.08; letter-spacing: -.045em; margin: 1rem 0 .9rem; color: inherit; }
.popupMessage { margin: 0; font-size: .88rem; line-height: 1.6; }
.popupCoupon { margin-top: 1.2rem; padding: .85rem .7rem; border: 1px dashed currentColor; border-radius: 4px; text-align: center; }
.popupCoupon span { display: block; font-size: .73rem; line-height: 1.4; }
.popupCoupon strong { display: block; margin-top: .4rem; font-family: var(--serif); letter-spacing: .12em; font-size: 1.3rem; line-height: 1.3; }
.popupButton { display: block; width: 100%; margin: 1rem 0 0; padding: .85rem .5rem; min-height: 44px; text-align: center; font: 600 .86rem/1.4 var(--sans) !important; border: 1px solid transparent; border-radius: 4px; background: var(--popup-button); color: var(--popup-button-ink); }
.popupFooter { font-size: .75rem; line-height: 1.55; margin: .85rem 0 0; text-align: center; }
.popupDivider { width: 3rem; height: 1px; background: currentColor; margin: 1.4rem auto .3rem; opacity: .5; }
.examplesEmpty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--example-border); }
.examplesEmpty h3 { font-size: 1.5rem; }
.examplesEmpty p { color: var(--muted); }
.libraryMethod { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 5rem; padding: 3rem 0; border-top: 1px solid var(--example-border); border-bottom: 1px solid var(--example-border); }
.libraryMethod h2, .libraryHelp h2, .exampleCta h2 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; font-weight: 600; margin: .9rem 0; }
.libraryMethod p, .libraryMethod li span { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.libraryMethod ol { margin: 0; padding-left: 1.4rem; }
.libraryMethod li { padding: .8rem 0 .8rem .5rem; }
.libraryMethod li::marker { color: var(--example-gold); font-weight: 700; }
.libraryMethod li strong, .libraryMethod li span { display: block; }
.libraryMethod li strong { margin-bottom: .4rem; }
.libraryHelp { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding-block: 3rem; }
.libraryHelp ul { list-style: none; padding: 0; margin: 0; }
.libraryHelp li a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--example-border); text-decoration: none; font-size: .95rem; font-weight: 600; }
.libraryHelp li a:hover { text-decoration: underline; }
.exampleCta { padding: 2.5rem; background: var(--forest-800); color: #fff9ec; display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin: 1rem 0 4rem; }
.exampleCta .eyebrow { color: #edc783; }
.exampleCta p:not(.eyebrow) { max-width: 33rem; font-size: .95rem; line-height: 1.65; color: #e0e7df; }
.exampleCta .button { flex-shrink: 0; }
.recipeHeroGrid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 3.5rem; align-items: center; }
.recipeHero h1 { font-size: clamp(2.4rem, 4vw, 3.65rem); font-weight: 600; line-height: 1.04; margin: 1.1rem 0 1.7rem; }
.recipeHero h1 span { display: block; color: #62755e; }
.recipePromise { font-size: 1.16rem; line-height: 1.45; font-weight: 600; max-width: 33ch; }
.recipeHero .exampleLead { font-size: .97rem; }
.recipeJump { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.7rem; }
.recipeJump > a:not(.button) { font-size: .85rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; text-underline-offset: .2rem; }
.reviewNote { margin-top: 1.5rem; font-size: .7rem; color: var(--muted); line-height: 1.5; }
.previewLabRecipe { min-width: 0; border: 1px solid var(--example-border); background: #fffefb; }
.previewTop { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .7rem 1rem; gap: .75rem; }
.previewTop h2 { font: 600 .86rem/1.4 var(--sans); margin: 0; letter-spacing: 0; }
.previewDevices { display: flex; border: 1px solid var(--example-border); border-radius: 4px; padding: 2px; }
.previewDevices button { min-height: 38px; padding: .5rem .6rem; border: 0; background: transparent; border-radius: 3px; color: var(--muted); font-size: .75rem; }
.previewDevices button[aria-pressed="true"] { background: var(--forest-800); color: #fff; }
.previewCanvas { padding: 1.5rem 1.25rem; min-height: 520px; display: grid; align-items: center; border-block: 1px solid var(--example-border); }
.previewWindow { width: 100%; margin: auto; border: 1px solid #99a695; background: #ffffff75; border-radius: 7px; overflow: hidden; }
.previewBrowser { display: flex; align-items: center; justify-content: space-between; padding: .65rem .7rem; font-size: .6rem; color: #536359; border-bottom: 1px solid #b7c1b1; background: #fffefba0; }
.previewBrowser > span:first-child { letter-spacing: .2em; }
.previewStage { min-height: 425px; display: grid; place-items: center; padding: 1.4rem 1rem; }
.previewStage .recipePopup { max-width: 360px; }
.previewCanvas.is-mobile .previewWindow { max-width: 300px; border-radius: 20px; }
.previewCanvas.is-mobile .previewStage { padding: .8rem .55rem; }
.previewCanvas.is-mobile .recipePopup { padding-inline: 1.1rem; }
.previewCanvas.is-mobile .popupTitle { font-size: 1.55rem; }
.previewCaption { font-size: .72rem; line-height: 1.6; color: var(--muted); padding: .8rem 1rem 0; margin: 0; }
.previewStatus { font-size: .76rem; line-height: 1.5; color: var(--forest-700); margin: .5rem 1rem .85rem; min-height: 1.1rem; overflow-wrap: anywhere; }
.previewDismissed { text-align: center; color: var(--forest-800); padding: 1rem; }
.previewDismissed > span { font-size: 2rem; }
.previewDismissed p { line-height: 1.6; }
.previewDismissed button { min-height: 44px; background: var(--forest-800); border: 0; color: white; padding: .7rem 1rem; border-radius: 4px; font-size: .85rem; }
.recipeSections { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; border-block: 1px solid var(--example-border); padding-block: .65rem; }
.recipeSections a { min-height: 44px; display: flex; align-items: center; font-size: .84rem; text-decoration: none; font-weight: 600; }
.recipeSections a:hover { text-decoration: underline; text-underline-offset: .2rem; }
.recipeBody { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 5rem; padding-block: 3.5rem; }
.recipeArticle { min-width: 0; }
.recipeArticle > section { scroll-margin-top: 7rem; }
.recipeArticle > section + section { border-top: 1px solid var(--example-border); padding-top: 2.8rem; margin-top: 2.8rem; }
.recipeArticle h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.15; margin: .6rem 0 1.2rem; }
.recipeArticle h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin-bottom: .6rem; }
.recipeArticle p { font-size: .95rem; line-height: 1.8; color: #4b5b51; }
.recipeArticle a { color: var(--forest-700); font-weight: 600; text-underline-offset: .2rem; }
.recipeArticle .eyebrow { font-size: .7rem; color: var(--example-gold); }
.fitGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fitGrid > div { padding: 1.2rem; border-left: 2px solid #739171; background: #edf0e7; }
.fitGrid > div + div { border-color: #b18a4a; background: #f3eddf; }
.fitGrid h3 { margin: 0; font: 600 .9rem/1.5 var(--sans); }
.fitGrid p { margin-bottom: 0; font-size: .86rem; }
.sectionTitleRow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.smallAction { border: 1px solid #82917b; color: var(--forest-900); background: transparent; padding: .65rem .9rem; min-height: 44px; border-radius: 3px; font-size: .8rem !important; font-weight: 600 !important; }
.campaignCopy { display: block; width: 100%; resize: vertical; padding: 1.3rem; background: #fffefb; border: 1px solid #afb9aa; border-radius: 4px; color: var(--forest-900); font-size: .9rem; line-height: 1.75; min-height: 330px; }
.recipeArticle .copyStatus { font-size: .8rem; color: var(--forest-700); min-height: 1.4rem; margin-bottom: .5rem; }
.colorNotes { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; font-size: .73rem; color: var(--muted); }
.colorNotes code { color: var(--forest-950); }
.settingsList { margin: 1.5rem 0; border-top: 1px solid var(--example-border); }
.settingsList > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--example-border); font-size: .85rem; line-height: 1.65; }
.settingsList dt { color: var(--muted); }
.settingsList dd { margin: 0; color: var(--forest-950); font-weight: 600; overflow-wrap: anywhere; }
.recipeCaution { background: #f1e9d5; padding: 1.2rem 1.35rem; border-left: 3px solid #a27730; }
.recipeCaution > strong { font-size: .9rem; }
.recipeCaution p { font-size: .86rem; margin-bottom: 0; }
.recipeSteps { list-style: none; counter-reset: recipe-step; padding: 0; }
.recipeSteps li { counter-increment: recipe-step; position: relative; padding: .5rem 0 .75rem 2.9rem; }
.recipeSteps li::before { content: counter(recipe-step, decimal-leading-zero); position: absolute; left: 0; top: 1.15rem; font-family: var(--serif); color: var(--example-gold); font-size: 1.15rem; }
.recipeSteps h3 { margin: .6rem 0; }
.recipeSteps p { margin: 0; font-size: .92rem; }
.recipeChecklist { list-style: none; padding: 0; }
.recipeChecklist li { position: relative; padding: .75rem 0 .75rem 1.9rem; font-size: .93rem; color: #4b5b51; line-height: 1.7; border-bottom: 1px solid var(--example-border); }
.recipeChecklist li::before { content: '✓'; position: absolute; left: .1rem; top: .8rem; color: var(--forest-700); font-weight: 700; }
.recipeFaq { border-bottom: 1px solid var(--example-border); }
.recipeFaq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-size: .93rem; line-height: 1.6; }
.recipeFaq p { margin-top: 0; }
.recipeSidebar { align-self: start; position: sticky; top: 7rem; padding: 1.4rem; background: #edf0e7; border-top: 3px solid var(--forest-700); }
.recipeSidebar h2 { font-size: 1.9rem; line-height: 1.1; font-weight: 600; margin: 1rem 0; }
.recipeSidebar p { font-size: .88rem; line-height: 1.7; color: var(--muted); }
.recipeSidebar .button { width: 100%; padding: .9rem .6rem; font-size: .78rem; }
.recipeSidebar .sidebarSmall { font-size: .74rem; }
.sidebarResources { display: grid; gap: .85rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #c5cdbe; }
.sidebarResources strong { font-size: .76rem; }
.sidebarResources a { font-size: .78rem; line-height: 1.55; text-underline-offset: .2rem; }
.relatedExamples { border-top: 1px solid var(--example-border); padding: 3rem 0 4rem; }
.relatedExamples > h2 { font-size: 2.25rem; font-weight: 600; margin: .75rem 0 1.5rem; }
.relatedExampleGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.relatedExampleGrid > a { text-decoration: none; padding: 1.5rem; background: #edf0e7; border: 1px solid var(--example-border); }
.relatedExampleGrid > a > span { font-size: .7rem; color: var(--example-gold); text-transform: uppercase; letter-spacing: .08em; }
.relatedExampleGrid h3 { font-weight: 600; font-size: 1.3rem; display: flex; gap: 1rem; justify-content: space-between; }
.relatedExampleGrid p { font-size: .85rem; line-height: 1.6; color: var(--muted); }
.relatedExampleGrid a:hover h3 { text-decoration: underline; }
.allExamples { display: inline-flex; min-height: 44px; align-items: center; margin-top: 1.3rem; font-size: .9rem; font-weight: 600; }
.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 68rem) {
  .libraryHeroGrid { gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 16rem; }
  .libraryIndex { padding-left: 1.8rem; }
  .libraryControls { flex-wrap: wrap; }
  .recipeHeroGrid { gap: 2rem; }
  .recipeBody { gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 15.5rem; }
  .fitGrid { grid-template-columns: 1fr; }
  .previewCanvas { padding: 1rem .8rem; }
  .previewStage { padding: 1rem .7rem; }
}
@media (max-width: 52rem) {
  .examplesWrap { width: min(calc(100% - 2rem), 76rem); }
  .libraryHeroGrid { grid-template-columns: 1fr; }
  .libraryIndex { padding: 1.3rem 0; border-left: 0; border-top: 1px solid var(--example-border); display: grid; grid-template-columns: 5rem 1fr; gap: .75rem 1.5rem; align-items: center; }
  .indexLarge { font-size: 4.5rem; }
  .libraryIndex > p { margin: 0; font-size: 1.1rem; }
  .libraryIndex dl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
  .editorialNote { grid-column: 1 / -1; margin-top: .5rem; }
  .libraryTop { align-items: start; flex-direction: column; gap: .4rem; }
  .cardStage { padding: 2.5rem 1.1rem 1.5rem; }
  .cardStage .recipePopup { padding-inline: 1rem; }
  .cardStage .popupTitle { font-size: 1.6rem; }
  .libraryMethod, .libraryHelp { gap: 2rem; }
  .exampleCta { align-items: start; flex-direction: column; padding: 2rem; }
  .recipeHeroGrid { grid-template-columns: 1fr; }
  .recipeHero h1 { max-width: 20ch; }
  .recipeHero .exampleLead { max-width: 45rem; }
  .previewLabRecipe { width: min(100%, 38rem); }
  .recipeBody { grid-template-columns: 1fr; }
  .recipeSidebar { position: static; width: 100%; max-width: 35rem; }
  .recipeSidebar .button { width: auto; padding-inline: 1.2rem; }
}
@media (max-width: 38rem) {
  .libraryHero, .recipeHero { padding-bottom: 2rem; }
  .libraryHero .breadcrumb, .recipeHero .breadcrumb { margin-bottom: 2rem; }
  .libraryHero h1 { font-size: 2.55rem; }
  .libraryHero h1 em br { display: none; }
  .exampleGrid { grid-template-columns: 1fr; gap: 1.5rem; }
  .libraryControls { gap: 1.2rem; }
  .exampleSearch { width: 100%; }
  .filterGroup button { font-size: .8rem; }
  .cardStage { min-height: 400px; padding: 2.5rem 1rem 1.5rem; }
  .cardStage .recipePopup { max-width: 340px; padding-inline: 1.4rem; }
  .cardCopy { padding: 1.25rem; }
  .libraryMethod, .libraryHelp { grid-template-columns: 1fr; gap: 1rem; }
  .libraryMethod { margin-top: 3rem; padding-block: 2rem; }
  .libraryHelp { padding-block: 2rem; }
  .exampleCta { padding: 1.5rem; }
  .recipeHero h1 { font-size: 2.55rem; }
  .recipeBody { padding-block: 2rem; gap: 2rem; }
  .previewTop { padding: .6rem .8rem; }
  .previewCanvas { min-height: 0; padding: 1rem .7rem; }
  .previewStage { padding: .8rem .55rem; }
  .previewStage .recipePopup { padding: 2.5rem 1.1rem 1.4rem; }
  .previewStage .popupTitle { font-size: 1.55rem; }
  .settingsList > div { grid-template-columns: 1fr; gap: .35rem; padding-block: .85rem; }
  .campaignCopy { padding: .9rem; font-size: .85rem; }
  .relatedExampleGrid { grid-template-columns: 1fr; }
  .recipeSections { gap: .2rem 1.2rem; }
  .recipeSections a { font-size: .8rem; }
  .recipeHero .reviewNote { max-width: 33ch; }
}
@media (prefers-reduced-motion: reduce) { .examplePage *, .examplePage *::before, .examplePage *::after { scroll-behavior: auto; transition: none !important; } }
