/*
Theme Name: DMO Ordbog
Theme URI: https://digitalmarketingordbog.dk/
Description: Let, selvstændigt tema til Digital Marketing Ordbog: forside, opslag, emner, bogstaver og søgning.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: dmo
*/

:root {
	--ink: #121314;
	--ink-2: #24272B;
	--ink-3: #3A3D42;
	--muted: #55585E;
	--paper: #FAFAF7;
	--white: #FFFFFF;
	--chip: #F0F0EB;
	--rule: rgba(18, 19, 20, .18);
	--rule-soft: rgba(18, 19, 20, .12);
	--marker: #D4F36B;
	--sans: "Geist", "Helvetica Neue", Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, Menlo, monospace;
	--wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--marker); padding: 10px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0; }
.label-up { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0; }
.mark { background: var(--marker); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rule-top { border-top: 1px solid var(--ink); }
.bg-white { background: var(--white); }
.h-section { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.link-mono { font-family: var(--mono); font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 500; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; background: #000; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-badge { font-family: var(--mono); font-size: 13px; font-weight: 500; background: var(--ink); color: var(--marker); padding: 6px 8px; border-radius: 3px; }
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; font-size: 15px; }
.main-nav a { padding: 12px; display: inline-block; }
.main-nav .current { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 100%; z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--ink); border-radius: 4px; min-width: 200px; box-shadow: 4px 4px 0 var(--ink); }
.lang li a { display: block; padding: 10px 12px; font-size: 14px; }
.lang li a span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 8px; }
.mini-search { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: 4px; background: var(--white); height: 44px; padding: 0 6px 0 12px; gap: 8px; }
.mini-search input { border: 0; outline: none; font: inherit; font-size: 15px; width: 200px; max-width: 46vw; background: transparent; color: var(--ink); }
.kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 2px 5px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }

/* Hero (front) */
.hero { padding-top: 80px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.hero-main { flex: 999 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(2.9rem, 6.6vw, 5.8rem); line-height: 1; letter-spacing: -.05em; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-3); max-width: 33rem; }
.big-search { display: flex; flex-direction: column; gap: 12px; max-width: 42rem; }
.big-search .field { display: flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--white); }
.big-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 20px; padding: 0 18px; height: 60px; background: transparent; color: var(--ink); }
.big-search .kbd { align-self: center; margin-right: 12px; }
.big-search button { border: 0; border-left: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font: inherit; font-size: 16px; font-weight: 500; padding: 0 26px; cursor: pointer; }
.suggest { margin: 0; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.suggest a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(18,19,20,.4); }

