/*
Theme Name: Spilavítaleit
Description: Spilavítaleit (IS). Flag blue structure, flag red calls to action, glacier white reading surface, aurora hero, basalt columns and lopapeysa knit band as recurring marks.
Version: 2.0.0
Author: Spilavítaleit
Text Domain: spilavitaleit
*/

/* Inter variable, self-hosted */
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-var.woff2") format("woff2-variations"), url("assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-var-italic.woff2") format("woff2-variations"), url("assets/fonts/inter-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --hrn-blue: #02529C;
  --hrn-blue-2: #0B63C4;
  --hrn-navy: #0A1E3C;
  --hrn-night: #061126;
  --hrn-red: #DC1E35;
  --hrn-red-deep: #B3142A;
  --hrn-white: #FFFFFF;
  --hrn-ice: #EEF4FB;
  --hrn-ice-2: #E1EBF7;
  --hrn-ink: #13233D;
  --hrn-text: #2A3B55;
  --hrn-muted: #62738C;
  --hrn-rule: #D5E1EF;
  --hrn-rule-2: #C2D3E7;
  --hrn-teal: #2FD1B0;
  --hrn-gold: #F2B632;
  --hrn-plus: #1D8A5E;
  --hrn-minus: #C0283B;
  /* legacy aliases used by the self-test */
  --hrn-basalt: var(--hrn-navy);
  --hrn-paper-2: var(--hrn-ice);
  --hrn-card: #fff;
  --hrn-aurora: linear-gradient(90deg, var(--hrn-teal), var(--hrn-blue-2) 55%, var(--hrn-red));
  --hrn-face: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hrn-radius: 26px;
  --hrn-radius-sm: 14px;
  --hrn-shadow: 0 18px 50px -24px rgba(10, 30, 60, .35);
  --hrn-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--hrn-ice); color: var(--hrn-text); font: 400 17px/1.7 var(--hrn-face); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hrn-blue); }
.hrn-wrap { width: 100%; max-width: var(--hrn-w); margin: 0 auto; padding: 0 20px; }
.hrn-skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--hrn-red); color: #fff; padding: 10px 16px; }
.hrn-skip:focus { left: 12px; top: 12px; }
body.hrn-nav-lock { overflow: hidden; }

