html {
  background-color: #fefaec; /* vanilla base */
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #fefaec;  /* solid cream, no white jump */
  color: #050f28;             /* charcoal text */
  line-height: 1.7;
}

/* Outer wrapper to center the card */

.article-view-shell {
  max-width: 780px;
  margin: 40px auto 60px;
  padding: 0 16px;
}

/* The “entity” on the page */

.article-view-card {
  background: #fefaec;  /* cream, not dark */
  color: #050f28;       /* charcoal */
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  padding: 22px 24px 24px;
}


    .article-view-card {
      background: var(--bg, #fefaec);
      border-radius: 12px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
      padding: 22px 24px 24px;
    }

    /* Top plaque */

.article-view-plaque {
  background: #050f28;             /* charcoal bar */
  color: #d1a45a;                  /* gold text */
  border-radius: 8px;
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;             /* center horizontally */
  justify-content: center;
  text-align: center;
}

/* Bigger logo, centered */

.article-view-logo {
  height: 80px;        /* bump this up as needed: 36–42px usually looks great */
  display: block;
  margin-bottom: 4px;
}

/* Wing label under logo */

.article-view-wing {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7f2df;
}


    .article-view-divider {
      margin-top: 10px;
      height: 3px;
      background-image:
        linear-gradient(to right, rgba(5,15,40,0), rgba(5,15,40,0.5), rgba(5,15,40,0)),
        linear-gradient(to right, rgba(5,15,40,0), rgba(5,15,40,0.3), rgba(5,15,40,0)),
        linear-gradient(to right, rgba(5,15,40,0), rgba(5,15,40,0.15), rgba(5,15,40,0));
      background-repeat: no-repeat;
      background-size: 100% 1px, 100% 1px, 100% 1px;
      background-position: 0 0, 0 1px, 0 2px;
    }

    /* Title + meta */

    .article-view-header {
      margin-top: 18px;
      margin-bottom: 10px;
    }

    .article-view-header h1 {
		  margin: 0 0 4px;       /* slightly bigger gap to meta line */
		  font-size: 26px;
		  line-height: 1.3;
    }

    .article-view-meta {
      font-size: 13px;
      color: #6b7280; /* noticeable but quiet */
    }

    .article-view-meta span + span::before {
      content: "•";
      margin: 0 6px;
    }

    /* Body */

    .article-view-body {
      margin-top: 16px;
      font-size: 17px;
      line-height: 1.7;
    }

    .article-view-body p {
     margin: 0 0 14px;  
    }

    .article-view-body h2 {
      margin: 20px 0 8px;
      font-size: 20px;
    }

    /* Footer */

    .article-view-footer {
      margin-top: 22px;
    }

    .article-view-footer-divider {
      height: 1px;
      background-image: linear-gradient(
        to right,
        rgba(5, 15, 40, 0),
        rgba(5, 15, 40, 0.4),
        rgba(5, 15, 40, 0)
      );
      margin-bottom: 14px;
    }

    .article-view-return {
      /* Replace this with your Uchi gold button class if you have one */
      border: none;
      background: var(--gold, #d1a45a);
      color: #050f28;
      padding: 8px 20px;
      border-radius: 999px;
      font-size: 15px;
      cursor: pointer;
      font-weight: 600;
      display: inline-block;
      text-decoration: none;
    }

    .article-view-return:hover {
      filter: brightness(1.05);
    }

    .article-view-return-wrap {
      text-align: center;
    }

/* FORCE ARTICLE CARD + BODY TO BE CREAM */

.article-view-card,
.article-view-body,
.article-view-header,
.article-view-footer,
.article-view-body p,
.article-view-body h2,
.article-view-body h3 {
  background: #fefaec !important;   /* vanilla */
  color: #050f28 !important;        /* charcoal */
}

/* The only dark part should be the top plaque */
.article-view-plaque {
  background: #050f28 !important;   /* charcoal bar */
  color: #d1a45a !important;        /* gold */
}


/* Meta + Listen Row Layout */
.article-view-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2px;
  margin-bottom: 10px;
}

/* Meta text stays quiet but refined */
.article-view-meta {
  font-size: 13px;
  color: #6b7280;  /* soft grey */
  display: flex;
  gap: 10px;
}

.article-view-meta span + span::before {
  content: "•";
  margin: 0 6px;
}

/* Audio Button */
.article-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #050f28;              /* charcoal */
  color: #fefaec;                   /* cream text */
  padding: 6px 16px 7px;
  border: 0px;
  border-radius: 8px;               /* squared, modern */
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}


