/*
Theme Name: WTFTO Neutral Reporting (checkbox v10.4 + photos)
Theme URI: https://wtfto.ca/
Author: TerraHosting
Description: WTFT.O moderated community newsroom theme (v10.4) — removed explainer tagline + Spotlight hint.
Version:  1.3.1
License: GPLv2 or later
Text Domain: wtfto
*/



img{max-width:100%;height:auto}

/* --- Sources & References (compact top-right button + dropdown) --- */
.wtfto-story-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 8px;
}

.wtfto-story-topbar .kicker{
  margin: 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.wtfto-story-sources{
  flex: 0 0 auto;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  }

/* Keep the markup as <details><summary>...</summary><div>...</div></details> */
details.wtfto-sources{
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  overflow: visible;
  display: inline-block;
  position: relative;
}

details.wtfto-sources summary{
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 900;
  user-select: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  white-space: nowrap;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

details.wtfto-sources summary::-webkit-details-marker{display:none;}

details.wtfto-sources summary:after{
  content:"▾";
  font-weight: 900;
  opacity:.8;
}

details.wtfto-sources[open] summary:after{ content:"▴"; }

details.wtfto-sources .wtfto-sources-body{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: min(520px, 88vw);
  max-width: 88vw;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(2,6,23,.18);
  padding: 12px 14px;
  z-index: 50;
}

details.wtfto-sources .wtfto-sources-body a{
  word-break: break-word;
}

@media (max-width: 640px){
  .wtfto-story-topbar{
    align-items: flex-start;
    gap: 10px;
  }
  .wtfto-story-sources{
    justify-content:flex-start;
    align-items:flex-start;
  }
  details.wtfto-sources .wtfto-sources-body{
    right: auto;
    left: 0;
    min-width: min(520px, 92vw);
    max-width: 92vw;
  }
}

:root{
  /* Palette: WTFTO Logo Teal */
  --bg:#f2fbfb; --bg2:#ffffff;
  --ink:#021b1b; --ink2:rgba(2,27,27,.82);
  --muted:rgba(2,27,27,.62); --line:rgba(2,27,27,.14);
  --card:rgba(255,255,255,.88);
  --shadow:0 22px 80px rgba(2,6,23,.16);
  --shadow2:0 12px 34px rgba(2,6,23,.12);
  --r:22px;

  /* Accents from logo */
  --a:#2fb9b2;  /* light teal */
  --b:#007070;  /* logo teal */
  --c:#003030;  /* deep teal */
  --d:#001818;  /* darkest */

  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --sans:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
}

html[data-theme="dark"]{
  --bg:#050713; --bg2:#06081b;
  --ink:#eaf0ff; --ink2:rgba(234,240,255,.80);
  --muted:rgba(234,240,255,.64); --line:rgba(255,255,255,.12);
  --card:rgba(255,255,255,.07);
  --shadow:0 22px 80px rgba(0,0,0,.48);
  --shadow2:0 12px 34px rgba(0,0,0,.36);
}

*{box-sizing:border-box}
/* Mobile safety: prevent any accidental horizontal scrolling ("sideways swipe") */
html, body{overflow-x:hidden;}
body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-text-size-adjust:100%;
  background:linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--ink);
}
a{color:inherit}
.container{width:min(1120px,92vw); margin:0 auto}
.bg{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;}
.mesh{
  position:absolute; inset:-20%; z-index:0; pointer-events:none;
  background:
    radial-gradient(900px 600px at 12% 15%, color-mix(in srgb, var(--a) 34%, transparent), transparent 55%),
    radial-gradient(800px 550px at 86% 18%, color-mix(in srgb, var(--b) 34%, transparent), transparent 55%),
    radial-gradient(900px 650px at 62% 92%, color-mix(in srgb, var(--c) 28%, transparent), transparent 55%),
    radial-gradient(700px 520px at 20% 80%, color-mix(in srgb, var(--d) 26%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  
  filter:saturate(1.15);
  animation: floatMesh 16s ease-in-out infinite;
  transform-origin:50% 50%;
}
@keyframes floatMesh{
  0%{ transform:translate3d(0,0,0) scale(1.02) rotate(0deg)}
  50%{ transform:translate3d(-1.5%,1.2%,0) scale(1.05) rotate(1deg)}
  100%{ transform:translate3d(0,0,0) scale(1.02) rotate(0deg)}
}
.vignette{position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(255,255,255,.65), transparent 62%),
    radial-gradient(900px 600px at 50% 100%, rgba(2,6,23,.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(2,6,23,.08));
}
html[data-theme="dark"] .vignette{
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(0,0,0,.65), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.55));
}

