MediaWiki:Jotunnheim.css: Difference between revisions

From Project: Jotunnheim
Jump to navigation Jump to search
No edit summary
Update Jotunnheim skin CSS from local source
Tag: Manual revert
 
(80 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Edit this page in the wiki at MediaWiki:Jotunnheim.css. This file is the initial import and rollback copy. */
@font-face {
/* Fonts are bundled with this skin. /w is this wiki's configured script path. */
  font-family: JotunnheimCharis;
@font-face { font-family: JotunnheimCharis; src: url('/w/skins/Jotunnheim/fonts/Charis-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
  src: url("/w/skins/Jotunnheim/fonts/Charis-Regular.woff2") format("woff2");
@font-face { font-family: JotunnheimCharis; src: url('/w/skins/Jotunnheim/fonts/Charis-Italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
  font-style: normal;
@font-face { font-family: JotunnheimCharis; src: url('/w/skins/Jotunnheim/fonts/Charis-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
  font-weight: 400;
@font-face { font-family: JotunnheimCharis; src: url('/w/skins/Jotunnheim/fonts/Charis-BoldItalic.woff2') format('woff2'); font-style: italic; font-weight: 700; font-display: swap; }
  font-display: swap;
@font-face { font-family: JotunnheimOldStandard; src: url('/w/skins/Jotunnheim/fonts/OldStandard-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
}
@font-face { font-family: JotunnheimOldStandard; src: url('/w/skins/Jotunnheim/fonts/OldStandard-Bold.ttf') format('truetype'); font-style: normal; font-weight: 700; font-display: swap; }
 
@font-face { font-family: JotunnheimGoudy; src: url('/w/skins/Jotunnheim/fonts/GoudyBookletter1911.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face {
@font-face { font-family: JotunnheimNoto; src: url('/w/skins/Jotunnheim/fonts/NotoSerif-Variable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
  font-family: JotunnheimCharis;
@font-face { font-family: JotunnheimNoto; src: url('/w/skins/Jotunnheim/fonts/NotoSerif-Italic-Variable.ttf') format('truetype'); font-style: italic; font-weight: 100 900; font-display: swap; }
  src: url("/w/skins/Jotunnheim/fonts/Charis-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
 
@font-face {
  font-family: JotunnheimCharis;
  src: url("/w/skins/Jotunnheim/fonts/Charis-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
 
@font-face {
  font-family: JotunnheimCharis;
  src: url("/w/skins/Jotunnheim/fonts/Charis-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
 
@font-face {
  font-family: JotunnheimOldStandard;
  src: url("/w/skins/Jotunnheim/fonts/OldStandard-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
 
@font-face {
  font-family: JotunnheimOldStandard;
  src: url("/w/skins/Jotunnheim/fonts/OldStandard-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
 
@font-face {
  font-family: JotunnheimGoudy;
  src: url("/w/skins/Jotunnheim/fonts/GoudyBookletter1911.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
 
@font-face {
  font-family: JotunnheimNoto;
  src: url("/w/skins/Jotunnheim/fonts/NotoSerif-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
 
@font-face {
  font-family: JotunnheimNoto;
  src: url("/w/skins/Jotunnheim/fonts/NotoSerif-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
 
body.skin-jotunnheim {
body.skin-jotunnheim {
   --jth-page: #F3EEE2;
   --jth-page: #f3eee2;
   --jth-fg: #0E0C06;
   --jth-fg: #0e0c06;
   --jth-page-1: #E0D6B8;
  --jth-fg-1: #473d43;
 
   --jth-page-1: #e0d6b8;
   --jth-link-normal: #3D314A;
   --jth-link-normal: #3d314a;
   --jth-link-red: #96705B;
   --jth-link-red: #96705b;
   --jth-link-visited: #684756;
   --jth-link-visited: #684756;
   --jth-ink: #27231e;
   --jth-ink: #27231e;
   --jth-muted: #665e52;
   --jth-muted: #665e52;
   --jth-rule: #c7bdac;
   --jth-rule: #c7bdac;
   --jth-link: #734533;
   --jth-link: #734533;
 
   --jth-body: JotunnheimCharis, Charis, "Charis SIL", JotunnheimNoto, "Noto Serif", Georgia, serif;
 
   --jth-title: JotunnheimOldStandard, "Old Standard TT", JotunnheimCharis, Georgia, serif;
   --jth-body: JotunnheimCharis, Charis, 'Charis SIL', JotunnheimNoto, 'Noto Serif', Georgia, serif;
   --jth-heading: JotunnheimGoudy, "Goudy Bookletter 1911", JotunnheimCharis, Georgia, serif;
   --jth-title: JotunnheimOldStandard, 'Old Standard TT', JotunnheimCharis, Georgia, serif;
   --jth-heading: JotunnheimGoudy, 'Goudy Bookletter 1911', JotunnheimCharis, Georgia, serif;
  margin: 0;
   color: var(--jth-fg);
   color: var(--jth-fg);
   background: var(--jth-page-1);
   background: var(--jth-page-1);
   font-family: var(--jth-body);
   font-family: var(--jth-body);
  margin: 0;
}


  a, a:visited {
body.skin-jotunnheim a, body.skin-jotunnheim a:visited {
    color: var(--jth-link-normal);
  color: var(--jth-link-normal);
   
}
    &.new {
      color: var(--jth-link-red);
      &::after { content: "†"; display: inline; }
    }


   }
:is(body.skin-jotunnheim a, body.skin-jotunnheim a:visited).new {
   color: var(--jth-link-red);
}
 
:is(body.skin-jotunnheim a, body.skin-jotunnheim a:visited).new:after {
  content: "†";
  display: inline;
}
}


.jth-skip {
.jth-skip {
   background: white;
   color: #00f;
   color: blue;
   background: #fff;
   padding: 1rem;
   padding: 1rem;
   display: block;
   display: block;
   position: absolute;
   position: absolute;
  top: 0;
   left: -100vw;
   left: -100vw;
  top: 0;
}


  &:focus {
.jth-skip:focus {
    left: 0;
  left: 0;
  }
}
}


.jth-shell {
.jth-shell {
  flex-direction: row;
   display: flex;
   display: flex;
}
.jth-shell .jth-nav {
  flex-direction: column;
  flex: 0 0 180px;
  display: flex;
}
.jth-shell .jth-nav a {
  width: 100%;
  font-size: .925rem;
  display: inline-block;
}
.jth-shell .jth-nav a.jth-brand {
  text-align: center;
  font-family: JotunnheimCheltenhamCondensed, var(--jth-title);
  letter-spacing: -.02em;
  color: var(--jth-fg);
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0;
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
}
.jth-shell .jth-nav input[type="checkbox"] {
  display: none;
}
.jth-shell .jth-nav #p-user-page-label {
  content: "User";
}
.jth-shell .jth-nav .mw-portlet {
  padding: 0 .25rem;
}
.jth-shell .jth-nav .mw-portlet h3 {
  font-family: var(--jth-body);
  font-variant: small-caps;
   flex-direction: row;
   flex-direction: row;
  align-items: center;
  width: 100%;
  margin: .25rem 0 0 .25rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  position: relative;
}
.jth-shell .jth-nav .mw-portlet h3:after {
  content: "";
  border-bottom: 1px solid var(--jth-fg-1);
  flex: 1;
  height: 0;
  margin: 0 .25rem;
  display: inline-flex;
  position: relative;
  top: 2px;
}
.jth-shell .jth-nav .mw-portlet ul {
  margin: 0 0 0 1rem;
  list-style: none;
}
.jth-shell .jth-header {
  flex-direction: row;
  padding: 1rem 0;
  display: flex;
}
.jth-shell .jth-header #p-search label {
  position: absolute;
  top: 0;
  left: -100vw;
}
.jth-shell .jth-header #p-search label:focus {
  left: 0;
}
.jth-shell .jth-header #p-search input {
  background-color: var(--jth-page);
  color: var(--jth-fg);
  font-family: inherit;
  font-size: inherit;
  border: none;
  padding: .25rem .5rem;
}
.jth-shell .jth-main {
  flex-direction: column;
  width: max-content;
  display: flex;
}
.jth-shell .jth-byline {
  color: var(--jth-fg-1);
  font-style: italic;
}


.jth-shell main#content {
  background: var(--jth-page);
  --toc-width: 240px;
  padding: 1rem;
  position: relative;
}


.jth-shell main#content:has(#toc) {
  padding-left: calc(var(--toc-width)  + 1rem);
}


  .jth-nav {
.jth-shell main#content:has(#toc) .mw-body-content {
    display: flex;
  width: min(100ch, calc(100vw - 180px - var(--toc-width)  - 3rem));
    flex-direction: column;
}
    flex: 0 0 180px;


    a {
.jth-shell main#content h1#firstHeading {
      display: inline-block;
  font-family: var(--jth-body);
      width: 100%;
  font-variant: small-caps;
      font-size: .925rem;
  margin-bottom: .25rem;
    }
  padding: 0;
}
 
.jth-shell main#content .mw-body-content {
  width: 100ch;
}


      a.jth-brand {
.jth-shell main#content #toc {
    display: flex;
  box-sizing: border-box;
    flex-direction: column;
  float: left;
    gap: .5rem;
  width: calc(var(--toc-width)  - 1rem);
    margin: 1rem 0;
  margin-left: calc(-1 * var(--toc-width));
    align-items: center;
  background-color: #0000;
    text-align: center;
  border: none;
    font-family: JotunnheimCheltenhamCondensed, var(--jth-title);
  max-height: calc(100vh - 2rem);
    font-size: 1.5rem;
  position: sticky;
    letter-spacing: -0.02em;
  top: 1rem;
    color: var(--jth-fg);
  overflow-y: auto;
    font-weight: 500;
}
   
 
   }
.jth-shell main#content #toc .toctogglespan {
  display: none;
}
 
.jth-shell main#content #toc .toctitle {
  text-align: left;
}
 
.jth-shell main#content #toc #mw-toc-heading {
  font-variant: small-caps;
  font-weight: 400;
}
 
.jth-shell main#content #toc li a {
  align-items: flex-end;
  width: 100%;
  display: flex;
}
 
.jth-shell main#content #toc li a .tocnumber {
  order: 1;
  margin-left: .25em;
}
 
.jth-shell main#content #toc li a .toctext {
  flex: 1;
  min-width: 0;
  display: block;
  overflow: hidden;
}
 
.jth-shell main#content #toc li a .toctext:after {
  content: "";
  border-bottom: 1px dotted var(--jth-fg-1);
  vertical-align: .2em;
  width: 100%;
  margin-left: .25em;
  margin-right: calc(-100% - .25em);
   display: inline-block;
}


    input[type="checkbox"] { display: none; }
.jth-shell main#content #toc li.toclevel-1:has(ul) > a > .toctext {
  font-variant: small-caps;
}


    #p-user-page-label { content: "User"; }
.jth-shell main#content .jth-toc-column {
  width: calc(var(--toc-width)  - 1rem);
  height: 0;
  margin-left: calc(-1 * var(--toc-width));
  align-self: flex-start;
  position: sticky;
  top: 1rem;
}


    .mw-portlet {
.jth-shell main#content .jth-toc-column #toc {
      padding: 0 0.25rem;
  float: none;
  width: 100%;
  margin-left: 0;
  position: static;
}


      h3 {
.jth-shell footer.mw-footer, .jth-shell footer.mw-footer ul {
        font-family: var(--jth-body);
  flex-direction: row;
        font-variant: small-caps;
  align-items: center;
        margin: .25rem 0 0 .25rem;
  gap: 1rem;
        padding: 0;
  margin: 0;
        font-weight: 500;
  list-style: none;
        font-size: 1rem;
  display: flex;
        display: inline-flex;
}
        flex-direction: row;
        align-items: center;
        width: 100%;
        position: relative;


        &::after {
.jth-shell footer.mw-footer {
          display: inline-flex;
  margin: 1rem 0;
          content: "";
}
          position: relative; top: 2px;
 
.jth-shell h2:has(.mw-editsection) a {
  margin-left: .25rem;
  margin-right: .75rem;
}
 
.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) {
  align-items: flex-end;
  display: flex;
}
 
.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-headline {
   flex: 1;
   flex: 1;
   height: 0px;
   min-width: 0;
   border-bottom: 1px solid var(--jth-fg);
  display: block;
   margin: 0 .25rem;
  overflow: hidden;
        }
}
      }
 
.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-editsection {
  white-space: nowrap;
  flex: none;
  margin-left: .25em;
  font-size: 1rem;
  font-weight: 500;
}
 
.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-editsection .mw-editsection-bracket, .jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-editsection .mw-editsection-divider {
  display: none;
}
 
.jth-shell :is(h3, h4, h5, h6):has(.mw-editsection) .mw-headline:after {
  content: "";
  border-bottom: 1px dashed var(--jth-fg-1);
  vertical-align: .2em;
  width: 100%;
  margin-left: .25em;
  margin-right: calc(-100% - .25em);
  display: inline-block;
}
 
.jth-shell :is(h3, h4, h5, h6):has(.mw-editsection) .mw-editsection a:after {
  content: "";
   border-bottom: 1px solid var(--jth-fg-1);
  vertical-align: .2em;
  width: .325rem;
  height: 0;
   margin-inline: .25rem;
  display: inline-block;
}
 
.jth-shell .catlinks {
  background: none;
  border: none;
}


      ul {
@media (width <= 1100px) {
        margin: 0 0 0 1rem;
  .jth-shell main#content:has(#toc) {
        list-style: none;
    padding-left: 1rem;
      }
    }
   }
   }


   .jth-header {
   .jth-shell main#content:has(#toc) .mw-body-content {
     display: flex;
     width: min(100ch, 100vw - 180px - 3rem);
    flex-direction: row;
   }
   }


   main#content {
   .jth-shell main#content #toc {
     background: var(--jth-page);
     float: none;
     padding: 1rem;
     width: auto;
 
    max-width: 100%;
     h1#firstHeading {
     max-height: none;
      font-family: var(--jth-body);
    margin-left: 0;
      font-variant: small-caps;
    position: static;
     }
     overflow: visible;
   }
   }


   footer.mw-footer, footer.mw-footer ul {
   .jth-shell main#content .jth-toc-column {
     display: flex;
     align-self: stretch;
     flex-direction: row;
     width: auto;
     list-style: none;
     height: auto;
     margin: 0;
     margin-left: 0;
     align-items: center;
     position: static;
    gap: 1rem;
   }
   }
}


  footer.mw-footer {
html.client-nojs body.skin-jotunnheim .jth-shell main#content:has(#toc) {
    margin: 1rem 0;
  padding-left: 1rem;
  }
}


html.client-nojs body.skin-jotunnheim .jth-shell main#content:has(#toc) .mw-body-content {
  width: min(100ch, 100vw - 180px - 3rem);
}
}


