/* Tides marketing tokens: source/marketing/index.html. Shared by the Atlas and its care guides. */
:root {
  --tides-page: rgb(247,237,223);
  --tides-white: rgb(255,255,255);
  --tides-ink: rgb(11,10,8);
  --tides-body: rgb(44,41,32);
  --tides-muted: rgb(107,103,89);
  --tides-teal: rgb(14,94,83);
  --tides-teal-hover: rgb(10,73,64);
  --tides-border: rgba(31, 26, 18, .14);
  --tides-font: 'Switzer', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bg: var(--tides-page);
  --paper: var(--tides-white);
  --surface: var(--tides-white);
  --ink: var(--tides-ink);
  --muted: var(--tides-muted);
  --soft: var(--tides-muted);
  --green: var(--tides-teal);
  --teal: var(--tides-teal);
  --line: var(--tides-border);
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--tides-page); color: var(--tides-ink); font-family: var(--tides-font); font-weight: 400; line-height: 1.5; text-rendering: optimizeLegibility; }
button, input, select { font-family: inherit; }
button, a { text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--tides-teal); outline-offset: 4px; }
button:disabled { cursor: default; }
.brand, .wordmark, header .brand {
  display: inline-flex; align-items: baseline; flex-shrink: 0;
  font-family: var(--tides-font); font-size: 30px; font-weight: 600;
  letter-spacing: -.025em; line-height: 1; color: var(--tides-ink);
}
.brand::after, .wordmark::after { content: ''; display: inline-block; width: .32em; height: .32em; margin-left: .06em; background: var(--tides-teal); border-radius: 50%; transform: translateY(-.04em); }
.brand:hover, .wordmark:hover { color: var(--tides-ink); }
header nav { font-size: 13px; font-weight: 500; }
.care-link, .header-link { color: var(--tides-teal); font-weight: 500; }
.eyebrow, .panel-heading, .structure-heading, .mobile-intro>span, .dock-heading p, .edition, .mobile-title small, .scale-mark { text-transform: uppercase; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; }
.eyebrow span { color: var(--tides-muted); }
.masthead h1, #selection h2, #library-panel h2, .editorial h2, .credits h2, #about-atlas h2, .guide-hero h1, .guide-body h2, .related h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
.masthead h1 { font-size: clamp(38px, 4vw, 52px); }
.masthead>p { color: var(--tides-body); font-size: 14px; line-height: 1.7; }
.edition { color: var(--tides-teal); font-weight: 500; }
.edition small { display: inline-block; text-transform: none; color: var(--tides-muted); line-height: 1.6; }
.body-copy, .editorial-copy p, #about-atlas p, .guide-body p, .guide-body li { color: var(--tides-body); }
.body-copy { font-size: 13px; line-height: 1.75; }
.inspector-note, .credits p, .reference-details, .reference-details summary { color: var(--tides-muted); font-size: 11px; line-height: 1.7; }
.reference-details .fma { color: var(--tides-muted); font-size: 10px; }
.structure-heading, .panel-heading, #compound-count { color: var(--tides-muted); font-size: 10px; }
.layer-panel, .illustrated .layer-panel { background: var(--tides-page); }
.layer-toggle { color: var(--tides-muted); }
.layer-toggle[aria-pressed=true] { color: var(--tides-body); }
.layer-toggle[aria-pressed=true] .check { border-color: var(--tides-teal); background: var(--tides-teal); }
.layer-toggle .check { border-color: var(--tides-border); }
.view-tabs, .icon-button, .viewport-controls>div { background: rgba(255,255,255,.88); border-color: var(--tides-border); }
.view-tabs button, .orientation button { color: var(--tides-muted); }
.view-tabs button.active { background: var(--tides-teal); color: var(--tides-white); }
.viewport-controls button { border-color: var(--tides-border); }
.viewport, .atlas-shell.expanded, .atlas-shell.expanded .viewport { background: radial-gradient(ellipse at 50% 45%, rgb(255,249,240) 0%, var(--tides-page) 70%); }
#load-state { background: rgba(247,237,223,.96); color: var(--tides-body); }
#load-state p, .viewer-status, .gesture-hint { color: var(--tides-muted); }
.loader-orbit { border-color: var(--tides-border); border-top-color: var(--tides-teal); }
.selected-caption { background: rgba(255,255,255,.94); border-color: var(--tides-border); font-weight: 500; }
.inspector-tabs button { color: var(--tides-muted); font-weight: 500; }
.inspector-tabs span { background: var(--tides-page); color: var(--tides-muted); font-variant-numeric: tabular-nums; }
.selection-system { background: transparent; border-color: var(--tides-border); font-size: 11px; line-height: 1.4; }
.selection-source, .text-action { font-weight: 500; }
.structure-row { border-color: var(--tides-border); }
.structure-row .organ-dot { background: var(--tides-page); }
.structure-row span:last-child { color: var(--tides-teal); }
.anatomy-search input { background: var(--tides-white); border-color: var(--tides-border); border-radius: 12px; }
.anatomy-search input::placeholder, .search-field input::placeholder { color: var(--tides-muted); opacity: 1; }
.search-field { color: var(--tides-muted); border-color: var(--tides-border); }
.compound-row { border-color: var(--tides-border); }
.compound-row h3 { font-weight: 600; line-height: 1.35; }
.compound-row small { font-size: 11px; line-height: 1.6; }
#selection-actions button { font-size: 11px; font-weight: 500; padding: 10px 12px; border-radius: 12px; border-color: var(--tides-border); }
.illustrated #selection-actions #clear-selection::before { content: none; }
.tour-launch, #about-continue, #load-state button { background: var(--tides-ink); color: var(--tides-white); border-radius: 999px; font-weight: 600; }
.tour-launch:hover, #about-continue:hover { background: var(--tides-body); }
.tour-launch { min-height: 44px; }
.tour-launch span { color: var(--tides-white); font-weight: 400; opacity: .85; }
.tour-note { border-color: var(--tides-border); box-shadow: 0 8px 40px rgba(31,26,18,.12); }
.tour-note strong { font-weight: 600; line-height: 1.4; }
.tour-note p { color: var(--tides-body); }
.tour-buttons button { border-color: var(--tides-border); font-weight: 500; }
.tour-buttons button:last-child { background: var(--tides-ink); border-color: var(--tides-ink); }
.atlas-caption { color: var(--tides-muted); font-size: 10px; line-height: 1.6; gap: 20px; }
.scale-mark span, .scale-mark small { color: var(--tides-muted); }
.scale-mark i { border-color: var(--tides-border); }
.illustrated #layers::after { content: 'Illustrated view. Select a structure or change the viewing angle. Individual layers and free rotation are available in 3D.'; color: var(--tides-muted); font-size: 11px; }
#about-atlas { border-radius: 24px; box-shadow: 0 24px 80px rgba(31,26,18,.16); }
#about-atlas::backdrop { background: rgba(11,10,8,.38); }
#about-atlas .about-scope { color: var(--tides-muted); font-size: 12px; }
.about-facts { color: var(--tides-body); }
.preview-note { background: var(--tides-page); color: var(--tides-muted); font-size: 11px; line-height: 1.5; }
.guide-image { background: var(--tides-page); border: 1px solid var(--tides-border); border-radius: 24px; }
.guide-next { border-radius: 24px; }
.primary-button { background: var(--tides-ink); border-radius: 999px; font-weight: 600; }
.primary-button:hover { background: var(--tides-body); }
.guide-lede { color: var(--tides-body); }
.guide-body h2 { font-size: 28px; }
footer small { font-size: 10px; line-height: 1.6; }
@media(min-width:761px) {
  /* The desktop viewer already identifies this mode in its caption. */
  .illustrated .viewer-status { display: none; }
}
@media(max-width:760px) {
  html, body, .atlas-shell { background: var(--tides-page); }
  body[data-experience=atlas] header { background: var(--tides-white); border-color: var(--tides-border); }
  header .brand, .wordmark { font-size: 28px; }
  .mobile-title { font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
  .mobile-title small { font-size: 8px; font-weight: 500; color: var(--tides-muted); }
  .mobile-intro>span { font-size: 9px; font-weight: 600; letter-spacing: .1em; color: var(--tides-muted); }
  .mobile-intro button { font-size: 11px; font-weight: 500; }
  .view-tabs button { font-size: 12px; font-weight: 500; }
  .orientation button { font-size: 11px; min-height: 40px; }
  .mobile-dock { background: rgba(255,255,255,.96); border-color: var(--tides-border); box-shadow: 0 5px 24px rgba(31,26,18,.05); }
  .dock-heading p { font-size: 9px; font-weight: 600; letter-spacing: .1em; line-height: 1.5; }
  .dock-heading strong { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
  .dock-heading button { border-color: var(--tides-border); }
  #quick-structures button { background: var(--tides-white); color: var(--tides-body); border-color: var(--tides-border); font-size: 12px; font-weight: 500; }
  #quick-structures button[aria-pressed=true] { background: var(--tides-teal); color: var(--tides-white); }
  #read-structure { font-size: 13px; font-weight: 500; }
  .mobile-nav { background: var(--tides-white); border-color: var(--tides-border); }
  .mobile-nav button { color: var(--tides-muted); font-size: 11px; font-weight: 500; }
  .inspector { border-color: var(--tides-border); box-shadow: 0 -8px 32px rgba(31,26,18,.06); }
  #sheet-handle span { background: rgb(199,189,174); }
  #close-sheet { color: var(--tides-body); }
  #selection h2, #library-panel h2 { font-size: 28px; margin-bottom: 14px; }
  .body-copy { font-size: 14px; line-height: 1.75; }
  .inspector-tabs button { font-size: 13px; }
  .inspector-note, .reference-details { font-size: 12px; line-height: 1.7; }
  .anatomy-search input, .search-field input { font-size: 16px; }
  .structure-row { font-size: 14px; }
  .compound-row h3 { font-size: 15px; }
  .tour-note p { font-size: 12px; line-height: 1.6; }
  .layer-toggle[aria-pressed=true] { background: var(--tides-page); border-color: var(--tides-border); }
  .guide-hero h1 { font-size: 40px; }
  .guide-body h2 { font-size: 26px; }
}
@media(max-width:360px) {
  header .brand { font-size: 26px; }
  .care-link { font-size: 10px; }
  .mobile-title { font-size: 12px; }
  .view-tabs button { font-size: 11px; padding-inline: 12px; }
  .orientation { gap: 12px; }
  .orientation button { font-size: 10px; }
  .dock-heading strong { font-size: 15px; }
  .mobile-nav button { font-size: 10px; }
}
@media(max-width:760px) and (max-height:500px) {
  .view-tabs button { font-size: 11px; padding-inline: 12px; }
  .dock-heading strong { font-size: 14px; }
  #quick-structures button { font-size: 11px; }
  .tour-note p { font-size: 11px; }
}
