/* Products extends QASRA's shared forest / parchment / gold design system. */
.product-site { --product-border: rgba(52,77,61,.18); --product-surface: #fffdf8; }
html[data-theme="dark"] .product-site { --product-border: #2a4035; --product-surface: #13241b; }
.product-site a:focus-visible, .product-site button:focus-visible,
.product-breadcrumb a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.skip-content { position: fixed; z-index: 2000; top: -5rem; left: 1rem; padding: .8rem 1.2rem; background: var(--gold); color: #0d1b12; }
.skip-content:focus { top: 1rem; }
.product-container { width: min(1200px, 100% - 4rem); margin-inline: auto; }
.products-hero { padding: 10rem 0 4.5rem; background: #0d1b12; color: #f4f0e8; position: relative; overflow: hidden; }
.products-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 90% 10%,rgba(201,168,76,.09),transparent 55%),radial-gradient(ellipse at 20% 100%,rgba(58,125,92,.13),transparent 65%); }
.products-hero .product-container { position: relative; }
.products-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem,6vw,6rem); }
.products-hero .section-label { margin-bottom: 1.3rem; }
.products-hero h1 { font-family: 'Anthropic Serif', Georgia, serif; font-size: clamp(2.8rem,5.5vw,4.8rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 1.4rem; color: #f4f0e8; }
.products-hero h1 em { color: var(--gold); font-weight: 400; }
.products-hero p { color: #eeeeee; font-size: 1rem; line-height: 1.8; max-width: 36rem; }
.product-hero-link { display: inline-flex; gap: 1.5rem; align-items: center; margin-top: 1.8rem; color: var(--gold); font-size: .8rem; font-weight: 600; }
.product-hero-link span { border: 1px solid #4c5234; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; transition: transform .2s; }
.product-hero-link:hover span { transform: translateY(3px); }
.hero-index { padding: 1.6rem 1.8rem .3rem; border: 1px solid rgba(201,168,76,.22); background: rgba(255,255,255,.025); }
.hero-index-label { font-size: .6rem; font-weight: 600; letter-spacing: .16em; color: #d8d8d8; display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid #2b3c30; }
.hero-index-label span { color: var(--gold); }
.hero-index a { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid #2b3c30; }
.hero-index a:last-child { border-bottom: 0; }
.hero-index a > span:nth-child(2) { flex: 1; font-size: .9rem; }
.hero-index small { display: block; margin-top: .3rem; font-size: .65rem; color: #d8d8d8; }
.hero-index b { color: var(--gold); transition: transform .2s; }
.hero-index a:hover b { transform: translate(2px,-2px); }
.hero-index a:hover > span:nth-child(2) { color: var(--gold); }
.hero-index-icon { width: 28px; color: var(--gold); flex-shrink: 0; }
.hero-index-icon svg { display: block; width: 100%; height: 28px; }
.product-collection { padding: 4.5rem 0 5rem; background: var(--parchment); scroll-margin-top: 5rem; }
.collection-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.collection-heading .section-label { margin-bottom: .65rem; }
.product-site h2 { font-family: 'Anthropic Serif', Georgia, serif; font-size: clamp(2rem,3.7vw,3rem); line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.collection-heading > p { color: var(--ash); line-height: 1.7; font-size: .88rem; }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.7rem; }
.product-card { background: var(--product-surface); border: 1px solid var(--product-border); transition: border-color .25s,box-shadow .25s; min-width: 0; }
.product-card:hover { border-color: var(--gold-dim); box-shadow: 0 8px 35px rgba(0,0,0,.07); }
.product-card-top { padding: 1.3rem 1.7rem .9rem; display: flex; align-items: center; justify-content: space-between; }
.product-category { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--ash); }
.product-number { font-family: 'Anthropic Serif', Georgia, serif; color: var(--gold-dim); font-size: 1.1rem; }
.product-preview { height: 190px; margin: 0 1.7rem; background: #0d1b12; color: #f4f0e8; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.product-card-body { padding: 1.7rem; }
.product-card-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.product-icon { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--product-border); display: inline-grid; place-items: center; color: var(--gold-dim); }
.product-icon svg { width: 21px; height: 21px; }
.product-card h3 { font-family: 'Anthropic Serif', Georgia, serif; color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.product-card-body > p { font-size: .9rem; color: var(--ash); line-height: 1.8; min-height: 5em; }
.product-meta { margin: 1.1rem 0 1.4rem; padding-top: 1rem; border-top: 1px solid var(--product-border); font-size: .72rem; color: var(--charcoal); }
.product-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.3rem; padding: .9rem 1.2rem; font-size: .75rem; font-weight: 600; line-height: 1.5; background: var(--gold); color: #0d1b12; border: 1px solid var(--gold); transition: background .2s,transform .2s; text-align: center; }
.product-button:hover { background: var(--gold-bright); transform: translateY(-2px); }
.product-button span { font-size: 1.1rem; }
.product-card .product-button { width: 100%; }
.product-button--outline { background: transparent; color: #e6e7dc; border-color: #596049; }
.product-button--outline:hover { background: rgba(201,168,76,.1); }
.product-text-link { display: inline-flex; align-items: center; gap: 1.2rem; color: var(--gold-dim); font-size: .8rem; font-weight: 600; padding: .8rem 0; }
.product-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.sample-chat { width: 70%; padding: .8rem 0; }
.sample-chat > span { display: block; font-size: .48rem; color: #d8d8d8; margin: .35rem 0; }
.sample-chat > span:first-child { text-align: right; }
.sample-chat p { width: fit-content; font-family: 'Anthropic Sans', sans-serif; max-width: 100%; font-size: .7rem; line-height: 1.45; padding: .45rem 1rem; background: #1d3828; color: #f0f0f0; border-radius: 0 10px 10px 10px; }
.sample-chat p:first-of-type { margin-left: auto; border-radius: 10px 0 10px 10px; background: #29583d; }
.sample-chat b { display: block; font-family: 'Noto Naskh Arabic', serif; font-size: 1rem; font-weight: 400; }
.sample-chat small { color: #dedede; }
.sample-data { width: 80%; text-align: center; }
.sample-data > span, .sample-prayer > span { font-size: .52rem; color: #d8d8d8; letter-spacing: .14em; display: block; }
.data-blocks { display: flex; gap: 6px; margin: 1.7rem 0; }
.data-blocks i { display: block; height: 48px; flex: 1; background: #1d3326; border: 1px solid #3d503b; }
.data-blocks .selected { background: var(--gold); border-color: #ecd285; box-shadow: 0 0 25px rgba(201,168,76,.15); transform: translateY(-5px); }
.sample-data code { font-size: .7rem; color: #e0e0e0; }
.sample-data b { color: var(--gold); margin: 0 .5rem; }
.sample-map { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.map-grid { position: absolute; inset: -50px; background-image: linear-gradient(25deg,transparent 46%,#304734 47%,#304734 48%,transparent 49%),linear-gradient(110deg,transparent 46%,#304734 47%,#304734 48%,transparent 49%); background-size: 85px 100px,105px 95px; opacity: .55; transform: rotate(-8deg); }
.map-pin { position: absolute; top: 22px; left: calc(50% - 18px); color: var(--gold); }
.map-pin svg { width: 36px; height: 42px; }
.map-label { position: relative; top: 22px; background: #162d20; border: 1px solid #526244; padding: .9rem 1.5rem; text-align: center; }
.map-label strong { font-size: .85rem; font-weight: 500; display: block; }
.map-label small { color: #dedede; font-size: .65rem; display: block; margin-top: .35rem; }
.sample-prayer { text-align: center; width: 80%; }
.sample-prayer > div { display: flex; align-items: center; gap: 1.2rem; margin: 1.6rem 0 1.3rem; }
.sample-prayer strong { font-family: 'Anthropic Serif', serif; font-size: 1.7rem; color: #e1d7b4; font-weight: 400; }
.sample-prayer i { flex: 1; height: 1px; background: #63704b; position: relative; }
.sample-prayer i::after { content: '+'; font: normal .8rem 'DM Sans', sans-serif; background: #0d1b12; color: var(--gold); position: absolute; inset: -.55rem auto auto calc(50% - .4rem); padding: 0 .2rem; }
.sample-prayer p { font-size: .8rem; color: #e8e8e8; }
.sample-prayer p b { font-weight: 400; color: var(--gold); padding: 0 .25rem; }
.sample-prayer > small { display: block; font-size: .6rem; color: #d0d0d0; margin-top: .5rem; }
.product-support { padding: 3.5rem 0; background: var(--cream); border-top: 1px solid var(--product-border); }
.product-support-inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.product-support .section-label { margin-bottom: .8rem; }
.product-support h2 { font-size: clamp(1.9rem,3vw,2.5rem); margin-bottom: .9rem; }
.product-support p { color: var(--ash); font-size: .9rem; line-height: 1.7; max-width: 38rem; }
.product-support .product-button { flex-shrink: 0; }
.product-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 2.2rem; font-size: .72rem; color: #d8d8d8; }
.product-breadcrumb a { color: var(--gold); }
.product-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-detail-hero { padding-top: 8rem; }
.product-detail-hero h1 { font-size: clamp(3rem,5.5vw,4.8rem); }
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.detail-visual { margin: 0; height: 290px; border: 1px solid #3c4e34; box-shadow: 0 25px 65px rgba(0,0,0,.2); }
.detail-visual .sample-map .map-pin { top: 65px; }
.product-section { padding: 4.5rem 0; background: var(--parchment); }
.product-section .section-label { margin-bottom: .9rem; }
.product-section h2 { margin-bottom: 1.8rem; }
.product-section p { font-size: .9rem; color: var(--ash); line-height: 1.8; margin: .7rem 0; }
.product-section h3 { font-family: 'Anthropic Serif',Georgia,serif; font-size: 1.55rem; line-height: 1.25; color: var(--ink); }
.product-section--alternate { background: var(--cream); }
.product-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin-top: 2.5rem; }
.product-features article { border-top: 1px solid var(--product-border); padding-top: 1.2rem; }
.feature-index { display: block; color: var(--gold-dim); font-size: .7rem; margin-bottom: 1rem; }
.edition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.3rem; }
.edition-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--product-surface); border: 1px solid var(--product-border); padding: 1.6rem; min-width: 0; }
.edition-card h3 { margin-top: 1rem; }
.edition-card p { flex: 1; }
.edition-card .product-code { width: 100%; }
.edition-card > .product-button { margin-top: .8rem; }
.product-code { background: #0d1b12; border: 1px solid #304734; margin: 1.3rem 0; min-width: 0; }
.code-label { padding: .8rem 1rem; font-size: .55rem; line-height: 1.5; letter-spacing: .1em; color: #d8d8d8; border-bottom: 1px solid #304734; }
.product-code pre { padding: 1.1rem; overflow-x: auto; color: #e3c97f; font-size: .75rem; line-height: 1.8; tab-size: 2; }
.product-code pre code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.product-example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; margin-top: 2rem; }
.product-example-grid > article { min-width: 0; }
.product-caption { font-size: .75rem !important; }
.product-explain-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
.product-notice { background: var(--product-surface); border: 1px solid var(--product-border); border-top: 2px solid var(--gold-dim); padding: 1.8rem; }
.product-notice a:not(.product-text-link) { text-decoration: underline; text-underline-offset: 4px; }
.product-notice strong { color: var(--ink); font-weight: 500; }
.product-endpoints { margin-bottom: 3rem; border-top: 1px solid var(--product-border); }
.product-endpoints article { display: grid; grid-template-columns: 10rem 1fr; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--product-border); }
.product-endpoints article > code { color: var(--gold-dim); font-size: 1rem; padding-top: .25rem; }
.product-endpoints p { margin-bottom: 0; }
.product-more { border-top: 1px solid var(--product-border); }
.product-more .collection-heading h2 { margin-bottom: 0; }
.product-related { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.product-related > a { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--product-border); background: var(--product-surface); }
.product-related > a:hover { border-color: var(--gold-dim); }
.product-related > a > span:nth-child(2) { flex: 1; font-size: .85rem; color: var(--ink); }
.product-related small { display: block; font-size: .63rem; line-height: 1.5; color: var(--ash); margin-top: .3rem; }
.product-related b { font-weight: 400; color: var(--gold-dim); }
@media (max-width: 1050px) { .product-site .nav-links { gap: 1.1rem; } .product-site .nav-links a { font-size: .75rem; } .product-related { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .products-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } .hero-index { max-width: 100%; } .products-hero { padding-top: 8rem; } .product-detail-hero { padding-top: 7rem; } .product-features, .edition-grid { grid-template-columns: 1fr; } .product-explain-grid { grid-template-columns: 1fr; gap: 2rem; } .detail-visual { height: 220px; } .detail-visual .sample-map .map-pin { top: 30px; } .edition-card p { flex: initial; } }
@media (max-width: 600px) {
  .product-container { width: calc(100% - 3rem); }
  .products-hero { padding: 7.5rem 0 3rem; }
  .products-hero h1 { font-size: clamp(2.4rem,10vw,3.2rem); }
  .products-hero p { font-size: .9rem; }
  .hero-index { padding-inline: 1.2rem; }
  .product-grid, .product-example-grid { grid-template-columns: 1fr; }
  .product-collection, .product-section { padding: 3rem 0; }
  .collection-heading { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .collection-heading > p br { display: none; }
  .product-card-top { padding: 1rem 1.2rem; }
  .product-preview { margin: 0 1.2rem; height: 175px; }
  .product-card-body { padding: 1.4rem 1.2rem; }
  .product-card h3 { font-size: 1.45rem; }
  .product-card-body > p { min-height: 0; }
  .product-card-heading { align-items: flex-start; }
  .product-support-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .product-support { padding: 2.5rem 0; }
  .product-detail-hero { padding-top: 6.5rem; }
  .product-actions { flex-direction: column; align-items: stretch; }
  .detail-visual { margin: 0; height: 210px; }
  .product-endpoints article { grid-template-columns: 1fr; gap: .8rem; }
  .product-notice { padding: 1.3rem; }
  .product-code pre { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .product-site *, .product-site *::before, .product-site *::after { scroll-behavior: auto !important; transition: none !important; } }
/* The full product navigation switches to a menu before tablet links crowd out the theme toggle. */
@media (max-width: 880px) {
  .product-site .nav { background: rgba(13,27,18,.96); backdrop-filter: blur(12px); }
  .product-site .nav.scrolled .nav-logo { color: var(--gold); }
  .product-site .nav.scrolled .nav-toggle span { background: var(--gold); }
  .product-site .nav-links { display: none; }
  .product-site .nav-toggle { display: block; flex-shrink: 0; }
  .product-site .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 1.5rem 2rem; gap: 1rem; background: rgba(13,27,18,.98); max-height: calc(100svh - 80px); overflow-y: auto; border-bottom: 1px solid rgba(201,168,76,.2); }
  .product-site .nav-links.open a { color: #eeeeee; font-size: .9rem; padding: .4rem 0; }
  .product-site .nav-links.open .nav-cta { color: var(--gold) !important; border-color: var(--gold) !important; }
}


/* 2026 visual refresh for products: quiet cards, rounded actions, editorial spacing. */
.product-site { background: var(--parchment); }
.product-container { max-width: var(--content-width); }
.products-hero, .product-detail-hero { background: #0b0b0a; }
.products-hero h1, .product-detail-hero h1 { font-family: 'Anthropic Sans', sans-serif; font-weight: 500; letter-spacing: -.065em; line-height: .98; }
.products-hero h1 em, .product-detail-hero h1 em { color: var(--gold); }
.product-hero-link, .product-button { border-radius: 999px; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.product-hero-link:hover, .product-button:hover { transform: translateY(-2px); }
.hero-index, .product-card, .product-related > a, .product-notice, .edition-card { border-radius: var(--radius); }
.product-card { border-color: var(--product-border); box-shadow: none; overflow: hidden; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.product-card-top { border-bottom-color: var(--product-border); }
.product-preview { border-radius: 10px; }
.product-card h3, .collection-heading h2, .product-support h2 { font-family: 'Anthropic Sans', sans-serif; font-weight: 500; letter-spacing: -.04em; }
.product-card h3 { font-size: 1.5rem; }
.product-button { background: var(--gold); color: #171714; padding: .72rem 1rem; }
.product-button:hover { background: var(--gold-bright); }
.product-support { border-top: 1px solid var(--product-border); }
@media (max-width: 600px) { .product-card:hover { transform: none; } }
