/* 
  The Whistling Chronicle
  Editorial Stylesheet
  Base Layout + Typography
  the whistling chronicle editorial design & development is Intellectual Property of Adeymius Vasquez
*/


/* ---------------------------------------
   RESET / BASE
--------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: #f2f2f2;
  color: #111;
  line-height: 1.6;
}

a {
  color: #111;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color:red;
}


/* =====================================================
   MASTHEAD (SINGLE SOURCE OF TRUTH)
===================================================== */

.masthead {
  text-align: center;
  margin: 1.25rem 0 0.75rem;   /* tightened */
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #000;
}

/* =====================================================
   MASTHEAD INNER (LOGO + WORDMARK)
===================================================== */

.masthead-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   WORDMARK IMAGE
===================================================== */

.site-wordmark {
  max-width: 640px;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.35))
    drop-shadow(0 -0.5px 0 rgba(255,255,255,0.2));
}

/* =====================================================
   OPTIONAL LOGO MARK (IF USED)
===================================================== */

.site-logo {
  width: 56px;
  height: auto;
}

/* =====================================================
   MASTHEAD TEXT STACK (WORDMARK + SINCE)
===================================================== */

.masthead-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.since {
  margin-top: 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #444;
}

/* =====================================================
   RESPONSIVE BEHAVIOR
===================================================== */

@media (max-width: 600px) {
  .masthead-inner {
    flex-direction: column;
    gap: 0.6rem;
  }

  .site-logo {
    width: 48px;
  }

  .site-wordmark {
    max-width: 92%;
  }
}

/* ============================
   CONTINUOUS NEWSWIRE TICKER
============================ */

:root {
  --ticker-speed: 45s; /* ⬅ SPEED CONTROL */
  --ticker-bg: #e9f1f8; /* light blue */
}

.newswire {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--ticker-bg);
  border-top: 1px solid #c6d6e5;
  border-bottom: 1px solid #c6d6e5;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Fixed label */
.newswire-label {
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  background: #57cfff;
  color: #111;
  border-right: 1px solid #c6d6e5;
  white-space: nowrap;
}

/* Scroll window */
.newswire-track {
  position: relative;
  overflow: hidden;
  flex: 1;
}

/* Moving content */
.newswire-items {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 1rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll var(--ticker-speed) linear infinite;
}

.newswire-items a {
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

.newswire-items a:hover {
  text-decoration: underline;
}

/* Animation */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Optional pause on hover */
.newswire-track:hover .newswire-items {
  animation-play-state: paused;
}


/* ---------------------------------------
   PAGE CONTAINER
--------------------------------------- */
.paper-one {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem 2rem 1.5rem;
}

.paper-two {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem 2rem 1.5rem;
}

/* ---------------------------------------
   MAIN GRID
--------------------------------------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr 1fr;
  gap: 2rem;
  margin-bottom:100px;
}

/* ---------------------------------------
   LEFT COLUMN — LATEST
--------------------------------------- */
.latest h3 {
  font-size: 1rem;
  border-bottom: 1px solid #ccc;
  /*padding-bottom: 0.5rem;*/
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 8px;
  background: #f1f1f1;
  font-family:'Cinzel';
  margin-top: 1.5rem;
}

.latest ul {
  list-style: none;
}

.latest li {
  margin-bottom: 0.65rem;
}

.latest a {
  font-size: 0.95rem;
}

/* ---------------------------------------
   CENTER — BREAKING NEWS
--------------------------------------- */
.breaking h2 {
  font-family:'Cinzel';
  font-size: 1.9rem;
  margin-bottom: 1rem;
  text-align: center;
  border-radius: 8px;
  background: #f1f1f1;
  border-bottom: 1px solid #ccc;
}

.breaking img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius:8px;
}

.breaking h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.breaking p {
  font-size: 1.05rem;
}

.meta {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.75rem;
}

/* ---------------------------------------
   RIGHT COLUMN — DAILY FEED
--------------------------------------- */
.daily h3 {
  font-size: 1rem;
  /*padding-bottom: 0.5rem;*/
  margin-bottom: 1rem;
  font-family:'Cinzel';
  text-align: center;
  border-radius: 8px;
  background: #f1f1f1;
  border-bottom: 1px solid #ccc;
}

.daily article {
  margin-bottom: 1.5rem;
}

.daily h4 {
  font-size: 1.05rem;
  margin: 0.25rem 0;
}

.daily p {
  font-size: 0.9rem;
  color: #333;
}

.category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}

