/* Shared page styles: header, offers hub, toolkit, audience routes, license, home book band. Uses tokens from styles.css. */
/* Header: below 880px the links no longer fit on one line, so the menu button takes over */
.site-nav>a{white-space:nowrap}
@media(max-width:880px) and (min-width:761px){
  .site-header{position:relative}
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;z-index:50;padding:20px var(--gutter) 28px;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 16px 22px #20251e0b}
  .site-nav.open{display:flex;align-items:stretch;flex-direction:column;gap:8px}
  .site-nav>a:not(.button){display:block;font-size:16px;padding:12px 0}
  .site-nav>.button{margin-top:5px}
  .menu-toggle{display:flex;align-items:center;gap:12px;border:0;padding:8px 0 8px 10px;font-size:13px;background:transparent;color:var(--ink);min-height:44px}
  .menu-bars{position:relative;width:20px;height:16px}
  .menu-bars:before,.menu-bars:after{position:absolute;content:'';width:20px;height:1px;background:currentColor;left:0;top:4px}
  .menu-bars:after{top:11px}
  .menu-toggle[aria-expanded=true] .menu-bars:before{top:7px;transform:rotate(45deg)}
  .menu-toggle[aria-expanded=true] .menu-bars:after{top:7px;transform:rotate(-45deg)}
  html:not(.enhanced) .menu-toggle{display:none}
  html:not(.enhanced) .site-header{flex-wrap:wrap}
  html:not(.enhanced) .site-nav{display:flex;position:static;width:100%;box-shadow:none;border:0;padding:6px 0 0;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px 22px}
}
@media(max-width:760px){.menu-toggle{min-height:44px}}
.menu-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.site-nav a[aria-current=page]{color:var(--blue)}
.site-nav a.button[aria-current=page]{color:var(--paper)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Footer links */
.footer-links{display:flex;flex-wrap:wrap;gap:8px 24px}
.footer-links a{color:var(--paper)}
.footer-links a:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:760px){.footer-bottom>.footer-links{width:100%;gap:10px 20px;font-size:12px}}

