@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   antitribu.io — combined stylesheet
   Merged from stylesheet.css (base theme) + customization.css
   (overrides), in that order, to preserve the original cascade.
   ============================================================ */

/* ============================================================
   BASE THEME (formerly stylesheet.css)
   ============================================================ */

/*  --------- Colors  ---------  */
/* Header keeps the gradient */
header {
	background-color: var(--header-footer-bg); /* Simple mode fallback */
	background: linear-gradient(135deg, var(--headfoot-gradient-1, var(--header-footer-bg)) 50%, var(--headfoot-gradient-2, var(--header-footer-bg)) 100%);
}

/* Footer uses a single solid color */
footer {
	background-color: var(--header-footer-bg);
}
/* Header/footer text */
header, footer, header a, footer a {color: var(--header-footer-text);}

/* Main */
main, .sidebar {
	background-color: var(--main-bg);
}

/* Background */
body {background: var(--body-bg); background-image: var(--body-bg-image);}
body {
	background-image: var(--body-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

/* --------- General styling ------------ */

/* Setting the max width of accessible content blocks (no longer touches inline tags like <i>/<b>) */
footer {margin: 0 auto; padding: 0.5em; max-width: 100%;}
main p, main ul, main ol, main blockquote, main table, main h1, main h2, main h3, main h4, main h5, main h6 {
	margin: 0 auto;
	padding: 0.5em;
	max-width: 100%;
}

/* Font settings */
body {
	font-family: var(--body-font), sans-serif;
	font-size: 1em;
	line-height: 1.5em;
	overflow-x: hidden;
	font-family: "Poppins", sans-serif;
}

.container {
	display: flex;
	flex-direction: column;
	padding-top: 2em;
	justify-content: flex-start;
	max-width: 1049px; /* was 969px, +80px */
	margin-left: 3em;
}

.inner {
	display: flex;
	gap: 5px;
}

main {
	margin-top: 0;
	padding: 1em 2em;
	min-height: 80vh;
	max-height: 80vh;
	max-width: 840px;  /* was 760px, +80px */
	overflow: scroll;
	overflow-x: hidden;
	flex-grow: 3;
}
/* More space inside main and footer without messing up sizing */
main > *, footer > * {margin: auto 1em; max-width: 640px;} /* was 80ch, see note above */

main p {margin-bottom: 0.5em;}

/* Color links */
main a:link, nav a:link {color: var(--link-text);}
main a:visited, nav a:visited {color: var(--visited-link-text);}

img {max-width: 100%;}

/* The sidebar; mostly puts it into position */
.sidebar {
	flex-grow: 0;
	flex-shrink: 1;
	padding: 1em;
	min-width: 160px; /* was 20ch, see note above */
}
/* Space list items nicely */
nav ul {padding: 0.4em 0.5em;}
nav ul li {margin-bottom: 0.8em; display: block;}
nav ul li:before {content: "";}

.sidebar, main {margin: 0.5em; border-radius: 5px;}

/* The profile box */
.box {
	padding: 0.5em;
	border: 0px dotted var(--border-color);
	border-radius: 5px;
	overflow: hidden;       /* clips anything that tries to spill past the border */
	box-sizing: border-box; /* keeps padding from pushing the box wider than intended */
	
}

.box a {
	display: block; /* removes inline whitespace gap <a> tags add around images */
}

.box img {
	display: block;
	padding-bottom: 8px;
	width: 100%;
	max-width: 200px;
	height: auto;
	max-height: 200px;
	object-fit: cover; /* crops gracefully if the image's aspect ratio is unusual */
	border-radius: 5px;
	margin: 0 auto;
  mix-blend-mode: screen; /* try also: multiply, overlay, screen, soft-light */
  opacity: 0.85;


}
.box p {margin: 0;}

/* Horizontal rule / the line */
hr {background: radial-gradient(circle, #FCE1E5 50%, #ffffff 100%); height: 1px; padding: 0; border: none; margin: 0; width: 100%; max-width: 100%;}

/* --------- Header/footer styling ------------ */

header h1 {font-family: var(--title-font), sans-serif;}

header {
	margin: 0.5em auto 0 auto;
	max-width: 125ch;
	text-align: center;
	padding: 0.2em;
}

footer {
	max-width: 99%;
	border-radius: 5px;
	text-align: center;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}

footer p {margin: auto;}

header h1 a {text-decoration: none; font-size: 1em; line-height: 1em;}

/* -------- Hover and focus ------------- */
a:hover {opacity: 1;}
*:focus {outline: 2px solid var(--focus-outline);}

/*  --------- Responsiveness  ---------  */

/* No weird gaps around the site */
/* No weird gaps around the site */
body {margin: 0; padding: 0 0 2em 0;}

/* Adjusting a few adjustments for mobile */
@media screen and (max-width: 1000px) {
	body {color: #ffffff;} /* white text on mobile */
	main {max-height: 100%; max-width: 100%; padding-top: 0;}
	main * {margin: auto;}
	header, footer {border-radius: 0; padding: 0.2em 0; border: none; margin: 0;}
	header, footer, main {max-width: 100%;}
	header h1:before, header h1:after {content: "";}
	header {margin-bottom: 1px;}
	footer {margin-top: 0.2em;}
	.container {margin: 0 1em; padding-top: 1.5em;}
	.sidebar, main {margin: 0em;}
	.sidebar {padding-bottom: 0;}
	.sidebar .box, nav {margin: auto; max-width: 480px; text-align: center;} /* was 60ch, see note above */
	.box {overflow: visible;}
	.sidebar .box img {float: none; margin: 0 auto;} /* centered instead of overlapping */
	.inner {flex-direction: column; gap: 0;}
	.inner * {border-radius: 0; border: 0;}
	nav ul, nav ul li {display: inline-block; padding: 0 0.4em; text-align: center;}
	.box {margin: 0.5em; border-bottom: 2px solid var(--border-color);}
	.box img {max-width: 100px; max-height: 100px; margin: 0 auto; padding: 0;}
}

@media screen and (max-width: 600px) {
	.box img {margin: 0 auto !important;}
	.sidebar {border-bottom: 2px solid var(--border-color); padding-bottom: 0.5em;}
	nav ul {margin-bottom: 0;}
}

/* --------- Tooltip: disable old CSS-only popup, keep hover styling --------- */
.tooltip:hover::after,
.tooltip:focus::after,
.tooltip:focus-within::after {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* --------- JS-driven tooltip box: escapes overflow:hidden parents --------- */
.tooltip-box {
  position: fixed;
  max-width: 400px;   /* as wide as you want now — no parent clipping */
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  text-align: center;
  white-space: normal;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

/* ============================================================
   CUSTOMIZATIONS / OVERRIDES (formerly customization.css)
   ============================================================ */

/* There are two sets of color/customization variables here.
 *
 * One is fancier, but may be harder to use if you've never used CSS before.
 * The other is simple and perfect for getting started.
 *
 * The complex version is the default; changing the simple version
 * will not change anything while it's active.
 *
 * To switch to the simple version, just comment out or delete the
 * complex version's section.
 *
 * Enjoy, and good luck! */


@media screen and (min-width: 1001px) {
  html, body {
    overflow: hidden;
    height: 100%;
  }
}

/* ---------- Simple ------------ */
:root {
	--header-footer-bg: rgba(23, 23, 23, 0.7);
	--body-bg: rgba(23, 23, 23, 0.7);
	--main-bg: rgba(23, 23, 23, 0.7);
	--header-footer-text: #fcfcfc;
	--body-text: #fcfcfc;
	--link-text: #ffffff;
	--visited-link-text: #ffffff;
	--border-color: #ffffff;
	--body-font: "Poppins";
	--title-font: "Poppins";
}
/* Delete everything below this line to switch to simple */
/* ---------- Fancy ------------ */
/* Suggested tools:
 * https://cssgradient.io/ url("./images/bg.png")
 */
:root {
	--headfoot-gradient-1: rgba(23, 23, 23, 0.7);
	--headfoot-gradient-2: rgba(23, 23, 23, 0.7);
	--body-bg-image: url("./images/bg.png");
}
/* Title font definition */
header h1 {font-family: "Poppins",, Serif;}
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 100;
  src: local("Poppins"),

}
/* --------- Force white text everywhere, regardless of system light/dark mode --------- */
html {
  color-scheme: only light;
}
body {
	font-family: var(--body-font), sans-serif;
	font-size: 1em;
	line-height: 1.5em;
	overflow-x: hidden;
	font-family: "Poppins", sans-serif;
	color: var(--body-text, #fcfcfc);
}
/* --------- Fix: prevent long unbroken links (e.g. URLs) in main
   from forcing the sidebar/main flex row to widen --------- */
main {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
main a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* --------- Dropdown navigation --------- */

.dropdown {
    position: relative;
}

.dropbtn {
    display: block;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: -14px;
    text-align: center;

    /* Keep the visual gap */
    margin-left: 25px;

    min-width: 140px;
    padding: 14px 0 14px;
    list-style: none;

    background: rgba(0,0,0,1);
    border-radius: 5px;

    z-index: 100;
}

/* Invisible bridge across the gap */
.dropdown-content::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 0;
    width: 25px;
    height: 100%;
}

.dropdown-content li {
    margin: 0;
    white-space: nowrap;
}

.dropdown-content li::before {
    content: "";
}

.dropdown-content li > a,
.dropdown-content li > .dropbtn {
    display: block;
    padding: 4px 16px;
}

/* ONLY open the immediate child menu */
.dropdown:hover > .dropdown-content,
.dropdown:focus-within > .dropdown-content {
    display: block;
}

/* Nested dropdowns */
.dropdown-content .dropdown {
    position: relative;
}

.dropdown-content .dropdown > .dropdown-content {
    left: 100%;
    top: 0;
    margin-left: 16px;
    padding-top: 14px;
    padding-bottom: 12px;
}

.dropdown-content .dropdown > .dropdown-content::before {
    left: -16px;
    width: 16px;
}

.dropdown-content-wide {
    min-width: 170px;
}

nav a {
    text-decoration: none;
}

.dropbtn {
    text-decoration: none;
}
/* --------- Video embeds --------- */
.video-wrapper {
  position: relative;
  width: 97%;
  max-width: 80ch;
  aspect-ratio: 16 / 9;
  margin: 1em auto;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 1000px) {
  .dropdown-content {
    left: 50%;
    top: 100%;
    margin-left: 0;
    margin-top: 10px; /* gap between button and menu, replaces the old horizontal margin-left */
    transform: translateX(-50%); /* centers horizontally under the button instead of vertically beside it */
    background: rgba(0, 0, 0, 0.65); /* was 0.35 on desktop — raise/lower to taste */
  }

  .dropdown::after {
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px; /* matches dropdown-content's margin-top, keeps hover/touch alive across the gap */
  }
}

@media screen and (max-width: 1000px) {
  body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--body-bg-image);
  }
}

@media screen and (max-width: 1000px) {
  main table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  main table col {
    width: auto !important;
  }
}
 .video-wrapper,
.video-wrapper iframe {
  touch-action: manipulation;
  pointer-events: auto;
}

/* --------- Layout restructure: side panel without affecting footer width --------- */
.main-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.content-row {
  display: flex;
  gap: 5px;
}

/* --------- Secondary text window, right of main --------- */
.side-panel {
  flex: 290px 0 0;      /* fixed width, doesn't grow or shrink — won't affect sidebar/main */
  min-height: 20vh;
  max-height: 42vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1em 2em;
  background-color: var(--main-bg);
  border-radius: 5px;
  margin: 0.5em;
  box-sizing: border-box;
}

.container-wide {
  max-width: 1360px; /* was 1240px, +80px */
}

/* --------- Tooltip: wider box + focus fallback for touch/keyboard --------- */
.tooltip::after {
  max-width: 660px  !important;;   /* wide enough for longer text; adjust to taste */
  white-space: normal;
}

.tooltip:focus::after,
.tooltip:focus-within::after {
  opacity: 1;
  visibility: visible;
}

.side-panel p {
  margin: 0.1em 0;
}

@media screen and (max-width: 1000px) {
  .main-column {
    display: contents;
  }

  .content-row {
    display: contents;
  }

  .sidebar {
    order: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .side-panel {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    min-height: 0;
    margin: 0.5em 0;
    box-sizing: border-box;
  }

  main {
    order: 3;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  footer {
    order: 4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.content-row {
  align-items: stretch;
}

.sidebar {
  height: auto;  /* let align-items: stretch (default on .inner, explicit on
                     .content-row) match this to main's height directly —
                     "height: 100%" resolved inconsistently depending on how
                     deeply nested .sidebar was on a given page, since it
                     needs an ancestor with an explicit height to measure
                     against and that chain differs between page layouts */
  box-sizing: border-box;
}

.side-panel {
  align-self: flex-start;
  height: auto;
  max-height: none;
  min-height: 0;
}

.side-panel-column {
  flex: 290px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 89.5vh;
  min-height: 0;
  overflow-y: auto;
  margin: 0.5em;   /* matches main's own margin exactly -- this lives on
                       the scrollport itself now, not a child, so it can
                       never scroll away and expose a hidden misalignment */
}

.side-panel-column > .side-panel {
  flex: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
a:link,
a:visited {
  color: var(--link-text);
}

/* --------- Paged main content (pager.js) --------- */
/* Only one page is shown at a time; main still scrolls normally
   inside each page. Pages without pager markup are unaffected. */

/* IMPORTANT (site width consistency): on this site, main's flex width is
   driven by its text content's intrinsic width — `main p {max-width:100%}`
   outranks `main > * {max-width:640px}`, so paragraphs demand maximum
   width and flex-shrink squeezes the sidebar to its 160px min-width on
   every page. The pager must preserve that: no max-width caps anywhere.
   The narrower text column on pager pages is made with PADDING on
   .pager-page, which shrinks the rendered text without reducing the
   intrinsic width demand — so the sidebar/main split stays identical
   to every other page. */
main > .pager {
  max-width: none;
  margin: 0;
  /* Keeps the sticky anchor able to reach vertical center even when the
     active page's text is shorter than the window. Tune if the arrows
     ever sit low on a short page. */
  min-height: calc(80vh - 9em);
}

.pager-page {
  display: none;
  /* Gutters that make room for the arrows on either side of the text.
     Wider/narrower text column = raise/lower this number. */
  padding: 0 56px;
  box-sizing: border-box;
}

.pager-page.is-active {
  display: block;
}

/* Zero-height sticky anchor — pins to the vertical center of main's
   scrollport (the visible window, not the text) without pushing content */
.pager-controls {
  position: sticky;
  top: 50%;
  height: 0;
  z-index: 10;
}

.pager-arrow {
  position: absolute;
  top: 0;
  transform: translateY(-50%); /* true vertical centering on the sticky line */
  background: none;
  border: none;
  color: var(--body-text, #fcfcfc);
  font-family: inherit;
  font-size: 4.8em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

/* 0 = main's content edge. The gutter runs from main's visual edge
   (-32px, its 2em padding) to the text edge (+56px, the page padding);
   these values center the arrows in that gutter, clear of both. */
.pager-arrow[data-pager-prev] {
  left: 0;
}

.pager-arrow[data-pager-next] {
  right: 0;
}

.pager-arrow:hover,
.pager-arrow:focus {
  opacity: 1;
}

@media screen and (max-width: 1000px) {
  /* Text goes full width on mobile — smaller arrows, smaller gutters */
  main > .pager {
    min-height: 0;
  }

  .pager-page {
    padding: 0 1.6em;
  }

  .pager-arrow {
    font-size: 2.4em;
  }

  .pager-arrow[data-pager-prev] {
    left: 0;
  }

  .pager-arrow[data-pager-next] {
    right: 0;
  }
}

/* --------- Pager table of contents (side panel) --------- */
.pager-toc p {
  margin: 0.1em 0;
}

.pager-toc a {
  text-decoration: none;
  opacity: 0.75;
}

.pager-toc a:hover,
.pager-toc a:focus {
  opacity: 1;
}

/* The page currently being viewed */
.pager-toc a.is-current {
  opacity: 1;
  font-weight: 600;
}

/* --------- Narrower side panel (seeker page only) --------- */
/* Scoped to the .side-panel-narrow modifier class so the index page's
   panel is unaffected. The panel shrinks from the RIGHT: its width drops
   but a compensating right margin keeps its total layout slot at exactly
   290px + 0.5em, so the freed space is NOT redistributed to main-column
   (flex: 1 1 auto would otherwise widen main). To retune: width +
   the px inside margin-right must always sum to 290px. */
@media screen and (min-width: 1001px) {
  .side-panel-narrow {
    flex-basis: 200px;
    margin-right: calc(0.5em + 90px);
  }
}

.social-panel {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 24px;

}

.social-panel a {
  text-decoration: none;
}

.timer-panel {
  text-align: left;
}

.timer-countdown {
  font-size: 1em;
  font-weight: 400;
  margin: 0.2em 0;
}

.timer-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.4em;
}

.timer-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--link-text, #fff);
  transition: width 1s linear;
}