/* Index card (dictionary entry) */
.card { background: var(--white); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); }
.card-bar { display: flex; justify-content: space-between; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.card-bar span + span { color: var(--muted); }
.card-body { padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.card h2 { margin: 0; font-weight: 500; font-size: 40px; line-height: 1.05; letter-spacing: -.04em; }
.card .def { margin: 0; font-size: 16px; line-height: 1.6; }
.card-foot { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 22px; border-top: 1px solid var(--ink); font-weight: 500; font-size: 15px; }
.today { flex: 1 1 360px; min-width: 0; }

/* Thumb index */
.thumb { background: var(--ink); }
.thumb .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
.thumb a, .thumb span { height: 56px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; color: rgba(255,255,255,.85); }
.thumb span { color: rgba(255,255,255,.3); }
.thumb a.is-active { background: var(--marker); color: var(--ink); font-weight: 500; }
.thumb a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.thumb a.is-active:hover { background: var(--marker); }

/* Letter block */
.letter-block { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.letter-side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.letter-giant { font-size: 180px; line-height: .78; font-weight: 300; letter-spacing: -.08em; }
.letter-giant span { color: rgba(18,19,20,.35); }
.letter-side h2 { margin: 16px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.term-cols { flex: 999 1 640px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 32px; align-content: start; }
.term-cols li { border-top: 1px solid var(--rule); }
.term-cols a { display: block; padding: 12px 0; font-size: 16px; }

/* Topics grid (front) */
.topics-sec { padding-top: 72px; padding-bottom: 96px; }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 40px; }
.topic-item { display: flex; gap: 20px; padding: 24px 0 28px; border-top: 1px solid var(--ink); }
.topic-item:hover { text-decoration: none; }
.topic-item:hover .topic-name { text-decoration: underline; text-underline-offset: 4px; }
.topic-no { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; width: 24px; flex: none; }
.topic-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.topic-name { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.topic-ex { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* New words */
.new-sec { padding-top: 72px; padding-bottom: 88px; }
.new-list { list-style: none; margin: 0; padding: 0; }
.new-list li { border-top: 1px solid var(--rule); }
.new-list a { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 32px; row-gap: 6px; padding: 20px 0; }
.new-list a:hover { text-decoration: none; }
.new-list a:hover .nt { text-decoration: underline; text-underline-offset: 4px; }
.nt { flex: 1 1 260px; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.nc { flex: 0 0 160px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.nd { flex: 999 1 380px; font-size: 16px; line-height: 1.5; color: var(--ink-3); }

/* About */
.about { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.about-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p.big { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.25; letter-spacing: -.03em; max-width: 44rem; }
.suggest-box { flex: 1 1 340px; background: var(--marker); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.suggest-box p { margin: 0; }
.suggest-box .t { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--ink-3); }

/* Breadcrumb */
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs [aria-current] { color: var(--ink); }

/* Single entry */
.entry-head { padding-top: 32px; }
.entry-title-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; padding: 56px 0 48px; border-bottom: 1px solid var(--ink); }
.entry-title-row > div { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.entry-title { margin: 0; font-weight: 500; font-size: clamp(2.8rem, 7.5vw, 6.6rem); line-height: .95; letter-spacing: -.055em; overflow-wrap: anywhere; hyphens: auto; }
.entry-meta { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.entry-meta a { text-decoration: underline; text-underline-offset: 3px; }
.facts { flex: 1 1 240px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-family: var(--mono); font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.entry-body { padding-top: 48px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.toc { flex: 1 1 200px; min-width: 0; max-width: 240px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; }
.toc .label-up { margin-bottom: 10px; }
.toc a { display: flex; gap: 10px; padding: 8px 0 8px 12px; border-left: 2px solid var(--rule-soft); font-size: 15px; color: var(--ink-3); }
.toc a:hover { border-left-color: var(--ink); color: var(--ink); text-decoration: none; }
.toc a span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.article { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 48px; }
.short .card-body { padding: 24px 22px; }
.short p { margin: 0; font-size: 22px; line-height: 1.5; letter-spacing: -.01em; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 18px; font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -.035em; color: var(--ink); scroll-margin-top: 24px; }
.prose h2 .no { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--muted); vertical-align: middle; margin-right: 12px; letter-spacing: 0; }
.prose h3 { margin: 36px 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 24px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.prose li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.prose ul > li::before { content: "–"; position: absolute; left: 4px; color: var(--muted); }
.prose ol { counter-reset: dmo; }
.prose ol > li { counter-increment: dmo; }
.prose ol > li::before { content: counter(dmo, lower-alpha); position: absolute; left: 4px; font-family: var(--mono); font-size: 13px; color: var(--muted); top: 17px; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose blockquote { margin: 0 0 22px; border-left: 3px solid var(--marker); background: var(--white); padding: 16px 20px; font-size: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 22px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose img { border-radius: 4px; }
.prose .ez-toc-v2_0_17, .prose #ez-toc-container, .prose .ez-toc-container, .prose div[id^="ez-toc-container"] { display: none !important; }
.rail { flex: 1 1 260px; min-width: 0; max-width: 300px; display: flex; flex-direction: column; gap: 32px; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { border-top: 1px solid var(--rule); }
.rail li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 16px; }
.rail li a span { color: var(--muted); }
.topic-box { background: var(--ink); color: var(--white); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.topic-box .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--marker); }
.topic-box .n { font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.topic-box .d { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.8); }
.topic-box a { color: var(--white); font-size: 15px; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.pager { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.pager .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 0; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; }
.pager a:hover { text-decoration: none; background: var(--paper); }
.pager a + a { border-left: 1px solid var(--rule-soft); text-align: right; align-items: flex-end; }
.pager .n { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }

/* Calculator */
.calc-body { display: flex; flex-wrap: wrap; }
.calc-form { flex: 1 1 300px; padding: 22px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.calc-title { margin: 0 0 4px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.calc-field label { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.calc-input { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); }
.calc-input:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.calc-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 18px; padding: 10px 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-input span { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-right: 12px; }
.calc-result { flex: 1 1 260px; padding: 22px; background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 200px; }
.calc-result .calc-rlabel { margin: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.calc-main { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-result .calc-note { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }
.calc-body > .calc-note { margin: 0; padding: 22px; font-size: 15px; color: var(--muted); }
.calc-result.is-good .calc-main { color: var(--marker); }
.calc-result.is-bad .calc-main { color: #FFB4A2; }
.calc-formula { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 22px; border-top: 1px solid var(--ink); font-size: 14px; }
.calc-formula span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.calc-formula code { font-family: var(--mono); font-size: 13px; }

/* Quiz */
.quiz .card-bar span + span { color: var(--ink); }
.quiz-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; }
.quiz-q { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.015em; }
.quiz-q strong { font-weight: 600; background: var(--marker); padding: 0 4px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: flex-start; text-align: left; width: 100%; min-height: 44px; padding: 14px 16px; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; cursor: pointer; }
.quiz-opt:hover:not(:disabled) { background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.quiz-opt:disabled { cursor: default; color: var(--ink-3); }
.quiz-letter { flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 3px; font-family: var(--mono); font-size: 12px; margin-top: 1px; }
.quiz-text { flex: 1 1 200px; min-width: 0; }
.quiz-was { flex-basis: 100%; padding-left: 40px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.quiz-opt.is-right { background: var(--marker); color: var(--ink); border-color: var(--ink); }
.quiz-opt.is-right .quiz-letter { background: var(--ink); color: var(--marker); }
.quiz-opt.is-wrong { background: #FFE3DB; color: var(--ink); }
.quiz-opt.is-wrong .quiz-text { text-decoration: line-through; text-decoration-color: rgba(18,19,20,.4); }
.quiz-result:empty { display: none; }
.quiz-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--rule); }
.quiz-verdict { margin: 0; font-size: 18px; font-weight: 500; }
.quiz-next:hover { color: var(--white); }

/* Topic quiz */
.tq-sec { background: var(--white); scroll-margin-top: 16px; }
.tq-stage { max-width: 880px; margin: 0 auto; padding: 64px 24px 72px; }
.tq-intro, .tq-q, .tq-result { display: flex; flex-direction: column; gap: 20px; }
.tq-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-3); max-width: 40rem; }
.tq-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tq-top { display: flex; justify-content: space-between; gap: 12px; }
.tq-bar { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; }
.tq-bar span { display: block; height: 100%; background: var(--ink); transition: width .3s ease; }
.tq-prompt { margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; outline: none; }
.tq-def { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; letter-spacing: -.015em; }
.tq-term { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.tq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.tq-grid .quiz-opt { font-size: 17px; font-weight: 500; align-items: center; }
.tq-score { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px; border: 1px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); background: var(--paper); }
.tq-num { font-size: clamp(4rem, 12vw, 7.5rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.tq-meta { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.tq-level { font-size: 34px; font-weight: 500; letter-spacing: -.035em; background: var(--marker); align-self: flex-start; padding: 0 8px; }
.tq-share { min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 4px; background: var(--white); font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.tq-share:hover { box-shadow: 3px 3px 0 var(--ink); }
.tq-missed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 32px; }
.tq-missed li { border-top: 1px solid var(--rule); }
.tq-missed a { display: block; padding: 12px 0; font-size: 16px; }

/* Popup definitions */
.prose a.dmo-term { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a.dmo-term:hover, .prose a.dmo-term:focus-visible { background: var(--marker); text-decoration-style: solid; }
.term-pop { position: absolute; z-index: 50; background: var(--white); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px 12px; font-family: var(--sans); }
.term-pop[hidden] { display: none; }
.term-pop p { margin: 0; }
.term-pop-k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.term-pop-t { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin-top: 4px !important; }
.term-pop-d { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 6px !important; }
.term-pop-more { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; font-size: 14px; font-weight: 500; }

/* Daily game */
.game-band { display: block; background: var(--marker); border-top: 1px solid var(--ink); }
.game-band:hover { text-decoration: none; }
.game-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.game-band .mono { font-size: 13px; }
.game-band-t { flex: 1 1 300px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.game-band-cta { font-weight: 500; font-size: 15px; border-bottom: 1.5px solid var(--ink); }
.game-band:hover .game-band-cta { border-bottom-width: 3px; }
.game-head { padding-top: 32px; padding-bottom: 40px; }
.game-title-row { padding-top: 48px; }
.game-title-row > div { display: flex; flex-direction: column; gap: 20px; }
.game-title-row h1 { margin: 0; font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.game-sec { border-top: 1px solid var(--ink); background: var(--white); }
.game-sec > .wrap { padding-top: 48px; padding-bottom: 80px; }
.game { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.game-board { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.game-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.game-pattern { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.game-word { display: flex; flex-wrap: wrap; gap: 5px; }
.game-box { width: 36px; height: 44px; border: 1.5px solid var(--ink); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; text-transform: uppercase; background: var(--paper); }
.game-box.is-on { background: var(--marker); }
.game-clues { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.game-clues li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.game-clue-no { flex: 0 0 96px; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.game-clue-text { flex: 1 1 300px; font-size: 17px; line-height: 1.55; }
.game-clues li.is-locked .game-clue-text { color: var(--muted); font-style: italic; }
.game-form { display: flex; flex-direction: column; gap: 10px; }
.game-form[hidden], .game-skip[hidden] { display: none; }
.game-form .field { display: flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--white); }
.game-form input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 19px; padding: 0 16px; height: 56px; background: transparent; color: var(--ink); }
.game-form .field:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.game-form button[type="submit"] { border: 0; border-left: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font: inherit; font-size: 16px; font-weight: 500; padding: 0 22px; cursor: pointer; }
.game-skip { align-self: flex-start; background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; color: var(--ink-3); cursor: pointer; }
.game-msg { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--ink-3); }
.game-guesses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.game-guesses:empty { display: none; }
.game-guesses li { font-size: 14px; padding: 6px 10px; border-radius: 3px; border: 1px solid var(--ink); }
.game-guesses li.is-wrong { background: #FFE3DB; text-decoration: line-through; text-decoration-color: rgba(18,19,20,.4); }
.game-guesses li.is-right { background: var(--marker); }
.game-card h2 a { text-decoration: none; }
.game-card h2 a:hover { text-decoration: underline; }
.game-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); border-radius: 4px; }
.game-stats div { padding: 14px 16px; }
.game-stats div:nth-child(odd) { border-right: 1px solid var(--ink); }
.game-stats div:nth-child(n+3) { border-top: 1px solid var(--ink); }
.game-stats dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.game-stats dd { margin: 4px 0 0; font-size: 30px; letter-spacing: -.03em; }
.game-dist { display: flex; flex-direction: column; gap: 6px; }
.game-dist-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.game-dist-row .mono { width: 12px; color: var(--muted); }
.game-dist-bar { display: inline-block; background: var(--chip); padding: 3px 8px; text-align: right; font-family: var(--mono); border-radius: 2px; min-width: 24px; }
.game-dist-bar.is-today { background: var(--marker); }
@media (max-width: 720px) {
	.game-box { width: 26px; height: 34px; font-size: 16px; }
	.game-clue-no { flex-basis: 100%; }
}

/* Topic page */
.topic-tabs { border-bottom: 1px solid var(--ink); background: var(--white); }
.topic-tabs .wrap { display: flex; flex-wrap: wrap; }
.topic-tabs a { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-size: 15px; border-right: 1px solid var(--rule-soft); }
.topic-tabs a span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.topic-tabs a.is-active { background: var(--marker); font-weight: 500; }
.topic-hero { padding-top: 32px; padding-bottom: 64px; }
.topic-hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; padding-top: 56px; }
.topic-hero-row > div { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.topic-hero h1 { margin: 0; font-weight: 500; font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: .95; letter-spacing: -.055em; overflow-wrap: anywhere; hyphens: auto; }
.entry-title.is-long, .topic-hero h1.is-long { font-size: clamp(2.2rem, 5.4vw, 4.8rem); }
.entry-title.is-xlong, .topic-hero h1.is-xlong { font-size: clamp(1.9rem, 4vw, 3.6rem); line-height: 1.02; }
.stat-box { flex: 1 1 280px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); border-radius: 4px; background: var(--white); }
.stat-box > div { padding: 18px 20px; }
.stat-box > div + div { border-left: 1px solid var(--ink); }
.stat-box dd { margin: 6px 0 0; font-size: 40px; letter-spacing: -.04em; }
.start-sec { padding-top: 56px; padding-bottom: 72px; }
.start-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border: 1px solid var(--ink); border-radius: 4px; }
.start-list li + li { border-left: 1px solid var(--ink); }
.start-list a { display: flex; flex-direction: column; gap: 14px; padding: 26px; height: 100%; }
.start-list a:hover { text-decoration: none; background: var(--paper); }
.start-list .s { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.start-list .t { font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.start-list .d { font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.groups { padding-top: 64px; padding-bottom: 80px; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 40px 32px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.group-head h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.group-grid ul { list-style: none; margin: 0; padding: 0; }
.group-grid li { border-bottom: 1px solid var(--rule); }
.group-grid li a { display: block; padding: 11px 0; font-size: 16px; }
.more-topics { padding-top: 64px; padding-bottom: 72px; }
.more-topics .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }

/* Search results */
.results { padding-top: 48px; padding-bottom: 96px; }
.results h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; font-family: var(--mono); font-size: 14px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 4px; padding: 0 10px; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

@media (max-width: 720px) {
	.hero { padding-top: 48px; padding-bottom: 56px; }
	.big-search button { padding: 0 16px; }
	.big-search .kbd, .mini-search .kbd { display: none; }
	.toc { position: static; max-width: none; }
	.rail { max-width: none; }
	.start-list li + li { border-left: 0; border-top: 1px solid var(--ink); }
	.pager a + a { border-left: 0; border-top: 1px solid var(--rule-soft); }
	.letter-giant { font-size: 120px; }
	.suggest-box { padding: 22px; }
}
