/* Computers: the sender screens use the width of the window (html.web is set by app.js on the website only).
   Every rule that changes a layout sits inside a min-width query, so phones and the iOS and Android apps, at any width,
   keep the phone layout exactly. Existing tokens only: paper #F9F7F3, ink #1B1A17, fir #1E5A48, hairline #ECE7DF. */

/* Wrappers that only matter on computers: invisible to the phone layout. */
.sheet-info,.ck-main,.ck-side{display:contents}
.sheet-info>*{flex-shrink:0}
/* The menu on screens other than home: in the page for computers (app.js), never shown on phones. */
.brandbar.sub-bar{display:none}

/* Tablets and small laptops: a little more room, same single column. */
@media (min-width:800px){
  html.web body:not(.operations-flow) main,
  html.web body:not(.operations-flow) .brandbar{max-width:720px}
  html.web .shop-card{width:136px}
  html.web .shop-card img{height:124px}
  /* Rows run past the column: fade them out at its edges instead of cutting a card in half. */
  html.web .shop-scroller,html.web .brand-pills{-webkit-mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}
}

/* Computers. */
@media (min-width:1024px){
  html.web body:not(.operations-flow):not(.recipient-flow) main{max-width:1200px;padding:0 48px 64px}
  html.web body:not(.operations-flow):not(.recipient-flow) .brandbar{max-width:1200px;padding:28px 48px 0;margin-bottom:40px}
  html.web body:not(.tour-flow):not(.operations-flow):not(.recipient-flow) .brandbar.sub-bar{display:flex}
  html.web body:not(.home-flow):not(.operations-flow):not(.recipient-flow) main{padding-top:8px}
  html.web body.tour-flow main{padding-top:64px!important}

  /* Header: the gifts and people buttons carry their names. */
  html.web .brandbar .wordmark{font-size:28px}
  html.web .brandbar .gifts-nav,html.web .brandbar .people-nav{width:auto;height:44px;padding:0 18px 0 14px;gap:8px;border-radius:999px;color:#1B1A17;text-decoration:none;font:600 14px 'DM Sans',system-ui,sans-serif}
  html.web .brandbar .gifts-nav::after{content:'Your gifts'}
  html.web .brandbar .people-nav::after{content:'Your people'}
  html.web .brandbar .gifts-nav:hover,html.web .brandbar .people-nav:hover{background:#F5F1EA}

  /* Home: a bigger opening, then the shelf across the whole width. */
  html.web .entry h1{font-size:56px;line-height:1.04;max-width:14em;margin-bottom:14px}
  html.web .entry-lede{font-size:18px;max-width:36em;margin-bottom:22px}
  html.web .entry-field{max-width:680px;height:64px;border-radius:20px}
  html.web .entry-go{width:52px;height:52px;min-height:52px}
  html.web .entry-help,html.web .entry-hint{max-width:680px}
  html.web .entry-credit,html.web .draft-card,html.web .entry-anywhere{max-width:680px}
  html.web .shop{margin:56px 0 0;padding:0}
  html.web .shop-head h2{font-size:30px}
  html.web .brand-pills{margin:16px -48px 0;padding:2px 48px 6px;scroll-padding-inline:48px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
  html.web .shop-rows{gap:28px;margin-top:26px}
  html.web .shop-row-head h3{font-size:16px}
  html.web .shop-scroller{margin:0 -48px;padding:2px 48px 6px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
  html.web .shop-track{gap:14px}
  html.web .shop-card{width:184px;gap:8px;padding:8px 8px 12px;border-radius:20px}
  html.web .shop-card img{height:168px;border-radius:14px}
  html.web .shop-card-meta b{font-size:13.5px}
  html.web .shop-card-meta small{font-size:12.5px}
  html.web .shop-card:hover{border-color:#D9D2C6!important;box-shadow:0 6px 18px rgba(27,26,23,.08)!important}
  html.web .shop-more{width:132px}
  /* A row that holds still (a search, a brand, See all) is a grid you can read without scrolling sideways. */
  html.web .shop-scroller.is-still{overflow:visible;margin:0;padding:2px 0 4px;-webkit-mask-image:none;mask-image:none}
  html.web .shop-scroller.is-still .shop-track{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));width:auto;gap:16px}
  html.web .shop-scroller.is-still .shop-card{width:auto}
  html.web .shop-scroller.is-still .shop-card img{height:auto;aspect-ratio:1}
  html.web .shop-scroller.is-still .shop-more{width:auto;min-height:120px}
  html.web .home-button-link{margin-top:40px}

  /* Gift sheet: photos on the left, the gift and its buttons on the right, similar gifts underneath. */
  html.web .sheet{width:min(1000px,calc(100vw - 96px));max-height:88vh}
  html.web .sheet-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:44px;row-gap:28px;align-items:start;padding:44px 44px 36px}
  html.web .sheet-gallery{grid-column:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:0;overflow:visible;scroll-snap-type:none}
  html.web .sheet-gallery img{width:100%;border-radius:14px}
  html.web .sheet-gallery img:first-child{grid-column:1/-1;border-radius:20px}
  html.web .sheet-info{grid-column:2;display:flex;flex-direction:column;gap:16px;padding-top:6px}
  html.web .sheet-head h2{font-size:32px;line-height:1.1;margin-bottom:8px}
  html.web .sheet-price{font-size:16px}
  html.web .sheet-price b{font-size:19px}
  html.web .sheet-desc{font-size:15px;line-height:1.6}
  html.web .sheet-similar{grid-column:1/-1;margin-top:0}
  html.web .sheet-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px;margin:0;padding:2px 0 4px;overflow:visible}
  html.web .sheet .sheet-mini{width:auto}
  html.web .sheet-mini img{height:auto;aspect-ratio:1}

  /* Screens with forms and lists: centred, wider than a phone, still easy to read. */
  html.web body:not(.operations-flow) .checkout-workspace,
  html.web body:not(.operations-flow) .link-home{max-width:640px;margin:0 auto}
  html.web body:not(.operations-flow) .sender-orders{max-width:760px;margin:0 auto}
  html.web body:not(.operations-flow) .account-screen{max-width:600px}
  html.web body:not(.operations-flow) .tour{max-width:520px;margin:0 auto}
  html.web body:not(.operations-flow) .business-page{max-width:880px;margin:0 auto}

  /* Checkout: the gift on the left; cost, payment and Send stay in view on the right. */
  html.web body:not(.operations-flow) .checkout-workspace:has(.ck-side){max-width:1040px}
  html.web .claude-checkout .checkout-stack:has(>.ck-side){display:grid;grid-template-columns:minmax(0,1fr) 400px;column-gap:32px;align-items:start}
  html.web .claude-checkout .ck-main,html.web .claude-checkout .ck-side{display:flex;flex-direction:column;gap:18px;min-width:0}
  html.web .claude-checkout .ck-side{position:sticky;top:24px}

  /* Your gifts: a row has room for the name and the status on one line. */
  html.web .gift-row{padding:14px 18px;gap:16px}
  html.web .gift-row-image{width:64px;height:64px;flex-basis:64px}
}

/* Wide screens: a little more air around the shelf. */
@media (min-width:1440px){
  html.web .shop-card{width:196px}
  html.web .shop-card img{height:180px}
}
