
/* Import Titillium Web font */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;700&display=swap');

/* ================================
   Global Resets & Structure
================================ */
html {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* prevents Chrome wobble cleanly */
  box-sizing: border-box;
  scrollbar-gutter: stable both-edges;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Titillium Web', sans-serif;
  background-color: #121212;
  color: #fff;
  min-height: 100vh;
  line-height: 1.4;
  overflow-x: visible; /* prevents double-clipping bug in Chrome */
}

*, *::before, *::after {
  box-sizing: border-box;
}


/* ================================
   Logo & Container
================================ */
.logo {
  width: 100%;
  max-width: 180px;
  display: block;
  margin: 32px auto 30px auto;
  animation: slowBlink 0.75s infinite alternate;
}

.container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
  transform: translateZ(0); /* forces GPU compositing, eliminates flicker */
}

/* ================================
   Clickable Logo (Global)
================================ */
.logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  text-decoration: none;
}

.logo-link:focus-visible {
  outline: 2px solid #59DCFF;
  outline-offset: 6px;
}

.logo-link img {
  pointer-events: auto;
}



/* ================================
   HTML tings
================================ */
.pulldown-container { 
  display: flex; 
  justify-content: center; 
  margin-bottom: 25px; 
}

.pulldown-select {
  width: 275px;
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #59DCFF;
  border: 1px solid #59DCFF;
  border-radius: 8px;
  padding: 7px 18px 7px 11px;
  outline: none;
  appearance: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(89,220,255,0.08);
}
.pulldown-select:focus,
.pulldown-select:hover {
  border-color: #FF33CC;
  color: #FF33CC;
}
.pulldown-select option {
  font-family: 'Titillium Web', Arial, sans-serif;
  color: #59DCFF;
  font-weight: 700;
}

/* ================================
   Typography & Headings
================================ */
h1, h2, h3 {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 30px 0;
}
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 12px; }

.article-title, .section-title {
  font-size: 17px;
  font-weight: 700;
  color: #59DCFF;
  margin: 0 0 4px 0;
  line-height: 1.12;
  display: block;
  text-decoration: none;
}
.article-title:visited, .section-title:visited { color: #59DCFF; }
.article-title:hover, .section-title:hover { color: #FF33CC; }

.article-date, h3.article-date {
  font-size: 13px;
  color: #fff;
  margin: 0 0 2px 0;
  line-height: 1.1;
  font-weight: 400;
}

.article-excerpt {
  font-size: 15px;
  color: #fff;
  line-height: 1.18;
  max-width: 220px;
  margin-bottom: 6px;
}

/* ================================
   Links & Hover
================================ */
.read-more {
  color: #59DCFF;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  will-change: transform; /* prevents layout reflow on hover */
}
.read-more:hover {
  color: #FF33CC !important;
  transform: translate3d(5px, 0, 0);
}
.read-more::after {
  content: " →";
  margin-left: 5px;
  transition: transform 0.3s ease;
}
.read-more:hover::after { transform: translate3d(3px, 0, 0); }
a.read-more[href="#"] { display: none; }

/* ================================
   Layouts
================================ */
.article-grid, .jam-grid, .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px !important;
}

.grid-spacer {
  width: 300px;
  height: 0;
  pointer-events: none;
}

.article-card, .section {
  background: rgba(0,0,0,0.75);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(89,220,255,0.1);
  transition: background 0.3s, border-color 0.3s;
  contain: layout paint; /* isolates hover transforms */
  overflow: clip;
}

/* Hover darkening only for grid cards, not full article pages or publish CRM */
.article-grid .article-card:hover,
.jam-grid .section:hover,
.grid .section:hover {
  background: rgba(0,0,0,0.85);
  border-color: rgba(89,220,255,0.2);
}


.article-image, .jam-image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.1);
  margin-bottom: 8px;
}
.article-image img, .jam-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}
.article-card:hover .article-image img,
.section:hover .jam-image img { transform: scale(1.05); }

.article-content {
  display: flex;
  flex-direction: column;
  gap: 3px !important;
}

/* ================================
   Background Video (Chrome-stable)
================================ */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
  transform: translateZ(0);
}

