/* ============================================================
   DAGENS SPINS - shared visual system
   Static site. System fonts only. No external dependencies.
   ============================================================ */

:root {
  --ink: #101318;
  --ink-soft: #2a2f37;
  --paper: #ffffff;
  --page: #eef1f4;
  --yellow: #fff000;
  --yellow-soft: #fff9c4;
  --red: #e21e20;
  --red-dark: #b71618;
  --blue: #0755e9;
  --green: #0b7a3e;
  --green-bg: #e6f7ec;
  --amber: #8a6d00;
  --amber-bg: #fff6da;
  --muted: #647080;
  --border: #d4dbe3;
  --masthead: #0d1420;
  --radius: 4px;
  --shell: 1250px;
  --gap: 16px;
  --font-head: Impact, Haettenschweiler, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }

button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(16, 19, 24, 0.06);
}

/* ---------------- Masthead ---------------- */

.masthead {
  background: var(--masthead);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}
.masthead.scrolled { box-shadow: 0 6px 24px rgba(13, 20, 32, 0.35); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--font-head);
  font-size: 27px;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1;
  padding-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  color: #e8ecf1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; border-bottom-color: rgba(255, 240, 0, 0.5); }
.main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--yellow);
}

.flag-dk {
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  margin-left: 8px;
}
.flag-dk img { width: 100%; height: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-left: 4px;
  color: #fff;
}
.menu-toggle svg { width: 26px; height: 26px; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  background: var(--masthead);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: #e8ecf1;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-menu a[aria-current="page"] { color: var(--yellow); }

/* Category strip (mobile) */
.cat-strip {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-inner { display: flex; padding: 0 10px; }
.cat-strip a {
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 12px 10px;
  border-bottom: 4px solid transparent;
  white-space: nowrap;
}
.cat-strip a[aria-current="page"] { border-bottom-color: var(--yellow); }

/* Sub bar */
.subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 22px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.subbar a { color: var(--muted); text-decoration: none; font-weight: 600; }
.subbar a:hover { color: var(--ink); }

/* ---------------- Hero head ---------------- */

.hero-head { padding: 34px 22px 24px; text-align: center; }

.h1 {
  font-family: var(--font-head);
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.h1 .line { display: block; overflow: hidden; }
.h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 0.85s cubic-bezier(0.19, 0.72, 0.18, 1) forwards;
}
.h1 .line:nth-child(2) > span { animation-delay: 0.12s; }

@keyframes lineUp { to { transform: translateY(0); } }

.deck {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: none;
}
.byline { font-size: 14px; color: var(--muted); margin-top: 8px; }
.byline a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.byline a:hover { background: var(--yellow); }
.hero-byline { display: none; }

/* ---------------- Hero grid ---------------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 39.5%) minmax(0, 1fr);
  gap: var(--gap);
  padding: 0 22px 22px;
  align-items: start;
}

.feature-yellow {
  background: var(--yellow);
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.tag-red {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 2px;
}
.tag-guide {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
}
.feature-yellow h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 0.98;
  margin: 14px 0 10px;
  letter-spacing: 0.3px;
}
.feature-yellow p { font-size: 15px; font-weight: 600; color: #14140a; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(4px); }

.hero-photo { margin-top: var(--gap); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.parallax-wrap { overflow: hidden; }
.parallax-wrap img { will-change: transform; }

/* Teaser card under feature */
.teaser-card {
  margin-top: var(--gap);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  background: var(--paper);
}
.teaser-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 6px; }
.teaser-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------------- Offers module ---------------- */

.offers-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 12px;
  background: var(--paper);
}