header.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.78);
  min-height:64px;
  display:flex;
  align-items:center;
}
html[data-theme="dark"] header.topbar{background:rgba(7,10,18,.55); border-bottom-color:rgba(255,255,255,.12)}
/* Keep header visible at all times (fixed). Offset page content so it doesn't slide under. */
/* Sticky header (global) — JS sets --headerH dynamically */
body{padding-top:var(--headerH,64px);} 
body.admin-bar{padding-top:calc(var(--headerH,64px) + 32px);} 
body.admin-bar header.topbar{top:32px;}
@media (max-width:782px){
  body.admin-bar{padding-top:calc(var(--headerH,64px) + 46px);} 
  body.admin-bar header.topbar{top:46px;}
}
header.topbar{position:fixed !important; top:0; left:0; right:0; z-index:1000;}


header.topbar .nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 0;
  gap:12px;
}

/* Brand block */
.brand{
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  min-width:0;
}
.brandText{min-width:0; line-height:1.1}
.brand b{display:block; font-size:18px}
.brand small{display:block; color:var(--ink2); font-weight:700; opacity:.9}
.serviceArea{opacity:.75}
.wtfto-header-text{line-height:1.15}
.wtfto-tagline-top{
  display:block;
  font-size:12px;
  font-weight:600;
  letter-spacing:1.2px;
  text-transform:uppercase;
  opacity:.8;
}
.wtfto-tagline-main{
  display:block;
  font-size:20px;
  font-weight:800;
  margin-top:4px;
  color:var(--ink);
  opacity:1;
}
.wtfto-tagline-sub{
  display:block;
  font-size:12px;
  font-weight:500;
  opacity:.75;
  margin-top:3px;
}
@media (max-width:768px){
  .wtfto-tagline-main{font-size:17px}
}

.logo{
  width:52px; height:52px;
  border-radius:18px;
  overflow:hidden;
  flex:0 0 auto;
  padding:3px;
  display:grid; place-items:center;
  box-shadow: var(--shadow2);
}
.logoImg, .logo img, .logo .custom-logo{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
}

/* Single nav system */
.siteNav{
  display:flex;
  align-items:center;
  gap:14px;
}
.siteNavHeader{display:none}
.siteNavTitle{font-weight:1000}
.navToggle, .navClose{
  display:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  color:var(--ink);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
html[data-theme="dark"] .navToggle,
html[data-theme="dark"] .navClose{
  background: rgba(10,14,26,.55);
}
.navToggleIcon{font-size:20px; line-height:1}

.siteNav ul.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:14px;
  align-items:center;
}
.siteNav ul.menu li{list-style:none; margin:0; padding:0}
.siteNav ul.menu a{color:var(--ink2); text-decoration:none; font-weight:1000}
.siteNav ul.menu a:hover{text-decoration:underline}

.navInlineActions{display:flex; gap:10px; align-items:center}

/* Overlay for mobile drawer */
.navOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index:9998;
}

