/* Website around the game. Same world as the game itself: drafting-grid paper, an isometric office,
   dossier cards with a coloured folder tab, one typeface. Left-aligned throughout. */
:root{
  --paper:#ECEFF5;
  --grid:#DDE3ED;
  --card:#FFFFFF;
  --ink:#17223B;
  --ink-soft:#56617B;
  --line:#D3DAE6;
  --stamp:#2B46C8;        /* stamp-ink blue */
  --akta-yellow:#F2C14E;  /* dossier-cover colours */
  --akta-rose:#E79494;
  --akta-mint:#86CDB0;
  --akta-blue:#9DBBEA;
  --good:#23785A;
  --bad:#B93B40;
  --font:"Bricolage Grotesque","Segoe UI",system-ui,-apple-system,sans-serif;
  --page:1120px;
  --gutter:20px;
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.55;
  color:var(--ink);
  background:
    linear-gradient(var(--grid) 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,var(--grid) 1px,transparent 1px) 0 0/24px 24px,
    var(--paper);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,p,ul,ol,dl,dd{margin:0}
/* the sign-up form of the website (game/views/signup.php): the same fields as at the end of the game */
.signup-box{display:flex;flex-direction:column;gap:10px;padding:18px 20px;background:#fff;border:1.5px solid var(--line);border-bottom-width:3px;border-radius:12px;max-width:62ch}
.signup-box .fields{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
.signup-box input[type=text],.signup-box input[type=email]{flex:1 1 200px;min-width:0;padding:11px 12px;font:inherit;border:1.5px solid var(--line);border-radius:10px;background:#fff}
.signup-box .check{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:var(--ink-soft)}
.signup-box .check input{margin:4px 0 0;flex:none}
.signup-box .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.signup-box .msg{font-size:14.5px;font-weight:600}
.signup-box .msg:empty{display:none}
.signup-box .msg.err{color:#B3261E}
.signup-box .msg.ok{color:#1F7A4D}
h1,h2,h3,h4,p,li,dt,dd,summary,td,th{overflow-wrap:anywhere}   /* a word longer than the line (Dutch "beroepsaansprakelijkheidsverzekering") breaks instead of widening the page; "anywhere" also lets grid and flex items shrink below the word's width */
.faq summary>span,.faq summary>*{min-width:0}
p,li,dd{text-wrap:pretty}
ul,ol{padding:0}
a{color:var(--stamp);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--stamp);outline-offset:2px;border-radius:4px}
svg text{font-family:var(--font)}

.skip{position:absolute;left:-999px;top:8px;padding:8px 12px;background:var(--card);border-radius:8px;font-weight:650}
.skip:focus{left:8px;z-index:10}

.top,main,.foot{max-width:var(--page);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}

/* ---------- top bar ---------- */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:16px;padding-bottom:8px}
.wordmark{
  font-size:22px;line-height:1;font-weight:800;letter-spacing:-0.025em;font-variation-settings:"opsz" 60;
  color:var(--ink);text-decoration:none;
}
.menu{display:flex;align-items:center;gap:6px 20px}
.menu a:not(.button){font-size:15.5px;font-weight:600;color:var(--ink);text-decoration:none}
.menu a:not(.button):hover,.menu a[aria-current]{text-decoration:underline;text-decoration-thickness:2px}
/* language selector: a drop-down. Closed: the flag of the current language; open: every language with flag and name.
   In the top bar at every width (the footer has none since 2026-11-22); see the end for the narrow screens. */
.lang{position:relative}
.menu .lang{padding-left:14px;border-left:1px solid var(--line)}
.lang summary{list-style:none;display:flex;align-items:center;gap:6px;padding:7px 8px;border-radius:8px;cursor:pointer;line-height:0}
.lang summary::-webkit-details-marker{display:none}
.lang summary:hover,.lang details[open] summary{background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
/* the flag files are 48x48 with a 48x32 flag in the middle: object-fit:cover on a 3:2 box shows the flag alone */
.lang img{display:block;flex:none;width:24px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(23,34,59,.12)}
.lang .chev{width:10px;height:10px;color:var(--ink-soft)}
.lang summary .name{line-height:16px;font-size:14px;font-weight:600}   /* a language without a flag file: its name takes the flag's place */
.lang details[open] .chev{transform:rotate(180deg)}
.lang ul{
  list-style:none;position:absolute;right:0;top:calc(100% + 6px);z-index:20;
  min-width:176px;padding:6px;
  max-height:min(70vh,calc(100vh - 96px));overflow-y:auto;   /* with 17 or more languages the list scrolls instead of leaving the screen */
  background:var(--card);border:1.5px solid var(--line);border-bottom-width:3px;border-radius:10px;
  box-shadow:0 12px 28px rgba(23,34,59,.14);
}
.lang li a,.lang li .current{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:7px;font-size:15px;font-weight:600;line-height:1.2;color:var(--ink);text-decoration:none;white-space:nowrap}
nav.lang li a:hover{background:var(--paper);text-decoration:none}   /* more specific than the footer's link rules */
.lang li .current{color:var(--ink-soft);background:var(--paper)}

.button{
  display:inline-block;
  padding:13px 22px;
  background:var(--stamp);color:#fff;
  border-radius:10px;
  font-weight:650;font-size:17px;line-height:1.2;
  text-decoration:none;
}
.button:hover{background:#2139A8}
.button.small{padding:9px 14px;font-size:15.5px}
.button{white-space:nowrap}

/* ---------- dossier card (same as in the game) ---------- */
.card{
  --tab:var(--akta-yellow);
  position:relative;
  margin-top:30px;
  padding:22px 22px 24px;
  background:var(--card);
  border-top:4px solid var(--tab);
  border-radius:0 14px 14px 14px;
  box-shadow:0 0 0 1px var(--line),0 18px 32px -22px rgba(23,34,59,.45);
}
.tab{
  position:absolute;left:0;top:-34px;
  height:30px;padding:0 14px;
  display:flex;align-items:center;
  background:var(--tab);
  border-radius:9px 9px 0 0;
  font-size:14.5px;font-weight:650;line-height:1;
}
.tab-yellow{--tab:var(--akta-yellow)}
.tab-blue{--tab:var(--akta-blue)}
.tab-rose{--tab:var(--akta-rose)}
.tab-mint{--tab:var(--akta-mint)}

.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{padding:3px 10px;border-radius:999px;font-size:13.5px;font-weight:650;font-variant-numeric:tabular-nums;background:#E3F3EC;color:var(--good)}
.chip.neg{background:#FAE6E6;color:var(--bad)}
.pips{display:inline-flex;gap:3px}
.pips i{width:14px;height:6px;border-radius:3px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.pips i.on{background:var(--stamp);box-shadow:none}
.quiet{font-size:14.5px;color:var(--ink-soft)}
.lead{font-size:19px;line-height:1.45;font-weight:500}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.iso{display:block;width:100%;height:auto}

/* ---------- hero: the first screen of the game ---------- */
.hero{display:grid;gap:4px;align-items:center}
.hero-scene .iso{max-width:640px;max-height:40vh;margin:0 auto}
.hero-card{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.hero-card h1{
  font-size:clamp(33px,8.6vw,46px);
  line-height:1;font-weight:800;letter-spacing:-0.035em;font-variation-settings:"opsz" 96;
  text-wrap:balance;
}
.hero-card .lead{font-size:17.5px;font-weight:450;max-width:52ch}

/* ---------- sections ---------- */
.band{margin-top:72px}
.intro{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.intro h2,.closing h2{
  font-size:clamp(28px,6.4vw,40px);
  line-height:1.04;font-weight:750;letter-spacing:-0.03em;font-variation-settings:"opsz" 72;
  text-wrap:balance;max-width:20ch;
}
.intro p{max-width:58ch;font-size:18px}

.stages{list-style:none;margin-top:28px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
.stages li{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.stages .iso{margin-bottom:2px}
.stages h3{font-size:19px;line-height:1.2;font-weight:700;letter-spacing:-0.01em}
.stages p{font-size:15.5px;line-height:1.45;color:var(--ink-soft)}

.meter-list{list-style:none;display:grid;gap:22px;margin-top:28px}
.meter-list li{display:grid;gap:7px}
.meter-list h3{font-size:18px;line-height:1.2;font-weight:700}
.meter-list p{font-size:15.5px;line-height:1.45;color:var(--ink-soft);max-width:44ch}
.m-track{display:block;height:10px;max-width:360px;border-radius:5px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.m-fill{display:block;height:100%;border-radius:5px}
[data-m="penz"] .m-fill{width:46%;background:#DDA41F}
[data-m="ugyfel"] .m-fill{width:72%;background:var(--stamp)}
[data-m="nyugi"] .m-fill{width:58%;background:#3FA57F}
[data-m="biz"] .m-fill{width:84%;background:#7C6BC4}

.chapters{display:grid;gap:14px 24px;margin-top:20px}
.chapters .card{padding-top:10px;padding-bottom:10px}
.chapters h3.tab{margin:0}
.links{list-style:none}
.links li + li{border-top:1px solid var(--line)}
.links a{display:block;padding:11px 0;color:var(--ink);text-decoration:none}
.links b{display:block;font-size:16.5px;font-weight:650;line-height:1.25}
.links span{display:block;font-size:15px;line-height:1.35;color:var(--ink-soft)}
.links a:hover b{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}

.events{list-style:none}
.events li{padding:11px 0;font-size:17px;font-weight:600;line-height:1.3}
.events li + li{border-top:1px solid var(--line)}
.card.tab-rose{padding-top:10px;padding-bottom:10px}

.result{display:grid;gap:20px;justify-items:start}
.stamp{width:150px;height:150px;color:var(--stamp);transform:rotate(-8deg);mix-blend-mode:multiply;opacity:.94}
.stamp text{fill:currentColor}

.faq{display:grid;gap:8px;margin-top:24px}
.faq details{background:#fff;border:1.5px solid var(--line);border-bottom-width:3px;border-radius:10px}
.faq summary{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px 16px;cursor:pointer;list-style:none;
  font-size:17px;font-weight:650;line-height:1.3;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font-size:22px;line-height:1;font-weight:500;color:var(--stamp)}
.faq details[open] summary::after{content:"−"}
.faq summary:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.faq p{padding:0 16px 16px;max-width:62ch}

.prose{max-width:62ch;margin-top:24px}
.prose p + p,.prose h2 + p{margin-top:12px}
.prose h2{margin-top:32px;font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-0.015em}
.prose ul{margin-top:12px;padding-left:22px;display:grid;gap:6px}

.closing{
  display:flex;flex-direction:column;align-items:flex-start;gap:14px;
  padding:26px 24px 28px;
  background:var(--card);
  border-radius:14px;
  box-shadow:0 0 0 1px var(--line),0 18px 32px -22px rgba(23,34,59,.45);
}
.closing h2{font-size:clamp(24px,5vw,30px)}
.closing p{max-width:56ch}

/* ---------- inner pages ---------- */
.page-head{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding-top:28px}
.page-head h1{
  font-size:clamp(31px,7.4vw,46px);
  line-height:1.03;font-weight:800;letter-spacing:-0.035em;font-variation-settings:"opsz" 96;
  text-wrap:balance;max-width:24ch;
}
.page-head .lead{max-width:56ch}

.crumbs{padding-top:20px;font-size:14.5px}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px}
.crumbs li + li::before{content:"/";margin-right:8px;color:var(--ink-soft)}
.crumbs a{color:var(--ink-soft)}
.crumbs span{font-weight:600}
.crumbs + .guide .page-head{padding-top:14px}

.chapter .intro h2{font-size:clamp(24px,5vw,30px)}
.topic-list{list-style:none;margin-top:20px;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.topic-list a{
  display:flex;flex-direction:column;align-items:flex-start;gap:6px;height:100%;
  padding:14px 16px 16px;
  background:#fff;color:var(--ink);text-decoration:none;
  border:1.5px solid var(--line);border-bottom-width:3px;border-radius:10px;
}
.topic-list a:hover{border-color:var(--ink)}
.topic-list .tag{padding:2px 9px;border-radius:6px;background:var(--tab);font-size:13.5px;font-weight:650}
.topic-list b{font-size:18px;line-height:1.22;font-weight:700;letter-spacing:-0.01em}
.topic-list span:last-child{font-size:15px;line-height:1.4;color:var(--ink-soft)}

.guide section{margin-top:44px}
.guide section > h2,.advice h2{font-size:24px;line-height:1.15;font-weight:750;letter-spacing:-0.02em;font-variation-settings:"opsz" 48}
.guide .card{margin-top:50px}
.question{font-size:24px;line-height:1.14;font-weight:700;letter-spacing:-0.02em;font-variation-settings:"opsz" 40;text-wrap:balance}
.guide .card .lead{margin-top:8px;font-size:17px;font-weight:600}
.options{list-style:none;display:grid;gap:8px;margin-top:16px}
.options li{padding:13px 15px 15px;border:1.5px solid var(--line);border-bottom-width:3px;border-radius:10px}
.options h3{font-size:17px;line-height:1.25;font-weight:650}
.options h3 + .quiet{margin-bottom:8px}
.options p{max-width:60ch}
.outcomes{margin-top:6px}
.outcomes dt{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-weight:650}
.outcomes dd p{max-width:60ch}
.advice ul,.sources ul{margin-top:12px;padding-left:20px;display:grid;gap:8px;max-width:62ch}
.guide > .quiet{margin-top:20px;max-width:62ch}
.guide .summary{margin-top:28px;padding:16px 20px 18px;max-width:66ch;background:#fff;border:1.5px solid var(--line);border-left:5px solid var(--stamp);border-radius:4px 12px 12px 4px}
.guide .summary > h2{font-size:14px;line-height:1.2;font-weight:650;letter-spacing:0;color:var(--stamp);font-variation-settings:"opsz" 14}
.guide .summary p{margin-top:8px;font-size:17.5px;line-height:1.45;font-weight:500}
.guide .qa h3{margin-top:22px;font-size:18px;line-height:1.25;font-weight:650;max-width:62ch}
.guide .qa p{margin-top:8px;max-width:62ch}
.guide .sources{margin-top:36px}
.guide .sources > h2{font-size:18px}
.guide .sources li{font-size:15.5px;line-height:1.45}
.guide .sources .quiet{margin-top:12px;max-width:62ch}

.pager{display:flex;flex-wrap:wrap;gap:10px;margin-top:36px}
.pager a{
  flex:1 1 220px;display:flex;flex-direction:column;gap:2px;
  padding:11px 16px 12px;
  background:#fff;color:var(--ink);text-decoration:none;
  border:1.5px solid var(--line);border-bottom-width:3px;border-radius:10px;
}
.pager a:hover{border-color:var(--ink)}
.pager span{font-size:14px;color:var(--ink-soft)}
.pager b{font-weight:650}
.pager a[rel="next"]{text-align:right}

.siblings{margin-top:44px}
.siblings h2{font-size:16px;font-weight:650}
.siblings ul{list-style:none;margin-top:6px}
.siblings li + li{border-top:1px solid var(--line)}
.siblings a{display:block;padding:9px 0;font-size:15.5px;line-height:1.35;color:var(--ink);text-decoration:none}
.siblings a:hover{text-decoration:underline}

.facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 24px;margin-top:28px}
.facts dt{color:var(--ink-soft)}
.facts dd{font-weight:650}

/* ---------- footer ---------- */
.foot{
  margin-top:96px;padding-top:28px;padding-bottom:40px;
  border-top:1px solid var(--line);
  display:grid;gap:24px;
  font-size:15px;
}
.foot-about{display:grid;gap:8px;max-width:46ch;color:var(--ink-soft)}
.foot-about .wordmark{font-size:19px}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 22px;align-content:flex-start}
.foot nav a{color:var(--ink);font-weight:600;text-decoration:none}
.foot nav a:hover{text-decoration:underline}
.foot-made{color:var(--ink-soft)}

/* ---------- wider screens ---------- */
@media (max-width:659px){   /* the text links are in the footer too; the selector stays, and its list opens against the page edge */
  .menu > a:not(.button){display:none}
  .top{position:relative}
  .menu .lang{position:static;padding-left:0;border-left:0}
  .menu .lang ul{right:var(--gutter);top:calc(100% - 2px)}
}
@media (max-width:459px){.top{gap:8px 10px}.menu{gap:6px 8px}.top .wordmark{font-size:19px}.top .button.small{padding:8px 11px;font-size:14.5px}}   /* the one-word Hungarian wordmark cannot wrap */
@media (max-width:379px){.top .wordmark{font-size:17px}.top .button.small{padding:7px 9px;font-size:13.5px}.lang summary{padding:7px 4px}}
@media (max-width:339px){.top{gap:8px 6px}.menu{gap:6px 6px}.top .wordmark{font-size:15px}.top .button.small{padding:7px 8px;font-size:13px}}
@media (max-width:699px){.hero-scene .iso{max-height:31vh}}
@media (min-width:700px){
  :root{--gutter:32px}
  .stages{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
  .meter-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px}
  .chapters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .result{grid-template-columns:auto minmax(0,1fr);gap:40px;align-items:center}
  .stamp{width:190px;height:190px}
  .foot{grid-template-columns:minmax(0,1fr) auto}
  .foot nav{flex-direction:column;gap:8px}
  .foot-made{grid-column:1/-1}
  .closing{padding:32px 32px 34px}
}
@media (min-width:920px){
  .top{padding-top:24px}
  .hero{grid-template-columns:minmax(0,1.25fr) minmax(380px,1fr);gap:40px;min-height:min(74vh,700px)}
  .hero-scene .iso{max-height:66vh}
  .hero-card{padding:28px 28px 30px}
  .band{margin-top:112px}
  .split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:start}
  .split .meter-list,.split .faq,.split .prose{margin-top:6px}
  .split .card{margin-top:34px}
  .p-guide main{display:grid;grid-template-columns:minmax(0,720px) minmax(220px,280px);justify-content:space-between;column-gap:56px;align-items:start}
  .p-guide .crumbs{grid-column:1/-1}
  .p-guide .guide,.p-guide .pager{grid-column:1}
  .p-guide .siblings{grid-column:2;grid-row:2;position:sticky;top:24px;margin-top:20px}
  .legal{max-width:760px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