.offers-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.offers-title-wrap { display: flex; align-items: flex-start; gap: 12px; }
.live-dot {
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 12px;
  flex-shrink: 0;
}
.offers-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.3px;
}
.offers-sub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.offers-meta { text-align: right; }
.offers-count { font-weight: 800; font-size: 15px; }
.offers-status { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.offers-status a { color: var(--blue); font-weight: 600; text-decoration: none; }
.offers-status a:hover { text-decoration: underline; }

.filters {
  display: flex;
  gap: 10px;
  margin: 16px 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 44px;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.filter-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
  margin: 2px 0 4px;
}

/* Offer rows */
.offer {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 4px;
  border-top: 1px solid var(--border);
}
.offer.hidden { display: none; }

.offer-logo {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-stake { background: #16233c; }
.logo-stake span { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 25px; color: #fff; }
.logo-onecasino { background: #f2f5f7; border: 1px solid var(--border); }
.logo-onecasino .l1 { font-weight: 900; font-size: 24px; color: #00b377; letter-spacing: -0.5px; line-height: 1; }
.logo-onecasino .l2 { font-weight: 800; font-size: 10px; color: #101318; letter-spacing: 2.5px; margin-top: 3px; }
.logo-playojo { background: #f5f1fc; border: 1px solid #e5dcf5; }
.logo-playojo .l1 { font-weight: 800; font-size: 15px; color: #7b2ff7; line-height: 1; }
.logo-playojo .l2 { font-weight: 900; font-size: 27px; color: #7b2ff7; letter-spacing: 1px; line-height: 1.05; }
.logo-mrgreen { background: #045c46; }
.logo-mrgreen span { font-weight: 800; font-style: italic; font-size: 17px; color: #fff; transform: rotate(-7deg); }
.logo-casino888 { background: #141414; }
.logo-casino888 .l1 { font-weight: 900; font-size: 30px; color: #d4e157; line-height: 1; letter-spacing: 1px; }
.logo-casino888 .l2 { font-weight: 700; font-size: 10px; color: #fff; letter-spacing: 3px; margin-top: 2px; }

.offer-topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-no { background: var(--green-bg); color: var(--green); border: 1px solid #bde5cd; }
.badge-dep { background: var(--amber-bg); color: var(--amber); border: 1px solid #eee0a8; }

.offer-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 5px;
}
.offer-cond { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.5; }
.cond-strong { font-weight: 700; color: var(--ink); }

.offer-cta { text-align: right; }
.btn-offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 0;
  min-height: 46px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.btn-offer svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
.btn-offer:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-offer:hover svg { transform: translateX(3px); }

.offer-mini { font-size: 12px; color: var(--muted); margin-top: 7px; }
.link-terms, .link-plain {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-terms:hover { color: var(--ink); }
.offer-termslink { margin-top: 2px; }
.offer-termslink .link-arrow { font-size: 13.5px; margin-top: 4px; }

.offers-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding: 12px 4px 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.empty-state {
  display: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  margin-top: 10px;
}
.empty-state.show { display: block; }
.empty-state p { font-size: 15px; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 12px; }

/* ---------------- Sections ---------------- */

.section { padding: 30px 22px; border-top: 1px solid var(--border); }

.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.section-title.underlined { border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.section-title .hl { box-shadow: inset 0 -14px 0 var(--yellow); }
.section-deck { font-size: 16.5px; color: var(--ink-soft); max-width: 68ch; margin-bottom: 18px; }
.section p.body-p { font-size: 15.5px; color: var(--ink-soft); max-width: 72ch; margin-bottom: 12px; }

/* Guide cards (3 paths) */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}
.gcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 19, 24, 0.1); }
.gcard img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; }
.gcard-body { padding: 15px 18px 18px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.gcard-body h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 6px; }
.gcard-body p { font-size: 14px; color: var(--ink-soft); flex: 1; }

/* How-to (yellow feature + steps) */
.howto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  margin-top: 18px;
  align-items: stretch;
}
.howto-feature {
  background: var(--yellow);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.howto-feature .pad { padding: 22px 22px 16px; }
.howto-feature h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.98;
  margin-top: 12px;
}
.howto-feature img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin-top: auto; }

.steps { list-style: none; display: flex; flex-direction: column; justify-content: center; }
.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 6px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.steps li:first-child { border-top: 0; }
.step-num {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--red);
  line-height: 1;
}
.steps h4 { font-size: 17.5px; font-weight: 800; }
.steps p { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }

/* Terms five boxes */
.terms-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 18px;
  overflow: hidden;
}
.term-box { padding: 16px 16px 18px; border-left: 1px solid var(--border); }
.term-box:first-child { border-left: 0; }
.term-box .step-num { font-size: 26px; }
.term-box h3 { font-size: 15.5px; font-weight: 800; margin: 6px 0 6px; }
.term-box p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

.info-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow-soft);
  border: 1px solid #efe9a0;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: var(--gap);
  font-size: 14.5px;
  font-weight: 600;
}
.info-strip svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Week section */
.week-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  margin-top: 18px;
  align-items: stretch;
}
.week-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--paper);
}
.week-panel h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 8px; }
.week-panel p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0;
}
.weekdays span {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 2px;
  border-left: 1px solid var(--border);
  color: var(--ink-soft);
}
.weekdays span:first-child { border-left: 0; }
.week-panel img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }

.update-panel {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
}
.update-panel h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 0.98;
  margin-bottom: 12px;
}
.update-panel > p { font-size: 15px; font-weight: 600; color: #14140a; margin-bottom: 10px; }
.check-list { list-style: none; margin-top: 6px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(16, 19, 24, 0.18);
  font-weight: 700;
  font-size: 15.5px;
}
.check-list svg { width: 30px; height: 30px; flex-shrink: 0; }
.update-panel .link-arrow { margin-top: 14px; }
.update-note { font-size: 12.5px; color: #3c3c22; margin-top: auto; padding-top: 14px; text-align: right; }

/* Editor box */
.editor-box {
  display: flex;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 18px;
  background: var(--paper);
  flex-wrap: wrap;
}
.kb-mono {
  width: 74px;
  height: 74px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--ink);
  flex-shrink: 0;
  border-radius: 2px;
}
.editor-id .over { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.editor-id h3 { font-size: 25px; font-weight: 800; letter-spacing: -0.01em; }
.editor-id p { font-size: 14px; color: var(--muted); }
.editor-bio {
  flex: 1;
  min-width: 260px;
  border-left: 1px solid var(--border);
  padding-left: 22px;
}
.editor-bio p { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.editor-links { display: flex; gap: 22px; flex-wrap: wrap; }
.editor-links .link-arrow { margin-top: 4px; }

/* FAQ */
.faq-list { margin-top: 18px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--paper);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 17px 20px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker {
  font-size: 22px;
  font-weight: 800;
  width: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item summary .faq-marker::before { content: "+"; }
.faq-item[open] summary .faq-marker::before { content: "\2212"; }
.faq-item .faq-answer { padding: 0 20px 18px 58px; font-size: 15px; color: var(--ink-soft); }
.faq-item .faq-answer a { font-weight: 600; }

/* Support panels */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 18px;
}
.support-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--paper);
}
.support-panel h3 { font-size: 17px; font-weight: 800; margin: 8px 0 6px; }
.support-panel p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.support-panel a { font-weight: 600; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--masthead);
  color: #dfe5ec;
  margin-top: 10px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding: 36px 22px 30px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span {
  font-family: var(--font-head);
  font-size: 25px;
  color: #fff;
  letter-spacing: 0.5px;
  padding-top: 3px;
}
.footer-tag { font-size: 13.5px; color: #9aa6b4; margin-top: 10px; max-width: 30ch; }
.footer-col h2 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: #c2cbd6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--red);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px;
  font-size: 12.5px;
  color: #9aa6b4;
}
.to-top { color: #c2cbd6; text-decoration: none; font-weight: 700; }
.to-top:hover { color: #fff; }

/* ---------------- Terms dialog ---------------- */

dialog.terms-dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 80px rgba(16, 19, 24, 0.35);
}
dialog.terms-dialog::backdrop { background: rgba(13, 20, 32, 0.55); }
.terms-inner { padding: 22px 24px; }
.terms-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.terms-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.terms-head .offer-brand { margin-bottom: 4px; }
.terms-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.terms-close:hover { background: var(--page); }
.terms-list { list-style: none; margin: 16px 0; border-top: 1px solid var(--border); }
.terms-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.terms-list li span:first-child { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.terms-list li span:last-child { text-align: right; font-weight: 600; }
.terms-note {
  font-size: 13px;
  color: var(--muted);
  background: var(--page);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.terms-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
}
.copy-btn {
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  min-height: 40px;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.ok { border-color: var(--green); color: var(--green); }

/* ---------------- Guide page ---------------- */

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 22px 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.guide-head { padding: 18px 22px 6px; }
.guide-h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 0.98;
  letter-spacing: 0.3px;
  margin: 14px 0 12px;
}
.guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.kb-mono.small { width: 44px; height: 44px; font-size: 20px; }
.editor-photo { width: 74px; height: 74px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.editor-photo.small { width: 44px; height: 44px; border-radius: 50%; }
.editor-photo.medium { width: 58px; height: 58px; border-radius: 6px; }
.guide-meta a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.guide-meta a:hover { background: var(--yellow); }

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding: 22px;
  align-items: start;
}

.article-col { max-width: 720px; }
.article-col > p { font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }
.article-col h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
  padding-top: 6px;
}
.article-col h2:first-child { margin-top: 0; }
.article-col ul.body-list { margin: 0 0 14px 22px; font-size: 15.5px; color: var(--ink-soft); }
.article-col ul.body-list li { margin-bottom: 7px; }
.article-figure { margin: 20px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-figure.portrait { display: inline-block; }
.article-figure.portrait img { width: 260px; aspect-ratio: 1 / 1; object-fit: cover; }
.article-figure figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; background: var(--page); }

/* Compact offer variant */
.offer-compact {
  grid-template-columns: 80px minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  border-top: 1px solid var(--border);
}
.offer-compact .offer-logo { width: 80px; height: 80px; }
.offer-compact .offer-cta {
  grid-column: 1 / -1;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.offer-compact .offer-mini { margin-top: 0; }

/* Comparison table */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14.5px;
  table-layout: fixed;
}
.cmp-table th, .cmp-table td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  hyphens: auto;
}
.cmp-table th { background: var(--page); font-size: 14px; }
.cmp-table td:first-child { font-weight: 700; width: 34%; }

/* Checklist box */
.check-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
  background: var(--paper);
}
.check-box ol { margin-left: 20px; font-size: 15px; color: var(--ink-soft); }
.check-box ol li { margin-bottom: 8px; }
.check-box strong { color: var(--ink); }

/* Key takeaways */
.key-box {
  background: var(--yellow-soft);
  border: 1px solid #efe9a0;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}
.key-box h2 { margin-top: 0 !important; font-size: 20px !important; }
.key-box ul { margin: 10px 0 0 20px; font-size: 15px; color: var(--ink-soft); }
.key-box li { margin-bottom: 7px; }

/* Sidebar */
.guide-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: var(--gap); }
.toc-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper);
}
.toc-box h2 { font-size: 15px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.02em; }
.toc-box ol { list-style: none; counter-reset: toc; }
.toc-box li { counter-increment: toc; border-top: 1px solid var(--border); }
.toc-box li:first-child { border-top: 0; }
.toc-box a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.toc-box a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--red);
  font-weight: 800;
  margin-right: 10px;
  font-size: 13px;
}
.toc-box a:hover { color: var(--ink); }