/* flag stripe on the very top */
.hrn-flagline { height: 6px; background: linear-gradient(var(--hrn-blue) 0 0) top/100% 1px no-repeat, linear-gradient(180deg, var(--hrn-blue) 0 33%, #fff 33% 45%, var(--hrn-red) 45% 70%, #fff 70% 82%, var(--hrn-blue) 82%); }

/* ---------- buttons ---------- */
.hrn-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; font: 700 15px/1.2 var(--hrn-face); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; white-space: nowrap; }
.hrn-btn:hover { transform: translateY(-1px); }
.hrn-btn-red { background: var(--hrn-red); color: #fff; }
.hrn-btn-red:hover { background: var(--hrn-red-deep); color: #fff; }
.hrn-btn-blue { background: var(--hrn-blue); color: #fff; }

/* ---------- header ---------- */
.hrn-top { position: sticky; top: 0; z-index: 60; padding: 12px 0; background: rgba(238, 244, 251, .92); backdrop-filter: saturate(1.4) blur(10px); }
.hrn-top-row { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 999px; padding: 8px 10px 8px 12px; box-shadow: 0 8px 30px -18px rgba(10,30,60,.45); border: 1px solid var(--hrn-rule); }
.hrn-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hrn-ink); flex: 0 0 auto; }
.hrn-logo img { width: 42px; height: 42px; }
.hrn-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.hrn-logo-name { font-size: 20px; letter-spacing: -.02em; }
.hrn-logo-name b { font-weight: 800; color: var(--hrn-blue); }
.hrn-logo-name i { font-style: normal; font-weight: 800; color: var(--hrn-red); }
.hrn-logo-kicker { font-size: 11px; font-weight: 600; color: var(--hrn-muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.hrn-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.hrn-menu, .hrn-menu ul { list-style: none; margin: 0; padding: 0; }
.hrn-menu { display: flex; align-items: center; gap: 2px; }
.hrn-menu > li { position: relative; }
.hrn-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 999px; color: var(--hrn-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.hrn-menu > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translateY(-3px); opacity: .6; }
.hrn-menu > li:hover > a, .hrn-menu > li:focus-within > a, .hrn-menu > li.current-menu-item > a, .hrn-menu > li.current-menu-ancestor > a { background: var(--hrn-ice); color: var(--hrn-blue); }
.hrn-menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--hrn-rule); border-radius: 18px; padding: 8px; box-shadow: var(--hrn-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; z-index: 70; }
.hrn-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.hrn-menu li:hover > .sub-menu, .hrn-menu li:focus-within > .sub-menu, .hrn-menu li.hrn-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hrn-menu .sub-menu li { position: relative; }
.hrn-menu .sub-menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--hrn-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.hrn-menu .sub-menu a:hover, .hrn-menu .sub-menu .current-menu-item > a { background: var(--hrn-ice); color: var(--hrn-blue); }
.hrn-menu .sub-menu .menu-item-has-children > a::after { content: "›"; font-size: 18px; line-height: 1; color: var(--hrn-muted); }
.hrn-menu .sub-menu .sub-menu { top: -9px; left: calc(100% + 6px); }
.hrn-menu .sub-menu .sub-menu::before { left: -10px; top: 0; bottom: 0; width: 10px; height: auto; right: auto; }
.hrn-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
/* long provider list in two columns */
.hrn-menu > li > .sub-menu:has(> li:nth-child(8)) { display: grid; grid-template-columns: 1fr 1fr; min-width: 400px; }
.hrn-sub-toggle { display: none; }
.hrn-top-cta { flex: 0 0 auto; }
.hrn-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--hrn-blue); cursor: pointer; padding: 0; position: relative; }
.hrn-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.hrn-burger span:nth-child(1) { top: 15px; } .hrn-burger span:nth-child(2) { top: 21px; } .hrn-burger span:nth-child(3) { top: 27px; }
.hrn-burger.hrn-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hrn-burger.hrn-open span:nth-child(2) { opacity: 0; }
.hrn-burger.hrn-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1400px) { .hrn-top-cta { display: none; } }
@media (max-width: 1240px) { .hrn-menu > li > a { padding: 10px 8px; font-size: 14px; } .hrn-logo-kicker { display: none; } }
@media (max-width: 1080px) {
  .hrn-top { backdrop-filter: none; background: var(--hrn-ice); }
  .hrn-burger { display: block; margin-left: auto; }
  .hrn-nav { position: fixed; left: 12px; right: 12px; top: 84px; bottom: 12px; background: #fff; border-radius: 22px; box-shadow: var(--hrn-shadow); padding: 14px; overflow-y: auto; display: none; justify-content: flex-start; border: 1px solid var(--hrn-rule); }
  .hrn-nav.hrn-open { display: block; }
  .hrn-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .hrn-menu li { display: grid; grid-template-columns: 1fr 44px; align-items: center; border-bottom: 1px solid var(--hrn-ice-2); }
  .hrn-menu li:not(.menu-item-has-children) { grid-template-columns: 1fr; }
  .hrn-menu > li > a, .hrn-menu .sub-menu a { padding: 13px 10px; font-size: 16px; border-radius: 10px; }
  .hrn-menu > li.menu-item-has-children > a::after, .hrn-menu .sub-menu .menu-item-has-children > a::after { display: none; }
  .hrn-sub-toggle { display: block; width: 44px; height: 44px; border: 0; background: var(--hrn-ice); border-radius: 12px; cursor: pointer; position: relative; }
  .hrn-sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border: solid var(--hrn-blue); border-width: 0 2px 2px 0; transform: translate(-50%, -70%) rotate(45deg); transition: .2s; }
  .hrn-open > .hrn-sub-toggle::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .hrn-menu .sub-menu, .hrn-menu .sub-menu .sub-menu { grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; display: none !important; }
  .hrn-menu li.hrn-open > .sub-menu { display: block !important; }
  .hrn-menu .sub-menu li { border-bottom: 0; }
  .hrn-menu li:hover > .sub-menu { opacity: 1; }
}
@media (max-width: 560px) { .hrn-logo-kicker { display: none; } .hrn-logo-name { font-size: 18px; } }

