/* Design tokens (site-design). The only stylesheet with raw colors, and only inside :root blocks (PageCssLintTest); print.css
   (the PDF) is exempt by name. A data-product="remote|support" block re-points --accent* at that product. */

@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/pretendard/Pretendard-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/pretendard/Pretendard-Bold.woff2") format("woff2");
}

:root {
  color-scheme: light; /* Surfaces and lines */
  --ground: #F5F7FB; /* page ground */
  --panel-bg: #FFFFFF; /* cards, header, footer */
  --fill-dim: #EDF1F8; /* quiet bands, table header */
  --border: #C3CBD6; /* structure lines */
  --field-border: #7B8796; /* input and control borders, 3.65:1 on white */
  --selection-bg: #E8F0FB;
  --scrim: rgba(15, 26, 46, 0.5); /* Text */
  --text-primary: #0F1A2E; /* the wordmark navy */
  --text-dim: #33404F;
  --text-faint: #586577; /* the lightest text allowed (5.9:1 on white) */
  --on-accent: #FFFFFF;
  --on-support: #FFFFFF; /* Accent: company and OfficeView Remote */
  --accent: #1F5FBF;
  --accent-btn: #1F5FBF;
  --accent-btn-hover: #174A94;
  --accent-press: #123F7E;
  --accent-tint: #E3ECF9;
  --accent-line: #A9C3EA; /* OfficeView Support (violet) */
  --support: #5B2BD6;
  --support-tint: #EEE8FB;
  --support-line: #C8B8F0; /* -- Product accents. data-product scopes re-point --accent* at these --- */
  --accent-remote: #1F5FBF;
  --accent-support: #5B2BD6;
  --support-btn-hover: #4A1FB5;
  --support-press: #3C1896;
  --remote-on-dark: #6FA8FF; /* text and primary button on a dark surface */
  --support-on-dark: #B197FF; /* Ink scale for dark sections (hero, CTA band, footer) */
  --ink-900: #070F20;
  --ink-800: #0B1730;
  --ink-700: #12223F;
  --ink-600: #1B3055;
  --on-dark: #F0F2F5;
  --dim-on-dark: #B4C0D4;
  --faint-on-dark: #8F9DB6;
  --line-on-dark: #2A3F66; /* decoration only: never the edge of a control */
  --field-on-dark: #6B7C99; /* control edge on a dark surface */
  --focus-on-dark: #8DBBFF; /* Status colors */
  --crit-text: #B02A25;
  --crit-fill: #FBE8E7;
  --crit-line: #D9A6A3;
  --warn-text: #6E4105;
  --warn-fill: #FFF6E4;
  --warn-line: #E2C58F;
  --ok-text: #1F5A3B;
  --ok-fill: #E8F5EE;
  --ok-line: #A8D5BD; /* Brand gradient: decoration only, never behind text */
  --grad-cyan: #13B5EA;
  --grad-blue: #1F5FBF;
  --grad-violet: #5B2BD6;
  --grad-brand: linear-gradient(90deg, #13B5EA 0%, #1F5FBF 55%, #5B2BD6 100%);
  --hero-a: #E6F6FD; /* pale ends of the hero band: the text on it stays navy */
  --hero-b: #EEE9FC;
  --hero-bg: linear-gradient(135deg, #E6F6FD 0%, #EAF0FC 55%, #EEE9FC 100%);
  --icon-tile-bg: linear-gradient(135deg, #13B5EA 0%, #1F5FBF 55%, #5B2BD6 100%); /* Light, depth: decoration only, no text sits on a glow without a surface of its own */
  --hero-dark: radial-gradient(70% 90% at 82% 8%, rgba(91, 43, 214, 0.40) 0%, rgba(91, 43, 214, 0) 62%),
                    radial-gradient(60% 80% at 8% 100%, rgba(19, 181, 234, 0.22) 0%, rgba(19, 181, 234, 0) 60%),
                    linear-gradient(180deg, #0B1730 0%, #070F20 100%);
  --glow-remote: radial-gradient(60% 60% at 50% 40%, rgba(31, 95, 191, 0.35) 0%, rgba(31, 95, 191, 0) 70%);
  --glow-support: radial-gradient(60% 60% at 50% 40%, rgba(91, 43, 214, 0.32) 0%, rgba(91, 43, 214, 0) 70%);
  --shadow-card: 0 1px 2px rgba(15, 26, 46, 0.06), 0 8px 24px rgba(15, 26, 46, 0.08);
  --shadow-pop: 0 12px 40px rgba(15, 26, 46, 0.18);
  --shadow-device: 0 24px 60px rgba(3, 10, 28, 0.45), 0 4px 12px rgba(3, 10, 28, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); /* Focus */
  --focus-ring-color: #1F5FBF;
  --logo-light: inline-block;
  --logo-dark: none;
  --focus-ring: 3px solid var(--focus-ring-color);
  --focus-offset: 2px; /* Shape: lines for structure, three shadows for things that overlap (device frames, pop-ups, the quote) */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px; /* Spacing rhythm: 8px base */
  --sp1: 4px;
  --sp2: 8px;
  --sp3: 12px;
  --sp4: 16px;
  --sp5: 24px;
  --sp6: 32px;
  --sp7: 48px;
  --sp8: 64px;
  --sp9: 96px;
  --gutter: 16px; /* Type: nothing under 13px */
  --font-sans: "Pretendard", "Segoe UI", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-mono: Consolas, "Cascadia Mono", "Courier New", monospace;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-2xl: 32px;
  --fs-3xl: 44px;
  --fs-display: clamp(36px, 6.4vw, 64px); /* the home hero title */
  --fs-h1: clamp(32px, 5vw, 48px);
  --fs-h2: clamp(28px, 4vw, 36px);
  --fs-lead: clamp(17px, 1.6vw, 20px);

  --h-ctl: 44px; /* height of a button and an input */
  --h-bar: 40px; /* height of a desktop header link and button */
  --content-max: 1200px;
  --prose-max: 720px;
}

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
  }
}

/* Dark theme (site-design 2.6; derived values are held to the same contrast by TokenContrastTest). The values stand twice:
   for the system setting (no script needed) and for the choice the server renders as data-theme from OVW_THEME. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0A1226;
    --panel-bg: #111C36;
    --fill-dim: #17254A;
    --border: #2A3F66;
    --field-border: #6B7C99;
    --selection-bg: #1D2D57;
    --scrim: rgba(0, 0, 0, 0.65);
    --text-primary: #F0F2F5;
    --text-dim: #B4C0D4;
    --text-faint: #8F9DB6;
    --on-accent: #0A1226;
    --on-support: #0A1226;
    --accent: #6FA8FF;
    --accent-btn: #6FA8FF;
    --accent-btn-hover: #8DBBFF;
    --accent-press: #A9CCFF;
    --accent-tint: #172B55;
    --accent-line: #34508A;
    --support: #B197FF;
    --support-tint: #251C52;
    --support-line: #4A3A8F;
    --accent-remote: #6FA8FF;
    --accent-support: #B197FF;
    --support-btn-hover: #C9B8FF;
    --support-press: #DACFFF;
    --crit-text: #FF9B95;
    --crit-fill: #3A1A24;
    --crit-line: #7A3A44;
    --warn-text: #F0C877;
    --warn-fill: #33270F;
    --warn-line: #6B5420;
    --ok-text: #7FD6A5;
    --ok-fill: #12301F;
    --ok-line: #2F6B49;
    --hero-a: #0E2547;
    --hero-b: #1B1B48;
    --hero-bg: linear-gradient(135deg, #0E2547 0%, #12214A 55%, #1B1B48 100%);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.6);
    --focus-ring-color: #8DBBFF;
    --logo-light: none;
    --logo-dark: inline-block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0A1226;
  --panel-bg: #111C36;
  --fill-dim: #17254A;
  --border: #2A3F66;
  --field-border: #6B7C99;
  --selection-bg: #1D2D57;
  --scrim: rgba(0, 0, 0, 0.65);
  --text-primary: #F0F2F5;
  --text-dim: #B4C0D4;
  --text-faint: #8F9DB6;
  --on-accent: #0A1226;
  --on-support: #0A1226;
  --accent: #6FA8FF;
  --accent-btn: #6FA8FF;
  --accent-btn-hover: #8DBBFF;
  --accent-press: #A9CCFF;
  --accent-tint: #172B55;
  --accent-line: #34508A;
  --support: #B197FF;
  --support-tint: #251C52;
  --support-line: #4A3A8F;
  --accent-remote: #6FA8FF;
  --accent-support: #B197FF;
  --support-btn-hover: #C9B8FF;
  --support-press: #DACFFF;
  --crit-text: #FF9B95;
  --crit-fill: #3A1A24;
  --crit-line: #7A3A44;
  --warn-text: #F0C877;
  --warn-fill: #33270F;
  --warn-line: #6B5420;
  --ok-text: #7FD6A5;
  --ok-fill: #12301F;
  --ok-line: #2F6B49;
  --hero-a: #0E2547;
  --hero-b: #1B1B48;
  --hero-bg: linear-gradient(135deg, #0E2547 0%, #12214A 55%, #1B1B48 100%);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.6);
  --focus-ring-color: #8DBBFF;
  --logo-light: none;
  --logo-dark: inline-block;
}

/* A block scoped to one product: buttons, links, badges and the focus ring inside take that product's color. */
[data-product="support"] {
  --accent:           var(--accent-support);
  --accent-btn:       var(--accent-support);
  --accent-btn-hover: var(--support-btn-hover);
  --accent-press:     var(--support-press);
  --accent-tint:      var(--support-tint);
  --accent-line:      var(--support-line);
  --focus-ring-color: var(--accent-support);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p, ul, ol, dl, table, figure {
  margin: 0 0 var(--sp4);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-btn-hover);
}

img, svg {
  max-width: 100%;
  height: auto;
}

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

kbd {
  display: inline-block;
  padding: 0 var(--sp2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-bg);
  line-height: 1.6;
  white-space: nowrap;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* On a dark surface the ring is the light blue (9.7:1 on the darkest ink). */
.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

.skip-link {
  position: absolute;
  left: var(--sp4);
  top: -100px;
  z-index: 100;
  padding: var(--sp2) var(--sp4);
  background: var(--accent-btn);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--sp2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