/* Mobile / Tablet: off-canvas slide-in drawer */
@media (max-width: 1023px){
  .serviceArea{display:none;}
  .brand b{font-size:16px}
  .logo{width:48px; height:48px; border-radius:16px}

  .navToggle{display:inline-flex; align-items:center; justify-content:center}
  .siteNav{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width:min(360px, 86vw);
    z-index:9999;
    background: rgba(255,255,255,.92);
    border-left:1px solid var(--line);
    box-shadow: var(--shadow2);
    padding:16px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    transform: translateX(105%);
    transition: transform .22s ease;
  }
  html[data-theme="dark"] .siteNav{background: rgba(7,10,18,.92);}

  .siteNav.is-open{transform: translateX(0);}
  .siteNavHeader{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-bottom:10px;
    border-bottom:1px solid var(--line);
  }
  .navClose{display:inline-flex; align-items:center; justify-content:center}

  .siteNav ul.menu{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .siteNav ul.menu a{
    display:block;
    padding:12px 10px;
    border-radius:14px;
    background: rgba(0,0,0,.04);
  }
  html[data-theme="dark"] .siteNav ul.menu a{background: rgba(255,255,255,.06);}

  .navInlineActions{margin-top:auto;}
}

.btn{
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  padding:10px 12px;
  font-weight:1000;
  cursor:pointer;
  box-shadow: var(--shadow2);
  text-decoration:none;
}
html[data-theme="dark"] .btn{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.16); color:#fff}
.btn:hover{transform:translateY(-1px)}

.btn.iconOnly{padding:10px; width:42px; height:42px;}
.btn.iconOnly svg{width:18px; height:18px; display:block;}

html[data-theme="dark"] .fbIcon{color:#7CFFB2;}
html[data-theme="dark"] .fbIcon:hover{color:#9CFFD0;}
.btn.primary{
  border-color: rgba(79,70,229,.35);
  background:linear-gradient(90deg, rgba(0,209,178,.34), rgba(79,70,229,.34));
}
.pill, .tag{
  display:inline-flex; align-items:center; gap:8px;
  border-radius:999px;
  border:1px solid var(--line);
  padding:6px 10px;
  background: rgba(255,255,255,.82);
  font-weight:1000;
  color:var(--ink2);
  text-decoration:none;
}
html[data-theme="dark"] .pill, html[data-theme="dark"] .tag{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14); color:rgba(234,240,255,.86)}
main.container{position:relative; z-index:2; padding:26px 0 60px}
.section{margin:18px 0}
.card{
  border-radius:28px;
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.pad{padding:16px}
.titleRow{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
\.titleRow span\{color:var\(--muted\); font-weight:900\}
.storiesHeader{display:flex; flex-direction:column; gap:4px}
.storiesHeaderTop{display:flex; align-items:baseline; justify-content:space-between}
.storiesTitle{margin:0}
.storiesHeaderSub{display:flex; align-items:center; justify-content:space-between; gap:12px}
.storiesSubhead{color:var(--muted); font-weight:900; line-height:1}
.storiesHeaderActions{display:flex; gap:10px; align-items:center}
.storiesHeaderActions .btn{padding:7px 14px; border-radius:18px; font-size:.85rem}
@media(max-width:600px){
  .storiesHeaderSub{flex-direction:column; align-items:flex-start; gap:8px}
}
.grid{display:grid; grid-template-columns:1.2fr .8fr; gap:14px}
@media(max-width:980px){.grid{grid-template-columns:1fr}}
.kicker{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.gradientText{
  background: linear-gradient(90deg, var(--a), var(--b));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.sectionDivider{
  height:18px; border-radius:999px; margin:12px 0 18px;
  background: linear-gradient(90deg, var(--a), var(--b), var(--c));
  opacity:.95;
}
.wowBanner{
  border-radius:28px; padding:16px;
  border:1px solid rgba(79,70,229,.22);
  background:
    radial-gradient(800px 260px at 15% 30%, color-mix(in srgb, var(--b) 20%, transparent), transparent 60%),
    radial-gradient(700px 240px at 70% 10%, color-mix(in srgb, var(--a) 18%, transparent), transparent 55%),
    radial-gradient(700px 240px at 95% 80%, color-mix(in srgb, var(--c) 14%, transparent), transparent 58%),
    rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
html[data-theme="dark"] .wowBanner{background:
    radial-gradient(800px 260px at 15% 30%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(700px 240px at 70% 10%, rgba(0,209,178,.16), transparent 55%),
    radial-gradient(700px 240px at 95% 80%, rgba(255,45,85,.14), transparent 58%),
    rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.wowGrid{position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:14px}
@media(max-width:980px){.wowGrid{grid-template-columns:1fr}}
.wowCopy h2{margin:0 0 8px; font-size:26px; letter-spacing:-.4px}
.wowCopy p{margin:0; color:var(--ink2); font-weight:900}
.wowCallouts{display:grid; grid-template-columns:repeat(2,1fr); gap:10px}
@media(max-width:560px){.wowCallouts{grid-template-columns:1fr}}
.callout{
  border-radius:18px; border:1px solid var(--line);
  background: rgba(255,255,255,.86); padding:12px; box-shadow:var(--shadow2)
}
html[data-theme="dark"] .callout{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
.callout b{display:flex; align-items:center; gap:10px; font-size:14px}
.callout small{display:block; margin-top:6px; color:var(--muted); font-weight:900}
.spark{width:10px; height:10px; border-radius:999px; background:linear-gradient(90deg,var(--a),var(--b),var(--c),var(--d)}
.statsRow{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:12px}
@media(max-width:900px){.statsRow{grid-template-columns:1fr}}
.stat{
  border-radius:22px; border:1px solid var(--line);
  background: rgba(255,255,255,.86); padding:14px; box-shadow:var(--shadow2); position:relative; overflow:hidden;
}
html[data-theme="dark"] .stat{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
.stat b{display:block; font-size:12px; color:var(--muted); font-weight:900}
.stat .num{font-size:34px; font-weight:1100; letter-spacing:-.8px; margin-top:4px}
.stat .hint{margin-top:6px; color:var(--ink2); font-weight:900}
.spotWrap{
  border-radius:28px; border:1px solid var(--line);
  background: rgba(255,255,255,.78); box-shadow:var(--shadow); overflow:hidden
}
html[data-theme="dark"] .spotWrap{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12)}
.spotHead{display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line)}
html[data-theme="dark"] .spotHead{border-bottom-color:rgba(255,255,255,.12)}
.scroller{display:flex; gap:12px; padding:14px 16px 16px; overflow-x:auto; scroll-snap-type:x mandatory}
.spotCard{
  flex:0 0 360px; scroll-snap-align:start;
  border-radius:22px; border:1px solid var(--line);
  background: rgba(255,255,255,.86); box-shadow:var(--shadow2); overflow:hidden
}
html[data-theme="dark"] .spotCard{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
.spotCard .img{height:150px; background:#0b0f14; border-bottom:1px solid var(--line)}
.spotCard .img img{width:100%; height:100%; object-fit:cover; display:block}
.spotCard .body{padding:12px 14px 14px}
.spotCard .body b{display:block; font-size:12px; color:var(--muted)}
.spotCard .body h4{margin:8px 0; font-size:16px}
.spotCard .body p{margin:0; color:var(--ink2); font-weight:900}
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:12px}
@media(max-width:980px){.steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.steps{grid-template-columns:1fr}}
.step{border-radius:22px; border:1px solid var(--line); background: rgba(255,255,255,.86); box-shadow:var(--shadow2); padding:14px}
html[data-theme="dark"] .step{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
.step i{font-style:normal; font-size:22px; display:inline-grid; place-items:center; width:42px; height:42px; border-radius:16px; border:1px solid var(--line); background: rgba(255,255,255,.82)}
html[data-theme="dark"] .step i{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
.step h4{margin:10px 0 6px}
.step p{margin:0; color:var(--ink2); font-weight:900; font-size:14px}

/* Modal */
.modal{position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:4000;
  background: rgba(2,6,23,.20);
  padding:16px;
}
html[data-theme="dark"] .modal{background:rgba(0,0,0,.60)}
.modal.open{display:flex}
.modalCard{
  width:min(860px, 100%);
  border-radius:24px; border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
html[data-theme="dark"] .modalCard{background:rgba(10,14,28,.80); border-color:rgba(255,255,255,.12)}
.modalHead{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid var(--line)}
html[data-theme="dark"] .modalHead{border-bottom-color:rgba(255,255,255,.12)}
.closeBtn{border:none; background:transparent; font-size:18px; cursor:pointer; color:var(--muted)}
.modalBody{padding:14px 16px 16px}
.input, textarea, select{
  width:100%;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.86);
  padding:10px 12px;
  font: inherit;
  font-weight:900;
  color:var(--ink);
}
html[data-theme="dark"] .input, html[data-theme="dark"] textarea, html[data-theme="dark"] select{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color:#fff;
}
.formRow{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media(max-width:800px){.formRow{grid-template-columns:1fr}}

/* Stories filters: vertical controls, side-by-side columns */
.storiesFilterForm{margin-top:6px}
.stories-filters{
  display:grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap:16px;
  align-items:start;
}
.stories-filter{display:flex; flex-direction:column; gap:6px;}
.stories-filter label{
  display:block;
  font-weight:1000;
  margin:0;
}
.stories-filter-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  
  flex-wrap:wrap;
}
@media(max-width:900px){
  .stories-filters{grid-template-columns: repeat(2, minmax(200px, 1fr));}
}
@media(max-width:600px){
  .stories-filters{grid-template-columns:1fr;}
  .stories-filter-actions{justify-content:flex-start;}
}
.warn{
  border-left:4px solid rgba(255,45,85,.60);
  background: rgba(255,45,85,.10);
  border-radius:16px; padding:10px 12px;
  color: var(--ink2); font-weight:1000;
}
html[data-theme="dark"] .warn{color:rgba(234,240,255,.84); background: rgba(255,45,85,.08)}
.footer{margin-top:28px; padding:16px 0 34px; color:var(--muted); font-weight:900; text-align:center}

/* Global site footer (full-width, like the header) */
.siteFooter{
  position:relative;
  z-index:2;
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(12px);
  isolation:isolate; /* keep widget iframe from overlaying siblings */
}
html[data-theme="dark"] .siteFooter{
  background: rgba(7,10,18,.55);
  border-top-color: rgba(255,255,255,.12);
}

.siteFooterInner{
  padding:18px 0;
  display:grid;
  grid-template-rows:auto auto;
  gap:14px;
  position:relative;
}

/* Top row: copyright + hosting text */
/* Pills: always above the widget */
.siteFooterPill{
  position:relative;
  z-index:9999;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
  color:var(--muted);
  font-weight:900;
  line-height:1.1;
}
html[data-theme="dark"] .siteFooterPill{
  background: rgba(7,10,18,.22);
  border-color: rgba(255,255,255,.10);
}

.siteFooterRight a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent);
}
.siteFooterRight a:hover{opacity:.9;}

/* Widget row: hard-contained so it cannot cover the top row */
.siteFooterWidget{
  position:relative;
  z-index:1;
  overflow:hidden;
}
.siteFooterWidget .widgetWrap{
  position:relative;
  overflow:hidden;
  max-width:100%;
  isolation:isolate;
}
.siteFooterWidget iframe{
  display:block !important;
  position:relative !important;
  z-index:1 !important;
  width:100% !important;
  max-width:100% !important;
}

/* Mobile stacking */

@media (max-width:680px){
  .siteFooterTop{
    flex-direction:column;
    justify-content:center;
    text-align:center;
  }
}
  .siteFooterLeft{order:1;}
  .siteFooterMid{order:2;}
  .siteFooterRight{order:3;}
  .siteFooterMid .widgetWrap{max-width:320px;}
}



/* Safety: prevent logo from blowing up if CSS cache/load issues */
.logoImg, .logo img, .logo .custom-logo{max-width:100% !important; height:auto !important;}
.logo{max-width:56px; max-height:56px;}


/* Hero logo filler */


/* Hero split (text + QR) */
.heroSplit{
  display:flex;
  gap:14px;
  align-items:stretch;
  flex-wrap:nowrap;          /* keep side-by-side */
}
.heroSplit > .card{min-width:0;}
.heroCard{flex:1 1 auto; min-width:0;}
.heroQRCard{flex:0 0 210px; max-width:230px; display:flex; align-items:center; justify-content:center;}
.heroQRCard.pad{padding:16px !important;} /* make QR card smaller than the main hero card */

.heroCard h1{font-size:clamp(28px, 5.2vw, 46px) !important;}

.heroQRBox{display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center;}
.heroQRTitle{font-weight:900; letter-spacing:-.2px;}
.heroQRLink{display:inline-flex; border-radius:16px; overflow:hidden; box-shadow:var(--shadow2); border:1px solid var(--line); background:rgba(255,255,255,.8)}
.heroQRImg{display:block; width:120px; height:120px; image-rendering:auto}
.heroQRCaption{color:var(--muted); font-weight:800; font-size:13px;}

/* Hero inset QR (inside the main hero card) */
.heroCardInset{position:relative;}
.heroCardInset{padding-right:210px;}
.heroInsetQR{box-sizing:border-box;}
/* IMPORTANT:
   Do NOT hide the desktop QR based on pointer/hover media queries.
   Many modern desktop/laptop devices report a coarse pointer (touchscreen),
   which caused the QR to flash then disappear on desktop.

   Instead, we only hide the QR when JS detects a real phone/tablet
   and adds html.wtfto-mobile.
*/

/* JS fallback: main.js adds html.wtfto-mobile when it detects a phone/tablet */
html.wtfto-mobile .heroCardInset{padding-right:16px !important;}
html.wtfto-mobile .heroInsetQR,
html.wtfto-mobile .heroQRCard{display:none !important;}



/* Keep side-by-side even on small screens by shrinking the QR column */
@media(max-width:560px){
  .heroSplit{gap:10px;}
  .heroQRCard{flex-basis:170px; max-width:190px;}
  .heroQRImg{width:110px; height:110px;}
}
@media(max-width:420px){
  .heroQRCard{flex-basis:150px; max-width:170px;}
  .heroQRImg{width:96px; height:96px;}
  .heroQRTitle{font-size:13px;}
  .heroQRCaption{font-size:12px;}
}
.heroQRLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  padding:10px;
  text-decoration:none;
}
html[data-theme="dark"] .heroQRLink{background:rgba(255,255,255,.08);}
.heroQRImg{
  width:min(140px, 18vw);
  height:auto;
  aspect-ratio:1/1;
  display:block;
  border-radius:14px;
}

/* Service area line in header */
.serviceArea{display:block; margin-top:6px; color:var(--muted); font-size:.95rem; line-height:1.2}


/* Simple list styling for policy pages */
.bullets{margin:10px 0 0 18px;}
.bullets li{margin:6px 0;}


/* FINAL override: force agreements box to half width on desktop */
body.page-template-template-submit #submitAgreements,
body.page-template #submitAgreements,
#page #submitAgreements,
#content #submitAgreements{
  width:50% !important;
  max-width:520px !important;
  display:block !important;
  margin-left:0 !important;
  margin-right:auto !important;
  justify-self:start !important;
  align-self:start !important;
}
@media(max-width:820px){
  body.page-template-template-submit #submitAgreements,
  body.page-template #submitAgreements,
  #page #submitAgreements,
  #content #submitAgreements{
    width:100% !important;
    max-width:100% !important;
  }
}



/* Submit page – agreements box (Before you submit) */
.agreements-outer{
  display:flex;
  justify-content:flex-start;
  margin-top:12px;
}
.agreements-box{
  width:50%;
  max-width:520px;
  min-width:320px;
  padding:16px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  border-radius: 12px;
}
.agreements-title{
  font-weight: 800;
  margin-bottom: 10px;
}
.agreements-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.5;
  width:100%;
  margin-top:6px;           /* closer to the line above */
  padding-top:0;
}
.agreements-item + .agreements-item{
  margin-top:10px;          /* put the 2nd checkbox directly underneath with a clear gap */
}
.agreements-item:first-of-type{
  margin-top:0;
}
.agreements-item input[type="checkbox"]{
  width:auto !important;
  display:inline-block !important;
  flex:0 0 auto;
  margin-top:4px;
  transform: scale(1.15);
}
@media (max-width: 820px){
  .agreements-outer{justify-content:stretch;}
  .agreements-box{width:100%; max-width:100%; min-width:0;}
}


/* === Agreements checkbox hard alignment overrides (v1.1.7) === */
.agreements-outer{display:flex; justify-content:flex-start !important;}
#submitAgreements.agreements-box{
  width:50% !important;
  max-width:520px !important;
  margin:18px 0 0 0 !important; /* far left */
}
.agreements-item{display:flex !important; align-items:flex-start !important;}
.agreements-item input[type="checkbox"]{
  width:auto !important;
  min-width:18px !important;
  max-width:18px !important;
  flex:0 0 18px !important;
  display:inline-block !important;
  margin:4px 0 0 0 !important;
}
@media (max-width: 820px){
  #submitAgreements.agreements-box{width:100% !important; max-width:100% !important;}
}


/* === Agreements stacking/align fix (v10) ===
   Forces each agreement onto its own row, with the second checkbox directly underneath the first checkbox.
*/
body.page-template-template-submit #submitAgreements .agreements-item,
body.page-template #submitAgreements .agreements-item,
#submitAgreements .agreements-item{
  display:grid !important;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items:start !important;
  width:100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-template-template-submit #submitAgreements .agreements-item + .agreements-item,
body.page-template #submitAgreements .agreements-item + .agreements-item,
#submitAgreements .agreements-item + .agreements-item{
  margin-top: 10px !important;
}

body.page-template-template-submit #submitAgreements .agreements-item input[type="checkbox"],
body.page-template #submitAgreements .agreements-item input[type="checkbox"],
#submitAgreements .agreements-item input[type="checkbox"]{
  width: 18px !important;
  height: 18px !important;
  display:inline-block !important;
  margin: 2px 0 0 0 !important;
  transform:none !important;
}

body.page-template-template-submit #submitAgreements .agreements-item span,
body.page-template #submitAgreements .agreements-item span,
#submitAgreements .agreements-item span{
  display:block;
}



/* === FORCE agreements lines to stack (v10.1) === */
body.page-template-template-submit .agreements-box .agreements-item,
body.page-template .agreements-box .agreements-item{
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  column-gap: 10px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
}
body.page-template-template-submit .agreements-box .agreements-item + .agreements-item,
body.page-template .agreements-box .agreements-item + .agreements-item{
  margin-top: 10px !important;
}
body.page-template-template-submit .agreements-box .agreements-item input[type="checkbox"],
body.page-template .agreements-box .agreements-item input[type="checkbox"]{
  width: auto !important;
  max-width: none !important;
  display: inline-block !important;
  margin-top: 4px !important;
  transform: scale(1.15) !important;
}


/* === Agreements stack fix v10.2 (inline-safe) === */
body.page-template-template-submit #submitAgreements .agreements-list{display:flex !important; flex-direction:column !important; gap:10px !important;}
body.page-template-template-submit #submitAgreements .agreements-item{display:flex !important; width:100% !important;}
body.page-template-template-submit #submitAgreements .agreements-item input[type="checkbox"]{width:auto !important; flex:0 0 18px !important;}

/* === Mobile readability tweaks (v11) === */
img, video, iframe{max-width:100%; height:auto;}
@media (max-width: 720px){
  header.topbar{min-height:auto !important;}
  header.topbar .nav{padding:14px 0 !important;}
  .navlinks{justify-content:flex-start !important;}
  .navActions{width:100% !important; justify-content:flex-start !important;}
  .navActions .btn{flex:1 1 auto;}
  main.container{padding:18px 0 48px !important;}
  .section{margin:14px 0 !important;}
  .pad{padding:14px !important;}
  .card{border-radius:24px !important;}
  .btn{padding:12px 14px !important; border-radius:16px !important;}
  .kicker{gap:8px;}
  .pill{padding:7px 10px;}
}

/* === Mobile layout fixes (hero + QR) v11.1 ===
   The earlier design forced the hero text + QR to stay side-by-side even on phones.
   On real mobile browsers this can feel "not mobile ready" and can trigger sideways
   scroll. We stack the QR card under the hero at <=720px and remove the inset padding.
*/
@media (max-width: 720px){
  .heroSplit{flex-wrap:wrap !important;}
  .heroQRCard{flex:1 1 100% !important; max-width:none !important;}
  .heroCardInset{padding-right:16px !important;}
  .heroInsetQR{display:none !important;}
}



/* Typography: unified story content */
@media (min-width: 900px){
  body{font-size:18px;}
}
@media (max-width: 420px){
  body{font-size:16px;}
}

.wtfto-story-content{
  margin-top:14px;
  color:var(--ink2);
  font-weight:400;
  font-size:1.05rem; /* ~17-19px depending on base */
  line-height:1.75;
}
.wtfto-story-content *{
  font-family:inherit;
  font-size:inherit;
  line-height:inherit;
  font-weight:inherit;
}
.wtfto-story-content p{margin:0 0 1.1em;}
.wtfto-story-content p:last-child{margin-bottom:0;}
.wtfto-story-content a{
  color:var(--b);
  text-decoration:underline;
  text-underline-offset:.15em;
}


/* --- Story images (featured + gallery) --- */
.wtfto-featured-media{
  margin-top:14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#0b0f14;
}
.wtfto-featured-media img{width:100%; height:auto; display:block}
.wtfto-caption{
  padding:10px 12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-weight:900;
  font-size:13px;
  background: rgba(255,255,255,.05);
}

.wtfto-gallery{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:14px;
}
@media (max-width: 720px){
  .wtfto-gallery{grid-template-columns:1fr}
}
.wtfto-gallery-item{
  display:block;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#0b0f14;
}
.wtfto-gallery-item img{width:100%; height:auto; display:block}

/* Thumbnails on story cards */
.storyThumb{
  display:block;
  height:170px;
  margin:-14px -14px 12px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#0b0f14;
}
.storyThumb{ text-decoration:none; }
.storyThumb:focus{ outline:3px solid rgba(0,209,178,.45); outline-offset:3px }
.storyThumb img{width:100%; height:100%; object-fit:cover; display:block}

/* Spotlight image as link */
.spotCard a.img{display:block; text-decoration:none; color:inherit}
.spotCard a.img:focus{ outline:3px solid rgba(0,209,178,.45); outline-offset:3px }

/* --- Comments --- */
.wtfto-comments{margin-top:16px}
.wtfto-comment-list{
  list-style:none;
  padding:0;
  margin:12px 0 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wtfto-comment-list .comment-body{
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px 14px;
  background: rgba(255,255,255,.06);
}
.wtfto-comment-list .comment-meta{
  color:var(--muted);
  font-weight:900;
  font-size:13px;
}
.wtfto-comment-list .comment-content{
  margin-top:8px;
  color:var(--ink);
}
.wtfto-comment-list .reply{
  margin-top:8px;
}
.wtfto-comment-list .reply a{
  font-weight:1000;
  text-decoration:none;
}
#respond .input, #respond textarea.input{
  width:100%;
}


/* ---- WTFTO: "No doxxing" info pill + modal ---- */
.pill.pillDoxing{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.pillInfo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(0,0,0,.15);
  color:inherit;
  font-weight:1000;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  padding:0;
}
.pillInfo:focus{
  outline:2px solid rgba(255,255,255,.9);
  outline-offset:2px;
}

.wtftoModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
/* CSS-only modal toggle (more reliable than JS across Safari/Chrome + caching) */
.wtftoModalToggle{ position:fixed; left:-9999px; top:auto; }
.wtftoModalToggle:checked + .wtftoModal{ display:block; }
.wtftoModal.is-open{ display:block; } /* kept for backwards compatibility */
.wtftoModalOverlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
  cursor:pointer;
}
.wtftoModalDialog{
  position:relative;
  max-width:520px;
  margin:12vh auto 0;
  background:var(--card);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:18px 18px 16px;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  color:var(--ink);
}
.wtftoModalClose{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--ink);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.wtftoModalClose:hover{ background:rgba(255,255,255,.10); }






/* --- Sticky Footer Fix (Removes Bottom Empty Space) --- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.container {
  flex: 1;
}


/* --- Sharper Editorial Header Style --- */

.site-header {
  padding: 6px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  max-height: 34px;
}

.main-nav a {
  padding: 6px 12px;
  font-size: 14px;
}

.header-buttons button,
.header-buttons a {
  padding: 5px 10px;
  font-size: 13px;
}



/* Footer: stable left / right layout */
.siteFooterTop{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:12px;
}
.siteFooterLeft{ justify-self:start; }
.siteFooterMid{ justify-self:center; }
.siteFooterRight{ justify-self:end; }

@media (max-width: 720px){
  .siteFooterTop{
    grid-template-columns: 1fr;
    justify-items:center;
  }
  .siteFooterLeft, .siteFooterMid, .siteFooterRight{
    justify-self:center;
  }
}




/* Facebook pill beside No doxxing */
.pill.pillFb{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color: inherit;
}
.pill.pillFb svg{ display:block; }

/* Make pill labels feel clickable */
.pill.pillInfo{ cursor:pointer; user-select:none; }

/* Close label behaves like button */
label.wtftoModalClose{ display:flex; align-items:center; justify-content:center; }


/* small arrow */
.doxingPopup:before{
  content:"";
  position:absolute;
  top:-8px;
  left:50%;
  transform:translateX(-50%);
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:8px solid rgba(0,0,0,.86);
}
html[data-theme="dark"] .doxingPopup:before{
  border-bottom-color: rgba(0,0,0,.82);
}
/* close popup when clicking elsewhere? (native details closes with second click on summary) */


/* Arrow */
.doxTipBox:before{
  content:"";
  position:absolute;
  top:-8px;
  left:50%;
  transform:translateX(-50%);
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:8px solid rgba(0,0,0,.90);
}
@media (max-width: 720px){
  .doxTipBox{
    left: 0;
    transform: none;
    width: min(420px, 92vw);
  }
  .doxTipBox:before{ left: 22px; transform:none; }
}


/* No-doxxing popup (click to open) using <details> */
.pillDoxingDetails{
  position: relative;
  display: inline-block;
  margin: 0;
}
.pillDoxingDetails > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.pillDoxingDetails > summary::-webkit-details-marker{ display:none; }

/* Hidden by default; shows ONLY when clicked open */
.pillDoxingDetails .doxingPopup{ display:none; }
.pillDoxingDetails[open] .doxingPopup{ display:block; }

.pillDoxingDetails[open] > summary{
  outline: 2px solid color-mix(in srgb, var(--line) 55%, transparent);
  outline-offset: 2px;
}

/* The popup card */
.pillDoxingDetails .doxingPopup{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 86vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: rgba(0,0,0,.90);
  color: rgba(255,255,255,.92);
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
  z-index: 9999;
  font-weight: 900;
  line-height: 1.35;
  text-align:left;
}
.pillDoxingDetails .doxingPopup strong{ display:block; margin-bottom:6px; }

/* Arrow */
.pillDoxingDetails .doxingPopup:before{
  content:"";
  position:absolute;
  top:-8px;
  left:50%;
  transform:translateX(-50%);
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:8px solid rgba(0,0,0,.90);
}

@media (max-width: 720px){
  .pillDoxingDetails .doxingPopup{
    left: 0;
    transform: none;
    width: min(420px, 92vw);
  }
  .pillDoxingDetails .doxingPopup:before{ left: 22px; transform:none; }
}



/* More Stories section under single story */
.moreStories{ margin-top:22px; padding-top:14px; border-top:1px solid rgba(0,0,0,.08); }
.moreStoriesTitle{ margin:0 0 12px; font-size:22px; line-height:1.2; }



/* More Stories thumbnails (single story bottom) */
.moreStories{margin-top:22px}
.moreStoriesTitle{margin:0 0 12px; font-size:1.05rem}
.moreGrid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
.moreCard{
  display:block;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
  background:var(--bg2);
}
.moreCard img{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}
@media (max-width: 980px){
  .moreGrid{grid-template-columns:repeat(2, minmax(0,1fr));}
}
@media (max-width: 640px){
  .moreGrid{grid-template-columns:1fr;}
}

/* === WTFTO Investigation Series box === */
.wtfto-series-box{
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  padding:16px 18px;
  margin:18px 0 22px;
  border-radius:14px;
}
.wtfto-series-kicker{
  font-weight:900;
  letter-spacing:0.02em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.wtfto-series-sub{
  color: var(--muted);
  font-weight:800;
  margin-bottom:10px;
}
.wtfto-series-list{
  margin:0;
  padding-left:18px;
}
.wtfto-series-list li{
  margin:6px 0;
}
.wtfto-series-list a{
  text-decoration:none;
  font-weight:900;
}
.wtfto-series-list a:hover{
  text-decoration:underline;
}



/* --- Sources & References button + in-flow panel (reliable dropdown) --- */
.wtfto-sources-btn{
  cursor:pointer;
  padding: 8px 12px;
  font-weight: 900;
  user-select: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  white-space: nowrap;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.wtfto-sources-btn:after{
  content:"▾";
  font-weight: 900;
  opacity:.8;
}
.wtfto-sources-btn[aria-expanded="true"]:after{ content:"▴"; }

.wtfto-sources-panel{
  margin-top: 12px;
}
.wtfto-sources-panel-inner{
  border:1px solid var(--line);
  background: rgba(255,255,255,.98);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(2,6,23,.12);
}
.wtfto-sources-panel a{ word-break: break-word; }


/* --- Sources button sizing on tablets/phones --- */
@media (max-width: 1024px){
  .wtfto-story-topbar{ flex-wrap: wrap; }
  .wtfto-story-sources{ width:auto; margin-left:auto; }
  .wtfto-sources-btn{
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
  }
}
@media (max-width: 720px){
  .wtfto-story-topbar{ gap:10px; }
  .wtfto-sources-btn{
    padding: 5px 8px;
    font-size: 11px;
    gap: 6px;
  }
  .wtfto-sources-panel-inner{
    padding: 10px 12px;
  }
}



/* Sources & References off-canvas panel */
.wtfto-sources-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  opacity:0;
  transition:opacity 0.2s ease;
  z-index:9998;
}
.wtfto-sources-overlay.is-open{ opacity:1; }

.wtfto-sources-panel{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(420px, 92vw);
  background:#fff;
  box-shadow:-12px 0 30px rgba(0,0,0,0.18);
  transform:translateX(110%);
  transition:transform 0.2s ease;
  z-index:9999;
  display:flex;
  flex-direction:column;
}
.wtfto-sources-panel.is-open{ transform:translateX(0); }

.wtfto-sources-panel-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(0,0,0,0.08);
}
.wtfto-sources-back{
  appearance:none;
  border:1px solid rgba(0,0,0,0.18);
  background:#fff;
  padding:6px 10px;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  line-height:1;
  cursor:pointer;
}
.wtfto-sources-title{
  font-weight:800;
  font-size:14px;
  opacity:0.85;
}
.wtfto-sources-panel-inner{
  padding:14px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
html.wtfto-sources-open,
body.wtfto-sources-open{
  overflow:hidden;
}

/* Make the trigger button compact on mobile/tablet */
@media (max-width: 1024px){
  .wtfto-sources-btn{
    padding:6px 10px !important;
    font-size:12px !important;
    border-radius:14px !important;
    white-space:nowrap;
  }
}