/* ================================
   Responsive
================================ */
@media (min-width: 1200px) {
  .container { max-width: 900px; }
  .article-grid, .jam-grid, .grid {
    grid-template-columns: 300px 300px 300px;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .grid-spacer { display: none !important; width: 0 !important; }
  .container { width: 100%; max-width: 300px; margin: 0 auto; padding: 0; }
}

/* ================================
   Inputs, Utilities, Misc
================================ */
input[type='password'],
input[type='submit'] {
  font-family: 'Titillium Web', Arial, sans-serif;
  font-size: 16px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #59DCFF;
  background: #1a1a1a;
  color: #fff;
  outline: none;
  margin-bottom: 6px;
  transition: border-color 0.2s;
}
input[type='submit'] {
  background: #FF33CC;
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
input[type='submit']:hover {
  background: #fff;
  color: #FF33CC;
  border: 1px solid #FF33CC;
}

/* ================================
   Animation
================================ */
@keyframes slowBlink {
  0% { filter: brightness(1); }
  100% { filter: brightness(2); }
}

/* ================================
   Buttons
================================ */
.button {
  display: inline-block;
  background: #59DCFF;
  color: #000;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.button:hover {
  background: #FF33CC;
  color: #fff;
  cursor: pointer;
}

/* =====================================================
   ARTICLE SYSTEM (Global)
   Applies ONLY to pages with body.article-page
   ===================================================== */

.article-page {
  font-family: "Titillium Web", sans-serif;
  background: #f6f7f8; /* subtle off-white */
  color: #222222;
}


/* ------------------------------
   Background image (optional)
   ------------------------------ */
.article-page .bg-image {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ------------------------------
   Logo
   ------------------------------ */
.article-page .logo {
  display: block;
  margin: 30px auto 10px auto;
}

/* ================================
   Article logo link
================================ */
.article-page .logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  text-decoration: none;
}


/* ------------------------------
   Headline (outside card)
   ------------------------------ */
.article-page h1 {
  max-width: 600px;
  margin: 40px auto 28px auto;
  padding: 0 20px;
  text-align: center;

  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
}

/* ------------------------------
   Article card
   ------------------------------ */
.article-page .article-card {
  max-width: 600px;
  margin: 0 auto 60px auto;
  padding: 30px 0;

  background: #ffffff;
  border-radius: 16px;
}

/* ------------------------------
   Hero image (16:9)
   ------------------------------ */
.article-page .hero-16x9 {
  width: calc(100% - 40px);
  margin: 0 auto 24px auto;

  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000000;
}

.article-page .hero-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------
   Inner content aligns to image
   ------------------------------ */
.article-page .article-inner {
  width: calc(100% - 40px);
  margin: 0 auto;
}

/* ------------------------------
   Meta / byline
   ------------------------------ */
.article-page .section-title {
  margin: 0 0 12px 0;

  font-size: 16px;
  font-weight: 700;
  color: #444444;

  pointer-events: none;
}

/* ------------------------------
   Body copy
   ------------------------------ */
.article-page .article-body p {
  margin: 0 0 16px 0;

  font-size: 16px;
  line-height: 1.7;
  color: #222222;
}

/* ------------------------------
   Subheads
   ------------------------------ */
.article-page .article-body h2 {
  margin: 22px 0 12px 0;

  font-size: 18px;
  font-weight: 700;
  color: #0e101a;
}

/* ------------------------------
   Lists
   ------------------------------ */
.article-page .article-body ul,
.article-page .article-body ol {
  margin: 0 0 16px 22px;
  padding: 0;
}

.article-page .article-body li {
  margin: 0 0 10px 0;

  font-size: 16px;
  line-height: 1.7;
  color: #222222;
}

/* ------------------------------
   Links (fixes bold/black issue)
   ------------------------------ */
.article-page .article-body a,
.article-page .article-body a:visited {
  color: #1155cc;
  text-decoration: underline;
  font-weight: 400;
}

.article-page .article-body a:hover,
.article-page .article-body a:focus {
  color: #0d47a1;
  text-decoration: underline;
}

/* ================================
   Global Article Lightbox
================================ */

#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: zoom-out;
}

#lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Make article images feel interactive */
.article-page .article-body img,
.article-page .hero-16x9 img {
  cursor: zoom-in;
}

/* =====================================================
   PUBLISH CRM (Global)
   Applies ONLY to pages with body.publish-page
   ===================================================== */

.publish-page {
  font-family: "Titillium Web", sans-serif;
  background: #121212;
  color: #ffffff;
}

.publish-page h1 {
  max-width: 600px;
  margin: 40px auto 28px auto;
  padding: 0 20px;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
}

/* Publish page background image should behave like the article background */
.publish-page .bg-image {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}


/* Publish page should not inherit the big logo spacing or blink */
.publish-page .logo {
  margin: 16px auto 12px auto;
  animation: none;
}

/* Publish header spacing tighter so it does not shove content down */
.publish-page h1 {
  margin: 18px auto 18px auto;
}


.publish-card {
  max-width: 700px;
  margin: 0 auto 60px auto;
  background: #ffffff;
  border-radius: 16px;
}

.publish-inner {
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 26px 0 30px 0; /* fixes your missing padding */
}

.publish-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.publish-logout {
  text-decoration: none;
}

.publish-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 16px 0;
  font-weight: 700;
}

.publish-alert.success {
  background: #e9fff1;
  color: #0d6b2a;
}

.publish-alert.note {
  background: #fff4e5;
  color: #7a4b00;
}

.publish-alert.error {
  background: #ffe9e9;
  color: #8a0f0f;
}

.publish-block {
  margin: 14px 0;
}

.publish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .publish-grid {
    grid-template-columns: 1fr;
  }
}

.publish-label {
  font-weight: 700;
  color: #222222;
  margin: 0 0 6px 0;
}

.publish-input,
.publish-textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Titillium Web", sans-serif;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: #111111;
}

.publish-textarea {
  min-height: 160px;
  resize: vertical;
}

.publish-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.publish-secondary {
  background: #59DCFF;
  color: #000000;
}

.publish-shortstatus {
  margin-top: 8px;
  font-weight: 700;
  color: #0d6b2a;
}

/* File input styled to match your buttons */
.publish-file {
  width: 100%;
  font-family: "Titillium Web", sans-serif;
}

.publish-file::file-selector-button {
  background: #59DCFF;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 10px;
}

.publish-file::file-selector-button:hover {
  background: #FF33CC;
  color: #ffffff;
}

/* Preview should sit on black */
.publish-preview-wrap {
  margin-top: 18px;
}.a

.publish-preview {
  width: 100%;
  height: 760px;
  border: none;
  border-radius: 14px;
  background: #000000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


