/* durgical.com: one stylesheet. Brand tokens from the launch film (durgical_video/facts.json brand) and site/index.html. */
:root {
  --bg: #F3F7F8; --surface: #FFFFFF; --ink: #0D1A1F; --muted: #4F6066; --line: #D6E2E5;
  --cyan: #17C3D7; --cyan-ink: #087F8E; --cyan-wash: #E1F6F9; --warn: #9A3412; --warn-wash: #FFF4E5;
  --accent: #C21A84; --accent-hover: #A8156F; --on-accent: #FFFFFF;   /* the one «click here» per screen (design system §3.1 Accent CTA) */
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --shadow: 0 1px 2px rgba(13,26,31,.06), 0 12px 32px rgba(13,26,31,.07);
  --r: 18px; --gutter: 16px; --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1316; --surface: #101D21; --ink: #E6F0F2; --muted: #9DB0B5; --line: #1F3036;
    --cyan: #22CCE0; --cyan-ink: #5DDDEC; --cyan-wash: #0E2A30; --warn: #FDBA74; --warn-wash: #2A1A0C;
    --accent: #F58AC8; --accent-hover: #F7A3D4; --on-accent: #2A0720;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
  .logo-light { display: none; } .logo-dark { display: inline; }
}
@media (prefers-color-scheme: light) { .logo-dark { display: none; } }
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-body); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); margin: 0 0 .8em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; min-height: 44px; }
.brand img { height: 26px; width: auto; }
.nav { display: none; gap: 4px; }
.nav a, .lang a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .lang a:hover { background: var(--cyan-wash); }
.nav a[aria-current="page"] { color: var(--cyan-ink); }
.lang a { font: 600 .82rem var(--f-mono); letter-spacing: .06em; }
@media (min-width: 860px) { .nav { display: flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 1rem var(--f-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--cyan-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
/* the accent CTA: exactly one per page, the action the page exists for (never for delete, never on chips or links) */
.btn-accent, .stage-hero .btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover, .stage-hero .btn-accent:hover { background: var(--accent-hover); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }

/* hero */
/* home hero: the floating 3D stage (website/hero_slot.md). No box, border or shadow: the loop is rendered on the exact
   page colour, and the stage edges are feathered so a few levels of difference never show as a rectangle. */
.stage-hero { --hero-bg: #F3F7F8; position: relative; background: var(--hero-bg); overflow: hidden; }
@media (prefers-color-scheme: dark) {
  /* without dark renders the hero stays light (a light loop on a dark band would show its edges) */
  .stage-hero:not(.has-dark) { --ink: #0D1A1F; --muted: #4F6066; --line: #D6E2E5; --surface: #FFFFFF; --bg: #F3F7F8; --cyan-ink: #087F8E; color: var(--ink); }
  .stage-hero:not(.has-dark) .btn-primary { background: #0D1A1F; color: #F3F7F8; }
  .stage-hero.has-dark { --hero-bg: #0A1316; }
}
.hero-copy { position: relative; z-index: 1; padding-top: 32px; padding-bottom: 4px; }
.stage-hero .lead { font-size: 1.22rem; color: var(--muted); max-width: 34ch; }
.stage-hero .line { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); max-width: 30ch; }
.offer { border: 2px dashed var(--line); border-radius: 12px; padding: 10px 14px; color: var(--muted); font-size: .95rem; max-width: 46ch; }
.stage { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%); }
.stage img, .stage video, .stage canvas, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: transparent; }
.stage video, .stage canvas, .stage iframe { opacity: 0; transition: opacity .7s ease; }
.stage .on { opacity: 1; }
/* the live scene draws on a transparent canvas: once it runs, the poster fades out underneath it */
.stage img { transition: opacity .7s ease; }
.stage.live img { opacity: 0; }
@media (min-width: 600px) and (max-width: 959px) { .stage { aspect-ratio: 16 / 9; max-height: none; } }
@media (min-width: 960px) {
  .stage-hero { min-height: min(86vh, 860px); display: flex; align-items: center; }
  .hero-copy { padding-top: 56px; padding-bottom: 56px; width: 100%; }
  .hero-copy > div { max-width: 480px; }
  .stage { position: absolute; inset: 0; width: auto; aspect-ratio: auto; max-height: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-composite: intersect; }
  /* the loop keeps its model in the right 60 % of a 16:9 frame; anchor it right so the left stays for the text */
  .stage img, .stage video { object-position: 100% 50%; }
}
/* until the floating loop exists the launch film fills the slot: keep it off the text on desktop */
@media (min-width: 960px) {
  .stage-hero.fallback .stage { left: 42%; right: 0; top: 50%; bottom: auto; aspect-ratio: 16 / 9; transform: translateY(-50%); }
}
.disclaimer { font: 500 .8rem/1.4 var(--f-mono); color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.disclaimer::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .35em; border-radius: 50%; background: var(--cyan); }

/* sections */
.band { padding: 56px 0; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.band > .wrap > h2 { max-width: 22ch; }
.intro { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.band.alt .card { background: var(--bg); box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--cyan); }
.card .more { color: var(--cyan-ink); font-weight: 700; }
.feature { display: grid; gap: 20px; align-items: center; margin: 0 0 40px; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 64px; } .feature.flip .shot { order: -1; } }
.feature .shot { display: flex; justify-content: center; }
.feature .shot img { width: min(250px, 66vw); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 860px) { .feature .shot img { width: 300px; border-radius: 28px; } }
.feature h3 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 26px; position: relative; margin: 0 0 .5em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--cyan-wash); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: .92rem; }
.door { display: grid; gap: 16px; align-items: center; }
@media (min-width: 860px) { .door { grid-template-columns: 1.4fr auto; } }

/* product + legal pages */
.page-head { padding: 36px 0 12px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.crumbs { font: 500 .82rem var(--f-mono); color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.panel { padding: 28px 0; border-top: 1px solid var(--line); }
.panel h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.rows { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
@media (min-width: 720px) { .rows.cols { grid-template-columns: 1fr 1fr; } }
.rows li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rows li b { display: block; }
.rows li span { color: var(--muted); font-size: .95rem; }
.callout { background: var(--cyan-wash); border-radius: 14px; padding: 14px 16px; margin: 0 0 1em; }
.callout b { display: block; margin-bottom: 4px; }
.review { background: var(--warn-wash); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: 14px; padding: 12px 16px; margin: 0 0 20px; font-size: .95rem; }
.review b { color: var(--warn); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.terms dt { font: 500 .78rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink); margin-top: 16px; }
.terms dd { margin: 4px 0 0; font-size: 1.1rem; }
.terms dd small { color: var(--muted); font-size: .85rem; }
.search { display: flex; gap: 8px; margin: 0 0 20px; max-width: 520px; }
.search input { flex: 1; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 18px; font: 1rem var(--f-body); }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: .95rem; }
.foot .wrap { display: grid; gap: 24px; }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h2 { font: 600 .78rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li a { color: var(--ink); display: inline-block; padding: 6px 0; min-height: 32px; }
.foot .small { color: var(--muted); font-size: .85rem; }

/* DurgiPedia (website/durgipedia.mjs): structure pages, region grids, the A–Z index */
.pedia { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .pedia { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } .pedia-shot { position: sticky; top: 84px; } }
.pedia-text h2 { font-size: 1.25rem; margin-top: 1.4em; }
.pedia-shot { display: block; max-width: 340px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #F3F7F8; }
.pedia-shot img { width: 100%; }
@media (max-width: 859px) { .pedia-shot { order: -1; max-width: 260px; } .pedia { grid-template-columns: 1fr; } .pedia-text { order: 0; } }
.btn-3d { min-height: 56px; padding: 0 28px; font-size: 1.1rem; background: var(--cyan-ink); color: #fff; }
.btn-3d:hover { background: var(--ink); }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.az a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
/* the A–Z list: compact lines, not cards (1,000+ of them) */
.az-list { gap: 0 24px; }
@media (min-width: 1000px) { .az-list.cols { grid-template-columns: 1fr 1fr 1fr; } }
.az-list li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
.az-list li a { display: block; padding: 10px 2px 0; min-height: 30px; }
.az-list li span { display: block; padding: 0 2px 8px; font-size: .85rem; font-style: italic; }
.az-list .az-h { background: none; border: 0; padding: 14px 0 0; grid-column: 1 / -1; font: 700 1.2rem var(--f-display); }
/* DurgiPedia navigation: big tiles (systems, regions), jump rows, links in the eyebrow */
.tiles { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tiles a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tiles a:hover, .tiles a:focus-visible { border-color: var(--accent, #0F7C8A); }
.tiles b { font-size: 1rem; line-height: 1.2; }
.tiles span { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.jump-label { margin: 6px 0 4px; font: 600 .75rem var(--f-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin: 0 0 8px; scrollbar-width: thin; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; white-space: nowrap; }
.jump a[aria-current] { background: var(--ink); color: var(--bg, #fff); border-color: var(--ink); }
.eyebrow-links a { color: inherit; display: inline-block; padding: 12px 0; margin: -12px 0; }   /* 44 px tap area, same layout */
.thumbs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
@media (min-width: 720px) { .thumbs { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.thumbs li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.thumbs li a { display: block; text-decoration: none; color: var(--ink); }
.thumbs li img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #F3F7F8; }
.thumbs li b { display: block; padding: 6px 8px 0; font-size: .85rem; line-height: 1.2; }
@media (min-width: 720px) { .thumbs li b { padding: 8px 10px 0; font-size: .95rem; } }
.thumbs li span { display: block; padding: 2px 8px 8px; color: var(--muted); font-size: .75rem; font-style: italic; overflow-wrap: anywhere; }

/* the home page's dictionary (build.mjs homeDict): instant search, a carousel of previews, the systems with their colour */
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); flex: none; margin-right: 7px; vertical-align: 1px; }
.ph h2 { font-size: clamp(1.8rem, 5.2vw, 2.8rem); line-height: 1.08; margin: 4px 0 10px; max-width: 18ch; }
.ph-search { position: relative; display: flex; gap: 8px; max-width: 620px; margin: 18px 0 8px; }
.ph-search input { flex: 1; min-width: 0; min-height: 54px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 20px; font: 1rem var(--f-body); box-shadow: var(--shadow); }
.ph-search input:focus { outline: none; border-color: #0F7C8A; }
.ph-search .btn { min-height: 54px; }
.ph-results { position: absolute; z-index: 4; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.ph-results a { display: block; padding: 10px 12px; min-height: 44px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.ph-results a:hover, .ph-results a:focus { background: var(--cyan-wash); outline: none; }
.ph-results b { display: block; } .ph-results i { color: var(--muted); font-size: .85rem; }
.ph-results .none { padding: 12px; color: var(--muted); }
.pc { position: relative; margin: 22px -16px 6px; }
.pc-track { list-style: none; margin: 0; padding: 6px 16px 16px; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-track.auto { scroll-snap-type: none; }
.pc-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.pc-card { flex: 0 0 172px; width: 172px; min-width: 0; scroll-snap-align: start; }
.pc-card a { display: block; height: 100%; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.pc-card a:hover { transform: translateY(-3px); }
.pc-card img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 565; object-fit: cover; background: #F3F7F8; }
.pc-txt { display: block; padding: 10px 12px 12px; min-height: 96px; }
.pc-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.2; }
.pc-txt i { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.pc-sys { display: flex; align-items: center; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.pc-arrow { display: none; position: absolute; top: 38%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow); cursor: pointer; align-items: center; justify-content: center; }
.pc-prev { left: 4px; } .pc-next { right: 4px; }
.pc-pause { position: absolute; right: 16px; bottom: -40px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .8rem; cursor: pointer; }
@media (min-width: 720px) { .pc { margin: 22px 0 6px; } .pc-track { padding: 6px 2px 16px; scroll-padding: 0; } .pc-card { flex-basis: 200px; width: 200px; } .pc-pause { right: 2px; } }
@media (hover: hover) and (min-width: 720px) { .pc-arrow { display: flex; } }
.sys-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 52px); }
.sys-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.sys-chips small { margin-left: 6px; color: var(--muted); font-size: .78rem; }

/* ===== the 2026-10-20 redesign (owner-approved mockups): soft glass language, the DurgiPedia hub (website/pages/hub.mjs),
   the home sections (website/pages/home_sections.mjs), Distribución (website/pages/dist.mjs) ===== */
:root { --teal: #0F7C8A; --glow: #3FD8E6; --page: #EEF3F7; --panel-a: #EAF1F6; --panel-b: #DCE6EE;
  --glass: rgba(255,255,255,.76); --glass-line: rgba(255,255,255,.95); --soft: 0 1px 2px rgba(16,40,60,.05), 0 14px 34px rgba(16,40,60,.09); }
@media (prefers-color-scheme: dark) { :root { --page: #0B1418; --panel-a: #13232A; --panel-b: #0E1A1F; --glass: rgba(22,38,44,.74); --glass-line: rgba(255,255,255,.08); --soft: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.4); } }
.hl { background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the home dictionary carousel in the same language */
.pc-card a { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--soft); border-radius: 22px; }
.pc-card img { border-radius: 17px 17px 0 0; }
.dx-cat-hero .dx-cat-head { display: flex; align-items: center; gap: 14px; } .dx-cat-hero .dc-ico { position: static; flex: none; width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: var(--surface); box-shadow: var(--soft); }
.dx-cat-hero { background: radial-gradient(900px 300px at 80% -10%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.pd-full { grid-template-columns: 1fr !important; } .pd-full .pd-body h2 { font-size: 1.35rem; margin: 0 0 8px; }
.pd h4 a { color: inherit; text-decoration: none; } .pd h4 a:hover { text-decoration: underline; }
.pd-rows { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; } .pd-rows li { padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c) 7%, transparent); } .pd-rows b { display: block; font-size: .94rem; } .pd-rows span { color: var(--muted); font-size: .86rem; }
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --rx { syntax: "<percentage>"; inherits: true; initial-value: 20%; }
@property --ry { syntax: "<percentage>"; inherits: true; initial-value: 20%; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--glass-line); box-shadow: var(--soft); border-radius: 22px; }
.glass-panel { background: linear-gradient(165deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--glass-line); border-radius: 34px; box-shadow: var(--soft); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-h h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); } .sec-h p { margin: 0; color: var(--muted); }

/* hero + search */
.hub-hero { padding: 26px 0 26px; background: radial-gradient(1200px 380px at 70% -10%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 70%); }
.hh-grid { display: grid; gap: 18px; align-items: end; }
@media (min-width: 1000px) { .hh-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.hub-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); line-height: 1.03; letter-spacing: -.02em; margin: 6px 0 12px; }
.hub-hero h1 .hl { background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-search { position: relative; z-index: 20; padding: 10px; border-radius: 26px; }
.hs-box { position: relative; }   /* the results open right under the box, above the sticky A–Z bar */
.hub-search input { width: 100%; min-height: 60px; border-radius: 18px; border: 1.5px solid transparent; background: var(--surface); color: var(--ink); padding: 0 52px; font: 500 1.06rem var(--f-body); -webkit-appearance: none; transition: border-color .2s, box-shadow .2s; }
.hub-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 28%, transparent); }
.hs-ico { position: absolute; left: 18px; top: 19px; color: var(--muted); pointer-events: none; }
.hs-kbd { position: absolute; right: 16px; top: 18px; font: 600 .78rem var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; background: var(--surface); }
@media (hover: none) { .hs-kbd { display: none; } }
.hub-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 4px 2px; font-size: .86rem; color: var(--muted); }
.hub-quick span { margin-right: 4px; font: 600 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.hub-quick a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.hub-quick a:hover { border-color: var(--cyan); transform: translateY(-1px); }
.hs-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; max-height: min(70vh, 560px); overflow: auto; animation: drop .16s ease-out; background: color-mix(in srgb, var(--surface) 94%, transparent); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.hs-item { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); min-height: 64px; }
.hs-item[aria-selected="true"], .hs-item:hover { background: color-mix(in srgb, var(--glow) 14%, transparent); }
.hs-th { flex: none; width: 44px; height: 56px; border-radius: 10px; overflow: hidden; background: #E9F0F2; }
.hs-th img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hs-tx { flex: 1; min-width: 0; } .hs-tx b { display: block; line-height: 1.2; } .hs-tx b mark { background: none; color: var(--teal); }
.hs-tx i { display: block; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-sys { flex: none; font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; color: color-mix(in srgb, var(--c) 70%, #000); background: color-mix(in srgb, var(--c) 16%, transparent); }
.hs-foot { display: block; padding: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .9rem; } .hs-none { padding: 16px; color: var(--muted); }

/* sticky A–Z */
.hub-az { position: sticky; top: 60px; z-index: 6; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.hub-az .wrap { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hub-az .az-all { font: 600 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; white-space: nowrap; padding: 0 8px; }
.hub-az a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 44px; border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.hub-az a:hover { background: var(--surface); color: var(--teal); }

/* the body navigator */
.hub-nav { margin: 26px 0 10px; }
.nav-stage { position: relative; display: grid; gap: 14px; padding: 22px; grid-template-areas: "title" "rail" "body" "scrub" "panel"; overflow: hidden; }
.nav-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 520px at 50% 58%, rgba(255,255,255,.75), transparent 70%); pointer-events: none; }
@media (min-width: 1000px) { .nav-stage { grid-template-columns: 74px minmax(0, 1fr) 340px; grid-template-areas: "title title panel" "rail body panel" "scrub scrub panel"; padding: 26px 26px 22px; column-gap: 22px; } }
.nav-title { grid-area: title; position: relative; } .nav-title h2 { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.1rem); } .nav-title p { margin: 2px 0 0; color: var(--muted); }
.sys-rail { grid-area: rail; display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 2; border-radius: 20px; }
@media (min-width: 1000px) { .sys-rail { flex-direction: column; align-self: center; overflow: visible; } }
.sys-rail button { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 14px; border: 0; background: none; color: var(--muted); cursor: pointer; font: 600 .82rem var(--f-body); transition: background .2s, color .2s; }
@media (min-width: 1000px) { .sys-rail button { padding: 0; width: 48px; } .sys-rail button span { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: var(--bg); padding: 5px 10px; border-radius: 8px; font-size: .78rem; opacity: 0; visibility: hidden; pointer-events: none; transition: none; z-index: 5; } .sys-rail button:hover span, .sys-rail button:focus-visible span { opacity: 1; visibility: visible; } }
.sys-rail button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.sys-rail button[aria-pressed="true"] { background: var(--surface); color: var(--c); box-shadow: 0 2px 8px rgba(16,40,60,.12), inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); }
.nav-body { grid-area: body; position: relative; justify-self: center; height: min(66vh, 600px); aspect-ratio: 796 / 1646; margin: 6px 0 34px; transition: --mx .55s ease, --my .55s ease, --rx .55s ease, --ry .55s ease; }
.nav-body img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nb-view { opacity: 0; transition: opacity .35s ease; z-index: 1; } .nb-view.on { opacity: 1; }
.nav-body.spot .nb-view.on { opacity: .5; filter: saturate(.55); }
.nb-lit { z-index: 2; opacity: 0; transition: opacity .3s; -webkit-mask-image: radial-gradient(var(--rx) var(--ry) at var(--mx) var(--my), #000 55%, transparent 100%); mask-image: radial-gradient(var(--rx) var(--ry) at var(--mx) var(--my), #000 55%, transparent 100%); filter: drop-shadow(0 0 12px rgba(63,216,230,.7)) brightness(1.06) saturate(1.25); }
.nav-body.spot .nb-lit { opacity: 1; }
.pedestal { position: absolute; left: 50%; bottom: -30px; width: 150%; height: 62px; transform: translateX(-50%); z-index: 0; }
.pedestal i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.pedestal i:nth-child(1) { width: 100%; height: 100%; background: radial-gradient(closest-side, rgba(63,216,230,.5), rgba(63,216,230,.12) 60%, transparent); filter: blur(6px); }
.pedestal i:nth-child(2) { width: 74%; height: 62%; background: linear-gradient(180deg, #fff, #E3ECF2); box-shadow: 0 0 0 2px rgba(63,216,230,.55), 0 0 26px rgba(63,216,230,.65), inset 0 -6px 12px rgba(16,40,60,.08); }
.pedestal i:nth-child(3) { width: 54%; height: 38%; border: 1.5px solid rgba(63,216,230,.7); box-shadow: inset 0 0 14px rgba(63,216,230,.45); }
.nb-pin { position: absolute; z-index: 4; width: 44px; height: 44px; transform: translate(-50%, -50%); border: 0; background: none; cursor: pointer; padding: 0; }
.nb-pin i { position: absolute; inset: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(63,216,230,.45), 0 2px 6px rgba(16,40,60,.25); transition: transform .2s, background .2s; }
.nb-pin.on i { background: var(--cyan); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(63,216,230,.35), 0 0 22px rgba(63,216,230,.9); }
.nb-pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid rgba(63,216,230,.55); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.nb-pin span { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 12px 7px 14px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); box-shadow: var(--soft); font: 600 .84rem var(--f-body); color: var(--ink); transition: background .2s, color .2s; }
.nb-pin span small { font-weight: 600; color: var(--muted); font-size: .74rem; }
.nb-pin.side-r span { left: calc(100% + 8px); } .nb-pin.side-l span { right: calc(100% + 8px); }
.nb-pin span::before { content: ""; position: absolute; top: 50%; width: 10px; height: 1.5px; background: rgba(63,216,230,.8); }
.nb-pin.side-r span::before { right: 100%; } .nb-pin.side-l span::before { left: 100%; }
.nb-pin.on span { background: var(--ink); color: var(--bg); border-color: var(--ink); } .nb-pin.on span small { color: var(--glow); }
.nb-pin.dim span { opacity: .45; }
.nb-hint { position: absolute; z-index: 4; left: 50%; bottom: 8%; transform: translateX(-50%); width: max-content; max-width: 90%; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); font-size: .84rem; }
@media (max-width: 999px) { .nav-body { height: 430px; margin-bottom: 30px; } .nb-pin span { display: none; } .nb-pin.on span { display: inline-flex; } }
.nav-panel { grid-area: panel; position: relative; z-index: 2; padding: 18px; display: flex; flex-direction: column; min-height: 0; }
@media (min-width: 1000px) { .nav-panel { max-height: 760px; } }
.np-k { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 .74rem var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.np-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--npc, var(--cyan)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--npc, var(--cyan)) 25%, transparent); }
.np-t { margin: 6px 0 0; font-size: 1.7rem; line-height: 1.1; } .np-n { margin: 2px 0 12px; color: var(--muted); } .np-n b { color: var(--ink); }
.np-list { list-style: none; margin: 0 -6px; padding: 0; overflow: auto; flex: 1; max-height: 420px; transition: opacity .2s; }
.np-list.swap { opacity: 0; }
.np-list a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .15s; }
.np-list a:hover { background: color-mix(in srgb, var(--glow) 14%, transparent); }
.np-list img { flex: none; width: 46px; height: 58px; object-fit: cover; object-position: center 40%; border-radius: 11px; background: #E9F0F2; }
.np-list b { display: block; font-size: .95rem; line-height: 1.2; } .np-list i { display: block; color: var(--muted); font-size: .78rem; }
.np-list .np-empty { padding: 14px 6px; color: var(--muted); }
.np-more { margin-top: 12px; align-self: stretch; justify-content: center; text-align: center; }
.scrub { grid-area: scrub; position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 999px; }
.sc-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sc-play.on { background: var(--cyan); color: #062126; }
.sc-track { position: relative; flex: 1; display: flex; justify-content: space-between; align-items: center; height: 46px; }
.sc-track::before { content: ""; position: absolute; left: 11px; right: 11px; top: 14px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 25%, transparent); }
.sc-fill { position: absolute; left: 11px; top: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--cyan)); width: 0; transition: width .35s ease; }
.sc-track button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 6px 0 0; border: 0; background: none; cursor: pointer; color: var(--muted); font: 600 .78rem var(--f-body); }
.sc-track button i { width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 2px solid color-mix(in srgb, var(--muted) 45%, transparent); transition: all .2s; }
.sc-track button[aria-pressed="true"] { color: var(--ink); } .sc-track button[aria-pressed="true"] i { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 5px rgba(63,216,230,.25); }
.nav-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 2px 0; }
.nav-pills a, .nav-pills button { flex: none; display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--f-body); cursor: pointer; transition: background .2s, border-color .2s; }
.nav-pills [aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (min-width: 1000px) { .nav-pills { justify-content: center; flex-wrap: wrap; } }

/* cards + rails */
.dg-track { list-style: none; margin: 0 -4px; padding: 4px 4px 16px; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.dg-track::-webkit-scrollbar { display: none; }
.dg-card { flex: 0 0 176px; width: 176px; min-width: 0; scroll-snap-align: start; }
.dg-card a { display: block; border-radius: 22px; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glass-line); text-decoration: none; color: var(--ink); box-shadow: var(--soft); transition: transform .25s, box-shadow .25s; }
.dg-card a:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16,40,60,.06), 0 22px 40px rgba(16,40,60,.15); }
.dg-img { display: block; aspect-ratio: 390 / 500; overflow: hidden; margin: 6px 6px 0; border-radius: 17px; background: radial-gradient(circle at 50% 40%, #fff, #E6EEF2); }
.dg-img img { display: block; width: 100%; height: auto; transition: transform .4s; } .dg-card a:hover .dg-img img { transform: scale(1.05); }
.dg-txt { display: block; padding: 10px 12px 12px; min-height: 92px; }
.dg-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .98rem; line-height: 1.2; }
.dg-txt i { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dg-sys { display: inline-flex; align-items: center; margin-top: 7px; font-size: .7rem; font-weight: 600; padding: 3px 8px 3px 6px; border-radius: 999px; color: color-mix(in srgb, var(--c) 70%, #000); background: color-mix(in srgb, var(--c) 15%, transparent); }
.dg-sys::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.dg-rail { margin: 30px 0 8px; } .dg-rail-h { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.dg-rail-h h2 { margin: 0; font-size: 1.45rem; display: flex; align-items: center; } .dg-rail-h a { font-size: .92rem; white-space: nowrap; }
.dg-arrows { margin-left: auto; display: none; gap: 6px; }
.dg-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--soft); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
@media (hover: hover) and (min-width: 720px) { .dg-arrows { display: flex; } }

/* systems bento (glass tiles with a colour glow) */
.hub-sys { margin: 34px 0 12px; }
.bento { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento-t { grid-column: span 2; } .bento-t.big { grid-column: span 3; } }
.bento-t a { position: relative; display: block; height: 170px; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--ink); background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%), var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); transition: transform .25s, box-shadow .25s; }
.bento-t.big a { height: 224px; }
.bento-t a:hover { transform: translateY(-3px); box-shadow: 0 22px 44px color-mix(in srgb, var(--c) 22%, transparent); }
.bento-ico { position: absolute; left: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: var(--surface); box-shadow: 0 2px 8px rgba(16,40,60,.1); }
.bento-pics { position: absolute; right: -6px; top: 14px; bottom: 0; width: 60%; }
.bento-pics img { position: absolute; width: 46%; height: auto; border-radius: 15px; box-shadow: 0 10px 24px rgba(16,40,60,.18); border: 3px solid #fff; transition: transform .35s; }
.bento-pics img:nth-child(1) { right: 44%; top: 20%; transform: rotate(-8deg); } .bento-pics img:nth-child(2) { right: 22%; top: 5%; transform: rotate(2deg); z-index: 1; } .bento-pics img:nth-child(3) { right: 0; top: 24%; transform: rotate(9deg); }
.bento-t a:hover .bento-pics img:nth-child(1) { transform: rotate(-12deg) translateX(-6px); } .bento-t a:hover .bento-pics img:nth-child(3) { transform: rotate(13deg) translateX(6px); }
.bento-txt { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; }
.bento-txt b { font: 700 1.2rem/1.1 var(--f-display); max-width: 9ch; } .bento-t.big .bento-txt b { font-size: 1.6rem; max-width: 12ch; }
.bento-txt small { color: var(--muted); margin-top: 3px; }
.bento-txt em { font-style: normal; font-weight: 700; font-size: .85rem; margin-top: 6px; color: color-mix(in srgb, var(--c) 75%, #000); }
@media (max-width: 899px) { .bento-pics { width: 66%; } .bento-pics img { width: 50%; } .bento-ico { width: 34px; height: 34px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.btn-lg { min-height: 54px; padding: 0 22px; font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.dx-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dx-h h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); } .dx-h p { margin: 0; color: var(--muted); }

/* hero */
.dx-hero { padding: 26px 0 30px; }
.dx-hero-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 1000px) { .dx-hero-grid { grid-template-columns: 1.2fr .8fr; gap: 44px; } }
.dx-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; margin: 6px 0 12px; max-width: 17ch; }
.dx-hero .intro { max-width: 58ch; }
.dx-hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.dx-reply { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; margin: 0; }
.dx-partner { padding: 22px; position: relative; overflow: hidden; }
.dx-partner .eyebrow { margin: 0 0 10px; }
.dx-logo { background: #fff; border-radius: 16px; padding: 18px 22px; border: 1px solid #E6EDF1; }
.dx-logo img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.dx-partner > p { margin: 14px 0 12px; color: var(--muted); font-size: .94rem; }
.dx-mini { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.dx-mini li { flex: 1; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, #E6EEF2); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(16,40,60,.1); }
.dx-mini img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* trust: certifications + stat tiles */
.dx-trust { padding: 6px 0 10px; }
.dx-certs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dx-certs li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); font-weight: 600; font-size: .9rem; }
.dx-certs svg { color: var(--teal); }
.dx-stats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .dx-stats { grid-template-columns: repeat(5, 1fr); } }
.dx-stats li { padding: 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); }
.dx-stats b { display: block; font: 800 2.2rem/1 var(--f-display); background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: .88rem; }

/* portfolio: category tabs with art, then a product grid */
.dx-port { padding: 40px 0 10px; }
.dx-cats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .dx-cats { grid-template-columns: repeat(6, 1fr); } }
.dx-cats a { text-decoration: none; position: relative; width: 100%; height: 150px; border-radius: 22px; overflow: hidden; text-align: left; cursor: pointer; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--glass-line); background: radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 62%), var(--glass); box-shadow: var(--soft); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.dx-cats a:hover { transform: translateY(-3px); }
.dx-cats a[aria-selected="true"] { box-shadow: 0 0 0 2.5px var(--c), 0 18px 36px color-mix(in srgb, var(--c) 25%, transparent); }
.dc-art { position: absolute; right: -8px; top: -6px; width: 58%; height: 110%; opacity: .9; -webkit-mask-image: linear-gradient(200deg, #000 40%, transparent 85%); mask-image: linear-gradient(200deg, #000 40%, transparent 85%); }
.dc-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.dc-ico { position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: var(--surface); box-shadow: 0 2px 8px rgba(16,40,60,.1); }
.dx-cats b { position: relative; font: 700 1.04rem/1.15 var(--f-display); max-width: 11ch; } .dx-cats small { position: relative; color: var(--muted); margin-top: 2px; }
.dx-grid-h { display: grid; gap: 4px 20px; align-items: end; padding: 4px 2px 14px; }
@media (min-width: 900px) { .dx-grid-h { grid-template-columns: 1fr auto; } .dx-grid-h p { grid-column: 1; } .dx-grid-h a { grid-row: 1 / span 2; grid-column: 2; } }
.dx-grid-h h3 { margin: 0; font-size: 1.6rem; display: flex; align-items: center; gap: 10px; } .dx-grid-h h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.dx-grid-h p { margin: 0; color: var(--muted); max-width: 70ch; }
.pd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pd-list { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1000px) { .pd-list { grid-template-columns: repeat(3, 1fr); } }
.pd { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); transition: transform .2s, box-shadow .2s; }
.pd:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(16,40,60,.13); }
.pd-band { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), transparent); color: color-mix(in srgb, var(--c) 75%, #000); font: 600 .74rem var(--f-mono); letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid color-mix(in srgb, var(--c) 15%, transparent); }
.pd-band span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-body { padding: 14px 16px 6px; flex: 1; } .pd h4 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.2; } .pd-body p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.pd-meta { display: flex; align-items: center; gap: 6px; font-size: .82rem !important; color: var(--ink) !important; font-weight: 600; }
.pd-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 6px 12px 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: color-mix(in srgb, var(--c) 80%, #000); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); text-decoration: none; font-weight: 700; font-size: .92rem; transition: background .2s; }
.pd-cta:hover { background: var(--c); color: #fff; }

/* the 3D edge */
.dx-3d { padding: 44px 0 10px; }
.dx-3d-in { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: 34px; background: radial-gradient(700px 400px at 20% 0%, #17343B, #0C1A1E 70%); color: #E6F0F2; }
@media (min-width: 1000px) { .dx-3d-in { grid-template-columns: .9fr 1.1fr; gap: 36px; padding: 36px; } }
.dx-3d-in h2 { color: #fff; margin: 4px 0 10px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); } .dx-3d-in p { color: #A9BCC1; margin: 0; } .dx-3d-in .eyebrow { color: var(--glow); }
.dx-proc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .dx-proc { grid-template-columns: 1fr; } .dx-proc a { flex-direction: row !important; } .dx-proc img { width: 84px !important; aspect-ratio: 4/5 !important; } }
.dx-proc a { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-decoration: none; color: #fff; transition: transform .2s, border-color .2s; }
.dx-proc a:hover { transform: translateY(-3px); border-color: rgba(63,216,230,.6); }
.dx-proc img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 40%; background: radial-gradient(circle at 50% 40%, #fff, #DCE6EA); }
.dx-proc span { display: flex; flex-direction: column; padding: 12px 14px 14px; } .dx-proc b { font-size: 1rem; } .dx-proc small { color: #A9BCC1; margin-top: 2px; } .dx-proc em { font-style: normal; color: var(--glow); font-weight: 700; margin-top: 8px; font-size: .9rem; }

/* why + contact */
.dx-why { padding: 40px 0 10px; }
.dx-pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } @media (min-width: 900px) { .dx-pillars { grid-template-columns: repeat(3, 1fr); } }
.dx-pillars li { padding: 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); }
.dp-n { font: 600 .8rem var(--f-mono); color: var(--teal); } .dx-pillars h3 { margin: 6px 0 6px; font-size: 1.25rem; } .dx-pillars p { margin: 0; color: var(--muted); font-size: .94rem; }
.dx-contact { padding: 40px 0 10px; }
.dx-contact-grid { display: grid; gap: 14px; } @media (min-width: 1000px) { .dx-contact-grid { grid-template-columns: 1.1fr .9fr; } }
.dx-cta-card { padding: 30px; border-radius: 30px; background: linear-gradient(135deg, var(--teal), #0A5A66); color: #fff; }
.dx-cta-card h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); } .dx-cta-card p { color: #D4EEF1; margin: 0; }
.dx-cta-card .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; } .dx-cta-card .btn-primary { background: #fff; color: #0A3F47; } .dx-cta-card .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.dx-where { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.dx-where > div { padding: 20px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); }
.dx-where h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 1.15rem; } .dx-where h3 svg { color: var(--teal); }
.dx-where ul { list-style: none; margin: 0; padding: 0; } .dx-where li { padding: 6px 0; border-bottom: 1px solid var(--line); } .dx-where li:last-child { border: 0; }
.dx-where b { display: block; font-size: .95rem; } .dx-where span { color: var(--muted); font-size: .8rem; }

.dx-certs .cg-h { background: none; border: 0; box-shadow: none; padding: 0 4px; min-height: 32px; font: 600 .74rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex-basis: 100%; }

.hm-sec { padding: 46px 0 6px; }
.hm-h { max-width: 720px; margin-bottom: 20px; }
.hm-h h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); line-height: 1.06; letter-spacing: -.015em; margin: 4px 0 10px; }
.hm-h p { color: var(--muted); margin: 0; }

/* feature bento */
.hm-bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .hm-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hm-bento { grid-template-columns: repeat(6, 1fr); } .hb-l { grid-column: span 3; } .hb-s { grid-column: span 2; } }
.hb { position: relative; overflow: hidden; padding: 22px; border-radius: 28px; display: flex; flex-direction: column; min-height: 150px; }
.hb h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.15; } .hb p { margin: 0; color: var(--muted); font-size: .94rem; }
.hb-l { background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--glow) 24%, transparent), transparent 60%), var(--glass); }
.hb-t { position: relative; z-index: 1; max-width: 34ch; }
.hb-phone { margin: 16px auto -60px; width: min(230px, 70%); border-radius: 30px; overflow: hidden; border: 6px solid #0D1A1F; box-shadow: 0 24px 50px rgba(16,40,60,.25); background: #0D1A1F; }
.hb-phone img { display: block; width: 100%; height: auto; }
@media (min-width: 1000px) { .hb-l { flex-direction: row; gap: 16px; min-height: 300px; } .hb-l .hb-phone { margin: 0 0 -90px auto; width: 210px; flex: none; } }
/* Modo apuntes: the desktop shot (the note with its PDF beside it) on wide screens, the phone shot below that */
.hb-wide { display: none; } @media (min-width: 1024px) { .hb-l.has-wide { flex-direction: column; } .hb-l.has-wide .hb-phone { display: none; } .hb-wide { display: block; margin: 16px -22px -22px 0; border-radius: 14px 0 0 0; overflow: hidden; box-shadow: 0 18px 40px rgba(16,40,60,.2); } .hb-wide img { display: block; width: 100%; height: auto; } }
.hb-new { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; font: 600 .78rem/1.6 var(--f-body); letter-spacing: .02em; color: var(--cyan-ink); background: var(--cyan-wash); }
@media (min-width: 600px) and (max-width: 999px) { .hm-bento { grid-template-columns: repeat(2, 1fr); } .hb-l { grid-column: span 2; } }
.hb-s { justify-content: flex-start; } .hb-i { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--teal); background: var(--surface); box-shadow: 0 2px 8px rgba(16,40,60,.1); margin-bottom: 12px; }


/* how it works */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 900px) { .hm-steps { grid-template-columns: repeat(3, 1fr); } }
.hm-steps li { position: relative; padding: 24px; border-radius: 26px; overflow: hidden; }
.st-n { position: absolute; right: 14px; top: -14px; font: 800 6rem/1 var(--f-display); color: color-mix(in srgb, var(--cyan) 14%, transparent); }
.st-i { width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--teal), var(--cyan)); box-shadow: 0 10px 22px color-mix(in srgb, var(--cyan) 35%, transparent); margin-bottom: 14px; }
.hm-steps h3 { margin: 0 0 6px; font-size: 1.25rem; } .hm-steps p { margin: 0; color: var(--muted); }

/* use cases */
.hm-uses { padding: 18px; border-radius: 30px; }
.uc-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 10%, transparent); margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
.uc-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: none; font: 600 .95rem var(--f-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.uc-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(16,40,60,.12); }
.uc-panel { display: grid; gap: 20px; align-items: center; } .uc-panel[hidden] { display: none; }
@media (min-width: 900px) { .uc-panel { grid-template-columns: 1.1fr .9fr; padding: 0 12px; } }
.uc-panel h3 { font-size: 1.6rem; margin: 0 0 12px; }
.uc-ticks { list-style: none; padding: 0; margin: 0 0 18px; } .uc-ticks li { position: relative; padding: 0 0 10px 28px; }
.uc-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--cyan)); -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px); }
.uc-art { justify-self: center; width: min(240px, 70%); border-radius: 30px; overflow: hidden; border: 6px solid #0D1A1F; box-shadow: 0 24px 50px rgba(16,40,60,.22); max-height: 380px; }
.uc-art img { display: block; width: 100%; }

/* dictionary band */
.hm-dict { padding: 26px; border-radius: 32px; background: radial-gradient(90% 80% at 0% 0%, color-mix(in srgb, var(--glow) 18%, transparent), transparent 60%), var(--glass); }
.hm-search { display: flex; gap: 8px; max-width: 620px; margin: 0 0 18px; }
.hm-search input { flex: 1; min-width: 0; min-height: 54px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 18px; font: 1rem var(--f-body); color: var(--ink); }
.hm-search .btn { min-height: 54px; }
.hm-sys { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; } .hm-sys a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }

/* FAQ */
.hm-faq-grid { display: grid; gap: 20px; } @media (min-width: 1000px) { .hm-faq-grid { grid-template-columns: .8fr 1.2fr; gap: 40px; } }
.hm-faq { display: grid; gap: 10px; }
.hm-faq details { border-radius: 20px; padding: 0; } .hm-faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; min-height: 44px; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 2px 6px rgba(16,40,60,.1); font-weight: 500; transition: transform .2s; }
.hm-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hm-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* closing CTA */
.hm-close { display: grid; gap: 18px; align-items: center; padding: 34px 30px; border-radius: 34px; color: #fff; background: radial-gradient(600px 300px at 85% 0%, rgba(63,216,230,.45), transparent 60%), linear-gradient(135deg, #0F7C8A, #0A4F5A); }
@media (min-width: 900px) { .hm-close { grid-template-columns: 1fr auto; padding: 44px 46px; } }
.hm-close h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.8rem, 4.4vw, 2.7rem); } .hm-close p { margin: 0; color: #CDEFF3; }
.hm-close .ctas { display: flex; flex-wrap: wrap; gap: 10px; } .hm-w { background: #fff; color: #0A3F47; } .hm-g { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hm-door { margin: 18px 4px 0; color: var(--muted); font-size: .92rem; }

/* hub navigator: clear filters, suggestions in other regions, the updated line (2026-10-20, owner feedback) */
.np-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.np-clear { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .82rem var(--f-body); cursor: pointer; }
.np-clear:hover { border-color: var(--cyan); }
.np-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.np-also button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--npc, var(--cyan)) 40%, var(--line)); background: color-mix(in srgb, var(--npc, var(--cyan)) 10%, var(--surface)); color: var(--ink); font: 600 .84rem var(--f-body); cursor: pointer; }
.hub-updated { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }

/* hub: the model version switch (Masculino | Femenino), the app's segmented look */
.nav-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sex-sw { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); }
.sex-sw button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: none; font: 700 .92rem var(--f-body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.sex-sw button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.fem-h { scroll-margin-top: 80px; }
@media (max-width: 999px) { .nb-pin span, .nb-pin.side-l span, .nb-pin.side-r span { left: 50%; right: auto; top: auto; bottom: calc(100% + 4px); transform: translateX(-50%); } .nb-pin span::before { display: none; } }   /* phones: the one visible label sits above its dot, inside the stage */
.nb-pin.on { z-index: 6; }   /* the chosen region's label stays above the other dots */
/* hub: the turntable (40 frames rendered from the app; drag the body or the slider) */
.nav-body { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.nav-body:active { cursor: grabbing; }
.nb-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.nav-body.spot .nb-frame { opacity: .5; filter: saturate(.55); }
.nb-pin.behind { opacity: .45; } .nb-pin.behind.on { opacity: 1; }
.sc-turn { position: relative; flex: 1; padding: 6px 11px 26px; }
.sc-range { width: 100%; height: 30px; margin: 0; accent-color: var(--cyan); cursor: pointer; }
.sc-snaps { position: absolute; left: 11px; right: 11px; bottom: 0; height: 26px; }
.sc-snaps button { position: absolute; transform: translateX(-50%); min-width: 44px; height: 26px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 600 .78rem var(--f-body); cursor: pointer; white-space: nowrap; }
.sc-snaps button[aria-pressed="true"] { color: var(--ink); }
.sc-snaps button:first-child { transform: none; } 
/* the snap labels: an evenly spaced row of tappable labels under the slider (their true angles crowd on a phone) */
.sc-turn { padding-bottom: 4px; }
.sc-snaps { position: static; display: flex; justify-content: space-between; gap: 4px; height: auto; margin-top: 2px; }
.sc-snaps button, .sc-snaps button:first-child { position: static; transform: none; min-height: 40px; padding: 0 10px; border-radius: 999px; }
.sc-snaps button[aria-pressed="true"] { background: color-mix(in srgb, var(--cyan) 16%, transparent); }
@media (min-width: 1000px) { .nb-pin span { transform: translateY(calc(-50% + var(--dy, 0px))); } }   /* a label nudged clear of its neighbour (hub JS: place) */
/* DurgiPedia: the 3D card's quick facts and clinical tabs on a part's page */
.terms.facts dd { font-size: 1rem; line-height: 1.5; }
.clin { margin: 0; padding-left: 1.2em; }
.clin li { margin: 6px 0; line-height: 1.55; }
/* «¿Ha detectado un error?» on a part's page */
.pedia-h1 { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.rep-flag { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line, #d5dfe2); color: var(--muted); font: 700 1.1rem/1 var(--f-body, inherit); text-decoration: none; margin-top: 4px; }
.rep-flag:hover, .rep-flag:focus-visible { color: var(--cyan-ink); border-color: var(--cyan-ink); }
.report { margin: 32px 0 8px; border: 1px solid var(--line, #d5dfe2); border-radius: 16px; padding: 18px 20px; background: var(--card, #fff); }
.report summary { list-style: none; cursor: pointer; display: grid; gap: 6px; }
.report summary::-webkit-details-marker { display: none; }
.report summary span:not(.btn) { color: var(--muted); }
.report summary .btn { justify-self: start; margin-top: 8px; min-height: 44px; }
.report[open] summary .btn { display: none; }
.report form { display: grid; gap: 10px; margin-top: 14px; }
.report textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line, #d5dfe2); border-radius: 12px; padding: 12px; font: inherit; resize: vertical; }
.report .btn { justify-self: start; min-height: 44px; }
.report .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* links from a part's text to other parts (Wikipedia style): readable, not shouting */
a.xref { color: inherit; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.xref:hover, a.xref:focus-visible { color: var(--cyan-ink); }
/* DurgiPedia «Lo esencial»: the part's high-yield points, set apart */
.hy { margin: 24px 0; padding: 4px 20px 12px; border-left: 4px solid var(--cyan); background: var(--cyan-wash); border-radius: 0 14px 14px 0; }
.hy h2 { margin-top: 14px; }
.hy ul { margin: 0; padding-left: 1.2em; }
.hy li { margin: 6px 0; line-height: 1.55; }

/* DurgiPedia conditions + «Póngase a prueba» (build.mjs quizHtml): each answer opens under its question; tap targets ≥ 44px */
.chips li:has(a) { padding: 0; }
.chips li a { display: inline-block; padding: 10px 14px; min-height: 44px; box-sizing: border-box; color: var(--ink); text-decoration: none; }
.quiz { display: grid; gap: 8px; margin: 8px 0 16px; }
.quiz details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.quiz summary { cursor: pointer; padding: 12px 14px; min-height: 44px; box-sizing: border-box; font-weight: 600; line-height: 1.45; }
.quiz details[open] summary { border-bottom: 1px solid var(--line); }
.quiz details p { margin: 0; padding: 12px 14px; line-height: 1.55; }
.hy.flags { border-left-color: #d64545; background: rgba(214, 69, 69, .08); }
.cond-list li a { text-decoration: none; color: var(--ink); }

/* language menu (website/lang_menu.mjs): shows the current language; the list opens below it */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 10px 12px; border-radius: 10px; font: 600 .82rem var(--f-mono); letter-spacing: .06em; color: var(--ink); border: 1px solid var(--line); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--cyan-wash); }
.lang-menu .caret { font-size: .7rem; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.lang-menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-menu li a:hover { background: var(--cyan-wash); }
.lang-menu li a[aria-current] { color: var(--cyan-ink); }
/* the DurgiPedia home: two doors (anatomy, conditions) */
.pedia-doors { display: grid; gap: 14px; margin: 18px 0 8px; }
@media (min-width: 720px) { .pedia-doors { grid-template-columns: 1fr 1fr; } }
.pedia-door h2 { margin: 0 0 6px; }
.pedia-door p { color: var(--muted); margin: 0 0 14px; }
/* «Agregar a mis tarjetas» under the quiz (#313): one tap sends the questions to Estudiar */
.quiz-add { margin: 0 0 24px; }
.quiz-add .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.quiz-add .btn svg { flex: none; color: var(--cyan); }
/* «Compartir» on DurgiPedia pages: the system share sheet on phones, this menu elsewhere (and without JS) */
.share { position: relative; display: inline-block; }
.share > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share > summary svg { flex: none; color: var(--cyan); }
.share-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 200px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.share-menu a, .share-menu button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--surface-2, rgba(0,0,0,.05)); }
/* DurgiPedia easier reading (website/pedia_read.mjs): the plain one-liner, «En esta página», and the reference sections
   that phones fold (still in the HTML, open without JS) */
.pedia-text > .lead { font-size: 1.12rem; line-height: 1.55; color: var(--ink); margin: 6px 0 12px; max-width: 62ch; }
.toc { margin: 14px 0 6px; max-width: 100%; min-width: 0; }
.pedia > .pedia-text { min-width: 0; }   /* a grid item: without this the index row's nowrap chips widen the whole column on phones */
.toc b { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5b6b70); margin-bottom: 6px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem; }
.toc a:hover, .toc a:focus-visible { border-color: var(--cyan); }
@media (max-width: 720px) { .toc ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .toc ul::-webkit-scrollbar { display: none; } .toc a { white-space: nowrap; min-height: 44px; } }
.pedia-text h2[id] { scroll-margin-top: 84px; }
details.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec { margin-top: 1.6em; }
details.sec > summary h2 { margin: 0; }
details.sec > summary::after { content: "−"; flex: none; margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 20px/1 var(--font-body, inherit); color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
details.sec:not([open]) > summary::after { content: "+"; }
details.sec[open] > summary { margin-bottom: 8px; }

/* The ad landing on the app's domain (website/app_pages.mjs): soft glass cards on the site's base styles */
body.lp { --cyan: #14B8C9; --glow: #3FD8E6; --teal2: #0F7C8A; --glass: rgba(255,255,255,.76); --glass-line: rgba(255,255,255,.95); --soft: 0 1px 2px rgba(16,40,60,.05), 0 14px 34px rgba(16,40,60,.09); }
@media (prefers-color-scheme: dark) { body.lp { --glass: rgba(22,38,44,.74); --glass-line: rgba(255,255,255,.08); --soft: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.4); } }
.lp .hl { background: linear-gradient(90deg, var(--teal2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sec { padding: 46px 0 6px; }
.lp-h { max-width: 720px; margin-bottom: 20px; }
.lp-h h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); line-height: 1.06; letter-spacing: -.015em; margin: 4px 0 10px; }
.lp-h p { color: var(--muted); margin: 0; }
.lp-benefits, .lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lp-benefits { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1100px) { .lp-benefits { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-benefits li, .lp-steps li { position: relative; overflow: hidden; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); }
.lp-benefits li { padding: 18px 18px 22px; background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 60%), var(--glass); }
.lp-phone { height: 260px; overflow: hidden; margin: 0 -18px 16px; display: flex; justify-content: center; }
.lp-phone img { width: 190px; height: auto; align-self: flex-start; margin-top: 10px; border-radius: 26px; border: 6px solid #0D1A1F; box-shadow: 0 20px 40px rgba(16,40,60,.22); }
.lp-benefits h3, .lp-steps h3 { margin: 0 0 6px; font-size: 1.2rem; } .lp-benefits p, .lp-steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.lp-steps li { padding: 24px; } .lp-steps h3 { margin-top: 30px; }
.lp-steps .st-n { position: absolute; right: 14px; top: -14px; font: 800 6rem/1 var(--f-display); color: color-mix(in srgb, var(--cyan) 14%, transparent); }
.lp-close { display: grid; gap: 18px; align-items: center; padding: 34px 30px; border-radius: 34px; color: #fff; background: radial-gradient(600px 300px at 85% 0%, rgba(63,216,230,.45), transparent 60%), linear-gradient(135deg, #0F7C8A, #0A4F5A); }
@media (min-width: 900px) { .lp-close { grid-template-columns: 1fr auto; padding: 44px 46px; } }
.lp-close h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.8rem, 4.4vw, 2.7rem); } .lp-close p { margin: 0; color: #CDEFF3; }
.lp-close .ctas { display: flex; flex-wrap: wrap; gap: 10px; } .lp-w { background: #fff; color: #0A3F47; } .lp-g { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-lg { min-height: 54px; padding: 0 22px; display: inline-flex; align-items: center; }
.lp-foot { margin-top: 46px; padding: 28px 0 34px; border-top: 1px solid var(--line); }
.lp-foot-top { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; } .lp-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.lp-disc { margin: 16px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: .9rem; color: var(--ink); max-width: 820px; }
.lp-copy { margin: 0; color: var(--muted); font-size: .85rem; }

/* the pricing page (durgical.app/precios/, /en/pricing/) */
.lp-h h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.06; letter-spacing: -.015em; margin: 4px 0 10px; }
.lp-plans { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .lp-plans { grid-template-columns: 1fr 1fr; max-width: 860px; } }
.lp-plans > li { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--soft); }
.lp-plans > li.best { border: 2px solid var(--cyan); background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 60%), var(--glass); }
.lp-plans h2 { margin: 0; font-size: 1.35rem; }
.lp-plans .pl-price { margin: 0; } .lp-plans .pl-price b { font: 800 2.4rem/1 var(--f-display); } .lp-plans .pl-price span { color: var(--muted); }
.lp-plans ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; flex: 1; }
.lp-plans ul li { padding-left: 26px; position: relative; } .lp-plans ul li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-ink); font-weight: 700; }
.lp-plans .btn { align-self: flex-start; min-height: 44px; }
.lp-fine { margin-top: 18px; max-width: 760px; color: var(--muted); font-size: .9rem; } .lp-fine p { margin: 0 0 6px; }
.lp-plans .pl-alt { margin: -4px 0 0; color: var(--cyan-ink); font-weight: 600; }
.lp-plans .pl-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* Plus: the Monthly | Yearly switch (data-bill on the card picks the price, the line and the button) */
.lp-plans .pl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pl-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.pl-switch button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 .95rem var(--f-body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pl-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(13,26,31,.16); }
.pl-save { padding: 3px 8px; border-radius: 999px; background: #16A34A; color: #fff; font: 800 .72rem/1.2 var(--f-body); letter-spacing: .02em; }
.lp-plans [data-bill="month"] .pl-y, .lp-plans [data-bill="year"] .pl-m { display: none; }
.lp-plans [data-bill] .pl-ctas .btn { width: 100%; justify-content: center; }
.lp-plans .btn-lg { min-height: 52px; font-size: 1.05rem; }
