.case-container { width: calc(100% - 112px); max-width: 1216px; margin-inline: auto; }
.casebook-header { background: #f7f8f2ca; backdrop-filter: blur(20px); border-color: #ffffffc9; }
.casebook-nav { display: flex; gap: 27px; align-items: center; font-size: 12px; color: #63736f; }
.casebook-nav a[aria-current] { color: #315cbd; }
.casebook-opening { display: grid; grid-template-columns: 1.13fr 1fr; gap: 70px; align-items: center; padding-block: 170px 75px; }
.case-eyebrow { font-size: 11px; font-weight: 550; line-height: 1.5; letter-spacing: .8px; color: #647b73; margin-bottom: 23px; }
.casebook-opening h1 { font-size: clamp(46px,4.65vw,66px); font-weight: 450; line-height: 1.1; letter-spacing: -3px; margin: 0 0 27px; }
.casebook-deck { max-width: 490px; font-size: 15px; color: #6a7772; line-height: 1.85; }
.casebook-opening-actions { display: flex; gap: 25px; align-items: center; margin-top: 31px; }
.casebook-opening-actions>span { color: #869089; font-size: 10px; line-height: 1.6; }
.casebook-scene { position: relative; padding: 30px 25px 16px; border-radius: 18px; background: radial-gradient(ellipse at 85% 9%,#d7e0f1 0,transparent 52%),linear-gradient(125deg,#e7eee5,#f0e9e0); border: 1px solid #e1e6dd; }
.case-scene-request { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 1.7; margin: 0 3px 25px; }
.case-you { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff8; border: 1px solid #fff; color: #7c8e74; font-size: 9px; flex-shrink: 0; }
.case-scene-work { background: #fafffac7; border: 1px solid #fff; border-radius: 10px; padding: 21px 23px; margin-right: 22px; box-shadow: 0 10px 25px #40523a0a; }
.case-scene-brand { display: flex; gap: 7px; align-items: center; margin-bottom: 19px; font-size: 15px; font-weight: 600; }
.case-scene-brand .brand-mark { width: 27px; height: 19px; }
.case-scene-brand small { margin-left: auto; font-size: 8px; font-weight: 400; color: #7d8b83; }
.case-scene-lines { display: flex; flex-direction: column; gap: 13px; font-size: 11px; color: #6c7c70; }
.case-scene-lines>span { display: flex; align-items: center; gap: 10px; }
.case-scene-lines .icon { width: 16px; height: 16px; color: #799478; }
.case-scene-result { position: relative; margin: -4px 0 0 57px; padding: 21px 22px 16px; background: #fffcf7; border: 1px solid #fff; border-radius: 9px; transform: rotate(-3deg); box-shadow: 0 12px 32px #50614517; }
.case-scene-result>div { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #818d7b; margin-bottom: 13px; }
.case-scene-result .icon { width: 14px; height: 14px; }
.case-scene-result>strong { display: block; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.5px; max-width: 20ch; }
.case-scene-result>p { font-size: 9px; color: #8b9587; margin-top: 9px; }
.case-scene-review { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e8ebe3; padding-top: 13px; margin-top: 17px; color: #7f916e; font-size: 9px; }
.casebook-scene figcaption { font-size: 8px; line-height: 1.6; color: #8b978a; margin-top: 24px; text-align: center; }
.case-collection { padding-top: 55px; padding-bottom: 76px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 33px; }
.collection-heading .case-eyebrow { margin-bottom: 13px; }
.collection-heading h2 { font-size: clamp(27px,3vw,37px); line-height: 1.2; font-weight: 500; letter-spacing: -1.3px; }
.collection-heading>p { font-size: 11px; line-height: 1.7; color: #859086; flex-shrink: 0; }
/* Work and personal are two views of the catalog, not two more filters, so the control
   that switches them is a segmented pair above the category chips. */
.case-groups { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 19px; border: 1px solid #dce3d8; border-radius: 7px; background: #ffffff73; }
.case-groups button { min-height: 34px; padding: 8px 21px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #74816f; font-size: 12px; font-weight: 500; transition: color .15s,background .15s; }
.case-groups button:hover { color: #294e4c; }
.case-groups button[aria-pressed=true] { color: #2f5147; background: #e3ebde; border-color: #dce6d5; }
.case-controls { display: flex; align-items: flex-start; gap: 23px; }
.case-search { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 14px; width: 290px; flex-shrink: 0; border: 1px solid #dce3d8; border-radius: 6px; background: #ffffff73; }
.case-search .icon { width: 17px; height: 17px; color: #849582; }
.case-search:focus-within { outline: 2px solid #315cbd; outline-offset: 2px; }
.case-search input { min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 12px; }
.case-search input::placeholder { color: #879282; }
.case-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.case-filters button { border: 1px solid transparent; background: transparent; border-radius: 4px; padding: 9px 12px; min-height: 34px; color: #74816f; font-size: 11px; transition: color .15s,background .15s; }
.case-filters button:hover { color: #294e4c; background: #e9eee4; }
.case-filters button[aria-pressed=true] { color: #2f5147; background: #e3ebde; border-color: #dce6d5; }
.case-results-meta { display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-size: 10px; color: #8d9789; }
.case-results-meta button { font-size: 10px; padding: 5px; display: flex; align-items: center; gap: 7px; color: #6a7c65; border: 0; background: none; }
.case-results-meta button .icon { width: 12px; height: 12px; }
.case-results-meta [hidden],.case-empty[hidden] { display: none; }
.case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.case-card { position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 25px; border: 1px solid #dfe5d9; border-radius: 9px; background: #fcfdf8; transition: border-color .2s,box-shadow .2s,transform .2s; }
.case-card:hover { border-color: #bfcdb8; transform: translateY(-3px); box-shadow: 0 10px 24px #4b634008; }
.case-card[data-category="Travel"],.case-card[data-category="Work & making"] { background: #f2f6f7; border-color: #dce4e7; }
.case-card[data-category="Food & events"],.case-card[data-category="Goals & learning"] { background: #f2f5ed; }
.case-card[data-category="Your agent"] { background: #f6f1ee; border-color: #e8dfd9; }
/* Work cards share one cooler tone, so a mixed search result reads as two groups. */
.case-card[data-group="work"] { background: #f3f6f4; border-color: #dce6de; }
.case-card-top { display: flex; align-items: center; gap: 9px; color: #87937f; font-size: 10px; margin-bottom: 29px; }
.case-card-top .icon { width: 17px; height: 17px; }
.case-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -.7px; line-height: 1.25; max-width: 23ch; margin-bottom: 12px; }
.case-card>p { color: #7d8976; font-size: 12px; line-height: 1.75; margin-bottom: 24px; }
.case-card>[data-case] { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #5c7553; font-size: 11px; font-weight: 500; padding: 0; border: 0; background: transparent; margin-top: auto; text-align: left; }
.case-card>[data-case] .icon { width: 16px; height: 16px; }
.case-card>[data-case]::after { content: ''; position: absolute; inset: 0; border-radius: 9px; }
.case-card:focus-within { outline: 2px solid var(--blue); outline-offset: 4px; }
.case-card>[data-case]:focus-visible { outline: 0; }
.case-empty { border: 1px dashed #ced9c7; padding: 60px 24px; text-align: center; border-radius: 9px; }
.case-empty>span { color: #83937a; margin-bottom: 15px; }
.case-empty h3 { font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.case-empty p { color: #829078; font-size: 13px; margin-bottom: 24px; }
.case-empty-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; justify-content: center; }
.case-empty-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 8px 12px; border: 0; background: none; color: #5c7553; font-size: 11px; }
.case-empty-switch:hover { color: #405437; }
.case-empty-switch .icon { width: 14px; height: 14px; }
.case-empty-switch[hidden] { display: none; }
.casebook-closing { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 53px 0 72px; border-top: 1px solid var(--line); }
.casebook-closing h2 { font-size: clamp(29px,3vw,40px); font-weight: 500; line-height: 1.2; letter-spacing: -1.3px; margin-bottom: 17px; }
.casebook-closing p:last-child { max-width: 650px; color: #74816e; line-height: 1.8; font-size: 13px; }
.casebook-closing>.story-button { flex-shrink: 0; }
.case-dialog { position: fixed; width: min(1160px,calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; color: var(--ink); border: 1px solid #edf1e8; background: #fbfcf7; border-radius: 14px; box-shadow: 0 28px 90px #17271933; overflow-y: auto; overscroll-behavior: contain; }
.case-dialog::backdrop { background: #1e342752; backdrop-filter: blur(7px); }
.case-close { position: sticky; top: 17px; float: right; margin: 17px 17px -52px 0; display: grid; place-items: center; width: 35px; height: 35px; background: #f0f3eb; color: #77866d; border: 1px solid #e3e9db; border-radius: 50%; z-index: 1; }
.case-close:hover { background: #e7ece0; color: #4c5b45; }
/* The page-wide focus ring is offset for text links; on a small round button it needs to hug. */
.case-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.casebook:has(.case-dialog[open]) { overflow: hidden; }
.case-close .icon { width: 17px; height: 17px; }
.case-detail-heading { padding: 32px 68px 24px 38px; border-bottom: 1px solid #e2e8dc; }
.case-detail-heading .case-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 10px; }
.case-detail-heading .icon { width: 15px; height: 15px; }
.case-detail-heading h2 { font-size: clamp(28px,3vw,40px); font-weight: 500; line-height: 1.15; letter-spacing: -1.4px; }
.case-detail-body { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.15fr); gap: 42px; padding: 26px 38px 24px; }
.case-prompt-panel { padding: 22px; background: #edf3e7; border: 1px solid #e0e9d8; border-radius: 8px; align-self: start; }
.case-prompt-panel label { display: block; color: #607950; font-size: 11px; font-weight: 550; margin-bottom: 15px; }
/* The request box follows its text: use-cases.js sets the height once the dialog is open. */
.case-prompt-panel textarea { width: 100%; height: auto; min-height: 0; max-height: 34vh; overflow: hidden; resize: none; color: #405437; font: inherit; font-size: 13px; line-height: 1.8; border: 0; outline-offset: 3px; background: transparent; padding: 0; }
.case-copy { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 25px; width: 100%; padding: 11px 13px; background: #fafdf7; border: 1px solid #d7e3cc; border-radius: 5px; color: #52703b; font-size: 11px; }
.case-copy .icon { width: 14px; height: 14px; }
.case-copy-status { font-size: 10px; color: #6f845d; min-height: 17px; margin-top: 9px; line-height: 1.6; }
.case-workflow h3,.case-result h3 { font-size: 12px; font-weight: 600; margin-bottom: 17px; }
.case-workflow ol { margin: 0 0 25px; padding: 0; list-style: none; counter-reset: steps; }
.case-workflow li { position: relative; counter-increment: steps; padding: 0 0 19px 33px; color: #76866b; font-size: 12px; line-height: 1.75; }
.case-workflow li::before { content: counter(steps,decimal-leading-zero); position: absolute; left: 0; top: 0; color: #9aa78e; font-size: 9px; }
.case-workflow li:last-child { padding-bottom: 0; }
.case-result { padding-top: 19px; border-top: 1px solid #e1e7da; }
.case-result p { font-size: 13px; color: #5f7750; line-height: 1.8; }
.case-detail-boundaries { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin: 0 38px; padding: 22px 0; border-top: 1px solid #e1e7da; }
.case-detail-boundaries h3 { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 550; margin-bottom: 9px; color: #69805c; }
.case-detail-boundaries .icon { width: 14px; height: 14px; }
.case-detail-boundaries p { font-size: 11px; line-height: 1.75; color: #829275; }
.case-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 38px 26px; border-top: 1px solid #e1e7da; }
.case-detail-footer p { color: #8b9781; font-size: 10px; }
.case-detail-footer a { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; color: #446736; }
.case-detail-footer .icon { width: 14px; height: 14px; }
.case-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .case-container { width: calc(100% - 72px); } .casebook-opening { gap: 35px; } .casebook-opening h1 { font-size: 49px; } .case-scene-work { padding: 18px; margin-right: 10px; } .case-scene-brand small { display: none; } .case-card { padding: 22px; } .case-controls { flex-direction: column; gap: 15px; } .case-search { width: 100%; } }
@media (max-width: 800px) { .case-container { width: calc(100% - 48px); } .casebook-opening { grid-template-columns: 1fr; padding-top: 145px; gap: 39px; } .casebook-opening-copy { max-width: 570px; } .casebook-opening h1 { font-size: 55px; } .casebook-scene { max-width: 480px; width: 100%; justify-self: center; } .case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .casebook-nav { display: none; } .collection-heading>p { display: none; } .casebook-closing { flex-direction: column; align-items: flex-start; gap: 25px; } .case-detail-body { gap: 25px; padding-inline: 25px; } .case-detail-heading { padding-left: 25px; } .case-detail-boundaries { margin-inline: 25px; } .case-detail-footer { padding-inline: 25px; } .case-prompt-panel textarea { max-height: none; } }
@media (max-width: 520px) { .case-container { width: calc(100% - 36px); } .casebook-header { width: calc(100% - 24px); top: 12px; height: 61px; padding-inline: 14px; } .casebook-header .wordmark { font-size: 25px; } .casebook-header .brand-mark { width: 30px; } .casebook-header .story-button { min-height: 37px; padding: 9px 11px; font-size: 10px; gap: 11px; } .casebook-opening { padding-top: 123px; padding-bottom: 49px; } .casebook-opening h1 { font-size: clamp(36px,9.7vw,50px); letter-spacing: -2px; margin-bottom: 24px; } .casebook-deck { font-size: 13px; line-height: 1.85; } .casebook-opening-actions { gap: 20px; } .casebook-opening-actions .story-button { padding: 11px 14px; gap: 18px; font-size: 11px; } .casebook-opening-actions>span { font-size: 9px; } .casebook-scene { padding: 22px 17px 13px; } .case-scene-request { font-size: 10px; gap: 9px; } .case-scene-work { margin-right: 9px; } .case-scene-result { margin-left: 30px; padding: 18px; } .case-scene-result>strong { font-size: 21px; } .case-collection { padding-top: 39px; padding-bottom: 48px; } .collection-heading h2 { font-size: 30px; max-width: 17ch; letter-spacing: -1.1px; } .case-filters { gap: 3px; } .case-filters button { padding: 8px 9px; font-size: 10px; } .case-grid { grid-template-columns: 1fr; gap: 13px; } .case-card { min-height: 0; padding: 24px; } .case-card-top { margin-bottom: 22px; } .case-card h3 { font-size: 23px; } .case-card>p { margin-bottom: 20px; } .casebook-closing { padding-top: 39px; padding-bottom: 49px; } .case-dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 20px); border-radius: 10px; } .case-detail-heading { padding: 28px 53px 24px 22px; } .case-detail-heading h2 { font-size: 29px; } .case-detail-body { grid-template-columns: 1fr; padding: 23px 22px; gap: 29px; } .case-prompt-panel textarea { max-height: none; font-size: 13px; } .case-detail-boundaries { grid-template-columns: 1fr; gap: 19px; margin-inline: 22px; } .case-detail-footer { align-items: flex-start; padding: 10px 22px 24px; flex-direction: column; gap: 13px; } .case-close { top: 13px; right: 13px; width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .casebook *, .casebook *::before, .casebook *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
