/* ANTIDOPE EPK — shared foundations. Layout and look live in a.css / b.css / c.css. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../assets/fonts/BarlowCondensed-Bold.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: italic; font-display: swap; src: url(../assets/fonts/BarlowCondensed-BoldItalic.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(../assets/fonts/BarlowCondensed-ExtraBold.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 900; font-style: normal; font-display: swap; src: url(../assets/fonts/BarlowCondensed-Black.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../assets/fonts/DMSans-Regular.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(../assets/fonts/DMSans-Medium.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../assets/fonts/DMSans-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(../assets/fonts/DMSans-Bold.ttf) format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../assets/fonts/IBMPlexMono-Regular.ttf) format("truetype"); }

:root {
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --red: #e5140b;
  --focus: #ff5a4f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
template { display: none !important; }
[hidden] { display: none !important; }
:lang(ko) { word-break: keep-all; line-break: strict; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .75rem 1rem; background: #fff; color: #000; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Hero variant: the review switch lives on the comparison page only. */
html[data-hero="live"] [data-hero-only="mask"],
html[data-hero="mask"] [data-hero-only="live"] { display: none !important; }

/* Video thumbnails — keep their box even if the image is blocked. */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0c0d; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.thumb-missing::after { content: "Thumbnail unavailable — video opens on click"; position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; font: 400 .75rem/1.4 var(--font-mono); color: #a9a39b; }

/* Video dialog */
.video-dialog { width: min(1100px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid #3a3a3d; background: #0b0b0c; color: #f3efe8; overflow: auto; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .86); }
.video-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.video-dialog__title { font: 600 .95rem/1.35 var(--font-body); overflow-wrap: anywhere; }
.video-dialog__close { flex: none; min-height: 44px; padding: .5rem 1rem; border: 1px solid #f3efe8; background: transparent; color: #f3efe8; font-weight: 600; }
.video-dialog__close:hover { background: #f3efe8; color: #0b0b0c; }
.video-dialog__frame { aspect-ratio: 16 / 9; background: #000; }
.video-dialog__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-dialog__alt { padding: .75rem 1rem 1rem; font-size: .875rem; color: #c9c3ba; }
.video-dialog__link { color: #fff; font-weight: 600; }

/* SoundCloud widget */
.sc-frame { display: block; width: 100%; height: 166px; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
