/* Monochrome UI palette; original layout and photographic assets stay intact. */
html[data-site-theme="white"] {
  color-scheme: light;
  --white-surface: #ffffff;
  --white-surface-alt: #f5f5f5;
  --white-ink: #000000;
  --white-muted: #666666;
  --white-line: #e0e0e0;
  --white-accent: #000000;
  --page-transition-color: #000000;
  --color-navy-900: #000000;
  --color-navy-800: #111111;
  --color-navy-700: #333333;
  --color-air-900: #000000;
  --color-air-800: #666666;
  --color-air-700: #dddddd;
  --color-sand-900: #999999;
  --color-sand-800: #e5e5e5;
  --color-sand-700: #f5f5f5;
  --color-white-900: #ffffff;
  --color-borders-dark: var(--white-line);
  --color-borders-900: var(--white-line);
}
html[data-site-theme="white"] body {
  background: var(--white-surface);
  color: var(--white-ink);
}

/* Page surfaces, including the menu and the original sand product sections. */
html[data-site-theme="white"] :is(.bg-navy-900, .bg-black-900, .bg-background-alt, .bg-sand-700, .bg-horizon-white-900, .bg-white-900):not(span):not(button) {
  background-color: var(--white-surface);
}
html[data-site-theme="white"] .bg-navy-800 { background-color: var(--white-surface-alt); }
html[data-site-theme="white"] .bg-borders-dark { background-color: var(--white-line); }
html[data-site-theme="white"] :is(.border-borders-dark, .border-navy-900) { border-color: var(--white-line); }
html[data-site-theme="white"] [class~="border-navy-900/10"] { border-color: var(--white-line); }
html[data-site-theme="white"] [class~="border-navy-900/35"] { border-color: #aaaaaa; }

/* Text on light surfaces. Image and video captions are restored below. */
html[data-site-theme="white"] :is(.text-sand-700, .text-white-900, .text-white, .text-navy-900, .text-navy-800) {
  color: var(--white-ink);
}
html[data-site-theme="white"] :is([class~="text-sand-700/75"], [class~="text-sand-700/80"], [class~="text-sand-700/85"], [class~="text-sand-700/70"], [class~="text-sand-700/65"], [class~="text-sand-700/50"], [class~="text-sand-700/40"], [class~="text-sand-700/35"], [class~="text-white-900/50"]) {
  color: var(--white-muted);
}
html[data-site-theme="white"] :is(.text-air-800, .text-air-900, .text-air-700, [class~="text-air-800/75"], [class~="lg:text-air-900"]) {
  color: var(--white-accent);
}
html[data-site-theme="white"] :is(header, footer, [data-clone-mobile]) [fill="var(--color-horizon-white-900)"] {
  fill: var(--white-ink);
}

/* Fixed header uses the page surface and its contrasting text color. */
html[data-site-theme="white"] [data-clone-header] {
  --header-source-ink:var(--white-ink);
  --header-line:var(--white-line);
  position:fixed; inset:0 0 auto; z-index:50;
  color:var(--header-source-ink); background:var(--white-surface) !important;
  border-color:var(--header-line); mix-blend-mode:normal;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  transform:none; translate:none;
}
html[data-site-theme="white"] [data-clone-header]::after { display:none; content:none; }
html[data-site-theme="white"] [data-clone-header] :is(a,button,span,svg,summary) { color:var(--header-source-ink); border-color:var(--header-line); }
html[data-site-theme="white"] [data-clone-header] [fill^="var(--color-"] { fill:var(--header-source-ink); }
html[data-site-theme="white"] [data-clone-header] [data-clone-action="open-menu"] span[class~="size-[3px]"],
html[data-site-theme="white"] [data-clone-header] nav > div > :is(a,button) > span[aria-hidden="true"] { background:var(--header-source-ink); }
html[data-site-theme="white"] [data-clone-header] :is(a,button,summary):is(:hover,:focus-visible),
html[data-site-theme="white"] [data-clone-header] .language-switch[open] > summary { background:transparent; }
html[data-site-theme="white"] [data-clone-header] :is(a,button,summary):focus-visible { outline-color:var(--header-source-ink); }
/* Preserve the flag's actual colors outside the blended header group. */
[data-clone-header] .language-switch > summary .language-flag { visibility:hidden; }
.header-language-flag { position:fixed; z-index:51; display:block; object-fit:contain; pointer-events:none; mix-blend-mode:normal; }
/* Native popovers stay in their DOM position, but paint above the blended group. */
html[data-site-theme="white"] [data-header-popover] {
  position:fixed; inset:auto; left:var(--header-popup-x,0px); top:var(--header-popup-y,0px);
  margin:0; max-width:calc(100vw - 24px); max-height:calc(100svh - 100px); overflow:auto;
  border:1px solid var(--white-line); background:var(--white-surface); color:var(--white-ink);
  mix-blend-mode:normal; box-shadow:0 12px 32px #00000014;
}
[data-header-popover][popover]:not(:popover-open) { display:none !important; }
[data-header-popover]::backdrop { background:transparent; pointer-events:none; }
html[data-site-theme="white"] [data-header-popover] :is(p,a,span,svg) { color:var(--white-ink); }
html[data-site-theme="white"] [data-header-popover] :is(a,button):hover { background:transparent; }
html[data-site-theme="white"] [data-header-popover] :is(a,button):focus-visible { outline:2px solid var(--white-ink); outline-offset:2px; }
html[data-site-theme="white"] [data-header-popover="language"] a:is(:hover,:focus-visible) { background:var(--white-surface-alt); }
html[data-site-theme="white"] [data-header-popover] a > span[aria-hidden="true"] { background:var(--white-ink); }
/* Readable inline fallback for engines without the Popover API. */
html[data-site-theme="white"] [data-clone-header][data-header-inline-popup]:is([data-dropdown-open="true"],:has([data-language-switch][open])) {
  --header-source-ink:var(--white-ink); --header-line:var(--white-line);
  mix-blend-mode:normal; background:var(--white-surface) !important;
}

/* Keep a visible ink/white state for product buttons and dark hover buttons. */
html[data-site-theme="white"] [data-clone-product][aria-selected="true"] {
  background-color: var(--white-ink);
  border-color: var(--white-ink);
  color: #fff;
}
html[data-site-theme="white"] [data-clone-product][aria-selected="false"] { background-color: #fff; color: var(--white-ink); }
html[data-site-theme="white"] [data-clone-product][aria-selected="false"]:hover { background-color: #eeeeee; }
html[data-site-theme="white"] [data-clone-action="details-tab"].bg-navy-800 { background-color: var(--white-ink); color: #fff; }
html[data-site-theme="white"] :is(.group:hover, .group:focus-visible) :is([class~="group-hover:text-white-900"], [class~="group-focus-visible:text-white-900"]) { color: #fff; }
html[data-site-theme="white"] :is([class~="hover:text-white-900"], [class~="hover:text-white"]):hover { color: var(--white-accent); }
html[data-site-theme="white"] :is([class~="hover:text-air-800"], [class~="hover:text-air-900"]):hover { color: var(--white-accent); }
html[data-site-theme="white"] [class~="hover:bg-navy-900"]:hover { color: #fff; background-color: var(--white-ink); }
html[data-site-theme="white"] [class~="hover:bg-navy-800"]:hover { background-color: var(--white-ink); }

/* Preserve white captions over photographic backgrounds and dark glass cards. */
html[data-site-theme="white"] [data-white-media],
html[data-site-theme="white"] [data-white-media] :is(.text-sand-700, .text-white-900, .text-white) {
  color: #fff;
}
html[data-site-theme="white"] [data-white-media] :is([class~="text-sand-700/75"], [class~="text-sand-700/85"]) { color: rgba(255,255,255,.85); }
html[data-site-theme="white"] [data-white-media] .bg-navy-900 { background-color: #000000; }
html[data-site-theme="white"] [data-white-media] .bg-navy-800 { background-color: #111111; }
html[data-site-theme="white"] [data-white-media] :is(.text-air-800, .text-air-900) { color: #ffffff; }
html[data-site-theme="white"] [data-white-media] :is(.group:hover, .group:focus-visible) :is([class~="group-hover:text-navy-900"], [class~="group-focus-visible:text-navy-900"]) { color: #000000; }
html[data-site-theme="white"] [data-white-media] [class~="hover:text-navy-900"]:hover { color: #000000; }

html[data-site-theme="white"] footer a[class~="bg-navy-900"] {
  background-color: #fff;
  color: var(--white-accent);
}
html[data-site-theme="white"] footer a[class~="bg-navy-900"]:is(:hover, :focus-visible) {
  background-color: var(--white-accent);
  color: #fff;
}
html[data-site-theme="white"] footer a[class~="bg-navy-900"]:is(:hover, :focus-visible) * { color: #fff; }

html[data-site-theme="white"] :is(.group:hover, .group:focus-visible) [class~="group-hover:bg-navy-900"] :is([class~="group-hover:text-navy-900"], [class~="group-focus-visible:text-navy-900"]) { color: #fff; }

html[data-site-theme="white"] ::selection { background: #e5e5e5; color: #000000; }

/* Enlarge the flag footprint while preserving the Taegeukgi artwork. */
footer .footer-national-flag {
  width: 180px;
  height: 120px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

/* Shared page and inquiry layout is defined in layout.css. */

/* Monochrome hover states retain contrast on dark buttons and cards. */
html[data-site-theme="white"] :is([class~="hover:bg-navy-900"], [class~="hover:bg-navy-800"], [class~="hover:bg-air-900"]):is(:hover, :focus-visible) {
  background-color: #000;
  color: #fff;
}
html[data-site-theme="white"] :is([class~="hover:bg-navy-900"], [class~="hover:bg-navy-800"], [class~="hover:bg-air-900"]):is(:hover, :focus-visible) :is(span, p, h2, h3, svg) {
  color: #fff;
}
html[data-site-theme="white"] :is(.group:hover, .group:focus-visible) [class~="group-hover:bg-air-900"] {
  background-color: #000;
  color: #fff;
}
html[data-site-theme="white"] :is(.group:hover, .group:focus-visible) [class~="group-hover:bg-air-900"] * { color: #fff; }
html[data-site-theme="white"] [data-white-media] span.bg-air-900 {
  background-color: #fff;
  box-shadow: none;
}
html[data-site-theme="white"] [data-white-media] :is(a, button):focus-visible { outline-color: #fff; }
html[data-site-theme="white"] [data-clone-header] [data-contact-link]:focus-visible {
  outline-color: var(--header-source-ink);
  outline-offset: -4px;
}
html[data-site-theme="white"] .clone-dialog button:focus-visible { outline-color: #fff; }

/* Compact bilingual control shared by the main, sticky, and mobile headers. */
.language-switch {
  position: relative;
  align-self: stretch;
  flex-shrink: 0;
  margin-left: auto;
  font-family: "Noto Sans KR Variable", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  color: #111;
  text-transform: none;
}
.language-switch > summary {
  display: flex;
  height: 100%;
  min-width: 88px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.language-switch > summary::-webkit-details-marker { display: none; }
.language-switch > summary:hover, .language-switch[open] > summary { background: #f1f1f1; }
.language-switch > summary:focus-visible { outline: 2px solid #111; outline-offset: -5px; }
.language-switch[open] > summary svg { transform: rotate(180deg); }
.language-switch .language-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 1px);
  right: 0;
  display: grid;
  min-width: 148px;
  padding: 6px;
  border: 1px solid #dedede;
  background: #fff;
  box-shadow: 0 8px 24px #0000000a;
}
.language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  gap: 18px;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}
.language-flag {
  display: block;
  width: 24px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}
.language-option-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.language-chevron { flex-shrink: 0; }
.language-options a[aria-current="true"]::after { content: "✓"; }
.language-options a:hover, .language-options a:focus-visible { background: #f1f1f1; outline: none; }
@media (min-width: 1280px) and (max-width: 1439px) {
  [data-clone-header] nav[aria-label="Primary navigation"],
  [data-clone-header] nav[aria-label="주 메뉴"] { gap: 24px; left: 49%; }
}
.clone-root[lang="ko"] :is(.font-heading, .font-body, .font-secondary, .font-mono, input, textarea, .contact-page-privacy) {
  font-family: "Noto Sans KR Variable", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.clone-root[lang="ko"] .font-heading { letter-spacing: -.045em; line-height: 1.12; }
.clone-root[lang="ko"] .font-body { line-height: 1.65; }
.clone-root[lang="ko"] .font-secondary { letter-spacing: -.015em; }
@media (max-width: 479px) {
  .language-switch > summary { min-width: 72px; padding-inline: 8px; gap: 6px; }
  .language-switch > summary .language-flag { width: 20px; height: 14px; }
  .clone-root[lang="ko"] footer aside h2 { font-size: 28px; }
}
@media (max-width: 359px) {
  :is([data-clone-header], [data-clone-mobile]) a[aria-label^="Daniel Systems"] { padding-inline: 8px; }
}

/* Keep each logo's layout dimensions and enlarge the artwork within its section. */
.site-brand-logo {
  display: block;
  width: 160px;
  height: auto;
  max-width: 100%;
  transform: scale(1.1);
  transform-origin: center;
}
@media (max-width: 359px) {
  :is([data-clone-header], [data-clone-mobile]) .site-brand-logo {
    width: 128px;
    transform: scale(1.0625);
  }
}
footer .site-brand-logo {
  width: 240px;
  transform-origin: right center;
}
@media (max-width: 319px) {
  footer .site-brand-logo { transform: none; }
}
@media (min-width: 1024px) {
  footer .site-brand-logo { width: 280px; transform: scale(1.125); }
}
@media (min-width: 1280px) {
  [data-clone-header] .site-brand-logo { width: 184px; transform: scale(1.174); }
}

/* Page-edge controls stay in the viewport rather than in the footer. */
.floating-scroll-controls {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--white-line);
  border-radius: 4px;
  background: #fff;
  color: #000;
  box-shadow: 0 4px 18px rgb(0 0 0 / 8%);
}
.floating-scroll-controls[hidden],
html[data-page-transitioning] .floating-scroll-controls,
body:has([data-clone-mobile="menu"], [data-clone-mobile="drones"], [data-dropdown-open="true"]) .floating-scroll-controls { display: none; }
.floating-scroll-controls:not([hidden]) { animation: scroll-control-enter .26s cubic-bezier(.22, 1, .36, 1) both; }
.floating-scroll-controls button {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.floating-scroll-controls button:is(:hover, :focus-visible) { background: #000; color: #fff; }
.floating-scroll-controls button:focus-visible { outline: 2px solid #000; outline-offset: -4px; box-shadow: inset 0 0 0 4px #fff; }
.floating-scroll-controls svg { flex-shrink: 0; animation: scroll-arrow-enter .16s ease-out both; }
@keyframes scroll-control-enter {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scroll-arrow-enter {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-scroll-controls:not([hidden]), .floating-scroll-controls svg { animation: none; }
}
@media (max-width: 767px) {
  .floating-scroll-controls { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
}