/* ---------------------------------------
   RESPONSIVE (MOBILE)
--------------------------------------- */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .latest,
  .daily {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
  }


  .section-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* ---------------------------------------
   ARTICLE PAGE
--------------------------------------- */
.article {
  margin: 0 auto;
  max-width: 720px;
}

.article-header h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 15px;
  color: #333;
  margin-bottom: 0.75rem;
  font-family: monospace; /*emoji*/
}

.article-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}


/* ================================
   EDITORIAL IMAGE — FULLY VISIBLE
================================ */

.article-hero {
  max-width: 880px;
  margin: 1.25rem 0 1.5rem;
  padding: 0.25rem;
  background: #f6f6f6;
}

.article-hero img {
  width: 100%;
  height: auto;
  max-height: 420px;     /* guardrail, not a crop */
  object-fit: contain;  /* <-- THIS IS THE KEY */
  display: block;
  background: #f4f4f4;  /* subtle matte, optional */
  contain-intrinsic-size: 3000px 1500px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.article-body {
  font-size: 15px;
  line-height: 1.8;
  font-family: monospace;
}


.backlink {
  display: inline-block;
  margin-top: 2rem;
}

/* ---------------------------------------
   ADMIN
--------------------------------------- */

.admin-actions {
  margin-top: 0.5rem;
}

.admin-actions a {
  font-weight: 600;
  margin-right: 0.5rem;
}

.admin-table {
  margin-top: 2rem;
  width: 100%;
  border-collapse: collapse;
  margin-bottom:100px;
  background:#faf7f7;
}

.admin-table td
{
    background:#e5e3e3;
}

.admin-table tr
{
    margin-bottom:12px;
}

.admin-table th {
  font-weight: 600;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ddd;
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.95rem;
}


/* ===============================
   ADS ADMIN — SAFE CONTAINED STYLES
================================ */

.ads-admin {
  max-width: 100%;
}

.ads-header {
  margin-bottom: 2rem;
}

.ads-subtitle {
  color: #666;
  font-size: 0.9rem;
}

.ads-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.ads-form {
  display: grid;
  gap: 1.25rem;
}

.ads-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ads-field input,
.ads-field textarea,
.ads-field select {
  padding: 0.55rem;
  border: 1px solid #bbb;
  font-size: 0.9rem;
}

.ads-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ads-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ads-button {
  align-self: flex-start;
  padding: 0.6rem 1.25rem;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

.ads-alert {
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.ads-success {
  background: #e7f6ea;
  color: #1a7f37;
}

.ads-error {
  background: #fdecea;
  color: #b42318;
}

.ads-preview img {
  max-width: 180px;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
}

.ads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ads-table th,
.ads-table td {
  border-bottom: 1px solid #ddd;
  padding: 0.5rem;
}

.ads-table img {
  max-width: 100px;
}

.form
{
    margin-bottom:100px;
}

.form label {
  display: block;
  margin: 1rem 0;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  font: inherit;
  background: #f3f3f3;
  border-radius: 8px;
}

.notice.error {
  border: 1px solid #c00;
  padding: 0.75rem;
  margin: 1rem 0;
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.wysiwyg-toolbar button {
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font: inherit;
}

.wysiwyg-editor {
  border: 1px solid #ccc;
  padding: 0.85rem;
  min-height: 260px;
  background: #fff;
  line-height: 1.7;
}

.article-body p {
  margin: 0.8rem 0;
}

.article-body blockquote {
  border-left: 3px solid #000;
  padding-left: 1rem;
  margin: 1.2rem 0;
  font-style: italic;
  color: #222;
}

.article-body h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.6rem;
}

.article-body p:first-of-type::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  padding-right: 0.35rem;
  padding-top: 0.15rem;
}

/* ---------------------------------------
   RELATED STORIES
--------------------------------------- */
.related {
  margin-top: 3rem;
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
}

.related h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.related-item img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.related-item h4 {
  font-size: 1rem;
  line-height: 1.3;
}

/* ---------------------------------------
   ARTICLE PAGINATION
--------------------------------------- */
.pagination {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.pagination a,
.pagination span {
  border: 1px solid #ccc;
  padding: 0.35rem 0.65rem;
}

.pagination .current {
  background: #000;
  color: #fff;
  border-color: #000;
}


.section-nav a {
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.section-nav a:hover {
  text-decoration: underline;
}

.submission-form {
  max-width: 600px;
}

.submission-form label {
  display: block;
  margin-bottom: 1rem;
}

.submission-form input,
.submission-form textarea {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
}

.submission-form button {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
}

/* ---------------------------------------
   STORY SUBMISSION FORM
--------------------------------------- */
.submission-form {
  max-width: 680px;
  margin-top: 2rem;
}

.submission-form .form-row {
  margin-bottom: 1.5rem;
}

.submission-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.submission-form label span {
  font-weight: 400;
  color: #666;
  font-size: 0.85rem;
}

.submission-form input,
.submission-form textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #bbb;
  background: #fff;
}

.submission-form input:focus,
.submission-form textarea:focus {
  outline: none;
  border-color: #000;
}

.submission-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.submission-form .form-actions {
  margin-top: 2rem;
  margin-bottom:100px;
}

.submission-form button {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.submission-form button:hover {
  background: #222;
}

.muted {
  color: #555;
  font-size: 0.9rem;
  max-width: 680px;
}
.submission-form .consent {
  font-size: 0.9rem;
  color: #333;
}

.submission-form .consent input {
  margin-right: 0.4rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.consent-label input {
  margin-top: 0.2rem;
}


.wysiwyg-editor {
  min-height: 300px;
  padding: 1rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;          /* ← THIS IS THE KEY */
  font-size: 16px;
  line-height: 1.6;
  overflow: auto;
}

/* ================================
   CATEGORY PAGE SIDEBAR
================================ */

.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-left: 1.5rem;
}

/* Sidebar container blocks */
.sidebar-box {
  background: #fafafa;
  border: 1px solid #e2e2e2;
  padding: 1rem;
}

/* Sidebar section titles */
.sidebar-box h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  text-transform: uppercase;
}

/* Sidebar lists */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 0.5rem;
  border-radius: 8px;
background: #f1f1f1;
border-bottom: 1px solid #ccc;
padding: 5px;
}

.sidebar-list a {
  text-decoration: none;
  color: #111;
  font-size: 0.95rem;
}

.sidebar-list a:hover {
  text-decoration: underline;
}



/* ==========================
   AD BLOCKS
========================== */

.ad-block {
  border: 1px solid #ddd;
  padding: 0.75rem;
  background: #fafafa;
}

.ad-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base ad box */
.ad-box {
  background: #f4f4f4;
  border: 1px dashed #bbb;
}

/* Ad placeholder (safe until real ads added) */
.ad-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 250px;
  background: #fff;
  color: #666;
  font-size: 0.85rem;
  text-align: center;
}

/* Ad size label */
.ad-placeholder small {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #999;
}

/* ================================
   COMMON AD SIZES (READY FOR REAL ADS)
================================ */

/* Medium Rectangle */
.ad-300x250 {
  width: 300px;
  height: 250px;
  margin: 0 auto;
}

/* Large Rectangle */
.ad-336x280 {
  width: 336px;
  height: 280px;
  margin: 0 auto;
}

/* Half Page */
.ad-300x600 {
  width: 300px;
  height: 600px;
  margin: 0 auto;
}


/* =========================
   AD FIX — REQUIRED
========================= */
.ad-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

.ad-slot-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: #333;
}

