/* ==== WP DAILY CUSTOM CSS FILE ==== */
/* ==== BASE TWIG ELEMENTS ==== */
/* ==== TOP is id of BODY ELEMENT ==== */
#top {
  background-color: #aaa;
  color: #000;
  border-bottom: none;
  font-family: Calibri, sans-serif;
  padding: 0em 0em ;
  margin: 0;
}
img { max-width: 100%; height: auto; }
p { margin: 1em 0 0 0;}
p + p { text-indent: 1em; margin: 0;}

/* wp-header replaced by site-header   */
#wp-header { background-color: #bbb; color: #000; border-bottom: none;}
/* wp-main (in md) & wp-fr-main replaced by wp-page-wrapper in base as exit point */
#wp-main { padding: 0em 4em;}
#site-header {
    top: 0; width: 100%; background-color: #bbb; box-shadow: 0px 0px 4px rgba(0,0,0,0.1); z-index: 1000;}
#header-top-row {
    position: relative; display: flex; align-items: center;
    justify-content: space-between;  min-height: 60px; padding: 0 0px;
}
/* Logo – hard left, also acts as home link */
.header-logo { flex-shrink: 0; }
#header-logo-img { width: 100%; display: block; }
#header-logo-img img { display: block; height: auto; width: 50vw; max-width: 240px; }
#header-top-right { display: flex;}
/* Nav items container */
#header-nav-items { display: grid; justify-content: end; font-size: 12px;}
#header-bottom-row { font-size: 10px;}
#header-left {display: flex; flex-direction: row; gap: 1em; padding: 0px ; margin: 0px 4px;}
#header-right {display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-shrink: 0;}
#header-lang {display: flex; align-items: center;}
#header-search {width: 120px; display: flex; margin: 0 4px 0 0;}

/* WP Page Wrapper from base-twig sets left/right margin single block nil grid */
#wp-page-wrapper { font-family: Calibri, sans-serif;
  margin: 0 20px 20px; padding: 0 0px; box-sizing: border-box;
  box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.3), 0 8px 8px 0 rgba(0, 0, 0, 0.15); 
}
.center { display: flex; justify-content: center; }
.left { display: flex; justify-content: left; }
.right { display: flex; justify-content: right; }
.modular-hero { position: relative; }
.hero-spacer { width: 100%; }
.hero-markdown-content { position: relative; z-index: 5; }
.hero-headline { position: absolute; left: 50%; transform: translateX(-50%); z-index: 25; width: fit-content; text-align: center; }
.hero-blurb { position: absolute; left: 50%; transform: translateX(-50%); z-index: 20; width: fit-content; text-align: center; }
#banner-area { width: 100%; display: flex; justify-content: center; background-color: transparent; margin-bottom: 0px; }
.banner-container { width: 100%; max-width: 1280px; display: flex; flex-direction: column; line-height: 0; }
.banner-area { width: 100%; margin: 0px 0; overflow: hidden; }
.banner-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0px; }
.banner-item img { max-width: 100%; height: auto; display: block; }
/* Body Wrapper from base-twig is a Quark element with class 'section' */
#body-wrapper { padding: 0 12px; gap: 10px;}
/* Unnamed section from base-twig is a Quark element with class 'container' */
.container {}
#breadcrumbs {white-space: nowrap; overflow: hidden; max-width: 95%; line-height: 1.5;}
/* MD file contents start here */
/* WP front page layout css starts here */
#wp-fr-main {display: grid; grid-template-columns: repeat(3, 1fr); box-sizing: border-box;}
#fr-top-flex {grid-column: 1 / -1; /* Span all rows */
    display: flex; gap: 10px;}
#fr-intro {flex: 2;
    display: flex; flex-direction: column; gap: 10px;}
#highlight {}
/* current-affairs contains two divs News Features*/
#current-affairs {}
#news-feature-grid {display:grid; grid-template-columns: 1fr 1fr; gap:10px;}
#conduce {flex: 1; padding: 10px;}
/* Conduce Aside Sidebar */
.picture-frame1 {
    border-width: 5px;  border-style: outset;
    border-color: #888; padding: 5px;
    box-sizing: border-box;
}
.conduce-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0px; width: 100%;
}
.conduce-item {background-color: #111; color: #bbb; text-align: center;}
/* Conduce was end of flex */

/* General link styling */
#header-nav-items a { color: #333; text-decoration: none; white-space: nowrap;}
#header-nav-items a:hover { color: #0066cc;}
/* Hamburger button basics */
.hamburger {
    position: fixed; top: 4px; right: 4px; width: 20px; height: 20px;
    z-index: 2000;
    background: transparent; border: none;
    cursor: pointer; color: #333;
    display: flex; align-items: center; justify-content: center;
}
.hamburger.is-logged-in svg {
    background: rgba(240, 240, 240, 0.5) ;
}
/* ========== MD CONTENT ========== */
#wp-content h1, h2, h3, h4, h5, h6 .card {
  margin: 0em 1em;
}
/* Force the News Report form fields to occupy 100% of their container */
/* Target the Title input specifically by ID */
.news-card-grid {
    display: grid;
    /* This creates a grid that automatically fits 1, 2, or 3 columns based on width */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
#ground-news-title {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Target the Content textarea specifically by ID */
#ground-news-content {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto;
    box-sizing: border-box;
}