.mw-body-content {
html.client-nojs body.skin-jotunnheim .jth-shell main#content:has(#toc) #toc {
   h2, h3, h4, h5, h6 {
   float: none;
   }
  width: auto;
  max-width: 100%;
  max-height: none;
  margin-left: 0;
  position: static;
   overflow: visible;
}
}

Latest revision as of 00:55, 26 September 2026

@font-face {
  font-family: JotunnheimCharis;
  src: url("/w/skins/Jotunnheim/fonts/Charis-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimCharis;
  src: url("/w/skins/Jotunnheim/fonts/Charis-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimCharis;
  src: url("/w/skins/Jotunnheim/fonts/Charis-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimCharis;
  src: url("/w/skins/Jotunnheim/fonts/Charis-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimOldStandard;
  src: url("/w/skins/Jotunnheim/fonts/OldStandard-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimOldStandard;
  src: url("/w/skins/Jotunnheim/fonts/OldStandard-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimGoudy;
  src: url("/w/skins/Jotunnheim/fonts/GoudyBookletter1911.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimNoto;
  src: url("/w/skins/Jotunnheim/fonts/NotoSerif-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: JotunnheimNoto;
  src: url("/w/skins/Jotunnheim/fonts/NotoSerif-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

body.skin-jotunnheim {
  --jth-page: #f3eee2;
  --jth-fg: #0e0c06;
  --jth-fg-1: #473d43;
  --jth-page-1: #e0d6b8;
  --jth-link-normal: #3d314a;
  --jth-link-red: #96705b;
  --jth-link-visited: #684756;
  --jth-ink: #27231e;
  --jth-muted: #665e52;
  --jth-rule: #c7bdac;
  --jth-link: #734533;
  --jth-body: JotunnheimCharis, Charis, "Charis SIL", JotunnheimNoto, "Noto Serif", Georgia, serif;
  --jth-title: JotunnheimOldStandard, "Old Standard TT", JotunnheimCharis, Georgia, serif;
  --jth-heading: JotunnheimGoudy, "Goudy Bookletter 1911", JotunnheimCharis, Georgia, serif;
  color: var(--jth-fg);
  background: var(--jth-page-1);
  font-family: var(--jth-body);
  margin: 0;
}

body.skin-jotunnheim a, body.skin-jotunnheim a:visited {
  color: var(--jth-link-normal);
}

:is(body.skin-jotunnheim a, body.skin-jotunnheim a:visited).new {
  color: var(--jth-link-red);
}

:is(body.skin-jotunnheim a, body.skin-jotunnheim a:visited).new:after {
  content: "†";
  display: inline;
}

.jth-skip {
  color: #00f;
  background: #fff;
  padding: 1rem;
  display: block;
  position: absolute;
  top: 0;
  left: -100vw;
}

.jth-skip:focus {
  left: 0;
}

.jth-shell {
  flex-direction: row;
  display: flex;
}

.jth-shell .jth-nav {
  flex-direction: column;
  flex: 0 0 180px;
  display: flex;
}

.jth-shell .jth-nav a {
  width: 100%;
  font-size: .925rem;
  display: inline-block;
}

.jth-shell .jth-nav a.jth-brand {
  text-align: center;
  font-family: JotunnheimCheltenhamCondensed, var(--jth-title);
  letter-spacing: -.02em;
  color: var(--jth-fg);
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0;
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
}

.jth-shell .jth-nav input[type="checkbox"] {
  display: none;
}

.jth-shell .jth-nav #p-user-page-label {
  content: "User";
}

.jth-shell .jth-nav .mw-portlet {
  padding: 0 .25rem;
}

.jth-shell .jth-nav .mw-portlet h3 {
  font-family: var(--jth-body);
  font-variant: small-caps;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin: .25rem 0 0 .25rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  position: relative;
}

.jth-shell .jth-nav .mw-portlet h3:after {
  content: "";
  border-bottom: 1px solid var(--jth-fg-1);
  flex: 1;
  height: 0;
  margin: 0 .25rem;
  display: inline-flex;
  position: relative;
  top: 2px;
}

.jth-shell .jth-nav .mw-portlet ul {
  margin: 0 0 0 1rem;
  list-style: none;
}

.jth-shell .jth-header {
  flex-direction: row;
  padding: 1rem 0;
  display: flex;
}

.jth-shell .jth-header #p-search label {
  position: absolute;
  top: 0;
  left: -100vw;
}

.jth-shell .jth-header #p-search label:focus {
  left: 0;
}

.jth-shell .jth-header #p-search input {
  background-color: var(--jth-page);
  color: var(--jth-fg);
  font-family: inherit;
  font-size: inherit;
  border: none;
  padding: .25rem .5rem;
}

.jth-shell .jth-main {
  flex-direction: column;
  width: max-content;
  display: flex;
}

.jth-shell .jth-byline {
  color: var(--jth-fg-1);
  font-style: italic;
}

.jth-shell main#content {
  background: var(--jth-page);
  --toc-width: 240px;
  padding: 1rem;
  position: relative;
}

.jth-shell main#content:has(#toc) {
  padding-left: calc(var(--toc-width)  + 1rem);
}

.jth-shell main#content:has(#toc) .mw-body-content {
  width: min(100ch, calc(100vw - 180px - var(--toc-width)  - 3rem));
}

.jth-shell main#content h1#firstHeading {
  font-family: var(--jth-body);
  font-variant: small-caps;
  margin-bottom: .25rem;
  padding: 0;
}

.jth-shell main#content .mw-body-content {
  width: 100ch;
}

.jth-shell main#content #toc {
  box-sizing: border-box;
  float: left;
  width: calc(var(--toc-width)  - 1rem);
  margin-left: calc(-1 * var(--toc-width));
  background-color: #0000;
  border: none;
  max-height: calc(100vh - 2rem);
  position: sticky;
  top: 1rem;
  overflow-y: auto;
}

