/* Wikipedia-style stylesheet for fake.af articles */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #202122;
  background: #fff;
}
a { color: #3366cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === Page Container === */
.mw-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header === */
.mw-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  min-height: 56px;
}
.mw-header-menu {
  font-size: 28px;
  color: #202122;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.mw-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #202122;
  flex-shrink: 0;
  margin-right: 24px;
}
.mw-header-logo:hover {
  text-decoration: none;
}
.mw-header-logo img {
  height: 48px;
  width: auto;
}
.logo-text {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 22px;
  font-variant: small-caps;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #000;
}
.logo-tagline {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 11px;
  color: #54595d;
  line-height: 1.2;
  margin-top: 2px;
}
.mw-header-search {
  flex: 1;
  max-width: 680px;
}
.mw-search-form {
  display: flex;
  position: relative;
}
.mw-search-form::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2a9b1' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16' y1='16' x2='22' y2='22'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  pointer-events: none;
}
.mw-search-input {
  flex: 1;
  padding: 8px 12px 8px 36px;
  font-size: 14px;
  border: 1px solid #a2a9b1;
  border-right: none;
  border-radius: 2px 0 0 2px;
  outline: none;
}
.mw-search-input:focus {
  border-color: #3366cc;
}
.mw-search-button {
  padding: 8px 18px;
  font-size: 14px;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  color: #202122;
  font-weight: bold;
}
.mw-search-button:hover {
  background: #eaecf0;
}
.mw-header-end {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mw-header-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.mw-header-links a {
  color: #3366cc;
  white-space: nowrap;
}

/* === Body Container (sidebar + main) === */
.mw-body-container {
  display: flex;
  flex: 1;
  width: 100%;
}

/* === Sidebar: Article Contents === */
.mw-sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 80px 24px 24px 48px;
  font-size: 14px;
  background: #fff;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}
.sidebar-toc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c8ccd1;
}
.sidebar-toc-title {
  font-size: 19px;
  font-weight: bold;
  color: #202122;
}
.sidebar-toc-toggle {
  padding: 4px 12px;
  font-size: 13px;
  background: #e8e8e8;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: #202122;
  font-weight: 500;
}
.sidebar-toc-toggle:hover {
  background: #ddd;
}
.sidebar-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-toc-item {
  padding: 6px 0;
}
.sidebar-toc-item a {
  color: #3366cc;
  font-size: 15px;
  text-decoration: none;
}
.sidebar-toc-item a:hover {
  text-decoration: underline;
}
.sidebar-toc-top {
  padding-bottom: 4px;
}
.sidebar-toc-top a {
  color: #202122;
  font-weight: bold;
  font-size: 16px;
}
.sidebar-toc-sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
}
.sidebar-toc-sublist .sidebar-toc-item {
  padding: 4px 0;
}
.sidebar-toc-sublist .sidebar-toc-item a {
  font-size: 14px;
}

/* === Main Content Area === */
.mw-body {
  flex: 1;
  min-width: 0;
  padding: 20px 40px;
  background: #fff;
}

/* === Tabs === */
.mw-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #a2a9b1;
  margin: 0 0 12px 0;
  padding: 0;
}
.mw-tabs-left,
.mw-tabs-right {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}
.mw-tabs-left li a,
.mw-tabs-right li a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: #3366cc;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
}
.mw-tabs-left li a:hover,
.mw-tabs-right li a:hover {
  text-decoration: none;
}
.mw-tabs-left li.selected a {
  color: #202122;
  font-weight: bold;
  border-bottom-color: #3366cc;
}
.mw-tabs-right li a {
  color: #202122;
  font-size: 13px;
}
.mw-tabs-right li.active a {
  font-weight: bold;
}
.mw-tabs-right li a:hover {
  color: #3366cc;
}

/* === Page Title === */
.firstHeading {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.2;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 4px;
  margin: 0 0 4px 0;
}
#siteSub {
  font-size: 12px;
  color: #54595d;
  margin-bottom: 16px;
}

/* === Article Content === */
.mw-body-content {
  line-height: 1.6;
}
.mw-body-content p {
  margin: 0.5em 0;
}
.mw-body-content ul,
.mw-body-content ol {
  margin: 0.5em 0 0.5em 1.6em;
}
.mw-parser-output {
  margin-bottom: 8px;
}

