/*
Theme Name: Netbooster
Theme URI: https://netbooster.fi/
Author: Netbooster
Description: Suomen verkkokauppahakemisto ja ostajan opas.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netbooster
*/
:root {
    --ink: #172937;
    --navy: #101f38;
    --blue: #2246a3;
    --paper: #f7f5ef;
    --muted: #4f5b64;
    --line: #deddd6;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #bd672c; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25rem; }
[hidden] { display: none !important; }
.wrap { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: 10px; left: 10px; transform: translateY(-200px); padding: 10px; background: white; }
.skip:focus { transform: none; }
.topline { color: #e8ebf3; background: var(--navy); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.topline .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; }
.topline a:hover, .footer-grid a:hover { color: #bbceff; }
.masthead { background: white; }
.mast { display: flex; align-items: center; justify-content: center; min-height: 98px; }
.brand { display: inline-flex; align-items: center; color: var(--navy); font: 700 clamp(38px, 5vw, 58px)/1 var(--serif); letter-spacing: -.075em; }
.brand img { margin-right: 12px; }
.brand span { color: var(--blue); margin-left: .035em; }
.navigation { border-block: 1px solid var(--line); }
.nav-row { display: flex; justify-content: center; gap: clamp(18px, 4vw, 50px); align-items: center; font-weight: 650; font-size: 13px; }
.nav-row > a, .nav-row summary { display: block; padding-block: 13px; }
.nav-row details { position: relative; z-index: 3; }
.nav-row summary { cursor: pointer; list-style: none; }
.nav-row summary::-webkit-details-marker { display: none; }
.nav-row summary::after { content: '⌄'; margin-left: .35em; }
.nav-row ul { margin: 0; position: absolute; list-style: none; padding: 10px 0; min-width: 220px; background: white; border-top: 3px solid var(--blue); box-shadow: 0 12px 22px #17293722; }
.nav-row li a { display: block; padding: 7px 16px; }
.cover { margin-top: 26px; display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); background: var(--navy); color: white; }
.cover-copy { align-self: center; padding: clamp(28px, 5vw, 74px); }
.eyebrow { color: var(--blue); margin: 0 0 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; }
.cover .eyebrow, .editorial .eyebrow { color: #bdcefb; }
.cover h1 { font-size: clamp(47px, 5.3vw, 79px); letter-spacing: -.065em; line-height: .98; }
.cover-copy > p:not(.eyebrow) { margin: 24px 0; color: #e4e9f4; max-width: 36ch; }
.cover figure { position: relative; margin: 0; }
.cover figure img { display: block; width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.cover figcaption { position: absolute; right: 12px; bottom: 12px; color: white; background: #101f38df; font-size: 10px; padding: 4px 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; background: var(--blue); border: 1px solid transparent; color: white; padding: 10px 18px; font-size: 13px; font-weight: 700; }
.button:hover { background: #183474; color: white; }
.button.light { background: #e1e9ff; color: var(--navy); }
.finder { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; background: #eaeef8; border: 1px solid #dfe4f2; }
.finder label { color: var(--navy); font-weight: 700; }
.finder input { border: 1px solid #acb6cb; min-height: 46px; min-width: 0; color: var(--ink); padding: 8px 13px; }
.section { margin-block: clamp(39px, 6vw, 80px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 19px; }
.section-head h2, .editorial h2 { font-size: clamp(33px, 4vw, 51px); letter-spacing: -.045em; }
.text-link { color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.topic-grid, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic { display: grid; grid-template-columns: 1fr auto; align-content: space-between; gap: 8px; min-height: 112px; padding: 18px; border: 1px solid var(--line); background: white; }
.topic:hover, .card:hover { border-color: #9eafda; }
.topic strong { grid-column: 1 / -1; font: 26px/1.1 var(--serif); }
.topic span { color: var(--muted); font-size: 13px; }
.topic .arrow { color: var(--blue); }
.card { background: white; border: 1px solid var(--line); border-top: 3px solid #9db0dd; padding: 21px; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.card h3 { font-size: 29px; margin-bottom: 11px; }
.card p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.card .text-link { align-self: start; margin-top: auto; }
.editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(18px, 6vw, 80px); padding: clamp(24px, 6vw, 62px); color: white; background: var(--navy); margin-block: 50px; }
.editorial .text-link { color: #dce6ff; }
.site-footer { margin-top: 48px; background: var(--navy); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; padding-block: 40px; }
.footer-brand { font: 36px/1 var(--serif); letter-spacing: -.04em; }
.footer-grid a { display: block; }
.footer-grid div:not(:first-child) a, .footer-grid p { font-size: 14px; color: #dfe6f3; }
.content { min-height: 45vh; padding-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.crumbs a { text-decoration: underline; text-underline-offset: .2em; }
.crumbs a + a::before { content: '/'; display: inline-block; margin-right: 12px; }
.page-head { padding: clamp(22px, 4.5vw, 54px); border: 1px solid var(--line); background: white; margin-bottom: 21px; }
.content h1 { font-size: clamp(42px, 6.1vw, 77px); letter-spacing: -.06em; overflow-wrap: anywhere; }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 63ch; color: var(--muted); margin: 14px 0 18px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); align-items: start; gap: 24px; }
.prose { padding: clamp(17px, 4vw, 38px); background: white; border: 1px solid var(--line); overflow-wrap: anywhere; }
.prose h2, .factbox h2 { font-size: clamp(26px, 3vw, 35px); margin-bottom: 12px; letter-spacing: -.03em; }
.prose h2:not(:first-child) { margin-top: 28px; }
.prose h3 { font-size: 25px; margin-top: 18px; }
.prose a:not(.button), .factbox a:not(.button) { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.factbox { background: #eaeef8; border: 1px solid #dfe4f2; padding: 22px; overflow-wrap: anywhere; }
.factbox dt { font-weight: 700; font-size: 14px; margin-top: 13px; }
.factbox dd { margin: 3px 0 0; font-size: 14px; }
.factbox dd a { display: block; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0; }
.filters a, .tag { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); background: white; font-size: 13px; }
.filters [aria-current] { color: white; background: var(--navy); }
.pagination { margin-top: 24px; }
.location { margin-block: 25px; border-block: 1px solid var(--line); padding: 10px 0 15px; }
.map { display: grid; gap: 10px; justify-items: start; margin-bottom: 17px; }
.map iframe { width: 100%; min-height: 320px; border: 1px solid var(--line); }
.source { font-size: 13px; margin-bottom: 0; }
.editorial-page { max-width: 850px; }
@media (max-width: 900px) {
    .wrap { width: calc(100% - 38px); }
    .cover h1 { font-size: clamp(41px, 6.5vw, 61px); }
    .topic-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 28px); }
    .topline .wrap { font-size: 9px; padding-block: 7px; }
    .mast { min-height: 76px; }
    .brand img { width: 34px; height: 34px; }
    .nav-row { gap: 17px; font-size: 12px; }
    .nav-row ul { left: 50%; transform: translateX(-50%); }
    .cover { display: block; margin-top: 16px; }
    .cover figure img { min-height: 0; height: 235px; }
    .finder { grid-template-columns: 1fr auto; gap: 9px; padding: 12px; }
    .finder label { grid-column: 1 / -1; }
    .section-head { align-items: start; flex-direction: column; }
    .cards, .profile-grid, .editorial, .footer-grid { grid-template-columns: 1fr; }
    .topic strong { font-size: 21px; overflow-wrap: anywhere; }
    .topic { padding: 13px; }
    .footer-grid { gap: 18px; }
}