.news-card {
  overflow: hidden;    /* Contains the float + expands to fit content */
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: var(--card-bg, #fff);
  color: var(--card-text, #222);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.news-card-body {
  /* No special width needed — it will fill available space */
  /* Optional: minor tweaks for better spacing */
}

.news-card-image {
  float: right;          /* Floats right when present */
  margin: 0 0 8px 10px;  /* Bottom + left margin = space around image */
  max-width: 40%;        /* Prevents huge images from dominating */
  height: auto;
  border-radius: 4px;
}
/* Clearfix for the floated image */
.news-card-body::after {
    content: "";
    display: table;
    clear: both;
}
#submitnews-headline { width: 90%; box-sizing: border-box;}
form[name="public-submission"] .form-input,
form[name="public-submission"] .form-textarea-wrapper textarea {
  width: 100%; box-sizing: border-box;
}
.post-navigation .btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
/* Reaction Menu Styling */
.reaction-menu {
    display: none; 
    position: absolute;
    bottom: 40px; /* Position above the button */
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    gap: 10px;
}
.reaction-menu button {
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.1s;
}
.reaction-menu button:hover { transform: scale(1.3); }
.btn-reaction {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary, #0066cc);
    text-decoration: none;
}
/* ======================================================= */
/* Vids Row - spans all 3 columns, internal sub-grid */
#fr-vids-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
#fr-vid-minor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
/* Context Row - children direct in grid cells */
#fr-context {
    grid-column: 1fr 1fr 1fr;
    display: contents; /* Container disappears, children place directly */
}
#editorials { }
#reviews    { }
#live-blogs { }

/* **** Optional visual helpers (remove later) **** TEMPORARY **** */
#highlight, #current-affairs > div > div, .fr-vid-major, #fr-vid-minor-grid > div,
#editorials, #reviews, #live-blogs {
    background: #f0f0f0;
/*    padding: 20px; */
    text-align: center;
}

/* ==== FOOTER TWIG ==== */
#wp-footer {padding: 0px 0px; margin: 0px 0px; column-gap: 0px;}
#wp-assoc {display: grid; grid-template-columns: 1fr 1fr 1fr; background: #000; color: #fff; gap: 0 10px; box-sizing: border-box;}
#footer-logo     { padding: 20px; background: #000;
                 max-width: 200px; width: 100%; height: auto; box-sizing: border-box; display: block;}
#footer-net    { padding: 20px; background: #000;}
#footer-net a {color: #fff;}
#footer-net div {border-bottom: 1px dotted #eee}
#footer-about  { padding: 20px; background: #000;}
#wp-attribution {
    background: #00f; color: #fff;
    height: 30px; line-height: 30px; align-items:
    center; text-align: right; padding: 0 20px;
}
#wp-attribution a {color: #fff;}
#wp-copyright {background: #000; color: #fff; height: 30px; line-height: 30px;
    align-items: center; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: clip;}

/* float-right-40 used by Ground and other blog items via mail */ 
/* Float Right logic for Newsroom posts */
.float-right-40 {
    float: right;
    width: 40%;
    margin-left: 4px;
    margin-bottom: 4px;
    border-radius: 4px; /* Optional: gives a slight rounded corner */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: adds subtle depth */
}

/* Ensure images inside the div behave */
.float-right-40 img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Styling: Simple grid for additional evidence */
.ground-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    /* This centers the group of images in the post */
    justify-content: center; 
}

/* This targets the 320px holders we discussed */
.ground-gallery .media-item {
    position: relative;
    flex: 0 1 320px; 
    width: 100%;
    max-width: 320px; 
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Force both standard images and your new <img> thumbnails to behave */
.ground-gallery img, 
.ground-gallery .gallery-obj {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Overlay needs to be on top of the absolutely positioned image */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}
/* ======================================================= */
/* VIDEO LIST PAGE tight, magazine-style spacing */

#body-wrapper {
  padding-top: 1rem !important;     /* kills the huge gap after header */
  padding-bottom: 0rem !important;
}