.ad-content{
  display:block;
  width:100%;
}

.ad-content a{
  display:block;
}

.ad-slot img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  border-radius:4px;
}

/* -------------------------------------------
   AD HEADER
------------------------------------------- */

.ad-header:empty {
  display: none;
}

/* ================================
   RESPONSIVE BEHAVIOR
================================ */

@media (max-width: 900px) {
  .category-sidebar {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    margin-top: 2rem;
  }

  .ad-300x250,
  .ad-336x280,
  .ad-300x600 {
    width: 100%;
    max-width: 336px;
  }
}
/* ================================
   CATEGORY GRID LAYOUT
================================ */
.category-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-bottom:100px;
}

/* Individual card */
.category-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Image area */
.card-image {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f4f4f4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder when no image */
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.85rem;
  background: #eee;
}

/* Card body */
.card-body {
  padding: 0.75rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
}

.card-title {
  font-size: 1rem;
  margin: 0;
  line-height: 1.25;
}

.card-title a {
  color: #111;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.card-meta {
  font-size: 0.75rem;
  color: #666;
}

/* ================================
   RESPONSIVE TWEAKS
================================ */

@media (max-width: 768px) {
  .card-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .category-feed {
    grid-template-columns: 1fr;
  }
}
/* ---------------------------------------
   SITE FOOTER (MATCH HEADER WIDTH, NO GAP)
--------------------------------------- */

