/* Clone Viral Videos: the shell shared by every page (header, footer, keys, help widget). Needs /brand/tokens.css. */
@font-face { font-family: "Big Shoulders"; src: url(/fonts/big-shoulders-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-latin-wght-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Doto"; src: url(/fonts/doto-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--machine); color: var(--machine-ink); padding: 10px 14px; z-index: 99; border-radius: var(--r-button); font-weight: 600; }
.skip:focus { left: 12px; }

/* Keys (buttons). Same grammar as .btn in cvv.css, namespaced so site.css cannot reach them. */
.cvk { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-button); font: 800 1rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--dur-press) var(--ease-key), box-shadow var(--dur-press) var(--ease-key), background-color var(--dur-ui) var(--ease-out); }
.cvk--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--key-bevel), var(--key-drop); }
.cvk--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.cvk--secondary { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 1px 2px rgba(20,21,23,.08); }
.cvk--secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cvk:active { transform: translateY(2px); box-shadow: var(--key-pressed); }
.cvk--sm { min-height: 40px; padding: 0 14px; font-size: 0.9375rem; }
.cvk__led { width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 2px rgba(255,255,255,.22); flex: none; }

/* Header */
.cvh { position: relative; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.cvh__in { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); min-height: 72px; display: flex; align-items: center; gap: var(--space-5); }
.cvh__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 900 1.375rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.cvh__brand:hover { color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; border-radius: 7px; box-shadow: var(--key-drop); }
.cvh__nav { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; }
.cvh__nav a { color: var(--ink-2); font: 500 0.9375rem/1 var(--font-body); text-decoration: none; padding: 8px 0; }
.cvh__nav a:hover, .cvh__nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.cvh__menu { display: none; position: relative; }
.cvh__menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: var(--r-button); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.cvh__menu summary::-webkit-details-marker { display: none; }
.cvh__menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; }
.cvh__menu nav { position: absolute; right: 0; top: 52px; min-width: 240px; display: grid; padding: 8px; border-radius: var(--r-panel); background: var(--machine); box-shadow: var(--shadow-machine); }
.cvh__menu nav a { color: var(--machine-ink); text-decoration: none; padding: 12px 14px; border-radius: var(--r-key); font-weight: 600; }
.cvh__menu nav a:hover, .cvh__menu nav a[aria-current="page"] { background: var(--machine-2); color: #fff; }
@media (max-width: 920px) { .cvh__nav { display: none; } .cvh__cta { margin-left: auto; } .cvh__menu { display: block; } }
@media (max-width: 480px) { .cvh__brand span { font-size: 1.125rem; } .cvh__cta { display: none; } .cvh__menu { margin-left: auto; } }

/* Footer */
.cvf { background: var(--machine); color: var(--machine-ink-2); padding-block: var(--space-8) var(--space-6); margin-top: 0; }
.cvf__in { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7); }
.cvf .cvh__brand { color: var(--machine-ink); }
.cvf__brand p { margin-top: var(--space-4); max-width: 42ch; font-size: 0.9375rem; line-height: 1.55; }
.cvf__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.cvf__links div { display: grid; align-content: start; gap: 10px; min-width: 0; }
.cvf__h { margin: 0 0 4px; font: 800 var(--fs-label)/1.1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--machine-ink-3); }
.cvf__links a { color: var(--machine-ink); text-decoration: none; font-size: 0.9375rem; overflow-wrap: anywhere; }
.cvf__links a:hover { text-decoration: underline; color: #fff; }
.cvf__legal { grid-column: 1 / -1; border-top: 1px solid var(--machine-line); padding-top: var(--space-5); font-size: var(--fs-small); color: var(--machine-ink-3); margin: 0; }
.cvf :focus-visible { outline-color: var(--led); }
@media (max-width: 920px) { .cvf__in { grid-template-columns: minmax(0, 1fr); } .cvf__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Help widget */
.help-widget { position: fixed; right: 18px; bottom: 18px; z-index: 60; max-width: min(380px, calc(100vw - 36px)); border-radius: var(--r-panel); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-machine), inset 0 0 0 1px var(--line); font-family: var(--font-body); }
.help-widget > summary { padding: 12px 18px; font: 800 0.9375rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.help-widget > summary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led); }
.help-widget > summary::-webkit-details-marker { display: none; }
.help-widget__body { padding: 0 18px 18px; max-height: 70vh; overflow: auto; }
.help-widget form { display: grid; gap: 8px; }
.help-widget .fine { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-3); }
.help-widget textarea { width: 100%; min-height: 64px; padding: 10px 12px; border-radius: var(--r-field); border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: 400 1rem/1.4 var(--font-body); }
.help-message { padding: 12px; border-radius: var(--r-field); background: var(--surface); margin-top: 10px; overflow-wrap: anywhere; }
.help-message--user { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
#help-conversation { max-height: 320px; overflow: auto; margin: 12px 0; }
.cvv .help-widget .btn { min-height: 40px; }
@media (max-width: 720px) { .body--app .help-widget { bottom: 126px; right: 12px; } }
@media print { .help-widget, .cvh__menu { display: none; } }