/* === Section Headings === */
.mw-body-content h2 {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 2px;
  margin: 24px 0 8px;
  line-height: 1.3;
  overflow: hidden;
}
.mw-body-content h3 {
  font-family: 'Linux Libertine', Georgia, serif;
  font-size: 17px;
  font-weight: bold;
  margin: 20px 0 6px;
  line-height: 1.3;
}
.mw-body-content h4 {
  font-size: 14px;
  font-weight: bold;
  margin: 16px 0 4px;
  line-height: 1.3;
}
.mw-editsection {
  font-family: -apple-system, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  margin-left: 8px;
  color: #54595d;
}
.mw-editsection a {
  color: #3366cc;
}

/* === Infobox === */
.infobox {
  float: right;
  clear: right;
  margin: 0 0 16px 20px;
  width: 280px;
  border: 1px solid #a2a9b1;
  border-collapse: collapse;
  background: #f8f9fa;
  font-size: 13px;
  line-height: 1.5;
}
.infobox td {
  padding: 6px 10px;
  border: none;
  vertical-align: top;
}
.infobox-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: #f8f9fa;
  padding: 10px 10px 6px !important;
  font-family: Arial, Helvetica, sans-serif;
  border-top: none;
}
.infobox-image {
  text-align: center;
  padding: 6px 10px !important;
  background: #f8f9fa;
  border-top: none;
}
.infobox-image img {
  max-width: 260px;
  height: auto;
}
.infobox-caption {
  text-align: center;
  font-size: 12px;
  color: #54595d;
  padding: 4px 10px 8px !important;
  background: #f8f9fa;
  border-top: none;
}
.infobox-heading {
  text-align: center;
  font-weight: bold;
  background: #f8f9fa;
  padding: 8px 10px !important;
  font-size: 14px;
}
.infobox-label {
  width: 35%;
  font-weight: bold;
  background: #f8f9fa;
  color: #202122;
}
.infobox-data {
  background: #f8f9fa;
}

/* === Table of Contents (inline — hidden, using sidebar TOC instead) === */
#toc {
  display: none;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 10px 16px;
  margin: 8px 0 16px;
  font-size: 13px;
}
.toctitle {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}
#toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#toc > ul > li {
  margin: 4px 0;
}
#toc ul ul {
  padding-left: 20px;
}
#toc ul ul li {
  margin: 2px 0;
}
.tocnumber {
  margin-right: 6px;
  color: #202122;
}
.toctext {
  color: #3366cc;
}

/* === Images / Thumbnails === */
.thumb {
  float: right;
  clear: right;
  margin: 0 0 12px 20px;
  background: #f8f9fa;
  border: 1px solid #c8ccd1;
  padding: 4px;
}
.thumb.tleft {
  float: left;
  clear: left;
  margin: 0 20px 12px 0;
}
.thumb img {
  display: block;
}
.thumb video {
  display: block;
}
.thumbcaption {
  font-size: 12px;
  color: #54595d;
  padding: 4px 4px 2px;
  line-height: 1.4;
}

/* === References === */
.reflist {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding-left: 2em;
}
.reflist li {
  margin-bottom: 4px;
}
.mw-cite-backlink {
  margin-right: 4px;
}
.mw-cite-backlink a {
  color: #3366cc;
}
sup.reference {
  font-size: 11px;
  vertical-align: super;
  line-height: 0;
}
sup.reference a {
  color: #3366cc;
}

/* === See Also / External Links === */
.see-also-list,
.ext-link-list {
  margin: 0.5em 0 0.5em 1.6em;
}
.external::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1 9L9 1m0 4V1H5' stroke='%233366cc' fill='none' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center;
}

/* === Categories === */
.catlinks {
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 8px 12px;
  margin-top: 24px;
  font-size: 12px;
  clear: both;
}
.catlinks b {
  margin-right: 4px;
}
.catlinks a {
  color: #3366cc;
}

/* === Footer === */
.mw-footer {
  margin: 0;
  padding: 16px 24px;
  font-size: 12px;
  color: #72777d;
  border-top: 1px solid #eaecf0;
}
.mw-footer div {
  margin-bottom: 4px;
}
.mw-footer a {
  color: #3366cc;
}
.mw-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

/* === Clearfix === */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* === Right Sidebar: Appearance === */
.mw-sidebar-right {
  width: 220px;
  flex-shrink: 0;
  padding: 16px 16px 16px 12px;
  font-size: 13px;
  position: sticky;
  top: 16px;
  align-self: flex-start;
}
.mw-sidebar-right.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
}

/* Glasses toggle button (in header) */
.appearance-glasses {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: #202122;
  padding: 0;
}
.appearance-glasses:hover {
  background: #eaecf0;
}