.article-listen-icon {
  color: #fefaec;                   /* cream icon */
  font-size: 1rem;
  display: inline-block;
  margin-top: 1px;
}

.article-listen-btn:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.28);  /* BELOW only */
  color: #ffffff;                              /* white text on hover */
}

.article-listen-btn:hover .article-listen-icon {
  color: #ffffff;
}

.return-wrapper {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.section-header-link {
  display: inline-block;
  text-decoration: none;
}

.section-header-bar {
  margin: 10px 0 14px;
  padding: 14px 18px;
  border-radius: 10px;
  width: 225px;
  background: #000;
  box-shadow:
    0 10px 24px rgba(0,0,0,.29),
    inset 0 1px 0 rgba(255,255,255,.09);

  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}



/* === Standard article spacing: title, meta, body (SEO + modal) === */


.article-view-header {
  margin: 0 0 12px;        /* space under meta before first paragraph */
}


.article-view-header h1 {
  margin: 0 0 6px;         /* space between title and meta */
  line-height: 1.3;
}

/* "By DougC • Written Jan 28, 2026" row */
.article-view-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;               /* no extra canyon below the meta row */
}

.article-view-body,
main.article-view-body {
  margin: 0;               /* kill any top margin on the body container */
}

/* First paragraph should sit snugly under the meta line */
.article-view-body > p:first-of-type,
main.article-view-body > p:first-of-type {
  margin-top: 0;
}

.article-view-body ul {
  margin: 6px 0 16px 1.4rem;     /* slight top gap, nice bottom gap, indented */
  padding-left: 1.2rem;          /* controls how far bullets/text sit in */
  list-style: disc outside;      /* normal bullets, outside the text block */
}

.article-view-body li {
  margin: 3px 0;                 /* vertical spacing between bullets */
  line-height: 1.55;             /* matches your paragraph feel */
}



/* === FINAL OVERRIDE: tighten meta → first paragraph gap in all articles === */

/* 1) Make sure the header isn't pushing down too much */
.article-view-card .article-view-header {
  margin-bottom: 14px !important;
}

/* 2) Kill any top margin on the article body */
.article-view-card .article-view-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 3) Force the FIRST paragraph to sit tight under the meta line */
.article-view-card .article-view-body p:first-of-type {
  margin-top: 0 !important;
}

/* 4) Optional: standard paragraph spacing inside the article body */
.article-view-card .article-view-body p {
  margin-bottom: 12px;
}










/* ===========================
   Related Materials (Footer)
   =========================== */

.dc-related {
  clear: both;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.14);
}

.dc-related-title {
  margin: 0 0 8px 0;
  font-size: 1.20rem;
  font-weight: 600;
  color: rgba(0,0,0,0.78);
}

.dc-related-group {
  margin-top: 14px;
}

.dc-related-group-label {
  margin: 0 0 8px 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(0,0,0,0.70);
}

.dc-related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-related-item {
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.dc-related-link {
  font-size: 1.00em;
  color: rgba(0,0,0,0.95);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .12s ease;
}

.dc-related-link:hover {
  color: rgba(0,0,0,0.90);
}

.dc-related-duration {
  font-size: 0.82em;
  color: rgba(0,0,0,0.55);
  margin-left: 6px;
}

.dc-related-summary {
  font-size: 0.85em;
  font-style: italic;
  color: rgba(0,0,0,0.60);
  margin-top: 1px;
  margin-bottom: 8px;
  line-height: 1.35;
}

/* ================================
   Slide-down Player Wrapper
   ================================ */

.dc-related-player-shell {
  overflow: visible !important;   /* allow shadows + allow content height calculation */
  max-height: none !important;    /* STOP collapsing the container */
  transition: max-height 260ms ease;
}

.dc-related-player-inner {
  padding: 4px 0 0;
  text-align: center;
}

/* ================================
   PREMIUM CARD FRAME (Unified)
   ================================ */

.dc-related-player-frame {
  background: #f8efd4;
  border-radius: 18px;

  /* FRAME SHOULD SHRINK-WRAP TO THE MEDIA */
  width: 100%;          /* ← fits the video/iframe exactly */
  max-width: 100%;             /* ← prevents overflow on small screens */

  /* PADDING FOR THE CREAM CARD */
  padding: 18px 24px; /* bottom padding slightly increased for breathing */

  margin: 0 auto 14px auto;

  box-shadow:
    0 5px 16px rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.10);

  display: inline-block;        /* ← THE FIX: removes the “extra bottom” expansion */
  vertical-align: top;          /* cleaner alignment with inline-block */
}


/* ================================
   MEDIA ELEMENT FRAMES
   ================================ */

