/*
 * KN Origin Lab — Phase B19S product-mode styling (progressive migration).
 * Four deliberately distinct compositions sharing the existing semantic tokens.
 * Opt-in scoped selectors: no broad element selectors and no change to scientific data.
 * This lightweight first-party stylesheet is loaded once by index.html; later
 * source modularization can move its rules into each domain's owned CSS file.
 *
 * HOME       Quiet Minimalism
 * LANGUAGES  Editorial reading and study
 * COASTAL    Scientific Workbench
 * PROJECTS   SaaS Product Workspace
 */

/* HOME — prioritize text hierarchy and one primary action, not decorative glow. */
html .kn-b19q-home-hero {
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(15 23 42 / 5%);
}
html .kn-b19q-home-hero > .kn-b19q-art { opacity: .14; }
html .kn-b19q-paths [data-product-card] {
  box-shadow: 0 1px 5px rgb(15 23 42 / 5%);
  transition: border-color .18s ease, box-shadow .18s ease;
}
html .kn-b19q-paths [data-product-card]::before { height: 3px; }
html .kn-b19q-paths [data-product-card]:is(:hover, :focus-within) {
  box-shadow: 0 6px 18px rgb(15 23 42 / 7%);
}
html .kn-b19q-paths [data-product-card] p[class*="text-[0.5"] {
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .045em;
}

/* LANGUAGE — consistent editorial reading rhythm for Korean and English. */
html .kn-b19q-frequency-header {
  background: var(--surface-2);
}
html .kn-b19q-korean-hero {
  background: linear-gradient(112deg, #0b1e34, #14334b);
}
html [data-testid="english-overview"] > section:first-child {
  box-shadow: 0 2px 9px rgb(15 23 42 / 5%);
}
html [data-testid="english-overview"] h1,
html [data-testid="korean-frequency-explorer"] h2 {
  text-wrap: balance;
  letter-spacing: -.025em;
}
html [data-testid="english-overview"] p,
html [data-testid="korean-frequency-explorer"] p {
  overflow-wrap: break-word;
}
html [data-testid="english-overview"] p[class*="text-[0.5"],
html [data-testid="english-overview"] span[class*="text-[0.5"] {
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .025em;
}

/* SCIENTIFIC WORKBENCH — research tools stay wide and data-centered. */
html .kn-b19q-coastal-header {
  background-color: #081d31;
}
html .kn-b19q-coastal-header .kn-b19q-art-svg { opacity: .40; }
/* Existing coastalPanPreview owns transform/compositing during panning.
   Do not change map interaction physics or derived coordinates in CSS. */

/* PROJECTS — product navigation, catalogs and functional controls over spectacle. */
html .kn-projects > div.kn-b19q-project-hero:first-child {
  background: var(--surface);
}
html .kn-b19q-project-hero .kn-b19q-art-svg { opacity: .20; }
html .kn-projects #backend-lab,
html .kn-projects #web-experiments {
  background: var(--surface);
  box-shadow: 0 1px 8px rgb(15 23 42 / 4%);
  border-color: var(--border);
}
html .kn-projects .kn-project-track:focus-within {
  outline: 2px solid var(--kn-learning-focus, #2563eb);
  outline-offset: 2px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html .kn-b19q-paths [data-product-card]:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html .kn-b19q-paths [data-product-card] { transition: none; }
}
@media print {
  html .kn-b19q-home-hero > .kn-b19q-art,
  html .kn-b19q-project-hero > .kn-b19q-art { display: none; }
}