/* Shared page pieces */
.page-badge{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:7px 11px;border:1px solid var(--ink)}
.page-badge--soon{background:var(--yellow);border-color:var(--yellow)}
.page-badge--live{background:#ff7648;border-color:#ff7648;color:var(--ink)}
.page-actions{display:flex;align-items:center;gap:14px 28px;flex-wrap:wrap;margin-top:30px}
.page-actions .underlined-link{margin-top:0}
.page-note{font-size:13px;color:var(--muted);line-height:1.6;margin-top:16px;max-width:560px}
.page-note a,.page-copy a:not(.button):not(.underlined-link){text-decoration:underline;text-underline-offset:3px}
.page-section{padding:80px var(--gutter);border-top:1px solid var(--line)}
.page-section--tint{background:#eaece4;border-top:0}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:40px}
.page-head h2{font-size:clamp(36px,4vw,60px);margin-top:18px}
.page-head>p{max-width:380px;color:var(--muted);font-size:16px;line-height:1.7}
.jump-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:34px}
.jump-links a{font-size:13px;font-weight:600;padding:10px 14px;border:1px solid var(--line);min-height:44px;display:inline-flex;align-items:center}
.jump-links a:hover{border-color:var(--blue);color:var(--blue)}

/* Offers hub */
.offer{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(32px,6vw,100px);align-items:center;padding:80px var(--gutter);border-top:1px solid var(--line)}
.offer--alt{background:#eaece4;border-top:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.offer-media{margin:0}
.offer-media img{display:block;width:100%;height:auto}
.offer-media--cover{max-width:400px;justify-self:center;width:100%}
.offer-media--cover img{box-shadow:0 30px 60px #20251e33,0 6px 14px #20251e22;transform:rotate(-1.5deg)}
.offer-media--sheet img{border:1px solid var(--line);box-shadow:0 14px 30px #20251e1a}
.offer-media figcaption{font-size:12px;color:var(--muted);margin-top:12px;line-height:1.5}
.offer-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.offer-copy h2{font-size:clamp(40px,4.4vw,70px);margin:20px 0 20px}
.offer-lede{font-size:clamp(17px,1.3vw,20px);line-height:1.65;color:var(--muted);max-width:620px}
.offer-price{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:26px}
.offer-price strong{font-size:clamp(48px,4.4vw,64px);line-height:1;letter-spacing:-.04em;font-weight:500}
.offer-price s{font-size:24px;color:var(--muted)}
.offer-price span{font-size:14px;color:var(--muted)}
.offer-terms{font-size:22px;letter-spacing:-.02em;margin-top:26px;font-weight:500}
.offer-list{list-style:none;padding:0;margin:26px 0 0;max-width:640px;border-top:1px solid var(--line)}
.offer-list li{border-bottom:1px solid var(--line);padding:13px 0 13px 26px;position:relative;font-size:15px;line-height:1.6}
.offer-list li:before{content:'';position:absolute;left:2px;top:22px;width:10px;height:2px;background:#ff7648}
.offer-list strong{font-weight:600}
.offer-list a{text-decoration:underline;text-underline-offset:3px}
.button--accent{background:#ff7648;border-color:#ff7648;color:var(--ink);font-weight:600}
.button--accent:hover{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.service-tiles{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.service-tiles li:last-child:nth-child(odd){grid-column:1/-1}
.service-tiles a{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--line);padding:22px 24px;transition:border-color .2s,transform .2s}
.service-tiles a:hover{border-color:var(--blue);transform:translateY(-2px)}
.service-tiles .tile-index{font-size:12px;color:var(--muted)}
.service-tiles h3{font-size:22px;letter-spacing:-.03em;line-height:1.2;margin:14px 0 8px}
.service-tiles p{font-size:14px;line-height:1.6;color:var(--muted)}
.free-grid .resource-card:nth-child(3n+1){background:var(--paper)}
.free-grid .resource-card:nth-child(5){background:var(--yellow)}

.free-grid .resource-card{min-height:260px}
.route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.route-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);padding:32px;min-height:250px;transition:border-color .2s,transform .2s}
.route-card:hover{border-color:var(--blue);transform:translateY(-3px)}
.route-card h3{font-size:clamp(26px,2.4vw,34px);line-height:1.15;letter-spacing:-.04em;margin:22px 0 14px}
.route-card p{color:var(--muted);font-size:15px;line-height:1.7;max-width:480px}
.route-card .card-bottom{margin-top:auto;padding-top:24px;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600}
.route-card .card-arrow{font-size:26px;font-weight:400}
.license-strip{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px var(--gutter);border-top:1px solid var(--line)}
.license-strip p{max-width:760px;color:var(--muted);line-height:1.7}
.license-strip strong{color:var(--ink);font-weight:600}
.license-strip .underlined-link{margin-top:0;white-space:nowrap}

/* Offers hero: copy plus a compact index of the four offers, desktop only */
.offers-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(30px,5vw,90px);align-items:end}
.offers-hero h1{font-size:clamp(58px,6.6vw,108px)}
.offer-index{display:flex;flex-direction:column;border-top:1px solid var(--ink)}
.offer-index a{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:16px;padding:22px 4px;border-bottom:1px solid var(--line);transition:color .2s,padding .2s}
.offer-index a:hover{color:var(--blue);padding-left:10px}
.oi-num{font-size:12px;font-weight:600;color:var(--muted)}
.oi-name{font-size:clamp(20px,1.8vw,26px);letter-spacing:-.03em;line-height:1.2}
.oi-status{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border:1px solid var(--line);white-space:nowrap;color:var(--ink)}
.oi-status--live{background:#ff7648;border-color:#ff7648}
.oi-status--soon{background:var(--yellow);border-color:var(--yellow)}
@media(min-width:901px){.offers-hero .jump-links{display:none}}
@media(max-width:900px){.offers-hero{display:block}.offer-index{display:none}}
/* Offers toolkit: two stacked screens */
.offer-media--stack a{display:block;position:relative;padding:0 0 0 0}
.offer-media--stack img{display:block;width:84%;height:auto;border:1px solid var(--line);background:#fff;box-shadow:0 14px 30px #20251e1a}
.offer-media--stack .stack-back{margin-left:16%}
.offer-media--stack .stack-front{position:relative;margin-top:-9%;box-shadow:0 22px 44px #20251e2e}
.offer-media--stack a:hover img{border-color:var(--blue)}
/* Toolkit and audience routes */
.stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 40px}
.stat-row div{padding:24px 20px 22px 0;display:flex;flex-direction:column;gap:6px}
.stat-row div+div{border-left:1px solid var(--line);padding-left:24px}
.stat-row strong{font-size:clamp(36px,3.6vw,54px);line-height:1;font-weight:500;letter-spacing:-.04em}
.stat-row span{font-size:13px;color:var(--muted)}
.contents-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}
.contents-list li{border-top:1px solid var(--ink);padding:22px 0 30px}
.contents-list .num{font-size:12px;font-weight:600;color:#ff7648}
.contents-list h3{font-size:25px;letter-spacing:-.035em;line-height:1.2;margin:14px 0 10px}
.contents-list p{font-size:15px;line-height:1.7;color:var(--muted);max-width:520px}
.preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px}
.preview-grid figure{margin:0}
.preview-grid img{display:block;width:100%;height:auto;border:1px solid var(--line);box-shadow:0 10px 24px #20251e14;background:#fff}
.preview-grid figcaption{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.5}
.preview-grid figcaption strong{color:var(--ink);font-weight:600}
.sample-tag{display:inline-block;font-size:12px;color:var(--muted);border:1px solid var(--line);padding:6px 10px;margin-bottom:22px}
.limits{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
.limits h2{font-size:clamp(32px,3.4vw,48px)}
.limits p:not(.eyebrow){color:var(--muted);line-height:1.75;font-size:16px}
.limits p:not(.eyebrow)+p{margin-top:14px}
.limits .eyebrow+h2,.bring .eyebrow+h2{margin-top:18px}
.limits a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.bring{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,100px);align-items:start}
.bring h2{font-size:clamp(34px,3.6vw,54px)}
.bring>div>p:not(.eyebrow){color:var(--muted);line-height:1.75;margin-top:20px;max-width:520px}
.bring blockquote{margin:24px 0 0;font-family:var(--serif);font-style:italic;font-size:clamp(22px,2vw,28px);line-height:1.35;letter-spacing:-.02em;max-width:520px}
.route-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.route-steps li{padding:32px 30px 34px 0;display:flex;flex-direction:column}
.route-steps li+li{border-left:1px solid var(--line);padding-left:30px}
.route-steps .num{font-size:12px;font-weight:600;color:var(--blue)}
.route-steps h3{font-size:26px;line-height:1.2;letter-spacing:-.035em;margin:20px 0 14px}
.route-steps p{color:var(--muted);font-size:15px;line-height:1.7}
.route-steps a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.route-steps .step-links{margin-top:18px;display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}
.route-steps .soon{font-weight:400;color:var(--muted);font-size:12px}

/* Resources: the book as a wide feature card above the three guides */
.resource-collection .resource-card--book{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:40px;min-height:0;background:var(--ink);color:var(--paper);padding:34px 40px}
.resource-card--book .book-card-copy{display:flex;flex-direction:column;align-self:stretch;max-width:560px}
.resource-card--book .book-card-copy>p:not(.eyebrow){color:#d4d7cb;font-size:15px;line-height:1.65;margin-bottom:25px}
.resource-card--book .eyebrow{color:#ffb79f}
.resource-card--book .card-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600}
.resource-card--book img{width:150px;height:auto;flex-shrink:0;box-shadow:0 18px 36px #00000066;transform:rotate(-2deg)}
.resource-collection .resource-card:nth-child(2){background:var(--yellow)}

.resource-collection .resource-card:nth-child(4){background:#eaece4}
.desk-note p a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
@media(max-width:600px){.resource-collection .resource-card--book{flex-direction:column-reverse;align-items:flex-start;padding:26px}.resource-card--book img{width:120px}}
/* Book page: on tablets and phones keep the breadcrumb above the cover */
@media(max-width:900px){
  main .book-hero{display:flex;flex-direction:column;align-items:stretch;gap:0}
  main .book-hero-copy{display:contents}
  main .book-hero .breadcrumb{order:0}
  main .book-hero .book-cover{order:1;align-self:center;margin:0 0 6px}
  main .book-hero-copy>*:not(.breadcrumb){order:2}
}
/* License */
.article-index .index-note a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.preview-grid a{display:block}
.preview-grid a:hover img{border-color:var(--blue)}
.license-body h2{font-size:30px;line-height:1.2;margin-bottom:16px}
.license-body .license-version{font-size:13px;color:var(--muted);margin-bottom:30px}

/* Home book band */
.book-band{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(32px,6vw,110px);align-items:center;background:var(--ink);color:var(--paper)}
.book-band .eyebrow{color:#ffb79f}
.book-band figure{margin:0;max-width:360px;justify-self:center;width:100%}
.book-band figure img{display:block;width:100%;height:auto;box-shadow:0 30px 60px #00000066;transform:rotate(-1.5deg)}
.book-band h2{margin:22px 0 22px;font-size:clamp(42px,4.4vw,72px)}
.book-band p.band-copy{font-size:17px;line-height:1.7;color:#d4d7cb;max-width:560px}
.book-band .offer-price{margin-top:22px}
.book-band .offer-price s,.book-band .offer-price span{color:#b9bdb0}
.book-band .page-actions .underlined-link:hover{color:var(--yellow)}
.book-band .button--accent:hover{background:var(--paper);border-color:var(--paper);color:var(--ink)}
.book-band .band-more{display:inline-block;margin-top:22px;font-size:13px;color:#d4d7cb;text-decoration:underline;text-underline-offset:4px}
.book-band .band-more:hover{color:var(--yellow)}

@media(max-width:1100px){
  .route-steps h3{font-size:23px}
  .contents-list h3{font-size:23px}
}
@media(max-width:900px){
  .offer{grid-template-columns:1fr;gap:40px}
  .offer-media--cover{max-width:300px;justify-self:start}
  .offer--services .service-tiles{order:2}
  .route-steps{grid-template-columns:1fr}
  .route-steps li,.route-steps li+li{padding:28px 0;border-left:0}
  .route-steps li+li{border-top:1px solid var(--line)}
  .bring,.limits{grid-template-columns:1fr;gap:28px}
  .book-band{grid-template-columns:1fr;gap:40px}
  .book-band figure{max-width:260px;justify-self:start}
  .stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-row div:nth-child(3){border-left:0;padding-left:0}
  .stat-row div:nth-child(n+3){border-top:1px solid var(--line)}
}
@media(max-width:760px){
  .page-section,.offer{padding-top:60px;padding-bottom:60px}
  .page-head{display:block;margin-bottom:30px}
  .page-head>p{margin-top:18px}
  .route-grid,.preview-grid,.contents-list{grid-template-columns:1fr}
  .route-card{min-height:0;padding:26px}
  .license-strip{display:block}
  .license-strip .underlined-link{margin-top:18px}
  .free-grid .resource-card{min-height:0}
}
@media(max-width:600px){
  .service-tiles{grid-template-columns:1fr}
  .offer-media--cover{max-width:230px}
  .book-band figure{max-width:210px}
  .offer-copy h2{font-size:42px}
  .page-actions .button{width:100%}
  .stat-row strong{font-size:34px}
  .stat-row div{padding-right:12px}
  .stat-row div+div{padding-left:16px}
  .stat-row div:nth-child(3){padding-left:0}
}