/* Self-hosted MP4 */
.dc-related-video {
  display: block;
  width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 22px rgba(0,0,0,0.25),
    0 0 10px rgba(0,0,0,0.30);
}

/* YouTube iframe */
.dc-related-youtube {
  display: block;
  width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 22px rgba(0,0,0,0.25),
    0 0 10px rgba(0,0,0,0.30);
}

/* Audio players */
.dc-related-audio {
    height: auto !important;
    width: 100% !important;
    max-width: 100%;
    min-height: 34px; /* ensures controls always show */
}

/* ================================
   ORIENTATION CLASSES
   ================================ */


/* Horizontal */
.dc-related-orient-h {
  width: 100%;
  max-width: 640px;
  filter: blur(18px);
  transition: opacity 0.85s ease-out, filter 0.85s ease-out;
}

.dc-related-orient-h .dc-related-video {
  aspect-ratio: 16 / 9;
}

.dc-related-orient-h .dc-related-youtube,
.dc-related-orient-h .dc-related-video {
  width: 640px;        /* natural YouTube base width */
  max-width: 100%;     /* responsive scaling */
  aspect-ratio: 16 / 9;
}

/* ================================
   Vertical
   ================================ */
/* ============================
   VERTICAL Videos (All Types)
   ============================ */

.dc-related-orient-v {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;        /* ensures proper centering */
}

/* FINAL — FORCE ALL VERTICAL MP4s TO FIT */
.dc-related-orient-v .dc-related-video {
    width: 100%;
    max-width: 360px;

    /* Forces containment inside cream frame */
    max-height: 80vh;

    aspect-ratio: 9 / 16;
    object-fit: contain;

    display: block;
    margin: 0 auto;
}

/* YOUTUBE VERTICAL (embed is perfect, leave it alone) */
.dc-related-orient-v .dc-related-youtube {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  display: block;
}


/* Special sizing for VERTICAL media cards:
   - make the card itself narrower
   - center it so the drop shadow shows on both sides
*/
.dc-related-player-frame.dc-related-orient-v {
  display: inline-block;       /* card shrinks to its content */
  width: auto;                 /* no forced full-width band */
  max-width: 420px;            /* ~360 video + padding breathing room */
  margin: 0 auto 10px auto;    /* centered inside the inner wrapper */
}

/* Special sizing for HORIZONTAL YouTube (orientation = h):
   - Prevent full-width card so shadow shows on both sides
*/
.dc-related-player-frame.dc-related-orient-h {
  display: inline-block;
  width: auto;
  max-width: 760px;    /* 640 video + padding, adjust if needed */
  margin: 0 auto 10px auto;
}

/* Force portrait videos into a safe, predictable shape */
.dc-force-vertical {
  width: 100%;
  max-width: 360px;

  /* Locked portrait ratio */
  aspect-ratio: 9 / 16;

  /* Keep entire video visible */
  object-fit: contain;

  /* REMOVE any forced height from the video element */
  height: auto !important;
}

/* ================================
   CLOSE BUTTON
   ================================ */

.dc-related-close-btn {
  display: block;
  width: max-content;

  /* TIGHT but not cramped */
  margin: 14px auto 20px auto;

  padding: 6px 18px;
  text-align: center;

  position: relative;
  z-index: 5;
}

/* ================================
   ITEM SPACING
   ================================ */

.dc-related-item + .dc-related-item {
  margin-top: 12px;
}

/* ================================
   ANIMATION
   ================================ */

/* ==============================
   Media Fade-In Blur Animation
   ============================== */

.dc-related-closing {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.56s ease, transform 0.56s ease;
}

/* Snappy masculine slide-out — extended version */
.dc-related-slide-close {
  opacity: 0;                          /* go fully transparent */
  transform: translateY(-14px) scale(0.97);
  transition:
    transform 0.98s cubic-bezier(0.42, 0, 0.58, 1),
    opacity 0.98s ease-out;
}

.dc-media-blur-in {
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.85s ease-out, filter 0.85s ease-out;
}

.dc-media-blur-in.dc-media-ready {
  opacity: 1;
  filter: blur(0px);
}
@keyframes dc-related-blur-in {
  from {
    filter: blur(12px);
    opacity: 0.5;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

audio.dc-related-audio {
  height: auto !important;
  min-height: 34px !important;
}
audio.dc-related-audio {
  -webkit-appearance: media-controls !important;
  appearance: auto !important;
}

audio::-webkit-media-controls-panel {
  display: block !important;
}
.dc-related-player-frame,
.dc-related-player-inner,
.dc-related-player-shell {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Ensure custom player always fits the card */
.dc-audio-player {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0;
}