/* ---------- hero ---------- */
.hrn-hero { padding: 8px 0 0; }
.hrn-hero-card { position: relative; border-radius: var(--hrn-radius); padding: 30px 40px 36px; background: #fff; border: 1px solid var(--hrn-rule); overflow: hidden; }
.hrn-hero-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; background: repeating-linear-gradient(90deg, rgba(2,82,156,.06) 0 26px, transparent 26px 34px); clip-path: polygon(20% 100%, 20% 40%, 40% 40%, 40% 20%, 60% 20%, 60% 55%, 80% 55%, 80% 30%, 100% 30%, 100% 100%); pointer-events: none; }
.hrn-hero h1 { margin: 10px 0 14px; color: var(--hrn-ink); font-size: clamp(30px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 20ch; }
.hrn-lead { font-size: 19px; line-height: 1.6; color: var(--hrn-text); max-width: 68ch; margin: 0 0 18px; }
.hrn-hero-scene { background: linear-gradient(100deg, rgba(6,17,38,.92) 0, rgba(6,17,38,.78) 45%, rgba(6,17,38,.15) 75%), var(--hrn-night) url("assets/hero-iceland.svg") center bottom / cover no-repeat; color: #fff; border: 0; padding: 48px 48px 30px; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; }
.hrn-hero-scene::after { display: none; }
.hrn-hero-scene h1 { color: #fff; }
.hrn-hero-scene .hrn-lead { color: #D5E4F5; }
.hrn-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; }
.hrn-stat { position: relative; background: var(--hrn-red); color: #fff; border-radius: 22px; padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 20px 40px -20px rgba(220,30,53,.7); }
.hrn-stat-num { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.hrn-stat-label { font-weight: 600; line-height: 1.35; font-size: 15px; }
.hrn-stat-note { font-size: 13px; opacity: .85; }
.hrn-stat-mark { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; }
.hrn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.hrn-tile { display: grid; grid-template-columns: 46px minmax(0,1fr) 20px; align-items: center; gap: 12px; background: rgba(255,255,255,.95); color: var(--hrn-ink); padding: 14px 16px; border-radius: 18px; text-decoration: none; transition: .15s; }
.hrn-tile:hover { transform: translateY(-2px); background: #fff; }
.hrn-tile-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--hrn-ice); color: var(--hrn-blue); display: grid; place-items: center; }
.hrn-tile-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hrn-tile-txt b { font-size: 15.5px; }
.hrn-tile-txt small { font-size: 13px; color: var(--hrn-muted); }
.hrn-tile-go { color: var(--hrn-red); font-weight: 700; }
.hrn-hero-home > .hrn-wrap > .hrn-notice { margin-top: 14px; }

.hrn-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; font-size: 13.5px; color: var(--hrn-muted); }
.hrn-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--hrn-rule-2); }
.hrn-crumbs a { color: var(--hrn-blue); text-decoration: none; font-weight: 600; }
.hrn-crumbs a:hover { text-decoration: underline; }

.hrn-byline { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin: 4px 0 14px; font-size: 14px; }
.hrn-byline-person { display: flex; align-items: center; gap: 10px; }
.hrn-byline-person img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--hrn-blue); }
.hrn-byline-meta { line-height: 1.4; }
.hrn-byline-meta a { font-weight: 700; text-decoration: none; }
.hrn-byline-role { color: var(--hrn-muted); font-size: 13px; }
.hrn-hero-scene .hrn-byline-meta, .hrn-hero-scene .hrn-byline-role { color: #C3D5EA; }
.hrn-hero-scene .hrn-byline-meta a { color: #fff; }
.hrn-notice { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 0; padding: 12px 16px; background: var(--hrn-ice); border-radius: var(--hrn-radius-sm); font-size: 13.5px; line-height: 1.55; color: var(--hrn-muted); }
.hrn-notice-age, .hrn-age { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--hrn-red); color: #fff; font-weight: 800; font-size: 12.5px; }
.hrn-portrait { position: absolute; right: 40px; top: 36px; text-align: center; }
.hrn-portrait img { width: 170px; height: 170px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--hrn-red), var(--hrn-shadow); }
.hrn-portrait-city { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--hrn-blue); color: #fff; font-size: 13px; font-weight: 600; }
.hrn-hero-author .hrn-hero-card { padding-right: 260px; min-height: 280px; }

@media (max-width: 900px) {
  .hrn-hero-scene { background: linear-gradient(180deg, rgba(6,17,38,.9), rgba(6,17,38,.75)), var(--hrn-night) url("assets/hero-iceland.svg") center bottom / cover no-repeat; }
  .hrn-hero-card { padding: 24px 22px 26px; }
  .hrn-hero-scene { padding: 30px 22px 22px; min-height: 0; }
  .hrn-hero-grid { grid-template-columns: 1fr; }
  .hrn-stat { max-width: 320px; }
  .hrn-tiles { grid-template-columns: 1fr 1fr; }
  .hrn-hero-author .hrn-hero-card { padding-right: 22px; }
  .hrn-portrait { position: static; text-align: left; margin-top: 16px; }
  .hrn-lead { font-size: 17.5px; }
}
@media (max-width: 520px) { .hrn-tiles { grid-template-columns: 1fr; } }

/* ---------- main sheet and prose ---------- */
.hrn-main { padding: 22px 0 60px; }
.hrn-sheet { background: #fff; border-radius: var(--hrn-radius); border: 1px solid var(--hrn-rule); padding: 44px clamp(20px, 5vw, 72px); }
.hrn-prose > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.hrn-prose > .wp-block-table, .hrn-prose > figure.wp-block-image, .hrn-prose > .hrn-method, .hrn-prose > .hrn-promo, .hrn-prose > .hrn-cards, .hrn-prose > .hrn-duo, .hrn-prose > div:not([class]) { max-width: 1000px; }
.hrn-prose h2 { color: var(--hrn-ink); font-size: clamp(25px, 2.8vw, 34px); line-height: 1.18; letter-spacing: -.022em; font-weight: 800; margin-top: 56px; margin-bottom: 16px; position: relative; padding-top: 22px; }
.hrn-prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--hrn-blue) 0 40%, #fff 40% 50%, var(--hrn-red) 50% 70%, #fff 70% 80%, var(--hrn-blue) 80%); }
.hrn-prose h3 { color: var(--hrn-ink); font-size: 21px; line-height: 1.3; margin-top: 34px; margin-bottom: 10px; letter-spacing: -.01em; }
.hrn-prose h4 { color: var(--hrn-ink); font-size: 17px; margin: 0 0 8px; }
.hrn-prose p { margin-top: 0; margin-bottom: 18px; }
.hrn-prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 500; }
.hrn-prose a:hover { color: var(--hrn-red); }
.hrn-prose strong { color: var(--hrn-ink); }
.hrn-prose ul, .hrn-prose ol { padding-left: 0; margin-bottom: 22px; list-style: none; }
.hrn-prose ul > li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.hrn-prose ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 11px; height: 11px; background: var(--hrn-blue); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.hrn-prose ol { counter-reset: hrn-ol; }
.hrn-prose ol > li { position: relative; padding-left: 44px; margin-bottom: 14px; counter-increment: hrn-ol; }
.hrn-prose ol > li::before { content: counter(hrn-ol); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--hrn-red); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; line-height: 1; }
.hrn-prose figure { margin-top: 30px; margin-bottom: 30px; }
.hrn-prose figure.wp-block-image img { width: 100%; border-radius: 22px; box-shadow: var(--hrn-shadow); }
.hrn-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--hrn-muted); text-align: center; }
.hrn-prose blockquote { margin-top: 30px; margin-bottom: 30px; padding: 26px 30px 24px 74px; background: var(--hrn-ice); border-radius: 22px; position: relative; border: 0; }
.hrn-prose blockquote::before { content: "„"; position: absolute; left: 22px; top: -4px; font-size: 90px; line-height: 1; color: var(--hrn-red); font-weight: 800; }
.hrn-prose blockquote p { font-size: 18.5px; line-height: 1.6; color: var(--hrn-ink); font-weight: 500; margin-bottom: 10px; }
.hrn-prose blockquote cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--hrn-blue); }
.hrn-prose blockquote cite::before { content: "— "; }
.hrn-prose .wp-block-table { overflow-x: auto; margin-top: 26px; margin-bottom: 30px; border-radius: 18px; border: 1px solid var(--hrn-rule); }
.hrn-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.hrn-prose thead th { background: var(--hrn-blue); color: #fff; text-align: left; padding: 13px 16px; font-weight: 700; font-size: 14.5px; }
.hrn-prose .wp-block-table th, .hrn-prose .wp-block-table td { border: 0; }
.hrn-prose .wp-block-table thead { border: 0; }
.hrn-prose td { padding: 12px 16px; border-top: 1px solid var(--hrn-rule) !important; vertical-align: top; }
.hrn-prose tbody tr:nth-child(even) td { background: #F7FAFE; }
.hrn-prose td:first-child { font-weight: 600; color: var(--hrn-ink); }
@media (max-width: 700px) { .hrn-sheet { padding: 28px 18px; border-radius: 20px; } .hrn-prose blockquote { padding: 22px 18px 20px 52px; } .hrn-prose blockquote::before { left: 12px; font-size: 70px; } }

/* callout box */
.hrn-prose .hrn-note { background: #FFF6E3; border-left: 5px solid var(--hrn-gold); border-radius: 0 18px 18px 0; padding: 20px 24px 6px; margin: 30px auto; }
.hrn-prose .hrn-note h4 { color: #7A5300; }
/* key facts box */
.hrn-prose .hrn-facts { background: var(--hrn-navy); color: #D5E4F5; border-radius: 22px; padding: 24px 28px 10px; margin: 30px auto; }
.hrn-prose .hrn-facts h4, .hrn-prose .hrn-facts strong { color: #fff; }
.hrn-prose .hrn-facts ul > li::before { background: var(--hrn-teal); }
.hrn-prose .hrn-facts a { color: #9CD4FF; }
/* pros / cons */
.hrn-prose .hrn-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px auto; }
.hrn-duo > div { border-radius: 20px; padding: 22px 24px 8px; background: #EEF8F3; border: 1px solid #CBE9DA; }
.hrn-duo > div + div { background: #FDF0F2; border-color: #F4CDD3; }
.hrn-duo > div h4 { color: var(--hrn-plus); }
.hrn-duo > div + div h4 { color: var(--hrn-minus); }
.hrn-prose .hrn-duo > div ul > li::before { background: var(--hrn-plus); clip-path: none; border-radius: 50%; }
.hrn-prose .hrn-duo > div + div ul > li::before { background: var(--hrn-minus); }
@media (max-width: 700px) { .hrn-prose .hrn-duo { grid-template-columns: 1fr; } }

/* ---------- in-content promo ---------- */
.hrn-promo { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; gap: 24px; margin: 40px auto; padding: 30px 34px; border-radius: 26px; background: radial-gradient(120% 140% at 100% 0, #1E6FD0 0, var(--hrn-blue) 38%, var(--hrn-navy) 100%); color: #fff; position: relative; overflow: hidden; }
.hrn-promo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url("assets/knit.svg") repeat-x left center / auto 14px; opacity: .9; }
.hrn-promo-light { background: linear-gradient(135deg, #fff, var(--hrn-ice-2)); color: var(--hrn-ink); border: 1px solid var(--hrn-rule); }
.hrn-promo-kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hrn-promo-light .hrn-promo-kicker { background: var(--hrn-blue); color: #fff; }
.hrn-prose .hrn-promo-title { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; font-weight: 800; margin: 12px 0 8px; color: inherit; letter-spacing: -.02em; }
.hrn-prose .hrn-promo-text { margin: 0 0 18px; opacity: .9; font-size: 16px; }
.hrn-prose .hrn-promo a.hrn-btn { color: #fff; text-decoration: none; }
.hrn-promo-art img { width: 150px; height: 150px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.3)); transform: rotate(-6deg); }
@media (max-width: 640px) { .hrn-promo { grid-template-columns: 1fr; padding: 26px 22px 32px; } .hrn-promo-art { display: none; } }

/* ---------- test method ---------- */
.hrn-method { margin: 44px auto; padding: 32px; border-radius: 26px; background: var(--hrn-ice); }
.hrn-prose .hrn-method-title { margin-top: 0; padding-top: 0; font-size: 26px; }
.hrn-prose .hrn-method-title::before { display: none; }
.hrn-method-lead { color: var(--hrn-muted); }
.hrn-prose .hrn-method-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 8px; counter-reset: none; }
.hrn-prose .hrn-method-steps > li { padding: 20px; margin: 0; background: #fff; border-radius: 20px; display: flex; flex-direction: column; gap: 12px; }
.hrn-prose .hrn-method-steps > li::before { display: none; }
.hrn-method-mark { display: flex; align-items: center; justify-content: space-between; }
.hrn-method-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--hrn-blue); color: #fff; }
.hrn-step-clock .hrn-method-icon { background: var(--hrn-red); }
.hrn-method-no { font-size: 30px; font-weight: 800; color: var(--hrn-rule-2); }
.hrn-method-body { display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.hrn-method-step-title { color: var(--hrn-ink); font-size: 16.5px; }
.hrn-method-note, .hrn-method-detail { font-size: 14.5px; color: var(--hrn-muted); }
.hrn-method-more { margin: 14px 0 0; font-weight: 700; }
@media (max-width: 900px) { .hrn-prose .hrn-method-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hrn-prose .hrn-method-steps { grid-template-columns: 1fr; } .hrn-method { padding: 22px 16px; } }

/* ---------- FAQ ---------- */
.hrn-faq { margin: 20px auto 30px; }
.hrn-faq-item { border: 1px solid var(--hrn-rule); border-radius: 18px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.hrn-faq-item.hrn-open { border-color: var(--hrn-blue); box-shadow: 0 10px 30px -22px rgba(2,82,156,.6); }
.hrn-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: none; border: 0; text-align: left; cursor: pointer; font: 700 17px/1.4 var(--hrn-face); color: var(--hrn-ink); }
.hrn-faq-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--hrn-ice); position: relative; transition: .2s; }
.hrn-faq-icon::before, .hrn-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--hrn-blue); transform: translate(-50%, -50%); }
.hrn-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: .2s; }
.hrn-open .hrn-faq-icon { background: var(--hrn-red); }
.hrn-open .hrn-faq-icon::before, .hrn-open .hrn-faq-icon::after { background: #fff; }
.hrn-open .hrn-faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.hrn-faq-a { display: none; padding: 0 20px 6px; }
.hrn-open .hrn-faq-a { display: block; }

/* ---------- author card ---------- */
.hrn-authorcard { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 26px; margin-top: 22px; padding: 32px; border-radius: var(--hrn-radius); background: var(--hrn-navy); color: #C9D8EA; position: relative; overflow: hidden; }
.hrn-authorcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: url("assets/knit.svg") repeat-x left center / auto 12px; opacity: .8; }
.hrn-authorcard img { width: 110px; height: 110px; border-radius: 50%; border: 4px solid #fff; }
.hrn-authorcard h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.hrn-authorcard .hrn-byline-role { color: #9FB7D2; margin: 0 0 12px; }
.hrn-authorcard p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; }
.hrn-authorcard-link { display: inline-flex; margin-top: 4px; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--hrn-red); }
@media (max-width: 640px) { .hrn-authorcard { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- child cards ---------- */
.hrn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 30px auto; }
.hrn-card { padding: 22px; border: 1px solid var(--hrn-rule); border-radius: 20px; background: #fff; }
.hrn-card-kicker { font-size: 12px; font-weight: 700; color: var(--hrn-red); text-transform: uppercase; letter-spacing: .06em; }
.hrn-card-title { display: block; font-weight: 800; font-size: 18px; color: var(--hrn-ink); text-decoration: none; margin: 6px 0; }
.hrn-card-text { font-size: 15px; color: var(--hrn-muted); }
.hrn-card-foot { display: flex; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--hrn-muted); }
.hrn-card-empty { color: var(--hrn-muted); }

/* ---------- footer ---------- */
.hrn-foot { position: relative; background: var(--hrn-night); color: #A9BFD8; padding: 0 0 0; margin-top: 30px; overflow: hidden; font-size: 15px; }
.hrn-knit { height: 18px; background: #fff url("assets/knit.svg") repeat-x left center / auto 18px; }
.hrn-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 34px; padding-top: 52px; }
.hrn-logo-inv { color: #fff; margin-bottom: 14px; }
.hrn-logo-inv .hrn-logo-name b { color: #fff; }
.hrn-logo-inv .hrn-logo-name i { color: #FF5A6D; }
.hrn-foot-h { margin: 0 0 14px; color: #fff; font-weight: 700; font-size: 15px; }
.hrn-foot p { margin: 0 0 12px; line-height: 1.65; }
.hrn-foot ul { list-style: none; margin: 0; padding: 0; }
.hrn-foot li { margin-bottom: 9px; }
.hrn-foot a { color: #C0D3E8; text-decoration: none; }
.hrn-foot a:hover { color: #fff; text-decoration: underline; }
.hrn-foot-age { display: flex; gap: 10px; align-items: center; }
.hrn-foot-note { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid #1C3354; font-size: 13px; line-height: 1.65; color: #7F98B4; }
.hrn-foot-word { font-weight: 900; font-size: clamp(56px, 13.5vw, 200px); line-height: .8; letter-spacing: -.06em; text-align: center; white-space: nowrap; margin-top: 30px; color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
@media (max-width: 900px) { .hrn-foot-grid { grid-template-columns: 1fr 1fr; } .hrn-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .hrn-foot-grid { grid-template-columns: 1fr; } }

/* ---------- self-assessment ---------- */
.hrn-quiz { margin: 32px 0; }
.hrn-quiz-app { background: var(--hrn-paper-2); border: 1px solid var(--hrn-rule); border-radius: var(--hrn-radius); padding: 24px 26px; }
.hrn-quiz-intro { margin: 0 0 18px; font-size: 16px; color: #42566B; }
.hrn-quiz-progress { margin: 16px 0 0; font-size: 14px; color: var(--hrn-muted); }
.hrn-quiz-send { padding: 12px 24px; background: var(--hrn-red); color: var(--hrn-white); border: 0; border-radius: var(--hrn-radius-sm); font: 800 16px var(--hrn-face); cursor: pointer; }
.hrn-quiz-send:hover { background: var(--hrn-red-deep); color: var(--hrn-white); }
.hrn-quiz-send:disabled { background: #C4CFDA; color: #6B7A8A; cursor: not-allowed; }

.hrn-quiz-form { margin: 0; }
.hrn-quiz-q { margin: 0 0 16px; padding: 16px 18px; background: var(--hrn-card); border: 1px solid var(--hrn-rule); border-radius: var(--hrn-radius-sm); }
.hrn-quiz-q.hrn-quiz-done { border-color: var(--hrn-blue); }
.hrn-quiz-q legend { display: flex; gap: 10px; align-items: baseline; padding: 0; font-weight: 700; font-size: 17px; }
.hrn-quiz-no { flex: 0 0 26px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: var(--hrn-basalt); color: var(--hrn-white); border-radius: 50%; font-size: 13px; }
.hrn-quiz-wording { display: inline-block; }
.hrn-quiz-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hrn-quiz-choices input { position: absolute; opacity: 0; width: 0; height: 0; }
.hrn-quiz-choices label { padding: 9px 17px; background: #EAF0F6; border: 1px solid var(--hrn-rule-2); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.hrn-quiz-choices label:hover { border-color: var(--hrn-blue); }
.hrn-quiz-choices input:checked + label { background: var(--hrn-basalt); border-color: var(--hrn-basalt); color: var(--hrn-white); }
.hrn-quiz-choices input:focus-visible + label { outline: 2px solid var(--hrn-red); outline-offset: 2px; }
.hrn-quiz-again { margin-top: 16px; padding: 10px 18px; background: none; border: 1px solid var(--hrn-rule-2); border-radius: var(--hrn-radius-sm); font: 600 15px var(--hrn-face); cursor: pointer; }
.hrn-quiz-result { display: none; margin-top: 24px; padding: 22px 24px; background: var(--hrn-card); border: 1px solid var(--hrn-rule); border-left: 5px solid var(--hrn-red); border-radius: var(--hrn-radius); }
.hrn-quiz-result.hrn-quiz-shown { display: block; }
.hrn-quiz-result h4 { margin: 0 0 8px; font-size: 19px; }
.hrn-quiz-badge { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.hrn-quiz-b-title { font-size: 21px; font-weight: 800; }
.hrn-quiz-b-value { font-size: 15px; color: var(--hrn-muted); }
.hrn-quiz-badge.hrn-lvl0 .hrn-quiz-b-title { color: #2E7D5B; }
.hrn-quiz-badge.hrn-lvl1 .hrn-quiz-b-title { color: #4E7A33; }
.hrn-quiz-badge.hrn-lvl2 .hrn-quiz-b-title { color: #B0651A; }
.hrn-quiz-badge.hrn-lvl3 .hrn-quiz-b-title { color: var(--hrn-red); }
.hrn-quiz-scale-svg { width: 100%; height: auto; }
.hrn-quiz-g-band, .hrn-quiz-g-axis { font: 600 13px var(--hrn-face); fill: #5A6D80; }
.hrn-quiz-g-value { font: 800 19px var(--hrn-face); fill: #13202F; }
.hrn-quiz-part { margin-bottom: 12px; }
.hrn-quiz-part-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.hrn-quiz-part-name { font-weight: 600; }
.hrn-quiz-part-value { color: var(--hrn-muted); }
.hrn-quiz-part-track { height: 8px; background: var(--hrn-rule); border-radius: 4px; overflow: hidden; }
.hrn-quiz-part-fill { height: 100%; }
.hrn-quiz-list { margin: 10px 0 0; padding-left: 20px; }
.hrn-quiz-list li { margin-bottom: 8px; }
.hrn-quiz-warning { margin-top: 18px; padding: 14px 16px; background: #FDEEF0; border-left: 4px solid var(--hrn-red); border-radius: 0 var(--hrn-radius-sm) var(--hrn-radius-sm) 0; font-size: 14.5px; }
.hrn-quiz-parts { display: block; margin-top: 18px; }
.hrn-quiz-parts-note { margin-top: 10px; font-size: 15px; color: #42566B; }
.hrn-quiz-note { margin-top: 14px; font-size: 13.5px; color: var(--hrn-muted); }


/* keep hero content above the basalt decor */
.hrn-hero-card > * { position: relative; z-index: 1; }
.hrn-hero-card::after { z-index: 0; opacity: .7; }
.hrn-hero-card > .hrn-portrait { position: absolute; }
@media (max-width: 900px) { .hrn-hero-card > .hrn-portrait { position: static; } }
