/* Fourth Form History theme: "The Archive".
   Loaded by `subjectTheme: history-archive`; body gets .theme-history-archive.
   Layout comes from fourth-form.css; this file re-colours it and styles the History-only widgets.
   Paper #F7F3EA, archive red-brown #8C2F1B, ink navy #1B2A49. Part colours: one #2F6F73 (teal),
   two #8A5A12 (amber, darkened from #B7791F for AA text contrast), three #6B3A5B (plum).
   No symbols of any regime are used anywhere. */

body.theme-history-archive{background:#F7F3EA}
body.theme-history-archive .ff{
  --navy:#1B2A49;--ink:#1B2A49;--blue:#8C2F1B;--blue-l:#F6E9E4;--purple:#6B3A5B;--purple-l:#F3E8EF;--muted:#5A5446;--line:#DDD3BF;
  --bg:transparent;--card:#fff;--c:#8C2F1B;--cl:#F6E9E4;
  --p1:#2F6F73;--p1l:#E4F1F1;--p2:#8A5A12;--p2l:#FBF0DC;--p3:#6B3A5B;--p3l:#F3E8EF;
  background:
    repeating-linear-gradient(180deg,transparent 0 31px,rgba(140,47,27,.045) 31px 32px),
    #F7F3EA;
}
body.theme-history-archive .ff a{color:#8C2F1B}
body.theme-history-archive .ff :focus-visible{outline-color:#1E73FF}
body.theme-history-archive .ff .btn:hover{box-shadow:0 4px 12px rgba(140,47,27,.25)}

/* Index-card look */
body.theme-history-archive .ff .card,
body.theme-history-archive .ff .lcard,
body.theme-history-archive .ff-hub .tile,
body.theme-history-archive .ff-hub .r4,
body.theme-history-archive .ff-hub .re,
body.theme-history-archive .ff-hub .fact{border:1px solid #CFC3AA;border-radius:6px 14px 14px 14px;box-shadow:0 1px 0 #E8DFCB,0 4px 14px rgba(27,42,73,.06)}

/* Stamped labels */

/* ---------- Ribbon ---------- */
.fh-ribbon{background:#1B2A49;color:#fff;border-bottom:3px solid #8C2F1B}
.fh-ribbon .in{max-width:1180px;margin:0 auto;padding:10px 16px 8px}
.fh-ribbon .rb-band{position:relative;height:46px;margin:0 6px}
.fh-ribbon .rb-reg{position:absolute;top:0;height:22px;display:flex;align-items:center;justify-content:center;font-size:.72rem;overflow:hidden;white-space:nowrap;border-radius:3px}
.fh-ribbon .rb-reg b{font-weight:700;letter-spacing:.04em;padding:0 4px;overflow:hidden;text-overflow:ellipsis}
.fh-ribbon .rb-reg.r0{background:#2F6F73}.fh-ribbon .rb-reg.r1{background:#8A5A12}.fh-ribbon .rb-reg.r2{background:#6B3A5B}
.fh-ribbon .rb-hl{position:absolute;top:-3px;height:28px;border:2.5px solid #FFD27A;border-radius:5px;box-shadow:0 0 0 2px rgba(255,210,122,.25);pointer-events:none}
.fh-ribbon .rb-tick{position:absolute;top:24px;transform:translateX(-50%);font-size:.66rem;color:#D9D2C2}
.fh-ribbon .rb-tick i{display:block;width:1px;height:4px;background:#D9D2C2;margin:0 auto 1px}
.fh-ribbon .rb-topics{display:flex;gap:10px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:thin}
.fh-ribbon .rb-part{display:flex;gap:4px;align-items:stretch;flex:1 0 auto}
.fh-ribbon .rb-pn{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.fh-ribbon .rb-part a{flex:1 0 auto;display:flex;flex-direction:column;gap:0;min-width:84px;max-width:170px;padding:3px 8px;border-radius:4px;text-decoration:none;color:#fff;font-size:.72rem;line-height:1.2;border-top:3px solid;background:rgba(255,255,255,.06)}
.fh-ribbon .rb-part.p1 a{border-color:#5FA4A8}.fh-ribbon .rb-part.p2 a{border-color:#D9A048}.fh-ribbon .rb-part.p3 a{border-color:#B57A9F}
.fh-ribbon .rb-part a b{font-size:.8rem}
.fh-ribbon .rb-part a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}
.fh-ribbon .rb-part a:hover,.fh-ribbon .rb-part a:focus-visible{background:rgba(255,255,255,.16)}
.fh-ribbon .rb-part a[aria-current="page"]{background:#F7F3EA;color:#1B2A49}
.fh-ribbon a:focus-visible{outline:3px solid #FFD27A;outline-offset:1px}
.fh-ribbon .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- Topic header ---------- */
.ff .ff-top.hist{background:linear-gradient(120deg,#1B2A49 0%,#2A3B5F 100%)}
.ff .ff-top.hist.p1{background:linear-gradient(120deg,#1B2A49 0%,#1E4B52 100%)}
.ff .ff-top.hist.p2{background:linear-gradient(120deg,#1B2A49 0%,#5A3F17 100%)}
.ff .ff-top.hist.p3{background:linear-gradient(120deg,#1B2A49 0%,#4A2742 100%)}
.ff .ff-top.hist .ff-top-ic{color:#F7F3EA;border-radius:6px 16px 16px 16px}
.ff .ff-top.hist .crumbs a{color:#FFD9CC}
body.theme-history-archive .ff-tabs{background:#FFFDF8}

/* ---------- Learn cards ---------- */
.ff .lcard.big{background:linear-gradient(180deg,#FFF8EC,#fff 70%);border:2px solid #8C2F1B}
.ff .lcard.sens .lvis{filter:saturate(.6)}

/* ---------- Checklist and People ---------- */
.ff .people{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:14px}
.ff .person{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #CFC3AA;border-radius:6px 14px 14px 14px;padding:18px 20px;line-height:1.5}
.ff .person-h{display:flex;gap:14px;align-items:center}
.ff .person-h h3{margin:0;font-size:1.15rem;line-height:1.25}
.ff .person-h .dates{margin:2px 0 0;font-size:.85rem;color:#5A5446;font-weight:700}
.ff .person .role{margin:4px 0 0;font-weight:700;color:#1B2A49}
.ff .person ul{margin:0;padding-left:20px;font-size:.95rem}
.ff .person ul li{margin:3px 0}
.ff .person .why{background:#FBF8F1;border-left:4px solid #8C2F1B;border-radius:0 8px 8px 0;padding:8px 12px}
.ff .person .why p{margin:6px 0 0;font-size:.95rem}
.ff .person-t{margin:4px 0 0;padding-top:8px;border-top:1px solid #EEE6D6}
.ff .mono{flex:none;display:inline-grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#1B2A49;color:#F7F3EA;font-weight:700;font-size:1.2rem;letter-spacing:.04em;border:3px double #F7F3EA;box-shadow:0 0 0 2px #1B2A49}
.ff .mono.sm{width:34px;height:34px;font-size:.78rem;border-width:2px}

/* ---------- Exam: interpretations and model answers ---------- */
.ff .interps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;margin:10px 0 14px}
.ff .interp{margin:0;background:#FBF8F1;border:1px solid #CFC3AA;border-radius:4px 12px 12px 12px;padding:14px}
.ff .interp figcaption{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.ff .interp .prov{font-size:.85rem;color:#5A5446;font-style:italic}
.ff .interp blockquote{margin:0;padding:10px 12px;background:#fff;border-left:4px solid #8C2F1B;font-family:Georgia,"Times New Roman",serif;font-size:1rem;line-height:1.6}

/* ---------- Walk-throughs ---------- */
/* ---------- Hub ---------- */
.ff-hub.fh .hub-hero,.ff-hub .fh-hero{background:
  radial-gradient(circle at 88% 15%,rgba(140,47,27,.55) 0%,transparent 42%),
  repeating-linear-gradient(90deg,transparent 0 79px,rgba(255,255,255,.035) 79px 80px),
  linear-gradient(125deg,#1B2A49 0%,#22345C 60%,#2E2A4A 100%)}
.ff-hub .fh-sub{font-size:.95rem !important;text-transform:uppercase;letter-spacing:.08em;opacity:.8 !important;margin:0 0 8px !important}
.ff-hub .fh-hero .ghost-w{color:#fff}
.ff-hub .fh-card-stack{position:relative;height:190px}
.ff-hub .fh-card-stack span{position:absolute;width:150px;height:96px;background:#F7F3EA;color:#1B2A49;border-radius:4px 12px 12px 12px;box-shadow:0 8px 20px rgba(0,0,0,.25);display:grid;place-items:center;font-size:1.8rem;font-weight:700;border-top:10px solid #8C2F1B}
.ff-hub .fh-card-stack span:nth-child(1){left:0;top:10px;transform:rotate(-8deg);border-top-color:#2F6F73}
.ff-hub .fh-card-stack span:nth-child(2){left:60px;top:40px;transform:rotate(-2deg);border-top-color:#8A5A12}
.ff-hub .fh-card-stack span:nth-child(3){left:120px;top:20px;transform:rotate(5deg);border-top-color:#6B3A5B}
.ff-hub .fh-card-stack span:nth-child(4){left:80px;top:90px;transform:rotate(-4deg)}
@media (max-width:820px){.ff-hub .fh-card-stack{display:none}}
.ff-hub .fh-qtable{margin-top:22px}
.ff-hub .qt{display:grid;gap:6px}
.ff-hub .qt-r{display:grid;grid-template-columns:46px 1fr 90px 1fr;gap:10px;align-items:center;padding:9px 12px;border:1px solid #DDD3BF;border-radius:8px;background:#FBF8F1;text-decoration:none;color:#1B2A49}
.ff-hub .qt-r:hover{background:#F6E9E4}
.ff-hub .qt-n{font-weight:700;font-size:1.1rem;color:#8C2F1B}
.ff-hub .qt-m{font-size:.9rem}.ff-hub .qt-a{font-size:.85rem;color:#5A5446}
@media (max-width:700px){.ff-hub .qt-r{grid-template-columns:42px 1fr 70px}.ff-hub .qt-a{display:none}}
.ff-hub .route8{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
body.theme-history-archive .ff-hub .band-route{background:#1B2A49;color:#fff;border:0}
body.theme-history-archive .ff-hub .band-route h2{color:#fff}
body.theme-history-archive .ff-hub .band-route{background:linear-gradient(120deg,#1B2A49 0%,#2A3B5F 60%,#5B2A1E 100%)}
body.theme-history-archive .ff-hub .band-route .r4{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);box-shadow:none;border-radius:4px 12px 12px 12px}
body.theme-history-archive .ff-hub .band-route .r4 .tile-ic{color:#FFD9CC}
body.theme-history-archive .ff-hub .band-plan{background:linear-gradient(120deg,#F6E9E4 0%,#FBF0DC 100%);border:1px solid #E8D5C4}
body.theme-history-archive .ff-hub .band-plan h2 svg{color:#8C2F1B}
.ff-hub .fh-part{margin:0 0 22px;padding:16px;border-radius:6px 16px 16px 16px;border-left:8px solid}
.ff-hub .fh-part h3{margin:0 0 12px;font-size:1.2rem}
.ff-hub .fh-part.p1{background:#E4F1F1;border-color:#2F6F73}.ff-hub .fh-part.p1 .stamp{color:#2F6F73}
.ff-hub .fh-part.p2{background:#FBF0DC;border-color:#8A5A12}.ff-hub .fh-part.p2 .stamp{color:#8A5A12}
.ff-hub .fh-part.p3{background:#F3E8EF;border-color:#6B3A5B}.ff-hub .fh-part.p3 .stamp{color:#6B3A5B}
.ff-hub .fh-tile.p1{--tc:#2F6F73;--tl:#E4F1F1}.ff-hub .fh-tile.p2{--tc:#8A5A12;--tl:#FBF0DC}.ff-hub .fh-tile.p3{--tc:#6B3A5B;--tl:#F3E8EF}
.ff-hub .fh-tile .tile-main{position:relative;border-top-width:0;padding-top:30px}
.ff-hub .fh-tile .tab-code{position:absolute;top:0;left:14px;background:var(--tc);color:#fff;font-weight:700;font-size:.78rem;padding:3px 12px 4px;border-radius:0 0 8px 8px;letter-spacing:.06em}
.ff-hub .fh-tile .pages{grid-column:2;font-size:.78rem;color:#5A5446;margin-top:4px}
.ff-hub .fh-tile .tile-go{grid-template-columns:repeat(4,1fr)}
.ff-hub .heat{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:12px}
.ff-hub .hm{padding:10px;border-radius:6px 12px 12px 12px;color:#1B2A49;position:relative;overflow:hidden;border:1px solid #DDD3BF;background:#fff}
.ff-hub .hm::before{content:"";position:absolute;inset:0;opacity:var(--k);z-index:0}
.ff-hub .hm.p1::before{background:#9CCBCD}.ff-hub .hm.p2::before{background:#E9C07A}.ff-hub .hm.p3::before{background:#CFA3C0}
.ff-hub .hm > *{position:relative;z-index:1;display:block}
.ff-hub .hm b{font-size:1.1rem}.ff-hub .hm span{font-size:.82rem;line-height:1.3}.ff-hub .hm em{font-style:normal;font-weight:700;font-size:.82rem;margin-top:4px}
.ff-hub .heat-d summary{cursor:pointer;font-weight:700;color:#8C2F1B}
.ff-hub .hc{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.ff-hub .hp{font-size:.7rem;font-weight:700;color:#fff;border-radius:4px;padding:0 5px}
.ff-hub .hp.p1{background:#2F6F73}.ff-hub .hp.p2{background:#8A5A12}.ff-hub .hp.p3{background:#6B3A5B}
.ff-hub .vis-table table{width:100%;border-collapse:collapse;font-size:.88rem}
.ff-hub .vis-table td,.ff-hub .vis-table th{border:1px solid #DDD3BF;padding:6px 8px;vertical-align:top;text-align:left}
.ff-hub .vis-table{overflow-x:auto}

/* ---------- Exam skills ---------- */
/* ---------- Timeline page ---------- */
.ff .tl-strip{overflow-x:auto}
.ff .tl-axis{position:relative;height:24px;margin-left:86px;min-width:520px}
.ff .tl-axis .rb-reg{position:absolute;top:0;height:22px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.72rem;border-radius:3px;overflow:hidden;white-space:nowrap}
.ff .tl-axis .rb-reg.r0{background:#2F6F73}.ff .tl-axis .rb-reg.r1{background:#8A5A12}.ff .tl-axis .rb-reg.r2{background:#6B3A5B}
.ff .tl-lane{display:grid;grid-template-columns:80px 1fr;gap:6px;align-items:center;margin-top:6px;min-width:606px}
.ff .tl-ln{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.ff .tl-lane.p1 .tl-ln{color:#2F6F73}.ff .tl-lane.p2 .tl-ln{color:#8A5A12}.ff .tl-lane.p3 .tl-ln{color:#6B3A5B}
.ff .tl-track{position:relative;height:30px;background:#FBF8F1;border:1px solid #DDD3BF;border-radius:6px}
.ff .tl-dot{position:absolute;top:7px;width:14px;height:14px;margin-left:-7px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #1B2A49}
.ff .c-political{background:#8C2F1B}.ff .c-economic{background:#8A5A12}.ff .c-social{background:#2F6F73}.ff .c-international{background:#1B2A49}
.ff .tl-years{position:relative;height:20px;margin-left:86px;min-width:520px;font-size:.72rem;color:#5A5446}
.ff .tl-years span{position:absolute;transform:translateX(-50%)}
.ff .tl-part h2{font-size:1.2rem}
.ff .tl-ol{list-style:none;padding:0;margin:0}
.ff .tl-ol li{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:10px 0;border-top:1px solid #EEE6D6}
@media (max-width:560px){.ff .tl-ol li{grid-template-columns:1fr;gap:2px}}
.ff .tl-date{font-weight:700;color:#8C2F1B}
.ff .tl-cat{display:inline-block;margin-left:8px;font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#fff;border-radius:3px;padding:0 5px;vertical-align:2px}
.ff .gl{margin:0;display:grid;gap:0}
.ff .gl > div{display:grid;grid-template-columns:220px 1fr;gap:12px;padding:8px 0;border-top:1px solid #EEE6D6}
@media (max-width:560px){.ff .gl > div{grid-template-columns:1fr;gap:2px}}
.ff .gl dt{font-weight:700;color:#1B2A49}
.ff .gl dd{margin:0}
.ff .gl-d{border:0;background:none;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
.ff .gl-d[aria-pressed="false"] span{color:transparent;background:repeating-linear-gradient(135deg,#E8DFCB 0 6px,#F1EADB 6px 12px);border-radius:4px}

@media (prefers-reduced-motion: reduce){
  .ff .hs-box,.ff .br-bar i{transition:none}
}
@media print{
  .fh-ribbon{display:none}
  body.theme-history-archive .ff{background:#fff}
}
body.theme-history-archive .ff .ff-top a.tbtn,body.theme-history-archive .ff .ff-top .tbtn{color:#fff}
body.theme-history-archive .ff .fh-hero .crumbs a,body.theme-history-archive .ff .hub-hero .crumbs a{color:#FFD9CC}
.ff .hl-s{display:inline;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:2px 4px}
.fh-ribbon .rb-topics,.fh-ribbon .rb-part{position:relative}

/* ---------- Past papers (reuses the Sixth Form sit-a-paper styles under .u6) ---------- */
body.theme-history-archive .u6.fh-sap{--navy:#1B2A49;--navy-2:#2A3B5F;--accent:#8C2F1B;--accent-soft:#F6E9E4;--accent-ink:#6E2414;--paper:#fff;--line:#DDD3BF;--ink:#1B2A49;--muted:#5A5446;font-family:Arial,Helvetica,sans-serif}
body.theme-history-archive .u6.fh-sap .sap-title,body.theme-history-archive .u6.fh-sap .sap-h2,body.theme-history-archive .u6.fh-sap .sap-meta-val,body.theme-history-archive .u6.fh-sap .sap-paper-title{font-family:Arial,Helvetica,sans-serif;font-weight:700;color:#1B2A49}
body.theme-history-archive .u6.fh-sap .sap-series,body.theme-history-archive .u6.fh-sap .sap-paper-series,body.theme-history-archive .u6.fh-sap .sap-timer-time{font-family:Arial,Helvetica,sans-serif}
body.theme-history-archive .u6.fh-sap .sap-crumb{color:#8C2F1B;font-weight:700}
body.theme-history-archive .u6.fh-sap .sap-paper-card,body.theme-history-archive .u6.fh-sap .sap-meta{border-radius:6px 14px 14px 14px;border-color:#CFC3AA}
.ff .fh-sap{margin-top:8px}
.fh-paper-topics{list-style:none;padding:0;margin:8px 0;font-size:.85rem;color:#5A5446;display:grid;gap:2px}
.fh-paper-topics b{color:#8C2F1B;margin-right:4px}
.fh-doc-switch{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.fh-doc-switch .btn.is-on{background:#8C2F1B !important;color:#fff !important;border-color:#8C2F1B !important}
.fh-doc-open{font-size:.85rem;color:#8C2F1B;margin-left:auto}
.fh-mark-tip{margin:12px 0}
.ff .fh-paper-topics,.fh-paper-topics{padding-left:0 !important;margin:10px 0}
body.theme-history-archive .u6.fh-sap .sap-tag{font-family:Arial,Helvetica,sans-serif}
.ff .mono.photo{width:88px;height:88px;object-fit:cover;border:3px solid #fff;box-shadow:0 0 0 2px #1B2A49;background:#E8DFCB;filter:grayscale(1) contrast(1.05)}
.ff .credits summary{display:flex;justify-content:space-between;cursor:pointer;list-style:none}
.ff .credits summary::-webkit-details-marker{display:none}
.ff .credits ul{padding-left:18px;columns:2 280px;column-gap:28px}
.ff .credits li{break-inside:avoid;margin:3px 0}
.ff .people + .credits{margin-top:18px}
.ff .person-h span.mono{width:88px;height:88px;font-size:1.5rem}

/* ======================================================================
   Unit 2: Conflict and tension, 1918 to 1939 (map-room variant).
   Diplomatic blue #1F4E79 replaces the archive red-brown as the accent. Part colours:
   one #5B6B2F (olive), two #3D5A80 (slate blue), three #9B2335 (crimson); all pass WCAG AA
   as text on white and on the paper background, and white text passes on all three.
   ====================================================================== */
body.theme-history-archive .unit-ct.ff,body.theme-history-archive .unit-ct .ff{
  --blue:#1F4E79;--blue-l:#E4ECF4;--c:#1F4E79;--cl:#E4ECF4;--acc:#1F4E79;--acc-l:#DCE7F2;
  --p1:#5B6B2F;--p1l:#EEF1E2;--p2:#3D5A80;--p2l:#E6ECF4;--p3:#9B2335;--p3l:#F7E6E9;
  background:repeating-linear-gradient(180deg,transparent 0 31px,rgba(31,78,121,.05) 31px 32px),#F7F3EA}
body.theme-history-archive .unit-ct.ff a:not(.btn):not(.us):not(.glance-u):not(.tbtn),body.theme-history-archive .unit-ct .ff a:not(.btn):not(.us):not(.glance-u):not(.tbtn){color:#1F4E79}
body.theme-history-archive .unit-ct .ff .ff-top a:not(.tbtn){color:#CFE0F2}
.fh-ribbon.unit-ct{border-bottom-color:#1F4E79;background:#1B2A49 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath d='M20 50 C30 30 50 34 60 22 S90 10 100 18 S130 8 150 16 S180 30 190 40' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3Cpath d='M70 58 C80 44 96 46 110 38 S140 36 160 52' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E") center/cover no-repeat}
.fh-ribbon.unit-ct .rb-reg.r0{background:#5B6B2F}.fh-ribbon.unit-ct .rb-reg.r1{background:#3D5A80}.fh-ribbon.unit-ct .rb-reg.r2{background:#9B2335}
.fh-ribbon.unit-ct .rb-part.p1 a{border-color:#A7B66E}.fh-ribbon.unit-ct .rb-part.p2 a{border-color:#8FB0D6}.fh-ribbon.unit-ct .rb-part.p3 a{border-color:#E08A99}
.unit-ct .ff-top.hist{background:linear-gradient(120deg,#1B2A49 0%,#1F4E79 100%)}
.unit-ct .ff-top.hist.p1{background:linear-gradient(120deg,#1B2A49 0%,#3E4A1F 100%)}
.unit-ct .ff-top.hist.p2{background:linear-gradient(120deg,#1B2A49 0%,#2C4566 100%)}
.unit-ct .ff-top.hist.p3{background:linear-gradient(120deg,#1B2A49 0%,#6E1826 100%)}
.unit-ct .ff-top.hist .crumbs a,body.theme-history-archive .unit-ct .ff .hub-hero .crumbs a,body.theme-history-archive .unit-ct .ff .fh-hero .crumbs a{color:#CFE0F2}
.unit-ct .ff-hub.fh .hub-hero,.unit-ct .ff-hub .fh-hero,.unit-ct.ff-hub .fh-hero{background:
  radial-gradient(circle at 88% 15%,rgba(31,78,121,.75) 0%,transparent 45%),
  repeating-linear-gradient(90deg,transparent 0 79px,rgba(255,255,255,.035) 79px 80px),
  linear-gradient(125deg,#1B2A49 0%,#1D3557 60%,#1F4E79 100%)}
.unit-ct .fh-part.p1{background:#EEF1E2;border-color:#5B6B2F}.unit-ct .fh-part.p1 .stamp{color:#5B6B2F}
.unit-ct .fh-part.p2{background:#E6ECF4;border-color:#3D5A80}.unit-ct .fh-part.p2 .stamp{color:#3D5A80}
.unit-ct .fh-part.p3{background:#F7E6E9;border-color:#9B2335}.unit-ct .fh-part.p3 .stamp{color:#9B2335}
.unit-ct .fh-tile.p1{--tc:#5B6B2F;--tl:#EEF1E2}.unit-ct .fh-tile.p2{--tc:#3D5A80;--tl:#E6ECF4}.unit-ct .fh-tile.p3{--tc:#9B2335;--tl:#F7E6E9}
.unit-ct .hm.p1::before{background:#B9C58F}.unit-ct .hm.p2::before{background:#A6BCD8}.unit-ct .hm.p3::before{background:#E3A6B1}
.unit-ct .hp.p1{background:#5B6B2F}.unit-ct .hp.p2{background:#3D5A80}.unit-ct .hp.p3{background:#9B2335}
.unit-ct .tl-axis .rb-reg.r0{background:#5B6B2F}.unit-ct .tl-axis .rb-reg.r1{background:#3D5A80}.unit-ct .tl-axis .rb-reg.r2{background:#9B2335}
.unit-ct .tl-lane.p1 .tl-ln{color:#5B6B2F}.unit-ct .tl-lane.p2 .tl-ln{color:#3D5A80}.unit-ct .tl-lane.p3 .tl-ln{color:#9B2335}
.unit-ct .tl-date{color:#1F4E79}
.ff .c-treaty{background:#5B6B2F}.ff .c-league{background:#3D5A80}.ff .c-crisis{background:#9B2335}.ff .c-hitler{background:#1B2A49}
.unit-ct .interp blockquote{border-left-color:#1F4E79}

/* Unit switcher and Paper 1 at a glance */
.unit-switch{background:#FFFDF8;border-bottom:1px solid #DDD3BF}
.unit-switch .in{max-width:1180px;margin:0 auto;padding:10px 16px;display:flex;gap:10px;flex-wrap:wrap}
.unit-switch .us{flex:1 1 240px;display:flex;flex-direction:column;padding:8px 14px;border:2px solid #DDD3BF;border-radius:6px 14px 14px 14px;text-decoration:none;color:#1B2A49;background:#fff}
.unit-switch .us b{font-size:1rem}
.us-k{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.unit-switch .us.u-de .us-k{color:#8C2F1B}.unit-switch .us.u-ct .us-k{color:#1F4E79}
.unit-switch .us.u-de[aria-current="page"]{border-color:#8C2F1B;background:#F6E9E4}
.unit-switch .us.u-ct[aria-current="page"]{border-color:#1F4E79;background:#E4ECF4}
.unit-switch .us:hover,.unit-switch .us:focus-visible{border-color:#1B2A49}
.ff .glance .glance-u{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:2px solid #DDD3BF;border-radius:6px 14px 14px 14px;text-decoration:none;color:#1B2A49;background:#fff}
.ff .glance .glance-u.u-de{border-color:#8C2F1B}.ff .glance .glance-u.u-ct{border-color:#1F4E79}
.ff .glance .glance-u.u-de .us-k{color:#8C2F1B}.ff .glance .glance-u.u-ct .us-k{color:#1F4E79}
.ff .glance-f{font-size:.85rem;color:#5A5446}
.ff .glance-bar{display:flex;height:10px;border-radius:5px;background:#EEE6D6;overflow:hidden;margin-top:6px}
.ff .glance-bar i{display:block;height:100%}.ff .glance-bar i.g{background:#2F7A45}.ff .glance-bar i.a{background:#C98A1B}.ff .glance-bar i.r{background:#B42318}
.ff .fh-callout{border-left:4px solid #1F4E79}
.ff .fh-timing{display:flex;gap:3px;margin:12px 0 4px;min-width:0}
.ff .fh-timing span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:6px 2px;background:#E4ECF4;border-radius:4px;font-size:.75rem;color:#1B2A49;text-align:center}
.ff .fh-timing span:first-child{background:#EEE6D6}
.ff .fh-timing b{font-size:.8rem}

/* Learn-card extras */
.ff .ct-stamp{display:inline-block;align-self:flex-start;margin:0 0 4px;padding:2px 8px;border:2px solid #9B2335;color:#9B2335;font-size:.7rem;font-weight:700;letter-spacing:.12em;border-radius:3px;transform:rotate(-2deg);background:#fff}
.ff .box.verdict{border-left:4px solid #3D5A80;background:#E6ECF4}
.ff .box.verdict.v-success{border-left-color:#2F7A45;background:#E6F3EA}.ff .box.verdict.v-failure{border-left-color:#B42318;background:#FCE9E7}.ff .box.verdict.v-mixed{border-left-color:#C98A1B;background:#FBF0DC}
.ff .box.gerlink{border-left:4px solid #8C2F1B;background:#F6E9E4}
.ff .box.gerlink .stamp{color:#8C2F1B}
.ff .box.blame{border-left:4px solid #1B2A49;background:#F1EEE6}
.ff .box.blame ul{margin:6px 0 10px;padding-left:18px}
.ff .bf{display:inline-block;font-size:.7rem;font-weight:700;color:#fff;background:#1B2A49;border-radius:3px;padding:0 5px;margin-right:4px}
.ff .bf-hitler{background:#9B2335}.ff .bf-stalin{background:#6B3A5B}.ff .bf-chamberlain{background:#1F4E79}.ff .bf-versailles{background:#5B6B2F}.ff .bf-league{background:#3D5A80}.ff .bf-depression{background:#8A5A12}
.ff .lcard.is-target{box-shadow:0 0 0 4px #FFD27A}

/* Sources and practice cartoons */
.ff .interp.is-cartoon{grid-column:1/-1}
.ff .cartoon{background:#fff;border:1px solid #CFC3AA;padding:6px}
.ff .cartoon svg{max-width:640px;margin:0 auto}
.ff .cartoon-cap{margin:6px 0 0;text-align:center;font-family:Georgia,"Times New Roman",serif;font-style:italic}
.ff .cartoon-t{text-align:center;margin:2px 0 0}

/* NOP analyser and other trainer tools */
.ff .nop-nature{background:#DCE7F2}.ff .nop-origin{background:#EEF1E2}.ff .nop-purpose{background:#F7E6E9}.ff .nop-content{background:#FBF0DC}
.ff .hl-s.nop-nature{background:#DCE7F2}.ff .hl-s.nop-origin{background:#EEF1E2}.ff .hl-s.nop-purpose{background:#F7E6E9}.ff .hl-s.nop-content{background:#FBF0DC}
.ff .nop-eff{display:grid;gap:6px}.ff .nop-eff > div{padding:8px 10px;border-radius:6px}
.ff .chain .ch-card{display:flex;gap:8px;align-items:baseline;padding:8px 10px;background:#fff;border:1.5px solid #1F4E79;border-radius:8px;margin-top:8px}
.ff .chain .ch-n{font-weight:700;color:#1F4E79}
.ff .chain .ch-link{margin:6px 0 0 22px;padding-left:12px;border-left:3px dashed #1F4E79}
.ff .sw-err{padding-left:20px}.ff .sw-err li{margin-bottom:10px}

/* Interactives */
.ff .bt-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px;margin-bottom:12px}
.ff .bt-seat{border:2px solid var(--c);border-radius:6px 12px 12px 12px;background:#fff;overflow:hidden}
.ff .bt-seat .so-h{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.ff .bt-seat .so-in{min-height:40px}
.ff .bt-out{display:block;font-size:.72rem;font-weight:700;margin-top:3px}
.ff .bt-out.o-in{color:#2F7A45}.ff .bt-out.o-partly{color:#8A5A12}.ff .bt-out.o-out{color:#B42318}
.ff .meter{padding:8px 10px;border-top:1px solid #EEE6D6}
.ff .meter-f{display:block;height:12px;border-radius:6px;background:#EEE6D6;overflow:hidden}
.ff .meter-f i{display:block;height:100%;width:0;background:#1F4E79;transition:width .6s}
.ff .sc-list{padding-left:20px}.ff .sc-list li{display:grid;gap:4px;padding:8px 0;border-top:1px solid #EEE6D6}
.ff .sc-fb .ok{color:#2F7A45;font-weight:700}.ff .sc-fb .no{color:#B42318;font-weight:700}
.ff .ctmap{background:#fff;border:1px solid #CFC3AA;border-radius:6px;overflow:hidden}
.ff .ctmap svg{display:block;width:100%;height:auto}
.ff .map-btns{margin-top:8px}
.ff .map-info .swatch{display:inline-block;width:12px;height:12px;border:1px solid #9C927C;vertical-align:-1px}
.ff .lg-build{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:10px;margin-bottom:12px}
.ff .lg-build .so-h{width:100%;display:flex;flex-direction:column;align-items:flex-start}
.ff .wk-spot{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.ff .so-why li.ok{color:#1E5C33}.ff .so-why li.no{color:#8F1D14}
.ff .cases{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
.ff .case h4{margin:4px 0}.ff .case ul{padding-left:18px;margin:6px 0 10px}
.ff .tally .tl-s{color:#2F7A45;font-weight:700}.ff .tally .tl-m{color:#8A5A12;font-weight:700}.ff .tally .tl-f{color:#B42318;font-weight:700}
.ff .ladder{display:grid;gap:6px;margin:10px 0}
.ff .rung{display:flex;gap:10px;align-items:flex-start;padding:10px;border:2px solid #DDD3BF;border-radius:8px;background:#fff}
.ff .rung.on{border-color:#1F4E79;background:#E4ECF4}.ff .rung.stop{border-color:#B42318;border-style:dashed}
.ff .rung-n{font-weight:700;min-width:26px;height:26px;border-radius:50%;background:#1B2A49;color:#fff;display:flex;align-items:center;justify-content:center}
.ff .rung small{display:block;color:#5A5446}.ff .rung p{margin:6px 0 0}.ff .stop-t{color:#B42318;font-weight:700}
.ff .mb{display:grid;gap:4px;margin:10px 0;overflow-x:auto}
.ff .mb-row{display:grid;grid-template-columns:76px minmax(180px,1fr) 84px;gap:8px;align-items:center;font-size:.85rem}
.ff .mb-n{font-weight:700}.ff .mb-s{font-size:.75rem;color:#5A5446}.ff .mb-row.in .mb-s{color:#1E5C33;font-weight:700}
.ff .mb-track{position:relative;height:18px;background:#FBF8F1;border:1px solid #DDD3BF;border-radius:4px}
.ff .mb-bar{position:absolute;top:2px;bottom:2px;background:#3D5A80;border-radius:3px}
.ff .mb-never{position:absolute;inset:0;display:flex;align-items:center;padding-left:6px;font-size:.72rem;color:#5A5446;font-style:italic}
.ff .mb-axis .mb-track{background:none;border:0}
.ff .mb-c{position:absolute;top:3px;width:12px;height:12px;margin-left:-6px;background:#DDD3BF;transform:rotate(45deg)}.ff .mb-c.on{background:#9B2335}
.ff .sm-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px;margin-top:8px}
@media (max-width:760px){.ff .sm-grid{grid-template-columns:1fr}}
.ff .risk{display:flex;gap:10px;align-items:center}
.ff .jg-row{display:grid;grid-template-columns:1fr 2fr 1fr;gap:8px;align-items:center;font-size:.82rem;margin:8px 0}
.ff .jg-row span:last-child{text-align:right}
@media (max-width:560px){.ff .jg-row{grid-template-columns:1fr}.ff .jg-row span:last-child{text-align:left}}
.ff .bl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px;margin:10px 0}
.ff .bl-f h4{margin:0 0 6px}.ff .bl-f ul{padding-left:18px}
.ff .bl-n{min-width:80px;text-align:center}
.ff .bl-left{font-size:.95rem}

/* People and Glossary: unit tags */
.ff .unit-chips{margin-top:8px}
.ff .unit-tags{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0}
.ff .utag{font-size:.68rem;font-weight:700;letter-spacing:.04em;padding:1px 6px;border-radius:3px;color:#fff}
.ff .utag.u-de{background:#8C2F1B}.ff .utag.u-ct{background:#1F4E79}

/* Study Zone groups */
.ff .pick .pick-g{grid-column:1/-1;flex-basis:100%;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5A5446;margin-top:6px}
@media (prefers-reduced-motion: reduce){.ff .meter-f i{transition:none}}
.unit-ct figure.interp figcaption{flex-wrap:wrap;align-items:flex-start}
.unit-ct figure.interp figcaption .stamp{flex:0 0 auto;align-self:flex-start;width:auto}
.unit-ct figure.interp figcaption .prov{flex:1 1 100%}
@media (max-width:560px){.fh-ribbon .rb-minor{display:none}}
.unit-ct .ff-top .crumbs a{color:#CFE0F2!important}
.unit-ct .ctmap > p{padding:6px 10px;margin:0}