.jth-shell main#content #toc .toctogglespan {
  display: none;
}

.jth-shell main#content #toc .toctitle {
  text-align: left;
}

.jth-shell main#content #toc #mw-toc-heading {
  font-variant: small-caps;
  font-weight: 400;
}

.jth-shell main#content #toc li a {
  align-items: flex-end;
  width: 100%;
  display: flex;
}

.jth-shell main#content #toc li a .tocnumber {
  order: 1;
  margin-left: .25em;
}

.jth-shell main#content #toc li a .toctext {
  flex: 1;
  min-width: 0;
  display: block;
  overflow: hidden;
}

.jth-shell main#content #toc li a .toctext:after {
  content: "";
  border-bottom: 1px dotted var(--jth-fg-1);
  vertical-align: .2em;
  width: 100%;
  margin-left: .25em;
  margin-right: calc(-100% - .25em);
  display: inline-block;
}

.jth-shell main#content #toc li.toclevel-1:has(ul) > a > .toctext {
  font-variant: small-caps;
}

.jth-shell main#content .jth-toc-column {
  width: calc(var(--toc-width)  - 1rem);
  height: 0;
  margin-left: calc(-1 * var(--toc-width));
  align-self: flex-start;
  position: sticky;
  top: 1rem;
}

.jth-shell main#content .jth-toc-column #toc {
  float: none;
  width: 100%;
  margin-left: 0;
  position: static;
}