#body-wrapper .container.grid-lg {
  padding-top: 0rem !important;     /* kills the huge gap after header */
  padding-bottom: 0rem !important;
}

.video-list-page h1.text-center {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important; /* gap between intro text and "Videos" title */
  padding-top: 0 !important;
}

/* Gap between your intro text (page.content) and the "Videos" title */
.video-list-page .card-body + h1,
.video-list-page > .container > h1 {
  margin-top: 0.5rem !important;
}

/* Gap between intro text and the grid */
.video-list-page .columns.video-grid {
  margin-top: 1rem !important;
}

/* Optional: make the whole page feel tighter */
.video-list-page .section {
  padding: 0 !important;
}

/* ============================================================= */
/* 2. LEAVE SPACE IN THE GREEN NAVBAR FOR THE HAMBURGER */
/* ============================================================= */
#navbar {
    position: relative;
    padding-right: 0;
    box-sizing: border-box;
}
#overlay-search-results {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    color: #ddd;
    padding: 0 12px;
}
#overlay-search-results a {
    color: #88f;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#overlay-search-results a:hover {
  color: #8f8;
}
#overlay-search-results .search-results-summary {
    margin: 0 0 1rem;
    font-weight: bold;
}
#back-to-menu {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
}

/* **** TEASER **** */
.teaser-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.teaser-featured .featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.teaser-featured .featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.teaser-featured h3 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.teaser-featured time { color: var(--text-muted, #666); font-size: 0.9rem; }

/* Grid of the rest */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.teaser-card {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.teaser-card:hover { transform: translateY(-4px); }
.teaser-card .card-thumb img { width: 100%; height: 160px; object-fit: cover; }
.teaser-card .card-body { padding: 1rem; }
.teaser-card h4 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.teaser-card time { font-size: 0.85rem; color: var(--text-muted, #777); display: block; margin-bottom: 0.5rem; }
.read-more { 
    color: var(--primary, #0066cc); 
    font-weight: 600; 
    font-size: 0.9rem;
}

/* Mobile fallback */
.abuse-carousel-wrapper {
    max-width: 100%;
    margin: 2rem 0;
    overflow: hidden;
}

.abuse-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.abuse-carousel .swiper-slide img {
    height: 100px !important;
    width: auto !important;
    object-fit: contain;
}

/* Optional nicer look */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}
.swiper-pagination-bullet-active {
    background: #fff;
}

/* ====Likes & Comments==== */
.wp-social-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg, #f9f9f9);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(0,0,0,0.1);
}
.social-summary { display: flex; gap: 8px; }
.count-pill {
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}
.social-actions { display: flex; gap: 15px; position: relative; }
.social-btn {
    background: none;
    border: none;
    color: var(--primary, #0066cc);
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}
.reaction-wrapper { position: relative; }
.social-item {
    display: flex;
    align-items: baseline;
    gap: 6px;             /* Tight spacing between the number and the label */
    cursor: pointer;
    transition: color 0.2s;
}

.count-number {
    font-weight: bold;
    font-family: monospace; /* Efficient, high-readability for counts */
}

.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== MEDIA SIZE QUERIES ========== */
/* New Header layout (≥ 800px) */
@media (min-width: 800px) {
    #header-top-row { padding: 0 24px; }
    #header-nav-items { /* one row, six columns */
        grid-template-columns: repeat(6, auto); align-items: center;
        margin: 0px 24px 0px 0px;
    }
    #header-nav-items a { font-size: 16px; padding: 8px 12px; }
    /* desktop spacer */
    .hamburger {
        width: 24px; height: 24px; padding: 0 0px;
    }
    .hamburger svg { width: 24px; height: 24px; }
}
/* New Header layout (< 800px) */
@media (max-width: 799px) {
    #header-nav-items {
        grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(20px, auto); text-align: left;
        gap: 0px; /* Extra spacing option */
    }
    #header-nav-items a { font-size: 12px; line-height: 20px; padding: 0 4px;}
    .hamburger {
        top: 4px; right: 4px; width: 20px; height: 20px;
        padding: 4px 4px 0 0;     /* as specified */
    }
    .hamburger svg { width: 20px; height: 20px; }
}
@media (max-width: 639px) { /* Change earlier row to column if narrow */
    #fr-context {grid-template-columns: 1fr;}
    #fr-top-flex { flex-direction: column; }
    #fr-vids-container {grid-template-columns: 1fr;}
    #fr-vid-minor-grid { display: none;}
    #wp-page-wrapper { grid-template-columns: 1fr;}
}
@media (max-width: 480px) {
    .conduce-grid {grid-template-columns: 1fr; }
    .conduce-item {font-size: 0.75em;}
    #wp-assoc { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .teaser-featured { grid-template-columns: 1fr; }
    .teaser-featured .featured-thumb { height: 200px; }
    .banner-container { flex-direction: column; align-items: center; }
}
@media (max-width: 379px) {
    #header-logo-img { width: 35vw; }
}
@media (min-width: 1600px) {
    .hero-container {
        flex-direction: row; /* Switch to side-by-side */
    }
    .hero-item {
        flex: 1; /* Each image takes equal half of the 1280px container */
    }
}
/* ========== MEDIA COLOR QUERIES ========== */
@media (prefers-color-scheme: dark) {
  #top {
    background-color: #333; color: #ddd;
    border-bottom: none;
  }
  #site-header {
    background-color: #000; color: #ddd;
    border-bottom: none;
  }
  #wp-content h1, h2, h3, h4, h5, h6 .card {
    background-color: #222 !important; color: #ddd;
    border-bottom: none;
  }
  #footer-logo, #footer-net, #footer-about {
    background-color: #000; color: #ddd;
  }
  textarea {
    background-color: #ddd; color: #222;
    border-bottom: none;
  }
  .bricklayer {
    background-color: initial; color: initial;
  }
  :root {
    --card-bg: #222;
    --card-text: #ddd;
  }
  .news-card {
    border-color: #444;
  }
  .post-navigation { border-top-color: #444; }
  .btn-secondary { background: #444; color: #eee; }
  .btn-primary { background: #0066cc; color: #fff; }
  .wp-social-bar .label { color: #aaa; }
  .wp-social-bar { border-top-color: rgba(255,255,255,0.1); }
  a {color: #66f; text-decoration: none;}
  a:active {color: #dfd;}
  a:hover {color: #f66;}
}
@media (prefers-color-scheme: light) {
  #top {
    background-color: #aaa; color: #000;
    border-bottom: none;
  }
  #site-header {
    background-color: #bbb; color: #000;
    border-bottom: none;
  }
  #wp-content h1, h2, h3, h4, h5, h6 .card {
    background-color: #ccc !important; color: #000;
  }
  #footer-logo, #footer-net, #footer-about {
    background-color: #000; color: #fff;
  }
  :root {
    --card-bg: #fff;
    --card-text: #222;
  }
  .btn-secondary { background: #eee; color: #333; }
  .btn-primary { background: #0066cc; color: #fff; }
}
@media (prefers-color-scheme: dark) {
    .wp-social-bar { border-top-color: rgba(255,255,255,0.1); }
}
@media (prefers-color-scheme: dark) {
    #footer-logo, #footer-net, #footer-about {
        background-color: #000; color: #ddd;
    }
}
/* OLD SEARCH STYLING */

.search-form .search-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  color: #555;
  font-size: 0.65rem;
  line-height: 0.65 !important;
  vertical-align: baseline !important;
}

.search-input {
  align-self: flex-start !important;
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  font-size: 0.65rem !important;
  height: 20px !important;
  line-height: 1.1 !important;
  min-height: 20px !important;
  padding: 0 6px !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  vertical-align: baseline !important;
  width: 100% !important;
}

.search-form .search-wrapper {
  display: inline-block !important;
  height: auto !important;
  line-height: 1 !important;
  vertical-align: baseline !important;
}
/* NEW ADDITIONAL SEARCH STYLING */
.search-result-link {
    display: block;
    padding: 15px 20px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.search-result-link:hover {
    background: #f9f9f9;
    color: #d32f2f; /* wp-daily red */
}

/* Kill Spectre's top padding/margin on Langswitcher */
.langswitcher,
.langswitcher ul,
.langswitcher li,
.langswitcher a {
  margin: 0 4px 0 0;
  padding-inline-start: 0 !important;
  padding: 0 0 0 0;
  line-height: 0.75 !important;
  text-decoration: none;
}
.langswitcher ul {
    display: flex;
    list-style: none;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    gap: 0.75rem;
    align-items: center;
}
.langswitcher li {
    display: inline-block;
    line-height: 1rem;
}
.langswitcher .active {
    text-decoration: underline;
}

/* Threaded Conversation Indentation Map */
.comment-item .replies {
    margin-left: 35px !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    padding-left: 20px !important;
    border-left: 1px dashed #cbd5e1 !important;
}

/* Subtle background accent for nested sub-replies */
.comment-item .replies .comment-item {
    background-color: rgba(0, 0, 0, 0.015);
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 2px solid #94a3b8 !important;
}

/* Space out the reply trigger actions slightly */
.comment-actions {
    margin-top: 4px;
    margin-bottom: 8px;
}