.cta-yellow {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.cta-yellow h2 { font-family: var(--font-head); font-weight: 400; font-size: 26px; line-height: 1; margin-bottom: 8px; }
.cta-yellow p { font-size: 13.5px; font-weight: 600; color: #14140a; }
.cta-yellow .btn-offer { margin-top: 12px; width: 100%; }

.related-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper);
}
.related-box h2 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.related-box a { display: block; padding: 7px 0; font-size: 14px; font-weight: 600; }

/* Mobile TOC (details) */
.toc-mobile { display: none; }

/* Author box on guide page */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 30px 0;
  background: var(--paper);
  flex-wrap: wrap;
}
.author-box .kb-mono { width: 58px; height: 58px; font-size: 26px; }
.author-box h3 { font-size: 18px; font-weight: 800; }
.author-box p { font-size: 13.5px; color: var(--muted); }

/* ---------------- Reveal motion ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.19, 0.72, 0.18, 1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal="d1"].in { transition-delay: 0.08s; }
[data-reveal="d2"].in { transition-delay: 0.16s; }
[data-reveal="d3"].in { transition-delay: 0.24s; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .howto > *, .week-grid > *, .cards-3 > *, .guide-grid > *, .support-grid > * { min-width: 0; }
  .offers-panel { order: -1; }
  .cards-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .howto { grid-template-columns: minmax(0, 1fr); }
  .week-grid { grid-template-columns: minmax(0, 1fr); }
  .terms-5 { grid-template-columns: repeat(2, 1fr); }
  .term-box { border-top: 1px solid var(--border); }
  .term-box:nth-child(-n+2) { border-top: 0; }
  .term-box:nth-child(odd) { border-left: 0; }
  .support-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; gap: 20px; }
  .guide-aside { display: none; }
  .toc-mobile {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 18px 0;
    background: var(--paper);
  }
  .toc-mobile summary {
    list-style: none;
    padding: 15px 18px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; font-size: 20px; font-weight: 800; }
  .toc-mobile[open] summary::after { content: "\2212"; }
  .toc-mobile .toc-box { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .cat-strip { display: block; }
  .subbar { display: none; }
  .masthead { height: 54px; padding: 0 14px; gap: 10px; }
  .brand-word { font-size: 23px; }
  .brand img { width: 30px; height: 30px; }
  .flag-dk { margin-left: auto; }

  .hero-head { padding: 20px 16px 14px; text-align: left; }
  .hero-byline { display: block; }
  .h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .deck { font-size: 16px; }

  .hero-grid { padding: 0 14px 14px; }
  .offers-panel { border-top: 4px solid var(--yellow); padding: 14px 14px 10px; }
  .offers-head { flex-direction: column; gap: 4px; }
  .offers-meta { text-align: left; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  .offers-count { white-space: nowrap; }
  .offers-title { font-size: 29px; }
  .live-dot { margin-top: 9px; }

  .offer {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 14px 2px;
  }
  .offer-logo { width: 84px; height: 84px; }
  .offer-cta { grid-column: 1 / -1; text-align: left; }
  .offer-cta .btn-offer { width: 100%; }
  .offer-cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
  }
  .offer-mini { margin-top: 0; }
  .offer-termslink { margin-top: 0; }

  .section { padding: 24px 16px; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps li { padding: 16px 4px; grid-template-columns: 52px minmax(0, 1fr); }
  .editor-box { padding: 16px; }
  .editor-bio { border-left: 0; padding-left: 0; min-width: 100%; }
  .faq-item .faq-answer { padding-left: 20px; }
  .guide-head { padding: 14px 16px 4px; }
  .guide-grid { padding: 16px; }
  .breadcrumb { padding: 12px 16px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 30px 16px 24px; }
  .footer-bottom { padding: 14px 16px; }
  .terms-5 { grid-template-columns: 1fr; }
  .term-box { border-left: 0; border-top: 1px solid var(--border); }
  .term-box:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h1 .line > span { animation: none; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------------- Reference fine-tuning (v1.1) ---------------- */