.jth-shell footer.mw-footer, .jth-shell footer.mw-footer ul {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin: 0;
  list-style: none;
  display: flex;
}

.jth-shell footer.mw-footer {
  margin: 1rem 0;
}

.jth-shell h2:has(.mw-editsection) a {
  margin-left: .25rem;
  margin-right: .75rem;
}

.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) {
  align-items: flex-end;
  display: flex;
}

.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-headline {
  flex: 1;
  min-width: 0;
  display: block;
  overflow: hidden;
}

.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-editsection {
  white-space: nowrap;
  flex: none;
  margin-left: .25em;
  font-size: 1rem;
  font-weight: 500;
}

.jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-editsection .mw-editsection-bracket, .jth-shell :is(h2, h3, h4, h5, h6):has(.mw-editsection) .mw-editsection .mw-editsection-divider {
  display: none;
}

.jth-shell :is(h3, h4, h5, h6):has(.mw-editsection) .mw-headline:after {
  content: "";
  border-bottom: 1px dashed var(--jth-fg-1);
  vertical-align: .2em;
  width: 100%;
  margin-left: .25em;
  margin-right: calc(-100% - .25em);
  display: inline-block;
}

.jth-shell :is(h3, h4, h5, h6):has(.mw-editsection) .mw-editsection a:after {
  content: "";
  border-bottom: 1px solid var(--jth-fg-1);
  vertical-align: .2em;
  width: .325rem;
  height: 0;
  margin-inline: .25rem;
  display: inline-block;
}

.jth-shell .catlinks {
  background: none;
  border: none;
}

@media (width <= 1100px) {
  .jth-shell main#content:has(#toc) {
    padding-left: 1rem;
  }

  .jth-shell main#content:has(#toc) .mw-body-content {
    width: min(100ch, 100vw - 180px - 3rem);
  }

  .jth-shell main#content #toc {
    float: none;
    width: auto;
    max-width: 100%;
    max-height: none;
    margin-left: 0;
    position: static;
    overflow: visible;
  }

  .jth-shell main#content .jth-toc-column {
    align-self: stretch;
    width: auto;
    height: auto;
    margin-left: 0;
    position: static;
  }
}

html.client-nojs body.skin-jotunnheim .jth-shell main#content:has(#toc) {
  padding-left: 1rem;
}

html.client-nojs body.skin-jotunnheim .jth-shell main#content:has(#toc) .mw-body-content {
  width: min(100ch, 100vw - 180px - 3rem);
}

html.client-nojs body.skin-jotunnheim .jth-shell main#content:has(#toc) #toc {
  float: none;
  width: auto;
  max-width: 100%;
  max-height: none;
  margin-left: 0;
  position: static;
  overflow: visible;
}