  :root{
    --link:#0645ad;
    --link-visited:#0b0080;
    --border:#a2a9b1;
    --bg-body:#f6f6f6;
    --bg-page:#ffffff;
    --text:#202122;
    --muted:#54595d;
    --infobox-bg:#f8f9fa;
    --infobox-border:#a2a9b1;
    --header-bg:#eaecf0;
  }
  *{box-sizing:border-box;}
  html{font-size:100%;}
  body{
    margin:0;
    background:var(--bg-body);
    color:var(--text);
    font-family:-apple-system,"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;
    font-size:14px;
    line-height:1.6;
  }
  a{color:var(--link); text-decoration:none;}
  a:hover{text-decoration:underline;}
  a.visited{color:var(--link-visited);}
  a.external::after{
    content:"↗";
    font-size:10px;
    margin-left:2px;
    color:var(--link);
  }

  /* top chrome */
  .topbar{
    background:#fff;
    border-bottom:1px solid var(--border);
  }
  .topbar-inner{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 20px;
  }

  /* MediaWiki-style namespace and action tabs */
  .nstabs, .actiontabs{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
    display:flex;
    gap:2px;
    font-size:12.5px;
  }
  .nstabs{
    background:#fff;
    border-bottom:1px solid var(--border);
  }
  .actiontabs{
    background:var(--infobox-bg);
    border-bottom:1px solid var(--border);
  }
  .nstabs a, .actiontabs a{
    display:inline-block;
    padding:8px 14px;
    color:var(--muted);
    border-right:1px solid transparent;
  }
  .nstabs a.current, .actiontabs a.current{
    color:var(--text);
    font-weight:bold;
    background:var(--bg-page);
    border-left:1px solid var(--border);
    border-right:1px solid var(--border);
    border-top:2px solid var(--link);
    margin-bottom:-1px;
  }
  .nstabs a:hover, .actiontabs a:hover{
    text-decoration:underline;
  }

  .section-edit{
    float:right;
    font-size:12px;
    font-weight:normal;
    color:var(--muted);
  }
  .section-edit a{color:var(--link);}
  .brand{
    font-family:Georgia,'Linux Libertine',serif;
    font-size:22px;
    font-weight:bold;
    letter-spacing:.5px;
  }
  .brand span{color:var(--muted); font-weight:normal; font-size:13px; display:block; font-family:-apple-system,sans-serif;}
  .search{
    border:1px solid var(--border);
    border-radius:2px;
    padding:6px 10px;
    font-size:13px;
    color:var(--muted);
    background:#fff;
    min-width:220px;
  }

  .container{
    max-width:1200px;
    margin:0 auto;
    padding:24px 20px 60px;
  }
  .layout{
    display:flex;
    gap:32px;
    align-items:flex-start;
  }
  main{
    flex:1;
    min-width:0;
    background:var(--bg-page);
    padding:0 4px;
  }

  h1.title{
    font-family:Georgia,'Linux Libertine',serif;
    font-weight:normal;
    font-size:32px;
    border-bottom:3px solid var(--border);
    padding-bottom:8px;
    margin:0 0 6px;
  }
  .subtitle-note{
    font-style:italic;
    color:var(--muted);
    font-size:13px;
    margin-bottom:10px;
  }
  .hatnote{
    font-style:italic;
    color:var(--text);
    font-size:13px;
    padding-left:24px;
    position:relative;
    margin:0 0 18px;
  }
  .hatnote::before{
    content:"ℹ";
    position:absolute;
    left:0;
    font-style:normal;
  }

  .toc{
    background:var(--infobox-bg);
    border:1px solid var(--infobox-border);
    display:inline-block;
    padding:14px 22px;
    margin:12px 0 24px;
    border-radius:2px;
  }
  .toc-title{font-weight:bold; margin-bottom:6px; font-size:15px;}
  .toc ol{margin:0; padding-left:20px;}
  .toc li{margin-bottom:3px;}
  .toc a{font-size:13.5px;}

  main h2{
    font-family:inherit;
    font-weight:normal;
    font-size:21px;
    border-bottom:1px solid var(--border);
    margin:34px 0 12px;
    padding-bottom:4px;
    scroll-margin-top:16px;
  }
  main h3{
    font-family:inherit;
    font-weight:bold;
    font-size:16px;
    margin:22px 0 8px;
    scroll-margin-top:16px;
  }
  main p{margin:0 0 14px;}
  main ul, main ol{margin:0 0 14px; padding-left:28px;}
  main li{margin-bottom:4px;}

  .citation{
    font-size:11px;
    vertical-align:super;
    color:var(--link);
    cursor:default;
  }
  .needs-citation{
    background:#fff8e6;
    border-bottom:1px dotted #c9a227;
  }

  table.wikitable{
    border-collapse:collapse;
    width:100%;
    margin:0 0 18px;
    font-size:13px;
  }
  table.wikitable caption{
    caption-side:top;
    text-align:left;
    font-weight:bold;
    margin-bottom:6px;
  }
  table.wikitable th, table.wikitable td{
    border:1px solid var(--border);
    padding:6px 10px;
    text-align:left;
    vertical-align:top;
  }
  table.wikitable th{
    background:var(--header-bg);
  }

  /* infobox */
  .infobox{
    width:280px;
    flex-shrink:0;
    border:1px solid var(--infobox-border);
    background:var(--infobox-bg);
    font-size:13px;
    border-radius:2px;
    overflow:hidden;
  }
  .infobox-header{
    background:#fff;
    text-align:center;
    font-weight:bold;
    font-size:16px;
    padding:8px 10px;
    border-bottom:1px solid var(--infobox-border);
  }
  .infobox-logo{
    text-align:center;
    padding:16px 10px;
    border-bottom:1px solid var(--infobox-border);
    background:#fff;
  }
  .infobox-logo .mark{
    display:inline-block;
    background:#111;
    color:#fff;
    font-family:Georgia,serif;
    font-weight:bold;
    font-size:20px;
    padding:12px 18px;
    letter-spacing:1px;
  }
  .infobox-logo .tagline{
    display:block;
    margin-top:8px;
    font-style:italic;
    color:var(--muted);
    font-size:12px;
  }
  .infobox table{
    width:100%;
    border-collapse:collapse;
  }
  .infobox td, .infobox th{
    padding:6px 10px;
    vertical-align:top;
    border-top:1px solid #eaecf0;
  }
  .infobox th{
    text-align:left;
    width:38%;
    font-weight:normal;
    color:var(--muted);
  }
  .infobox td{text-align:left;}
  .infobox-section-title{
    background:var(--header-bg);
    font-weight:bold;
    text-align:center;
    padding:5px;
    border-top:1px solid var(--infobox-border);
  }

  footer.page-footer{
    margin-top:40px;
    padding-top:14px;
    border-top:1px solid var(--border);
    font-size:12px;
    color:var(--muted);
  }
  .categories{
    margin-top:16px;
    padding:8px 12px;
    border:1px solid var(--border);
    font-size:12.5px;
  }
  .categories b{font-weight:bold;}
  .categories a{margin-right:4px;}

  .references ol{padding-left:24px; font-size:13px;}
  .references li{margin-bottom:8px;}

  .editnote{
    background:#fef6f6;
    border:1px solid #f0c0c0;
    color:#7a2020;
    padding:10px 14px;
    font-size:12.5px;
    border-radius:2px;
    margin-bottom:20px;
  }

  @media (max-width:820px){
    .layout{flex-direction:column;}
    .infobox{width:100%;}
  }

/* stub / meta pages */
.metapage-box{
  border:1px solid var(--border);
  background:var(--infobox-bg);
  padding:14px 18px;
  margin:16px 0;
  font-size:13.5px;
}
.metapage-box b{display:block; margin-bottom:6px;}
.history-list li{margin-bottom:10px;}
.history-list .rev-date{font-weight:bold; margin-right:8px;}
.history-list .rev-note{color:var(--muted);}
