
/* Where things sit on the month axis (line 2 is the first month) */
.yr-2003 { --a: 2; --b: 14; }
.yr-2004 { --a: 14; --b: 26; }
.yr-2005 { --a: 26; --b: 38; }
.yr-2006 { --a: 38; --b: 50; }
.yr-2007 { --a: 50; --b: 62; }
.yr-2008 { --a: 62; --b: 74; }
.yr-2009 { --a: 74; --b: 86; }
.yr-2010 { --a: 86; --b: 98; }
.yr-2011 { --a: 98; --b: 110; }
.yr-2012 { --a: 110; --b: 122; }
.yr-2013 { --a: 122; --b: 134; }
.yr-2014 { --a: 134; --b: 146; }
.yr-2015 { --a: 146; --b: 158; }
.yr-2016 { --a: 158; --b: 170; }
.yr-2017 { --a: 170; --b: 182; }
.yr-2018 { --a: 182; --b: 194; }
.yr-2019 { --a: 194; --b: 206; }
.yr-2020 { --a: 206; --b: 218; }
.yr-2021 { --a: 218; --b: 230; }
.yr-2022 { --a: 230; --b: 242; }
.yr-2023 { --a: 242; --b: 254; }
.yr-2024 { --a: 254; --b: 266; }
.yr-2025 { --a: 266; --b: 278; }
.yr-2026 { --a: 278; --b: 290; }
.pop-20110620 { --a: 103; --b: 106; --v: 42.699999999999996%; }
.pop-20120105 { --a: 110; --b: 113; --v: 7.0%; }
.pop-20150111 { --a: 146; --b: 149; --v: 16.799999999999997%; }
.pop-20160128 { --a: 158; --b: 161; --v: 10.5%; }
.pop-20170131 { --a: 170; --b: 173; --v: 70.0%; }
.pop-20180117 { --a: 182; --b: 185; --v: 21.0%; }
.pop-20180525 { --a: 186; --b: 189; --v: 10.5%; }
.pop-20200406 { --a: 209; --b: 212; --v: 2.0999999999999996%; }
.pop-20210126 { --a: 218; --b: 221; --v: 2%; }
.pop-20220518 { --a: 234; --b: 237; --v: 2.8%; }
.ev-wow { --a: 24; --b: 54; }
.ev-atlas-code { --a: 230; --b: 260; }
.ev-portal-end { --a: 242; --b: 272; }
.b-uthgard-1-0 { --a: 2; --b: 134; }
.n-uthgard-1-0 { --a: 2; --b: 3; }.b-uthgard-2-0 { --a: 162; --b: 235; }
.n-uthgard-2-0 { --a: 162; --b: 163; }.k-uthgard-1--uthgard-2 { --a: 134; --b: 162; }
.b-fallen-realms-0 { --a: 20; --b: 44; }
.n-fallen-realms-0 { --a: 20; --b: 21; }.b-dominivm-0 { --a: 103; --b: 122; }
.n-dominivm-0 { --a: 103; --b: 104; }.b-bifrost-0 { --a: 169; --b: 180; }
.n-bifrost-0 { --a: 169; --b: 170; }.b-utopia-0 { --a: 31; --b: 59; }
.n-utopia-0 { --a: 31; --b: 32; }.b-faith-0 { --a: 103; --b: 135; }
.n-faith-0 { --a: 103; --b: 104; }.b-mordred-0 { --a: 217; --b: 235; }
.n-mordred-0 { --a: 217; --b: 218; }.b-instant50-0 { --a: 38; --b: 46; }
.n-instant50-0 { --a: 38; --b: 39; }.b-eden-dol-148-0 { --a: 138; --b: 147; }
.n-eden-dol-148-0 { --a: 138; --b: 139; }.b-abyss-0 { --a: 250; --b: 253; }
.n-abyss-0 { --a: 250; --b: 251; }.b-ariadolis-0 { --a: 50; --b: 110; }
.n-ariadolis-0 { --a: 50; --b: 51; }.b-ariadolis-1 { --a: 141; --b: 144; }
.b-ariadolis-2 { --a: 250; --b: 257; }
.b-eden-2009-0 { --a: 81; --b: 206; }
.n-eden-2009-0 { --a: 81; --b: 82; }.b-brotherland-0 { --a: 103; --b: 183; }
.n-brotherland-0 { --a: 103; --b: 104; }.b-brotherland-2-0 { --a: 186; --b: 235; }
.n-brotherland-2-0 { --a: 186; --b: 187; }.k-brotherland--brotherland-2 { --a: 183; --b: 186; }
.b-heimdall-609-0 { --a: 103; --b: 105; }
.n-heimdall-609-0 { --a: 103; --b: 104; }.b-carmelide-0 { --a: 110; --b: 112; }
.n-carmelide-0 { --a: 110; --b: 111; }.b-genesis-0 { --a: 134; --b: 159; }
.n-genesis-0 { --a: 134; --b: 135; }.b-origins-0 { --a: 169; --b: 177; }
.n-origins-0 { --a: 169; --b: 170; }.b-phoenix-0 { --a: 184; --b: 226; }
.n-phoenix-0 { --a: 184; --b: 185; }.b-celestius-0 { --a: 230; --b: 235; }
.n-celestius-0 { --a: 230; --b: 231; }.b-eden-2022-0 { --a: 241; --b: 289; }
.n-eden-2022-0 { --a: 241; --b: 242; }.k-heimdall-609--carmelide { --a: 105; --b: 110; }
.k-carmelide--genesis { --a: 112; --b: 134; }
.k-genesis--origins { --a: 159; --b: 169; }
.k-origins--phoenix { --a: 177; --b: 184; }
.k-phoenix--celestius { --a: 226; --b: 230; }
.k-celestius--eden-2022 { --a: 235; --b: 241; }
.b-atlas-0 { --a: 223; --b: 235; }
.n-atlas-0 { --a: 223; --b: 224; }.b-venedictos-0 { --a: 179; --b: 181; }
.n-venedictos-0 { --a: 179; --b: 180; }.b-wrath-of-asgard-0 { --a: 186; --b: 188; }
.n-wrath-of-asgard-0 { --a: 186; --b: 187; }.b-sanctum-0 { --a: 207; --b: 209; }
.n-sanctum-0 { --a: 207; --b: 208; }.k-venedictos--wrath-of-asgard { --a: 181; --b: 186; }
.k-wrath-of-asgard--sanctum { --a: 188; --b: 207; }
.b-amtenael-0 { --a: 21; --b: 111; }
.n-amtenael-0 { --a: 21; --b: 22; }.b-amtenael-1 { --a: 137; --b: 139; }
.b-amtenael-2 { --a: 146; --b: 148; }
.b-amtenael-3 { --a: 200; --b: 208; }
.b-amtenael-4 { --a: 278; --b: 289; }
.b-avalonia-0 { --a: 215; --b: 240; }
.n-avalonia-0 { --a: 215; --b: 216; }.b-alfheim-0 { --a: 39; --b: 134; }
.n-alfheim-0 { --a: 39; --b: 40; }.b-la-grande-bataille-0 { --a: 50; --b: 73; }
.n-la-grande-bataille-0 { --a: 50; --b: 51; }.b-ivalice-0 { --a: 72; --b: 111; }
.n-ivalice-0 { --a: 72; --b: 73; }.b-made-in-goulag-0 { --a: 72; --b: 111; }
.n-made-in-goulag-0 { --a: 72; --b: 73; }.b-ysendar-0 { --a: 72; --b: 111; }
.n-ysendar-0 { --a: 72; --b: 73; }.b-heimdall-fr-0 { --a: 86; --b: 111; }
.n-heimdall-fr-0 { --a: 86; --b: 87; }.b-britannia-0 { --a: 127; --b: 149; }
.n-britannia-0 { --a: 127; --b: 128; }.b-abendwind-0 { --a: 21; --b: 140; }
.n-abendwind-0 { --a: 21; --b: 22; }.b-kheldron-0 { --a: 36; --b: 146; }
.n-kheldron-0 { --a: 36; --b: 37; }.b-terra-nova-0 { --a: 133; --b: 183; }
.n-terra-nova-0 { --a: 133; --b: 134; }.b-terra-nova-1 { --a: 231; --b: 235; }
.b-purga-0 { --a: 14; --b: 50; }
.n-purga-0 { --a: 14; --b: 15; }.b-purga-revolution-0 { --a: 50; --b: 86; }
.n-purga-revolution-0 { --a: 50; --b: 51; }.b-ultima-alianza-0 { --a: 30; --b: 60; }
.n-ultima-alianza-0 { --a: 30; --b: 31; }.b-whria-0 { --a: 145; --b: 159; }
.n-whria-0 { --a: 145; --b: 146; }.b-degunino-0 { --a: 31; --b: 80; }
.n-degunino-0 { --a: 31; --b: 32; }.b-messina-0 { --a: 53; --b: 63; }
.n-messina-0 { --a: 53; --b: 54; }
.sh-20110620 { width: 75%; }
.sh-20120105 { width: 78%; }
.sh-20150111 { width: 67%; }
.sh-20160128 { width: 90%; }
.sh-20170131 { width: 99%; }
.sh-20180117 { width: 97%; }
.sh-20180525 { width: 97%; }
.sh-20200406 { width: 98%; }
.sh-20210126 { width: 100%; }
.sh-20220518 { width: 80%; }