/* Appearance panel */
.appearance-panel {
  border: none;
}
.appearance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.appearance-title {
  font-weight: bold;
  font-size: 15px;
  color: #202122;
}
.appearance-hide {
  padding: 2px 10px;
  font-size: 12px;
  background: #eaecf0;
  border: 1px solid #a2a9b1;
  border-radius: 3px;
  cursor: pointer;
  color: #202122;
}
.appearance-hide:hover {
  background: #dde;
}
.appearance-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.appearance-section {
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.appearance-section-label {
  font-size: 13px;
  color: #54595d;
}
.appearance-section label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #202122;
  cursor: pointer;
}
.appearance-section input[type="radio"] {
  accent-color: #3366cc;
  margin: 0;
}

/* === Appearance: Text Size === */
body.text-small .mw-body-content { font-size: 13px; }
body.text-standard .mw-body-content { font-size: 14px; }
body.text-large .mw-body-content { font-size: 16px; }

/* === Appearance: Width === */
body.width-standard .mw-body { max-width: 960px; }
body.width-wide .mw-body { max-width: none; }

/* === Appearance: Color (Dark Mode) === */
body.color-dark {
  background: #1a1a2e;
  color: #d4d4d4;
}
body.color-dark .mw-header {
  background: #1e1e30;
  border-bottom-color: #333;
}
body.color-dark .mw-header-menu,
body.color-dark .logo-text { color: #e0e0e0; }
body.color-dark .mw-sidebar {
  background: #222;
}
body.color-dark .sidebar-toc-header { border-bottom-color: #444; }
body.color-dark .sidebar-toc-title { color: #e0e0e0; }
body.color-dark .sidebar-toc-toggle { background: #333; border-color: #444; color: #d4d4d4; }
body.color-dark .sidebar-toc-item a { color: #6ea8fe; }
body.color-dark .sidebar-toc-top a { color: #e0e0e0; }
body.color-dark .mw-body {
  background: #222;
  color: #d4d4d4;
}
body.color-dark a { color: #6ea8fe; }
body.color-dark .firstHeading { border-bottom-color: #444; }
body.color-dark #siteSub { color: #999; }
body.color-dark .mw-tabs-bar { border-bottom-color: #444; }
body.color-dark .mw-tabs-left li.selected a { color: #e0e0e0; border-bottom-color: #6ea8fe; }
body.color-dark .mw-tabs-right li a { color: #d4d4d4; }
body.color-dark .mw-body-content h2 { border-bottom-color: #444; }
body.color-dark .infobox { background: #2a2a3e; border-color: #444; }
body.color-dark .infobox td { background: #2a2a3e; }
body.color-dark .infobox-title { background: #2a2a3e; color: #e0e0e0; }
body.color-dark #toc { background: #2a2a3e; border-color: #444; }
body.color-dark .toctitle { color: #e0e0e0; }
body.color-dark .tocnumber { color: #d4d4d4; }
body.color-dark .thumb { background: #2a2a3e; border-color: #444; }
body.color-dark .thumbcaption { color: #999; }
body.color-dark .catlinks { background: #2a2a3e; border-color: #444; }
body.color-dark .mw-footer { color: #888; border-top-color: #333; }
body.color-dark .wikitable th { background: #2a2a3e; border-color: #444; color: #d4d4d4; }
body.color-dark .wikitable td { background: #222; border-color: #444; color: #d4d4d4; }
body.color-dark .appearance-title { color: #e0e0e0; }
body.color-dark .appearance-section { border-top-color: #444; }
body.color-dark .appearance-section-label { color: #999; }
body.color-dark .appearance-section label { color: #d4d4d4; }
body.color-dark .appearance-hide { background: #333; border-color: #444; color: #d4d4d4; }
body.color-dark .appearance-glasses { background: #333; border-color: #444; color: #d4d4d4; }

/* Automatic color follows system preference */
@media (prefers-color-scheme: dark) {
  body.color-automatic { background: #1a1a2e; color: #d4d4d4; }
  body.color-automatic .mw-header { background: #1e1e30; border-bottom-color: #333; }
  body.color-automatic .mw-header-menu,
  body.color-automatic .logo-text { color: #e0e0e0; }
  body.color-automatic .mw-sidebar { background: #222; }
  body.color-automatic .sidebar-toc-header { border-bottom-color: #444; }
  body.color-automatic .sidebar-toc-title { color: #e0e0e0; }
  body.color-automatic .sidebar-toc-toggle { background: #333; border-color: #444; color: #d4d4d4; }
  body.color-automatic .sidebar-toc-item a { color: #6ea8fe; }
  body.color-automatic .sidebar-toc-top a { color: #e0e0e0; }
  body.color-automatic .mw-body { background: #222; color: #d4d4d4; }
  body.color-automatic a { color: #6ea8fe; }
  body.color-automatic .firstHeading { border-bottom-color: #444; }
  body.color-automatic #siteSub { color: #999; }
  body.color-automatic .mw-tabs-bar { border-bottom-color: #444; }
  body.color-automatic .mw-tabs-left li.selected a { color: #e0e0e0; border-bottom-color: #6ea8fe; }
  body.color-automatic .mw-tabs-right li a { color: #d4d4d4; }
  body.color-automatic .mw-body-content h2 { border-bottom-color: #444; }
  body.color-automatic .infobox { background: #2a2a3e; border-color: #444; }
  body.color-automatic .infobox td { background: #2a2a3e; }
  body.color-automatic .infobox-title { background: #2a2a3e; color: #e0e0e0; }
  body.color-automatic #toc { background: #2a2a3e; border-color: #444; }
  body.color-automatic .thumb { background: #2a2a3e; border-color: #444; }
  body.color-automatic .catlinks { background: #2a2a3e; border-color: #444; }
  body.color-automatic .mw-footer { color: #888; border-top-color: #333; }
  body.color-automatic .appearance-title { color: #e0e0e0; }
  body.color-automatic .appearance-section { border-top-color: #444; }
  body.color-automatic .appearance-section-label { color: #999; }
  body.color-automatic .appearance-section label { color: #d4d4d4; }
  body.color-automatic .appearance-hide { background: #333; border-color: #444; color: #d4d4d4; }
  body.color-automatic .appearance-glasses { background: #333; border-color: #444; color: #d4d4d4; }
}

/* === Collapsible Sections (mobile only) === */
.mw-section-collapsible {
  /* On desktop: always open, no interactive behavior */
  border: none;
  margin: 0;
}
.mw-section-collapsible > summary {
  list-style: none;
  cursor: default;
}
.mw-section-collapsible > summary::-webkit-details-marker { display: none; }
.mw-section-collapsible > summary::marker { display: none; content: ''; }
.mw-section-collapsible > summary > h2 { margin: 24px 0 8px; }
/* Force open on desktop */
.mw-section-collapsible .mw-section-content { display: block !important; }

/* === Responsive === */
@media (max-width: 800px) {
  .mw-sidebar { display: none; }
  .mw-sidebar-right { display: none; }

  .mw-header {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .mw-header-menu { font-size: 24px; }
  .mw-header-logo { margin-right: 0; }
  .mw-header-logo img { height: 32px; }
  .logo-text { font-size: 18px; }
  .logo-tagline { display: none; }
  .mw-header-search { order: 10; flex-basis: 100%; max-width: none; margin: 4px 0 0; }
  .mw-header-end { margin-left: auto; }
  .mw-header-links { display: none; }
  .appearance-glasses { display: none; }

  .mw-body { padding: 12px 14px; }
  .firstHeading { font-size: 22px; }

  .mw-tabs-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mw-tabs-left li a,
  .mw-tabs-right li a { padding: 6px 8px; font-size: 12px; white-space: nowrap; }

  .infobox {
    float: none;
    margin: 0 0 16px 0;
    width: 100%;
  }
  .infobox-image img { max-width: 100%; }

  .thumb, .thumb.tleft {
    float: none;
    clear: both;
    margin: 12px auto;
    max-width: 100%;
    width: auto !important;
  }
  .thumb img, .thumb video { width: 100%; height: auto; }

  .mw-body-content h2 { font-size: 19px; }
  .mw-body-content h3 { font-size: 16px; }

  /* Show inline TOC on mobile since sidebar is hidden */
  #toc { display: block; }

  .mw-footer { padding: 12px 14px; }
  .mw-footer-links { gap: 6px 12px; }

  /* Collapsible sections on mobile */
  .mw-section-collapsible {
    border-bottom: 1px solid #eaecf0;
  }
  .mw-section-collapsible > summary {
    cursor: pointer;
    padding: 12px 0;
    position: relative;
  }
  .mw-section-collapsible > summary > h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    padding-left: 28px;
  }
  /* Chevron */
  .mw-section-collapsible > summary::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 6px solid #54595d;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.15s ease;
  }
  .mw-section-collapsible[open] > summary::before {
    transform: translateY(-50%) rotate(90deg);
  }
  /* Let the details element control visibility on mobile */
  .mw-section-collapsible .mw-section-content { display: revert !important; }
  .mw-section-collapsible > summary .mw-editsection { display: none; }
}