.guide-head { border-top: 4px solid var(--yellow); margin-top: 12px; }
.week-panel h3 { font-size: 26px; }
.gcard { position: relative; }
.gcard-img-mid { display: none; }
.steps li > div { border-left: 1px solid var(--border); padding-left: 16px; }

.toc-box a { display: flex; align-items: center; }
.toc-box a::before {
  content: counter(toc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 800;
  margin-right: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.toc-box a.current { color: var(--ink); }
.toc-box a.current::before { background: var(--yellow); }

.check-num { list-style: none; counter-reset: chk; margin: 14px 0 18px; }
.check-num li { counter-increment: chk; display: flex; align-items: center; gap: 14px; padding: 7px 0; font-size: 15.5px; color: var(--ink-soft); }
.check-num li::before {
  content: counter(chk);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.check-num strong { color: var(--ink); }

.toc-mobile summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
.toc-mobile[open] summary::after { transform: rotate(-135deg); }

.plain-article { margin: 0 auto; padding: 10px 22px 26px; }
.cta-note { font-size: 12px; color: #3c3c22; text-align: center; margin-top: 10px; font-weight: 600; }
.cta-inline { display: none; }
.author-link { margin-left: auto; }
.update-body { display: contents; }
.howto-mobile-title { display: none; }

@media (max-width: 920px) {
  .cta-inline { display: block; margin: 24px 0; }
}

@media (max-width: 860px) {
  .howto-mobile-title { display: block; }
  .howto-feature { display: none; }

  .week-panel img { display: none; }
  .week-panel h3 { font-family: var(--font-head); font-weight: 400; font-size: 34px; line-height: 1; }

  .cards-3 .gcard:first-child { background: var(--yellow); border-color: var(--yellow); }
  .cards-3 .gcard:first-child .gcard-img-top { display: none; }
  .cards-3 .gcard:first-child .gcard-img-mid {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 14px 0 2px;
  }
  .cards-3 .gcard:first-child .gcard-body { padding: 20px 18px 18px; }
  .cards-3 .gcard:first-child h3 {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 40px;
    line-height: 0.96;
    letter-spacing: 0.3px;
  }
  .cards-3 .gcard:first-child p { font-size: 15px; font-weight: 600; color: #14140a; }

  .cards-3 .gcard:not(:first-child) { flex-direction: row; align-items: stretch; }
  .cards-3 .gcard:not(:first-child) .gcard-img-top {
    width: 132px;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
    flex-shrink: 0;
  }
  .cards-3 .gcard:not(:first-child) .gcard-body { padding: 14px 46px 14px 16px; }
  .cards-3 .gcard:not(:first-child) .gcard-body .tag-guide { display: none; }
  .cards-3 .gcard:not(:first-child) h3 { font-size: 19px; margin: 0 0 5px; }
  .cards-3 .gcard:not(:first-child) p { font-size: 14px; }
  .cards-3 .gcard:not(:first-child) .link-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  .cards-3 .gcard:not(:first-child) .link-arrow svg { width: 22px; height: 22px; }
  .cards-3 .gcard:not(:first-child) .link-arrow:hover svg { transform: none; }
  .cards-3 .gcard:not(:first-child) .link-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .update-panel { background: var(--paper); border: 1px solid var(--border); padding: 0; overflow: hidden; }
  .update-panel h3 { background: var(--yellow); padding: 18px; margin-bottom: 0; }
  .update-body { display: block; padding: 16px 18px 18px; }
  .update-panel .update-body > p { color: var(--ink-soft); font-weight: 500; }
  .update-note { text-align: right; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px 26px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-top > .footer-col:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 16px;
  }
  .footer-top > .footer-col:last-child h2 { margin: 0; }
  .footer-top > .footer-col:last-child .age-badge { margin: 0; width: 38px; height: 38px; font-size: 13px; }
  .footer-top > .footer-col:last-child ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .footer-top > .footer-col:last-child li { margin: 0; }
  .footer-top > .footer-col:last-child li + li::before { content: "|"; color: #5a6675; margin-right: 14px; }
  .footer-col a { text-decoration: underline; text-underline-offset: 2px; }
}