.site-footer {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto 12px;
  padding-bottom: 12px;
  border-top: 1px solid #ddd;
  position: relative;
  background: #ededed;
  overflow: hidden;
  
}

.header-inner {
  position: relative;
  overflow: visible;
}


.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
 /* background-image: url("/mnt/data/nw-banner.png");*/
  background-size: cover;
  background-position: center;
  opacity: 0.15; /* very subtle */
  z-index: 0;
  pointer-events: none;
}

/* Footer content stays crisp */
.site-footer .footer-inner {
  position: relative;
  z-index: 1;
}


/* ===============================
   FOOTER GRID — DESKTOP
================================ */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-grid a{
    color:black;
    background:#eceeef;
    width: 100%;
    display: flex;
    border-radius: 8px;
    padding: 8px;
}

.footer-col{
    background-color:#ffffff;
    border-radius:8px;
    padding:8px;
    color:black;
}

.footer-col h4 {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:black;
  text-align:center;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align:center;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}


/* BRAND LINE */
.footer-brand {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.75rem;
  color: black;
  border-top: 1px solid #fdfdfd;
  padding-top: 1.25rem;
  line-height: 1.5;
}


.footer-brand strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color:black;
}

.footer-tagline {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color:black;
}

/* ===============================
   FOOTER GRID — MOBILE (2 COL)
================================ */

@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
    padding: 2rem 1.25rem 1.5rem;
  }

  .footer-col {
    text-align: center;
  }
}


/* ---------------------------------------
   FOOTER RESPONSIVE
--------------------------------------- */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------------------------------------
   STORY BLOCKS (HOMEPAGE SIDEBARS)
--------------------------------------- */

.story-layout {
  gap: 3rem;
}


.story-block {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.story-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: #eee;
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius:8px;
}

.story-info h4 {
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.story-meta {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.story-info p {
  font-size: 0.85rem;
  color: #333;
}

.story-block.compact p {
  display: none;
}

/* ==========================
   STORY SIDEBAR ADS
========================== */

.story-sidebar .ad-box {
  padding: 0;
  border: none;
  background: #fff;
}

.story-sidebar .ad-box img {
  width: 100%;
  /*max-width: 300px;*/
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius:10px;
}

/* ---------------------------------------
   GLOBAL MOBILE LAYOUT FIXES
--------------------------------------- */

@media (max-width: 768px) {

  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  .container,
  .wrapper,
  .layout,
  .page,
  .site,
  .main,
  .content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

  .section-nav {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    z-index: 1001;
  }

  .nav-toggle {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 1002;
  }
}



/* ===============================
   MOBILE NAV + HEADER (FINAL)
================================ */

/* Desktop default: no hamburger */
.nav-toggle {
  display: none;
}

/* ---------- MOBILE ONLY ---------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {

  /* Hamburger button */
  .nav-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 1002;
  }

  /* Nav container */
  .nav-links {
    position: fixed;
    top: 64px; /* header height */
    left: 0;
    width: 100%;
    padding: 0 12px;
    z-index: 1001;
    display: none;
  }

  .nav-links.is-open {
    display: block;
  }
  
  .nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

  /* Section nav */
  .section-nav {
    display: flex;
    flex-direction: column;
    background: rgb(0 0 0 / 45%);
    border-radius: 12px;
    padding: 10px;
    margin-top: 0.75rem;
  }

  .section-nav a {
    display: block;
    background: #ffffff;
    color: #000;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
  }

  /* Utility bar */
  .utility-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
  }

  .utility-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .utility-nav a {
    font-size: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    padding: 0;
  }

  .utility-date {
    font-size: 1rem;
    opacity: 0.7;
  }
}

/* ================================
   HEADER CONTAINER (SINGLE FIX)
================================ */

.site-header {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  background:white;
}

/* Constrain header contents */
.site-header > *,
.paper-one > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.site-header {
  position: relative;
  overflow: visible;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ---------------------------------------
   UTILITY BAR
--------------------------------------- */
/* Reduce excessive vertical breathing room */
.utility-bar {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ddd;
  padding-top:20px;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #444;
}

.utility-bar nav a {
  margin-left: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.utility-date {
  white-space: nowrap;
  font-weight: 500;
}

.utility-nav a {
  margin-left: 1rem;
  font-size: 0.60rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.utility-nav .tip-link {
  font-weight: 700;
  text-decoration: underline;
}


/* ---------------------------------------
   SECTION NAV
--------------------------------------- */
.section-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid #ccc;
  /*padding: 0.75rem 0;*/
  /*margin-bottom: 2rem;*/
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}



