/* Fonts: self-hosted (SIL OFL 1.1), Latin subset. Libre Baskerville = titles and headings only; Lato = everything else. */
@font-face{font-family:"Lato";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/lato-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/lato-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/lato-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Lato";font-style:italic;font-weight:700;font-display:swap;src:url(/assets/fonts/lato-latin-700-italic.woff2) format("woff2")}
@font-face{font-family:"Libre Baskerville";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/libre-baskerville-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Libre Baskerville";font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/libre-baskerville-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"Libre Baskerville";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/libre-baskerville-latin-700-normal.woff2) format("woff2")}
:root{--serif:"Libre Baskerville",Georgia,"Times New Roman",serif;--sans:Lato,Arial,Helvetica,sans-serif;--navy:#1f3a68;--navy-dk:#14253f;--head-bg:#dfe5ef;--head-rule:#b4bfd0;--zebra:#f2f5f9;--rule:#d3d8e0}
/* The Battles of the Winter War - clean rebuild of the original winterwar.com look:
   textured grey page, 780px header bar with flags, Times italic blue titles, Arial body text, picture-button footer. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#e9e9e9 url(/images/bk.jpg);color:#111;font-family:var(--sans);font-size:16px;line-height:1.55}
img{max-width:100%;height:auto;border:0}
a{color:#00e}
a:visited{color:#551a8b}
a:hover,a:focus{color:#f0f;text-decoration:underline}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:.5rem;z-index:10}
.skip:focus{left:0}

/* header */
.site-header{max-width:780px;margin:0 auto;padding-top:0}
.topbar{display:block;line-height:0}
.topbar img{width:100%;height:auto}
.navwrap{display:grid;grid-template-columns:119px 1fr 119px;align-items:center;gap:0}
.flag{display:block;width:119px;height:70px}
.mainnav{text-align:center;font-family:var(--sans);font-size:15px;line-height:1.5;padding:.25rem 0}
.navrow{list-style:none;margin:0;padding:0;display:block}
.navrow li{display:inline}
.navrow li::before{content:" | ";white-space:pre}
.navrow li:last-child::after{content:" |";white-space:pre}
.navrow li{white-space:normal}
.navrow a[aria-current]{font-weight:bold;color:#000;text-decoration:none}
.crumbs{max-width:960px;margin:.75rem auto 0;padding:.4rem 12px;font-size:13px;color:#333;border-top:1px solid #aaa}
.crumbs span{font-weight:bold}

/* content */
.content{max-width:960px;margin:0 auto;padding:12px 12px 24px;overflow-wrap:break-word}
.teksti,.content{font-family:var(--sans);font-size:16px;font-weight:400;line-height:1.6}
.content table,.content td,.content th,.content p,.content li{font-size:inherit}
.content p{margin:0 0 .9em}
.content ul,.content ol{margin:.5em 0 1em}
.content blockquote{margin:.5em 0 .5em 2rem}
.content hr{border:0;border-top:1px solid #888;margin:1rem auto}
.content table{max-width:100%;border-collapse:separate}
.table-wrap{max-width:100%;overflow-x:auto}
.content td,.content th{vertical-align:top}
.content td[align=center],.content th[align=center]{text-align:center}
.content td[valign=middle]{vertical-align:middle}
.content td[valign=bottom]{vertical-align:bottom}
.center{text-align:center}
.content h1.pagetitle{font-size:inherit;font-weight:normal;margin:0 0 .9em;line-height:1.2}
.Otsikko{font-family:var(--serif);font-size:32px;font-style:italic;font-weight:400;color:var(--navy);text-align:center;margin:.6em 0 .2em;line-height:1.25}
.otsikko2{font-family:var(--sans);font-size:16px;font-style:italic;font-weight:400}
.tempotsikko{font-family:var(--sans);font-size:16px;font-weight:400}
.teksti{font-family:var(--sans);font-size:16px;font-weight:400}
.huom{font-family:var(--sans);font-size:15px;font-weight:700;color:#d00000}
.tekstiots{font-size:16px;font-weight:400;font-style:italic}
.reference{font-family:var(--sans);font-size:13px;font-weight:400}
h1.Otsikko+p.otsikko2,p.otsikko2.center{text-align:center}
.content .otsikko2{margin:.2em 0 .8em}
.prose{max-width:760px;margin:1rem auto}
.prose li{margin:.35em 0}
.missing-img{display:inline-block;padding:.2rem .5rem;border:1px dashed #888;background:#f4f4f4;color:#555;font-size:12px;font-weight:normal;font-style:italic}

/* generated pages */
.cards{list-style:none;margin:1.5rem auto;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;max-width:860px}
.cards li{background:#fff;border:1px solid #888;padding:6px}
.cards a{display:flex;gap:10px;align-items:center;text-decoration:none;color:#000}
.cards a:hover b{color:#f0f}
.cards b{color:#00e;text-decoration:underline}
.cards img{flex:0 0 auto}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin:1rem 0}
.gallery figure{margin:0;background:#fff;border:1px solid #888;padding:8px;text-align:center}
.gallery figcaption{font-size:12px;margin-top:6px}

/* footer */
.site-footer{max-width:780px;margin:0 auto;padding:0 12px 2rem;text-align:center}
.site-footer hr{border:0;border-top:3px solid #888;margin:1rem 0}
.site-footer hr.thin{border-top-width:1px;width:80%}
.buttons{display:flex;align-items:flex-start;justify-content:center;gap:12px;flex-wrap:wrap}
.invlogo{flex:0 0 auto}
.btngrid{display:grid;grid-template-columns:repeat(5,119px);gap:0 0}
.btngrid a{display:block;line-height:0}
.btngrid a:hover img,.btngrid a:focus img{filter:brightness(1.15) saturate(1.4)}
.copyright{font-family:var(--sans);font-style:italic;font-weight:400;font-size:13px;line-height:1.4}
.toplink{margin:.5rem 0 0}

/* start page */
body.splash{background:#fff url(/images/uusibk2versio.jpg) fixed;text-align:center}
.splash-inner{max-width:1000px;margin:0 auto;padding:1rem}
.indexotsikko{font:italic 400 clamp(26px,5vw,44px)/1.25 var(--serif);margin:.1em 0 .2em;color:var(--navy);text-shadow:0 0 6px #fff}
.indexotsikko2{font:italic 400 clamp(20px,3.6vw,30px)/1.3 var(--serif);margin:.4em 0}
.indexteksti{font:normal 18px/1.5 var(--sans);margin:.8em auto;max-width:900px;text-shadow:0 0 4px #fff}
.blue{color:var(--navy);text-shadow:0 0 6px #fff}
.red{color:#f00}
.gap{height:2.5rem}
.enter{font:italic 400 clamp(22px,3.6vw,30px)/1.3 var(--serif);margin:0}
.enter a{color:#00e;text-shadow:0 0 6px #fff}
.splash-hr{width:90%;border:0;border-top:3px solid #666;margin:2rem auto 1rem}

/* small screens */
@media (max-width:760px){
  .navwrap{grid-template-columns:1fr}
  .flag{display:none}
  .btngrid{grid-template-columns:repeat(auto-fit,119px);justify-content:center}
  .Otsikko{font-size:24px}
  .content{padding:8px}
  .content blockquote{margin-left:1rem}
}
@media print{.site-header .navwrap,.site-footer .buttons,.skip,.toplink{display:none}body{background:#fff}}

/* v2 type scale (batch 4): Lato 16px/1.6 regular body; bold only where the page marks it (b/strong/th).
   Libre Baskerville italic for page titles and section headings only. Table text 14.5px, notes/sources 13px italic. */
.content th{font-weight:700;font-size:inherit}
.content b,.content strong{font-weight:700}
.content .reference,.content b.reference,.content strong.reference{font-family:var(--sans);font-size:13px;font-weight:400;font-style:italic;color:#444}
.content small{font-size:13px}
.content .otsikko2{font-family:var(--sans);font-size:16px;font-weight:400;font-style:italic}
.content p.otsikko2,.content em.otsikko2,.content td.otsikko2{font-family:var(--serif);font-size:15px;color:#222}
.content .tekstiots{font-family:var(--sans);font-size:16px;font-weight:400;font-style:italic}
.content p.tekstiots,.content div.tekstiots,.content span.tekstiots{font-family:var(--serif);font-size:17px;line-height:1.4;color:var(--navy)}
.content p.tekstiots,.content div.tekstiots{margin:1.4em 0 .5em}
.content .tekstiots-long,.content p.tekstiots-long,.content div.tekstiots-long,.content span.tekstiots-long{font-family:var(--sans);font-size:16px;line-height:1.6;color:#111;margin:.8em 0}
.content b.tekstiots,.content strong.tekstiots,.content th.tekstiots{font-style:normal;font-weight:700}
.content td.tekstiots{font-weight:700;font-style:normal}
.content p:not([align=center]):not([align=right]):not(.center),.content ul.flow-list{max-width:52em}

/* ---- v2 batch 3: paragraph flow (layout tables -> blocks, lists, quotes) ---- */
.content p{margin:.8em 0}
.content .flow-block,.content .flow-cell{display:flow-root}
.content .flow-row{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;align-items:flex-start}
.content .flow-cell{flex:1 1 240px;min-width:0}
.content .box{border:1px solid #888;background:#eee;padding:.4rem .75rem;margin:.75em 0}
.content .box.center-block{margin-left:auto;margin-right:auto;width:fit-content;max-width:100%}
.content .float-left{float:left;margin:0 1rem .5rem 0;max-width:50%}
.content .float-right{float:right;margin:0 0 .5rem 1rem;max-width:50%}
.content ul.flow-list{margin:.4em 0 .9em 1.5em;padding:0}
.content ul.flow-list li{margin:.2em 0}
.content blockquote.quote{margin:.8em 0 .8em 1.5rem;padding-left:.8rem;border-left:3px solid #bbb}
.content .table-wrap{margin:.6em 0 1em}
.content table.data{width:auto;max-width:none}

/* ---- v2 batch 4: table style A (navy caption bar, light header, zebra, notes inside the frame) ---- */
.content .table-wrap{margin:.8em 0 1.2em}
.content table.data,.content table.panel,.content table.abbr-table{border-collapse:collapse;border-spacing:0;width:auto;min-width:min(100%,22em);max-width:none;background:#fff;color:#111;border:1px solid var(--navy);font-family:var(--sans);font-size:14.5px;line-height:1.4;font-variant-numeric:tabular-nums}
.content table.data caption,.content table.panel caption,.content table.abbr-table caption{caption-side:top;text-align:left;background:var(--navy);color:#fff;font:700 15px/1.35 var(--sans);font-style:normal;padding:.5em .75em;border:1px solid var(--navy);border-bottom:0}
.content table caption *{color:inherit;font:inherit;text-decoration:none}
.content table caption .cap-note{display:block;margin-top:.25em;font-weight:400;font-size:13px;line-height:1.4}
.content table.data th,.content table.data td,.content table.panel th,.content table.panel td,.content table.abbr-table th,.content table.abbr-table td{border:1px solid var(--rule);padding:.35em .6em;text-align:left;vertical-align:baseline;font-size:inherit;font-weight:400}
.content table.data td[align=center],.content table.data td[align=middle],.content table.panel td[align=center],.content table.panel td[align=middle]{text-align:center}
.content table.data td[align=right],.content table.panel td[align=right]{text-align:right}
.content table.data td.num,.content table.abbr-table td.num{text-align:right}
.content table.data td.b,.content table.data tr.total td{font-weight:700}
.content table.data thead th,.content table.abbr-table thead th{background:var(--head-bg);color:var(--navy-dk);border:1px solid var(--head-rule);text-align:center;font-weight:700}
.content table.abbr-table thead th{text-align:left}
.content table.data tbody th,.content table.abbr-table tbody th{text-align:left;font-weight:700}
.content table.data tbody tr:nth-child(even),.content table.abbr-table tbody tr:nth-child(even){background:var(--zebra)}
.content table.data tfoot td,.content table.panel tfoot td,.content table.abbr-table tfoot td{background:#f7f7f7;color:#333;border:1px solid var(--rule);border-top:2px solid var(--navy);padding:.55em .75em;font-size:13px;line-height:1.5;text-align:left;font-weight:400}
.content table.data tfoot p,.content table.panel tfoot p{margin:.2em 0;max-width:none}
.content table.data tfoot .reference,.content table.panel tfoot .reference{font-size:13px}
.content table.data td p,.content table.data th p,.content table.panel td p,.content table.panel th p{margin:.45em 0;max-width:none;text-align:inherit}
.content table.data td p:first-child,.content table.panel td p:first-child{margin-top:0}
.content table.data td p:last-child,.content table.panel td p:last-child{margin-bottom:0}
.content table.panel td{background:#fff}
.content table.panel td .reference,.content table.data td .reference{font-size:13px}
.content table.img-table{font-size:14px;border-collapse:separate}
.content table.data td.reference,.content table.panel td.reference{font-size:13px}
.content table.data a,.content table.panel a{overflow-wrap:anywhere}

/* ---- v2 batch 4: Sources (cards match the table style) ---- */
.content .page-head{text-align:center}
.content .page-toc{list-style:none;margin:.4em 0 1.2em;padding:0;display:flex;flex-wrap:wrap;gap:.4em 1.6em;justify-content:center}
.content .page-toc a{font-size:16px;font-style:italic}
.content h2.section-head{font:italic 400 21px/1.3 var(--serif);color:var(--navy);margin:1.7em 0 .6em;padding-bottom:.3em;border-bottom:2px solid var(--navy)}
.content h3.book-group{font:italic 400 17px/1.35 var(--serif);color:var(--navy-dk);margin:1.6em 0 .4em}
.content .note-box{background:#fff;border:1px solid var(--rule);border-left:4px solid var(--navy);padding:.55em .8em;font-size:15px;max-width:46em}
.content ul.book-list{list-style:none;margin:0;padding:0;border:1px solid var(--navy);background:#fff}
.content li.book{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;padding:12px 14px;border-top:1px solid var(--rule)}
.content li.book:first-child{border-top:0}
.content li.book:nth-child(even){background:var(--zebra)}
.content .book-cover{width:96px}
.content .book-cover img{display:block;width:auto;max-width:96px;height:auto;max-height:130px;border:1px solid var(--head-rule);background:#f3f3f3}
.content .book-body p{margin:0 0 .2em;font-size:15px;line-height:1.45;max-width:none}
.content .book-body p.book-title{font-weight:700;font-size:16px;color:var(--navy-dk)}
.content .book-gloss{font-style:italic;color:#333}
.content .book-isbn{color:#333;font-size:14px}
.content .book-body p.book-links{font-size:14px;margin-top:.4em}
.content .book-catalog{font-weight:700}
.content .book-note{font-style:italic;color:#555;font-size:13px}
.content ul.source-list{margin:.4em 0 1em 1.4em;padding:0;font-size:15px}
.content ul.source-list li{margin:0 0 .8em;line-height:1.5}
.content .archive-address{border-left:4px solid var(--navy);background:#fff;padding:.5em .9em;margin:.6em 0 1em;font-size:15px;max-width:46em}
.content .archive-address p{margin:.1em 0}
.content .archive-address .archive-label{font-weight:700}
.content dl.credit-list{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.5em 1em;margin:.6em 0 1.2em;font-size:15px}
.content dl.credit-list dt{font-weight:700;color:var(--navy-dk)}
.content dl.credit-list dd{margin:0}
.content .museum-links{display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap}
.content .museum-links img{flex:0 0 auto;max-width:205px;height:auto}
.content .museum-links ul{flex:1 1 260px}
@media (max-width:760px){.content li.book{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px}.content .book-cover{width:64px}.content .book-cover img{max-width:64px;max-height:90px}}
/* Abbreviations extras */
.content table.abbr-table{width:100%;max-width:760px}
.content .abbr-table tbody th.abbr{white-space:nowrap;width:9em}
.content .abbr-table td.fi{font-style:italic}
.content .abbr-table .muted{color:#888;font-style:normal}
.content .abbr-note{margin:.8em 0;max-width:760px}
.content .abbr-note ul.flow-list{margin-top:0}

/* ---- v2 batch 4: headings written as named anchors (<a class="tekstiots" name=..>) are headings, not links ---- */
.content a:not([href]){color:inherit;text-decoration:none}
.content a.tekstiots:not([href]),.content a.otsikko2:not([href]){font-family:var(--serif);font-style:italic;font-weight:400;color:var(--navy);line-height:1.4}
.content a.tekstiots:not([href]){font-size:17px}
.content a.otsikko2:not([href]){font-size:19px}
.content p:has(> a[name]:not([href]):is(.tekstiots,.otsikko2)){margin:1.6em 0 .5em}
.content p.tekstiots:has(> a[href]),.content div.tekstiots:has(> a[href]){font-family:var(--sans);font-size:16px;margin:.5em 0}
.content .page-head p,.content p.otsikko2{max-width:none}
.content table.panel th,.content table.panel td{vertical-align:top}

/* ---- v2 polish: page tables of contents ---- */
.content .toc{margin:.6em 0 1.4em;max-width:46em}
.content p.toc-part{
  font-family:var(--serif);font-style:italic;font-weight:400;font-size:17px;
  color:var(--navy);margin:1em 0 .3em;line-height:1.4;max-width:none
}
.content .toc > p.toc-part:first-child{margin-top:.15em}
.content p.toc-part a{
  font-family:var(--serif);font-style:italic;font-weight:700;color:var(--navy);
  text-decoration:underline
}
.content ul.toc-list{list-style:disc;margin:.15em 0 .7em 1.35em;padding:0;max-width:46em}
.content ul.toc-list ul{list-style:circle;margin:.12em 0 .2em 1.25em}
.content ul.toc-list ul ul{list-style:square}
.content ul.toc-list li{margin:.12em 0;line-height:1.45;font-weight:400}
.content ul.toc-list li.toc-group{font-weight:700}

/* ---- v2 polish: explanatory text boxes / panel tables ---- */
.content .box{
  border:1px solid var(--navy);background:#fff;padding:.85rem 1.05rem;
  margin:.9em 0;text-align:left;color:#111;font-weight:400;max-width:52em
}
.content .box.center-block{
  margin-left:auto;margin-right:auto;width:auto;max-width:46em
}
.content .box.float-left,.content .box.float-right{max-width:50%}
.content .box p,.content .box .flow-block,.content .box .flow-cell,.content .box div{text-align:left}
.content .box-caption{
  background:var(--navy);color:#fff;font:700 15px/1.35 var(--sans);font-style:normal;
  margin:-.85rem -1.05rem .75rem;padding:.5em .85em;text-align:left
}
.content .box-caption *{color:inherit;font:inherit}
.content .box .flow-row{gap:.6rem 1.2rem;margin:.35em 0}
.content table.explainer{width:100%;max-width:46em}
.content table.explainer td,.content table.explainer th{text-align:left;vertical-align:top}
.content table.explainer td.num{text-align:right}
.content table.panel td.prose,.content table.data td.prose,
.content table.panel p.prose,.content table.data p.prose{text-align:left}

/* ---- click to enlarge (CSS :target lightbox, no JS) ---- */
a.zoomable{cursor:zoom-in;color:inherit;text-decoration:none}
a.zoomable img{cursor:zoom-in;vertical-align:middle;transition:box-shadow .15s ease, outline-color .15s ease, opacity .15s ease;outline:1px solid transparent}
a.zoomable:hover img,a.zoomable:focus img{outline:1px solid var(--navy);box-shadow:0 0 0 3px rgba(31,58,104,.22);opacity:.97}
.lightbox{display:none}
.lightbox:target{display:block;position:fixed;inset:0;z-index:4000;background:rgba(20,25,32,.88);overflow:auto;padding:2rem 1rem;text-align:center}
.lightbox:target .lightbox-inner{display:inline-block;margin:0 auto}
.lightbox:target img{width:auto;height:auto;max-width:none;max-height:none;vertical-align:middle;box-shadow:0 0 28px rgba(0,0,0,.6);cursor:zoom-out;background:#e9e9e9}
.lightbox-close{position:sticky;top:.6rem;float:right;margin:0 .4rem 1rem 1rem;padding:.3rem .7rem;background:#fff;color:var(--navy);font:700 14px/1.2 var(--sans);text-decoration:none;border:1px solid var(--navy);border-radius:2px}
.lightbox-close::after{content:"Close"}
.lightbox-close:hover,.lightbox-close:focus{background:var(--navy);color:#fff}

/* generated from the <font> tags found in the original pages */
.fc-000000{color:#000000}
.fc-0000ff{color:#0000ff}
.fc-ff0000{color:#ff0000}
.fs-1{font-size:.8em}
.fs-2{font-size:1em}
.fs-3{font-size:1.2em}
.fs-5{font-size:1.8em}
.ff-serif{font-family:'Libre Baskerville',Georgia,'Times New Roman',serif}.ff-sans{font-family:Lato,Arial,Helvetica,sans-serif}.ff-mono{font-family:'Courier New',Courier,monospace}
