/* kuormalavahylly.fi — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:#1C2B3A; --navy-dark:#0D1B2A; --yellow:#F5C518;
  --bg:#F7F7F5; --white:#ffffff; --text:#1C2B3A;
  --text-muted:#6B7B8D; --text-light:#9eb3c4;
  --border:#e4e2de; --navy-mid:#2e4560; --navy-accent:#3a5570;
}
html { scroll-behavior: smooth; }
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); font-size:16px; line-height:1.6; }
a { color:inherit; text-decoration:none; }
.skip-link { position:absolute; top:-40px; left:1rem; background:var(--yellow); color:var(--navy-dark); padding:8px 16px; border-radius:4px; font-weight:600; font-size:14px; z-index:100; transition:top .2s; }
.skip-link:focus { top:1rem; }
/* topbar */
.topbar { background:var(--navy-dark); padding:0 max(24px,5vw); display:flex; align-items:center; justify-content:space-between; height:52px; position:sticky; top:0; z-index:50; border-bottom:1px solid var(--navy-mid); }
.logo { font-family:'DM Serif Display',serif; font-size:20px; color:var(--white); letter-spacing:-.2px; white-space:nowrap; }
.logo .fi { color:var(--yellow); }
.nav { display:flex; align-items:center; gap:6px; }
.nav a { font-size:13px; color:var(--text-light); padding:6px 10px; border-radius:4px; transition:color .15s,background .15s; white-space:nowrap; }
.nav a:hover { color:var(--white); background:rgba(255,255,255,.06); }
.nav a.active { color:var(--white); }
.nav a:focus-visible { outline:2px solid var(--yellow); outline-offset:2px; }
.nav .nav-cta { background:var(--yellow); color:var(--navy-dark); font-weight:600; font-size:13px; padding:6px 14px; }
.nav .nav-cta:hover { background:#e0b410; color:var(--navy-dark); }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:6px; color:var(--text-light); }
/* breadcrumb */
.breadcrumb { padding:14px max(24px,5vw); background:var(--white); border-bottom:1px solid var(--border); font-size:13px; color:var(--text-muted); display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.breadcrumb a { color:var(--text-muted); transition:color .15s; }
.breadcrumb a:hover { color:var(--navy); }
.breadcrumb .sep { color:var(--border); }
.breadcrumb .current { color:var(--navy); font-weight:500; }
/* page hero */
.page-hero { background:var(--navy); padding:52px max(24px,5vw) 44px; position:relative; }
.page-hero::after { content:''; position:absolute; left:0; right:0; bottom:0; height:5px; background:var(--yellow); }
.page-hero-eyebrow { font-size:11px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--yellow); margin-bottom:14px; }
.page-hero h1 { font-family:'DM Serif Display',serif; font-size:clamp(28px,4.5vw,40px); color:var(--white); line-height:1.15; font-weight:400; margin-bottom:16px; max-width:640px; }
.page-hero-lead { font-size:17px; color:var(--text-light); max-width:560px; line-height:1.7; }
/* layout */
.content-wrap { display:grid; grid-template-columns:1fr 300px; gap:0; max-width:1100px; margin:0 auto; align-items:start; }
/* article */
.article { padding:48px max(24px,4vw) 64px; min-width:0; }
.article h2 { font-family:'DM Serif Display',serif; font-size:26px; font-weight:400; color:var(--navy-dark); margin:48px 0 16px; padding-top:48px; border-top:1px solid var(--border); line-height:1.2; }
.article h2:first-child { margin-top:0; padding-top:0; border-top:none; }
.article h3 { font-size:17px; font-weight:600; color:var(--navy-dark); margin:28px 0 10px; }
.article p { font-size:16px; line-height:1.75; color:#2a3a4a; margin-bottom:18px; }
.article p:last-child { margin-bottom:0; }
.article ul,.article ol { padding-left:0; list-style:none; margin-bottom:20px; }
.article li { font-size:16px; line-height:1.6; color:#2a3a4a; padding:7px 0 7px 22px; border-bottom:.5px solid #f0ede9; position:relative; }
.article li:last-child { border-bottom:none; }
.article li::before { content:''; position:absolute; left:0; top:16px; width:6px; height:6px; background:var(--yellow); border-radius:50%; }
/* article image */
.article-img { width:100%; border-radius:8px; display:block; margin:28px 0 8px; aspect-ratio:16/9; object-fit:cover; }
.article-img-caption { font-size:12px; color:var(--text-muted); margin-bottom:28px; padding:0 4px; }
/* infobox */
.infobox { background:var(--white); border:.5px solid var(--border); border-left:4px solid var(--yellow); border-radius:0 6px 6px 0; padding:18px 20px; margin:28px 0; }
.infobox p { margin-bottom:0; font-size:15px; }
/* data table */
.data-table { width:100%; border-collapse:collapse; margin:20px 0 28px; font-size:14px; }
.data-table th { background:var(--navy); color:var(--white); font-weight:600; padding:10px 14px; text-align:left; font-size:13px; }
.data-table th:first-child { border-radius:6px 0 0 0; }
.data-table th:last-child { border-radius:0 6px 0 0; }
.data-table td { padding:10px 14px; border-bottom:.5px solid var(--border); color:#2a3a4a; vertical-align:top; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:nth-child(even) td { background:var(--bg); }
/* internal link */
.internal-link { display:inline-flex; align-items:center; gap:6px; color:var(--navy); font-weight:500; font-size:15px; border-bottom:1px solid var(--border); padding-bottom:1px; transition:border-color .15s; }
.internal-link:hover { border-color:var(--navy); }
.internal-link svg { width:14px; height:14px; flex-shrink:0; }
/* related grid */
.related-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.related-card { background:var(--white); border:.5px solid var(--border); border-radius:7px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:8px; transition:border-color .15s,background .15s; }
.related-card:hover { background:var(--bg); border-color:#bbb; }
.related-card span { font-size:13px; font-weight:500; color:var(--navy-dark); line-height:1.3; }
.related-card svg { width:14px; height:14px; flex-shrink:0; color:var(--text-muted); }
/* sidebar */
.sidebar { padding:40px 24px 40px 0; position:sticky; top:72px; }
.sidebar-card { background:var(--white); border:.5px solid var(--border); border-radius:8px; overflow:hidden; margin-bottom:16px; }
.sidebar-card-head { background:var(--navy); padding:12px 16px; display:flex; align-items:center; gap:8px; }
.sidebar-card-head-beam { width:16px; height:3px; background:var(--yellow); border-radius:1px; flex-shrink:0; }
.sidebar-card-head span { font-size:13px; font-weight:600; color:var(--white); }
.sidebar-card-body { padding:14px 16px; }
.sidebar-card-body p { font-size:13px; color:var(--text-muted); line-height:1.5; margin-bottom:12px; }
.sidebar-btn { display:block; width:100%; background:var(--yellow); color:var(--navy-dark); font-weight:600; font-size:13px; padding:10px 14px; border-radius:5px; text-align:center; transition:background .15s; margin-bottom:8px; }
.sidebar-btn:hover { background:#e0b410; }
.sidebar-btn.ghost { background:transparent; color:var(--text-muted); border:.5px solid var(--border); }
.sidebar-btn.ghost:hover { background:var(--bg); color:var(--navy); }
.toc { list-style:none; }
.toc li { border-bottom:.5px solid #f0ede9; }
.toc li:last-child { border-bottom:none; }
.toc a { display:block; padding:9px 0; font-size:13px; color:var(--text-muted); transition:color .15s; }
.toc a:hover { color:var(--navy); }
.toc a.active { color:var(--navy); font-weight:500; }
/* structure diagram */
.structure-diagram { background:var(--white); border:.5px solid var(--border); border-radius:8px; padding:24px; margin:24px 0; }
.structure-diagram-title { font-size:12px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-muted); margin-bottom:20px; }
.structure-row { display:flex; align-items:center; gap:16px; padding:12px 0; border-bottom:.5px solid #f0ede9; }
.structure-row:last-child { border-bottom:none; }
.structure-icon { width:40px; height:40px; flex-shrink:0; background:var(--navy); border-radius:6px; display:flex; align-items:center; justify-content:center; }
.structure-icon svg { width:20px; height:20px; stroke:var(--yellow); fill:none; stroke-width:1.8; stroke-linecap:round; }
.structure-name { font-size:15px; font-weight:600; color:var(--navy-dark); margin-bottom:3px; }
.structure-desc { font-size:13px; color:var(--text-muted); line-height:1.4; }
/* naaka cta block */
.naaka-block { background:var(--navy); border-radius:8px; padding:24px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin:40px 0 0; }
.naaka-block-text strong { display:block; font-family:'DM Serif Display',serif; font-size:19px; font-weight:400; color:var(--white); margin-bottom:6px; }
.naaka-block-text p { font-size:13px; color:var(--text-light); line-height:1.5; max-width:400px; }
.naaka-block a.btn-naaka { background:var(--yellow); color:var(--navy-dark); font-weight:600; font-size:14px; padding:11px 20px; border-radius:5px; white-space:nowrap; flex-shrink:0; transition:background .15s; }
.naaka-block a.btn-naaka:hover { background:#e0b410; }
/* brand pills */
.brand-list { display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }
.brand-pill { background:var(--bg); border:.5px solid var(--border); border-radius:20px; padding:8px 18px; font-size:13px; font-weight:600; color:var(--navy); transition:border-color .15s,background .15s; }
.brand-pill:hover { background:var(--white); border-color:#aaa; }
.brand-pill.primary { background:var(--navy); color:var(--yellow); border-color:var(--navy); }
.brand-pill.primary:hover { background:var(--navy-dark); }
/* footer */
footer { background:var(--navy-dark); padding:36px max(24px,5vw); border-top:3px solid var(--yellow); }
.footer-inner { display:flex; align-items:flex-start; justify-content:space-between; gap:32px; flex-wrap:wrap; margin-bottom:28px; }
.footer-logo { font-family:'DM Serif Display',serif; font-size:18px; color:var(--white); }
.footer-logo .fi { color:var(--yellow); }
.footer-tagline { font-size:13px; color:var(--navy-accent); margin-top:6px; }
.footer-nav { display:flex; flex-direction:column; gap:8px; }
.footer-nav a { font-size:13px; color:var(--navy-accent); transition:color .15s; }
.footer-nav a:hover { color:var(--text-light); }
.footer-bottom { border-top:1px solid var(--navy-mid); padding-top:20px; font-size:12px; color:var(--navy-accent); }
/* responsive */
@media (max-width:860px) { .content-wrap { grid-template-columns:1fr; } .sidebar { position:static; padding:0 max(24px,4vw) 40px; } }
@media (max-width:640px) { .nav > a:not(.nav-cta) { display:none; } .nav-toggle { display:block; } .related-grid { grid-template-columns:1fr; } .topbar { padding:0 20px; } .page-hero { padding:40px 20px 36px; } .article { padding:32px 20px 48px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