/* Shared look */
.chron .nm, .chron .nt { white-space: nowrap; overflow: visible; min-inline-size: 0; min-block-size: 0; }
.chron .nm { outline-offset: -2px; }
.chron .bar { border-radius: 2px; }
.chron .k.firm { background: #92400e; }
.sure { background: #27272a; }
.fade-start { background: linear-gradient(to right, #27272a00, #27272a 1.5rem); }
.fade-end { background: linear-gradient(to left, #27272a00, #27272a 1.5rem); }
.fade-both { background: linear-gradient(to right, #27272a00, #27272a 1.5rem, #27272a calc(100% - 1.5rem), #27272a00); }
.brief { background: #a1a1aa; }
.open-end { background: #27272a; border-radius: 2px 999px 999px 2px; box-shadow: 4px 0 0 -1px #fff, 6px 0 0 -1px #27272a; }
.chron .bar.chained { box-shadow: inset 2px 0 0 #92400e; }
.chron .open-end.chained { box-shadow: inset 2px 0 0 #92400e, 4px 0 0 -1px #fff, 6px 0 0 -1px #27272a; }

/* ---- Wide screens: months left to right ---- */
@media (min-width: 56rem) {
  .chron { display: grid; grid-template-columns: 9rem repeat(288, minmax(0, 1fr)); min-width: 76rem; }
  .chron > .row-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 9rem repeat(288, minmax(0, 1fr));   /* same-cascade fallback for subgrid */
    grid-template-columns: subgrid;
  }
  .chron .yr, .chron .pop > span:not(.lane-label), .chron .ev, .chron .bar, .chron .nm, .chron .nt, .chron .k { grid-column: var(--a) / var(--b); }
  .chron .track { grid-template-rows: auto .5rem auto; row-gap: 2px; padding-block: 4px; }
  .chron .lane-label { grid-column: 1; grid-row: 1 / -1; padding-right: .75rem; }
  .chron .lane-title { grid-column: 1 / -1; }
  .chron .l-top { grid-row: 1; }
  .chron .l-bot { grid-row: 3; }
  .chron .bar { grid-row: 2; align-self: center; height: .5rem; }
  .chron .bar.ev-thin { height: 2px; }            /* evidence: strong = .5rem, thin = a hairline */
  .chron .bar.brief.ev-thin { height: 4px; }
  .chron .k { grid-row: 2; align-self: center; height: 2px; }
  .chron .k.soft { height: 0; border-top: 2px dashed #92400e; }
  .chron .pop { grid-template-rows: 5.5rem; }
  .chron .pop > span { height: 100%; }
  .chron .pop-bar { height: var(--v); min-height: 2px; }
  .chron .ev { white-space: nowrap; }
  .hint-v { display: none; }
  /* Text that would run past the last month ends at the right edge instead. */
  .nt.n-abyss-0 { grid-column: 2 / -1; justify-self: unsafe end; }
}

/* ---- Narrow screens: months top to bottom ---- */
@media (max-width: 55.999rem) {
  .chron {
    display: grid;
    grid-template-rows: auto repeat(288, .225rem);
    grid-auto-flow: column;
    grid-auto-columns: auto;
    inline-size: max-content;
  }
  .chron > .row-grid {
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: auto repeat(288, .225rem);   /* same-cascade fallback for subgrid */
    grid-template-rows: subgrid;
  }
  .chron .yr, .chron .pop > span:not(.lane-label), .chron .ev, .chron .bar, .chron .nm, .chron .k { grid-row: var(--a) / var(--b); }
  .chron .lane-label { grid-row: 1; grid-column: 1 / -1; padding-bottom: .5rem; }

  /* Year axis: a column on the left, the rule on its right */
  .chron .axis { grid-template-columns: 1.875rem; margin-top: 0; border-top: 0; border-right: 2px solid #18181b; }
  .chron .axis .yr { grid-column: 1; padding-top: 0; font-size: 12px; line-height: 1; }

  /* Players online: bars grow to the right */
  .chron .pop { grid-template-columns: 4.5rem; margin-right: .5rem; }
  .chron .pop > span:not(.lane-label) { grid-column: 1; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .25rem; }
  .chron .pop-bar { inline-size: calc(var(--v) * .6); block-size: 6px; min-inline-size: 2px; border-radius: 0 2px 2px 0; flex: none; }

  /* Community: a column whose title reads downwards */
  .chron .lane-title { grid-row: 2 / span 60; writing-mode: vertical-rl; font-size: 12px; line-height: 1; padding-top: .5rem; }
  .chron .lane.row-grid:not(.track) { border-top: 0; border-left: 1px solid #e4e4e7; padding: 0 3px 0 4px; }

  /* Shards: name to the left or right of the bar, reading downwards */
  .chron .track { grid-template-columns: auto 6px auto; column-gap: 1px; padding-inline: 0; }
  .chron .nm { writing-mode: vertical-rl; font-size: 11px; line-height: 1; }
  .chron .l-top { grid-column: 1; }
  .chron .l-bot { grid-column: 3; }
  .chron .nt { display: none; }                   /* notes are in the register below */
  .chron .bar { grid-column: 2; justify-self: center; inline-size: 6px; block-size: auto; }
  .chron .bar.ev-thin { inline-size: 2px; }
  .chron .bar.brief.ev-thin { inline-size: 4px; }
  .chron .fade-start { background: linear-gradient(to bottom, #27272a00, #27272a 1.5rem); }
  .chron .fade-end { background: linear-gradient(to top, #27272a00, #27272a 1.5rem); }
  .chron .fade-both { background: linear-gradient(to bottom, #27272a00, #27272a 1.5rem, #27272a calc(100% - 1.5rem), #27272a00); }
  .chron .open-end { border-radius: 2px 2px 999px 999px; box-shadow: 0 4px 0 -1px #fff, 0 6px 0 -1px #27272a; }
  .chron .bar.chained { box-shadow: inset 0 2px 0 #92400e; }
  .chron .open-end.chained { box-shadow: inset 0 2px 0 #92400e, 0 4px 0 -1px #fff, 0 6px 0 -1px #27272a; }
  .chron .k { grid-column: 2; justify-self: center; inline-size: 2px; }
  .chron .k.soft { inline-size: 0; border-left: 2px dashed #92400e; }

  /* Events: a column on the right */
  .chron .events { grid-template-columns: 4rem; border-top: 0; border-left: 1px solid #e4e4e7; padding: 0 0 0 4px; }
  .chron .ev { grid-column: 1; border-left: 0; border-top: 1px dashed #a1a1aa; padding: 2px 0 0; font-size: 10px; }
  .chron { padding-inline: .5rem; }
  /* One community fits a phone; the population column (also in the table below) shows with all of them. */
  .fsx:not(:has(#l-all:checked)) .chron .pop { display: none; }
  .hint-h { display: none; }
}

/* Filters */
.fsx:has(#l-en:checked) .lane:not(.lane-en) { display: none; }
.fsx:has(#l-fr:checked) .lane:not(.lane-fr) { display: none; }
.fsx:has(#l-de:checked) .lane:not(.lane-de) { display: none; }
.fsx:has(#l-other:checked) .lane:not(.lane-other) { display: none; }
.fsx:has(#o-chain:checked) .track:not(.has-chain) { display: none; }
.fsx:has(#o-chain:checked) .reg:not(.chained) { display: none; }

/* The chronicle scrolls inside its frame when it is wider than the window. */
.chron-frame { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }  /* relative: keeps sr-only text inside the scroller */
/* Full-bleed: the chronicle uses the whole window width, not the text column. */
.chron-bleed { margin-inline: calc(50% - 50vw); padding-inline: max(1rem, calc(50vw - 50rem)); }
/* 100vw counts a classic scrollbar; clip (not hidden) so the page can't scroll sideways. */
body:has(.chron-bleed) { overflow-x: clip; }