/* Moved from style.css to library.css on 2026-04-05 */

/********************************************
 * LIBRARY RIGHT-SIDE BADGE (FULLY ISOLATED)
 ********************************************/

/* Wrapper for the two images on the right */
.lib-right-badge {
    position: absolute;    /* was fixed */
    right: 175px;           /* or whatever you like */
    top: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    background: none;
    border: none;
    box-shadow: none;
    pointer-events: none;
    z-index: 5;
}


/* Both images */
.lib-right-badge img {
    display: block;
    height: auto;
    width: auto;
    max-width: 260px;
}

/* Hooks for later tweaking if you want them */
.lib-right-icon {}
.lib-right-text {}

/* Hide on small screens where there's no room */
@media (max-width: 768px) {
    .lib-right-badge {
        display: none;
    }
}

/* ARTICLE AREA ******/


/* ===== LIBRARY ARTICLE INDEX – CLEAN VERSION ===== */

.library-article-list {
  max-width: 820px;
  margin: 0 auto 40px;
}

/* Card = the link itself */
.library-article-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 12px 18px;
  margin-bottom: 10px;

  border-radius: 8px;
  background: var(--article-row-bg);        /* light parchment */
  border: 1px solid rgba(5, 15, 40, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

  text-decoration: none;
  color: inherit;
  cursor: pointer;

  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}


/* Left side content */
.library-article-main {
  flex: 1 1 auto;
}

/* Right side meta (date / author) */
.library-article-meta {
  flex: 0 0 auto;
  text-align: right;
  font-size: 13px;
  color: var(--text-muted, #7a7464);
}

/* Title + snippet */
.library-article-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

.library-article-snippet {
  margin: 0;
  font-size: 14px;
  color: #5b5546;
}

/* Title link behavior on hover */
.library-article-row:hover .library-article-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.library-article-status{
  width: 30px;
  height: 30px;
  margin-top: 6px;
  margin-left: auto;
  border-radius: 8px;
  background: #5a2f2a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.28);
}

.library-article-status::after{
  content: attr(data-status);
  font-family: "Newborough", serif;
  font-size: 18px;
  color: #f8efd4;
  line-height: 1;
}

.library-article-legend{
  text-align: right;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 14px;
  color: rgba(0,0,0,.55);
}

.library-article-legend span{
  margin-left: 18px;
}

.library-article-legend b{
  font-family: "Newborough", serif;
  color: #5a2f2a;
}



















/* ===== ARTICLE MODAL (LIBRARY PAGE) ===== */

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;               /* hidden by default */
}

.article-modal.is-open {
  display: block;
}

.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.article-modal-dialog {
  position: relative;
  max-width: 860px;
  height: calc(100vh - 80px);
  margin: 40px auto;
  background: #fefaec;         /* your vanilla cream */
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Scrollable content inside modal */

.article-modal-inner {
  padding: 22px 24px 24px;
  overflow-y: auto;
  height: 100%;
}

/* Close button – top right corner */

.article-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.article-modal-close:hover {
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.article-modal-close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* 2) Slightly more breathing room inside the navy plaque */
.article-view-plaque {
  padding: 18px 32px; /* was tighter; this is a modest bump */
}

/* 3) Card padding & max width for a more "editorial" feel */
/* Card becomes a flex column with a max height */
.article-view-card {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 34px 48px 40px !important;

  display: flex !important;
  flex-direction: column !important;
/*  max-height: 80vh !important;   /* card never taller than viewport */
  box-sizing: border-box !important;
}



.article-modal-dialog {
  position: relative;
  width: min(820px, 100% - 32px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}



/* 4) Header spacing: plaque → title → meta → body */
.article-view-header {
  margin-top: 24px;      /* space from plaque to title area */
}

.article-view-header h1 {
  margin-bottom: 12px !important;
}

/* Meta row to first paragraph */
.article-view-meta-row {
  margin-bottom: 18px;
}

/* 5) Narrow text column inside the article body */
.article-view-body {
  max-width: 680px;      /* this is the actual reading column */
  margin: 0 auto;        /* center text within the card */
}

/* 6) Readability: line-height & paragraph rhythm */
.article-view-body p {
  line-height: 1.7;
  margin: 0 0 1.1em;     /* consistent paragraph spacing */
}

/* Optional: tiny tweak so first paragraph feels "anchored" */
.article-view-body p:first-child {
  margin-top: 4px;
}


/* === Strong override for modal close X === */
.article-modal .article-modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;

  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;

  /* Charcoal background, cream text */
  background-color: #111218 !important; /* charcoal */
  color: #f5ecd8 !important;           /* cream – adjust if you have a brand cream */

  border: 1px solid rgba(0, 0, 0, 0.45) !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  font-size: 20px !important;
  line-height: 1;
  padding: 0;

  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.article-modal .article-modal-close:hover {
  /* Cream → white text, subtle shadow, no movement */
  color: #ffffff !important;
  background-color: #151821; /* slightly lighter charcoal, stays in family */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.article-modal .article-modal-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}


/* === FINAL NON-DANCING CLOSE BUTTON === */
.article-modal .article-modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;

  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;

  background-color: #111218 !important; /* charcoal */
  color: #f5ecd8 !important;            /* cream */
  border: 1px solid rgba(0, 0, 0, 0.45) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 22px !important;  /* larger X */
  font-weight: 600 !important;

  line-height: 1 !important;
  padding: 0 !important;

  cursor: pointer;
  box-shadow: none !important;

  /* NO transforms, NO background shifts, NO movement */
  transition: color 0.15s ease !important;
}

.article-modal .article-modal-close:hover {
  color: #ffffff !important; /* cream → white */
  background-color: #111218 !important;  /* NO change */
  box-shadow: none !important;           /* disabled */
  transform: none !important;            /* disabled */
}

.article-modal .article-modal-close:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}
/* === NON-MOVING CLOSE BUTTON WITH SUBTLE HOVER POP === */

.article-modal .article-modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;

  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;

  background-color: #111218 !important; /* charcoal */
  color: #f5ecd8 !important;            /* cream */

  border: 1px solid rgba(0, 0, 0, 0.45) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  /* NORMAL STATE X SIZE */
  font-size: 20px !important;
  font-weight: 600 !important;

  line-height: 1 !important;
  padding: 0 !important;

  cursor: pointer;

  /* No animation except color/font-size */
  transition:
    color 0.15s ease,
    font-size 0.15s ease,
    box-shadow 0.15s ease;
}

.article-modal .article-modal-close:hover {
  /* HOVER STATE: slightly bigger X, white text, subtle shadow */
  font-size: 22px !important;
  color: #ffffff !important;

  /* Subtle drop shadow around the button, not movement */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45) !important;

  /* No transform, no movement, no shift */
  transform: none !important;
}

.article-modal .article-modal-close:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* Tighten space between meta row and first paragraph inside article modal */
.article-modal .article-view-meta-row {
  margin-bottom: 10px;  /* adjust this number until it looks right */
}



/* === ARTICLE MODAL PHASE 1 POLISH — SPACING & READABILITY === */

/* 1) INTERNAL PLAQUE PADDING — modest increase */
.article-view-plaque {
  padding: 22px 36px !important;
}

/* 2) CARD PADDING — more breathing room inside the card */
.article-view-card {
  padding: 34px 48px 40px !important;
  max-width: 820px !important; /* wider card */
}

/* 3) READING COLUMN WIDTH — narrower column, magazine feel */
.article-view-body {
  max-width: 700px !important;
  margin: 0 auto !important;
}

/* 4) TITLE AREA SPACING */
.article-view-header {
  margin-top: 28px !important; /* space from plaque */
}

.article-view-header h1 {
  margin: 0 0 18px !important; /* bottom spacing before meta */
}

/* 5) META ROW SPACING (before first paragraph) */
.article-view-meta-row {
  margin-bottom: 26px !important;
}

/* 6) PARAGRAPH READABILITY — consistent rhythm */
.article-view-body p {
  font-size: 1.08rem !important;
  line-height: 1.72 !important;
  margin: 0 0 1.15em !important;
}

/* Subtle tightening on first paragraph */
.article-view-body p:first-child {
  margin-top: 4px !important;
}



/* Reduce space between header (title+meta) and article body in modal */
.article-modal .article-view-header {
  margin-bottom: 15px;  /* adjust this number until it looks right */
}


/* Ensure the article body doesn't add extra top gap in the modal */
.article-modal .article-view-body {
  margin-top: 0;
  padding-top: 0;
}
.article-modal .article-view-header {
  margin-bottom: 15px;
}

.article-modal .article-view-body {
  margin-top: 0;
}













/* VISUAL ADJUST: force meta row closer to title in the modal */
#style-article-modal .article-view-meta-row {
  transform: translateY(-15px) !important;  /* raise it by ~6px */
  margin-bottom: 22px !important;          /* keep spacing to body reasonable */
}


/* Top-align meta text and Listen button inside the meta row */
#style-article-modal .article-view-meta-row {
  display: flex !important;
  align-items: flex-start !important;  /* top alignment */
  gap: 16px !important;                /* breathing room between meta and button */
  
  /* keep the visual adjustments we already like */
  transform: translateY(-15px) !important;
  margin-bottom: 22px !important;
}

/* Stack the two meta lines (By + date) with nice rhythm */
#style-article-modal .article-view-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
/* Restore meta to a single horizontal line with bullet separator */
#style-article-modal .article-view-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;   /* space around bullet */
}

/* Style the spans inside the meta line */
#style-article-modal .article-view-meta span {
  display: inline-block !important;
}

/* Optional: ensure the bullet behaves properly */
#style-article-modal .article-view-meta span::after {
  content: "•";
  margin-left: 8px;
  margin-right: 8px;
}

#style-article-modal .article-view-meta span:last-child::after {
  content: "";
  margin: 0;
}


/* FIX META LINE: Only ONE bullet between the two spans */
#style-article-modal .article-view-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

/* Remove ALL bullets we previously tried to inject */
#style-article-modal .article-view-meta span::after {
  content: "" !important;
}

/* Insert EXACTLY ONE bullet between spans */
#style-article-modal .article-view-meta span + span::before {
  content: "•";
  margin: 0 10px;
  opacity: 0.9;
}

/* Dimming without blur — clean, crisp, premium */
#style-article-modal .article-modal-backdrop {
  background: rgba(0, 0, 0, 0.50) !important;
  backdrop-filter: none !important;
}




































/* mobile: stack meta under content */
@media (max-width: 720px){
  .library-article-list{
    margin: 28px 18px;
    max-width: none;
  }

  .library-article-list .library-article .library-article-row{
    flex-direction: column;
    gap: 10px;
  }

  .library-article-list .library-article .library-article-meta{
    flex: none;
    text-align: left;
    padding-top: 0;
    display: flex;
    gap: 12px;
  }

  .library-article-list .library-article .library-article-author{
    margin-top: 0;
  }
}

/* Pillar strip wrapper */
.library-pillars {
  max-width: 1100px;
  margin: 40px auto 70px;
  padding: 0 20px;
}


.pillar-grid {
  display: grid;
  gap: 24px;
}

/* Desktop: always 3 columns */
@media (min-width: 900px) {
  .pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet / small screens: 2 columns */
@media (min-width: 600px) and (max-width: 899px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones: 1 column */
@media (max-width: 599px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PILLAR CARDS – CLEAN FINAL VERSION ===== */

.pillar-card {
  display: block;
  background: #fbf5e8;                      /* cream card background */
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.16);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  /* no movement, just visual refinement */
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Hover: soft background + stronger shadow, NO jump */
.pillar-card:hover {
  background-color: #e0f5f2;                /* subtle teal wash */
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

/* Image area */
.pillar-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Text wrapper */
.pillar-body {
  padding: 18px 20px 20px;
}

/* Title: "Health / Lifestyle / Style" */
.pillar-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-link);                  /* normal link teal */
  text-decoration: none;
}

/* Body copy under the title */
.pillar-body p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #222222;                           /* normal body text */
}

/* CTA line: "Open Health Wing ›" */
.pillar-cta {
  display: block;              /* make it a block so it can center */
  margin: 6px auto 0;          /* auto left/right = centered */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-link);
  text-decoration: none;
  text-align: center;          /* center the text inside the block */
}


/* Hover: title + CTA = hover teal + underline */
.pillar-card:hover .pillar-title,
.pillar-card:hover .pillar-cta {
  color: var(--teal-link-hover);            /* hover teal */
  text-decoration: underline;
  text-decoration-color: var(--teal-link-hover);
}



/* ===== end Library Article Index List ===== */

/* ============================
   Library Cards (Health / Lifestyle / Style)
   ============================ */

/* Section wrapper and heading */
.library-section {
  max-width: 1100px;
  margin: 40px 0 50px 0;
}

.library-section-heading {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 18px 0;
  color: var(--charcoal, #050f28);
}

.library-intro{
  max-width: 960px;
  margin: 0 0 24px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #444;
}



/* GRID FOR ALL SIX CARDS */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* If you ever want a wide card, it will span all columns */
.library-card--wide {
  grid-column: 1 / -1;
}

/* ----------------------------
   LIBRARY CARD SYSTEM (LOCKED)
   ---------------------------- */

:root {
  --lib-card-bg: #fefaec;      /* default card background */
  --lib-card-hover: #def3f5;   /* hover background */
  --lib-card-text: #2b2b2b;
  --lib-card-muted: #444;
  --lib-card-radius: 16px;
  --lib-card-shadow: 0 10px 28px rgba(0,0,0,0.12);
  --lib-card-shadow-hover: 0 14px 34px rgba(0,0,0,0.16);
  --lib-gold: #d1a45a;
  --lib-link: var(--teal-link, #1a8a98);  /* your teal */
  --lib-card-shadow: 0 8px 22px rgba(0,0,0,0.12);
  --lib-card-shadow-hover: 0 14px 32px rgba(0,0,0,0.18);
}

.library-cards{ 
	display: grid; 
	grid-template-columns: repeat(3, minmax(0, 1fr)); 
	gap: 28px; 
	max-width: 1100px; 
	margin: 0 auto; 
	}


/* Whole card is a link */
.library-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* CARD BASE */
.library-card {
  background: var(--lib-card-bg);
  border-radius: var(--lib-card-radius);
  box-shadow: var(--lib-card-shadow);
  padding: 16px 18px 18px;
  transition: box-shadow .18s ease, background .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  max-width: 360px;
  border: 1px solid rgba(5,15,40,0.06);   /* NEW */
}

/* Hover state on whole card */
.library-card-link:hover .library-card,
.accessories-trigger:hover .library-card {
/*  transform: translateY(-2px);   remove the dancing up  */
  box-shadow: var(--lib-card-shadow-hover);
  background: var(--lib-card-hover);
}

/*
.library-card-link:hover .library-card {
  background: var(--lib-card-hover);
  box-shadow: var(--lib-card-shadow-hover);
  border-color: rgba(5,15,40,0.18);       /* NEW */
}
*/




/* IMAGE */
.library-card-img {
  display: block;
  width: 300px;
  height: 150px;              /* your 300x150 intent */
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(0,0,0,0.18);
  margin: 0 0 10px 0;
}

/* TITLE */
.library-card-title {
  margin: 10px 0 8px 0;
  font-size: 1.2rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--lib-card-text);
  text-align: center;
}

/* BLURB TEXT */
.library-card-text {
  margin: 0;
  margin-top: 2px;
  margin-bottom: 12px;        /* extra breathing room above CTA */
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--lib-card-muted);
  text-align: left;
  padding: 0 4px;
}

/* CTA AREA */
.library-card-cta {
  margin-top: auto;           /* pushes CTA to bottom of card */
  display: inline-flex;
  align-items: center;
  justify-content: center;    /* centers View Index in card */
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
/*  color: var(--lib-link);  */
  color: #fefaec;
  text-decoration: none;
}

.library-card--wide{ grid-column: 1 / -1; }




/* Make sure text is teal, not inheriting charcoal */
.library-card-cta span {
/*  color: var(--lib-link); */
  color: #fefaec;
}

/* Underline only on hover (matches article index behavior) */
.library-card-link:hover .library-card-cta span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* GOLD CHEVRON ICON */
.dc-micro-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* Kill any old ::after arrow experiments */
.library-card-cta::after {
  content: none !important;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .library-card {
    padding: 16px 16px 18px;
    min-height: 0;   /* let them shrink a bit on phones */
  }

  .library-card-img {
    height: 170px;
  }
}







/* CTA stays centered, and we force a gold chevron no matter what the HTML contains */
.library-card-cta{
  margin-top: auto;                 /* also helps equal-height layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fefaec;
  text-decoration: none;
  position: relative;
}

/* Hide any literal arrows you typed in HTML (>, &rarr; etc.) */
.library-card-cta{
  letter-spacing: 0;
}
.library-card-cta span + * { /* if you have an svg or anything after span, leave it alone */ }

/* Always append a chevron with CSS (gold + shadow) */
.library-card-cta::after{
  content: "";
  width: 22px;
  height: 22px;
  display: inline-block;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;

  /* inline SVG chevron */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6 L15 12 L9 18' fill='none' stroke='%23d1a45a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}


/* Gold parchment section divider   currently unused, may find a need for it later, make longer, add a drop shadow */
.library-divider {
  height: 2px;
  max-width: 220px;
  margin: 24px auto 32px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(240,231,208,0) 0%,
    rgba(240,231,208,.30) 18%,
    rgba(240,231,208,.85) 50%,
    rgba(240,231,208,.30) 82%,
    rgba(240,231,208,0) 100%
  );
}





/* ===== end LIBRARY CARD SYSTEM ===== */


/* === Featured Guide block (all Wings) === */

.featured-guide {
  max-width: 780px;
  margin: 2.75rem 0 2.25rem;
  padding: 1.75rem 2.1rem 2.2rem;
  background: #fdf7ec;
  border: 1px solid #e2d4bf;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

/* label line at top */

.featured-guide-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #333;
  padding: 0.35rem 0;
  border-top: 1px solid #d0c4b3;
  border-bottom: 1px solid #d0c4b3;
  margin-bottom: 1rem;
}



.featured-guide-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ded2c0;
  margin-left: 0.75rem;
}

/* title */

.featured-guide-title {
  margin: 0 0 1.15rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #050f28;
}

/* body text */

.featured-guide p {
  margin: 0 0 0.95rem;
  line-height: 1.7;
  color: #050f28;
  max-width: 66ch;          /* nicer line length */
}

.featured-guide p:last-of-type {
  margin-bottom: 1.5rem;
}

/* Continue Reading button */

.featured-guide-button-row {
  display: flex;
  justify-content: flex-end;   /* pushes button to the right */
  margin-top: 1rem;
  width: 100%;
}

.featured-guide-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  border-radius: 12px;      /* <<— the important fix */
  border: 1px solid #222;
  background: #050f28;
  color: #eee;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
/*  text-transform: uppercase;  */
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.featured-guide-button:hover {
  background: #222;
  border-color: #000;
}


.featured-guide-title {
  font-size: 1.7rem;
  margin-bottom: 1.3rem;
}


.library-text,
.featured-guide p,
.library-preview p,
.preview-text p,
.dc-article-body p {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #050f28 !important;
}





/* === Wing search block under Featured Guide === */

.wing-search-block {
  max-width: 780px;              /* match featured-guide width */
  margin: 2rem auto 3rem auto;   /* center horizontally */
  display: flex;
  justify-content: center;       /* center the form inside */
}

.wing-search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Bigger centered input */
.wing-search-input {
  width: 520px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #c6baa9;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.wing-search-input:focus {
  outline: none;
  border-color: #b7ab98;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Button style consistent with your other CTAs */
.wing-search-button {
  padding: 0.75rem 1.5rem;
  background: #111;
  color: #f4f4f4;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wing-search-button:hover {
  background: #222;
  transform: translateY(-1px);
}





/* Centered, premium, bold search block 
.wing-search-block {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 3rem;
}
.wing-search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Bigger, wider, cleaner input
.wing-search-input {
  width: 520px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #c6baa9;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.wing-search-input:focus {
  outline: none;
  border-color: #b7ab98;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Button that matches the “Continue Reading” style
.wing-search-button {
  padding: 0.75rem 1.5rem;
  background: #111;
  color: #f4f4f4;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wing-search-button:hover {
  background: #222;
  transform: translateY(-1px);
}

.wing-search-block {
  max-width: 720px;   /* match your featured-guide width 
  margin: 2.5rem auto 3rem auto; /* auto centers it 
  display: flex;
  justify-content: center;
}
*/


/* Responsive layout */
@media (max-width: 900px) {
  .library-card {
    flex: 0 0 calc(50% - 12px);  /* two per row */
  }
}

@media (max-width: 600px) {
  .library-card {
    flex: 0 0 100%;              /* one per row */
  }
}

/* === Clean article index card styling === */

/* Outer wrapper: just spacing, no colors */
.library-article {
  margin-bottom: 12px;
}

/* The actual pill – the link */
.library-article-link {
  display: block;
  padding: 10px 18px;
  border-radius: 10px;
  background-color: #f8efd4;        /* base card color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Alternating rows: even rows get a slightly deeper tone */
.library-article:nth-child(even) .library-article-link {
  background-color: #e7ddc2;
}
/* Hover must beat the stripe colors */
.library-article-link:hover {
  background-color: #def3f5 !important;  /* or whatever hover color you want */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}








/* Hover: whole pill changes color – no dancing, no inner outline */
.library-article-link:hover {
  background-color: #def3f5;        /* soft blue or pick your own */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}





/* The card is the LINK, period */
.library-article-link {
  display: block;
  padding: 10px 18px;
  border-radius: 10px;
  background-color: #f8efd4;          /* base card color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Alternating rows: even rows get a slightly deeper tone */
.library-article:nth-child(even) .library-article-link {
  background-color: #f0dfae;
}

/* Hover: whole pill, one element */
.library-article-link:hover {
  background-color: #def3f5;          /* pick whatever hover color you like */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}





/* 20260129 7:17am */


/* Hard reset: no background on wrapper or inner row */
.library-article,
.library-article-row {
  background: transparent !important;
  box-shadow: none !important;
}
/* The actual pill is the LINK */
.library-article-link {
  display: block;
  padding: 10px 18px;
  border-radius: 10px;
  background-color: #f2dfb0 !important;   /* base tan */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Alternating stripe: even rows only */
.library-article:nth-child(even) .library-article-link {
  background-color: #e4d1aa !important;   /* slightly deeper tan */
}

/* Hover: ONE element, full pill */
.library-article-link:hover {
  background-color: #cfdfff !important;   /* your blue hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.library-article,
.library-article-row {
  background: transparent !important;
  box-shadow: none !important;
}

/* Base card */
.library-article-link {
  display: block;
  padding: 10px 18px;
  border-radius: 10px;
  background-color: var(--article-row-bg) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.10);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Alternating stripe */
.library-article:nth-child(even) .library-article-link {
  background-color: var(--article-row-alt) !important;
}

/* Hover — clean, global, takes the whole pill */
.library-article-link:hover {
  background-color: var(--article-hover) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* 20260129 7:30 am  */

/* 1. WRAPPERS MUST NEVER HAVE A BACKGROUND */
.library-article,
.library-article:hover,
.library-article-row,
.library-article-row:hover {
  background: transparent !important;
  box-shadow: none !important;
}
/* 2. THE CARD IS THE LINK – BASE STATE */
.library-article-link {
  display: block;
  padding: 10px 18px;
  border-radius: 10px;
  background-color: var(--article-row-bg) !important; /* light stripe */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* 3. EVEN ROW STRIPE – ALSO ON THE LINK ONLY */
.library-article:nth-child(even) .library-article-link {
  background-color: var(--article-row-alt) !important; /* darker stripe */
}

/* 4. HOVER – BOTH ODD AND EVEN, SAME COLOR, BEATS STRIPES */
.library-article:nth-child(odd) .library-article-link:hover,
.library-article:nth-child(even) .library-article-link:hover {
  background-color: var(--article-hover) !important; /* your blue */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Title behaves like a link when the card is hovered */
.library-article-link:hover .library-article-title {
  text-decoration: underline;
  color: var(--article-hover);  /* your existing link color variable */
}


/* Index wrapper should not paint a background */
.library-article-list-wrapper {
  background: transparent;
  overflow: hidden;
  max-height: 0;               /* stay collapsed until activated */
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.3s ease,
              opacity 0.25s ease,
              transform 0.25s ease;
}

/* When activated, expand smoothly */
.library-article-list-wrapper.is-visible {
  max-height: 2000px;          /* tall enough for any index list */
  opacity: 1;
  transform: translateY(0);
}



/* ARTICLE INDEX ROWS  ---------------------------------- */

/* base row look */
.library-article-list .library-article {
  background: var(--article-row-bg);   /* color1 */
}

/* alternating stripe */
.library-article-list .library-article:nth-child(even) {
  background: var(--article-row-alt);  /* color2 */
}

/* hover the whole card when the link is hovered */
.library-article-list .library-article-link:hover .library-article {
  background: var(--article-hover);    /* color3 */
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  border-color: rgba(5,15,40,0.16);
}

/* text treatment on hover – title only */
.library-article-list .library-article-link:hover .library-article-title {
  text-decoration: underline;
  color: #041d33; /* or whatever your standard link/dark text is */
}

--article-row-bg:  var(--color1);
--article-row-alt: var(--color2);
--article-hover:   var(--color3);

/* === FINAL LIBRARY ARTICLE INDEX STYLES (OVERRIDE) =================== */

/* Container for the list */
.library-article-list {
  margin: 40px 50px;
  max-width: 980px;
}

/* Each article row “card” */
.library-article-list .library-article {
  background: var(--article-row-bg);      /* color1 / parchment light */
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(5, 15, 40, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* Alternating stripe (even rows) */
.library-article-list .library-article:nth-of-type(even) {
  background: var(--article-row-alt);     /* color2 / parchment darker */
}

/* Whole row is clickable */
.library-article-list .library-article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Layout: left content + right meta */
.library-article-list .library-article-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

/* Left side */
.library-article-list .library-article-main {
  flex: 1 1 auto;
  min-width: 0;
}

.library-article-list .library-article-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #22201b;
  text-decoration: none;                  /* no underline until hover */
}

.library-article-list .library-article-snippet {
  font-size: 15px;
  line-height: 1.22;
  color: #4a433b;
  margin: 0;
}

/* Right side meta */
.library-article-list .library-article-meta {
  flex: 0 0 160px;
  text-align: right;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.85;
  padding-top: 2px;
}

.library-article-list .library-article-date {
  font-weight: 600;
}

/* Hover – works for BOTH odd & even rows */
.library-article-list .library-article:hover {
  background: var(--article-hover);       /* color3 / blue accent */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  border-color: rgba(5, 15, 40, 0.16);
}

/* On hover, just underline the title (no color circus) */
.library-article-list .library-article:hover .library-article-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* 20260129 9:44 am


/* --- ARTICLE INDEX ROW STRUCTURE --- */
.library-article-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--article-row-bg);     /* light parchment */
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Alternating rows */
.library-article-list .library-article-row:nth-of-type(even) {
  background: var(--article-row-alt);    /* darker parchment */
}

/* Hover unified for both odd/even */
.library-article-row:hover {
  background: var(--article-hover);      /* blue accent */
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  cursor: pointer;
}

/* Title */
.library-article-row .library-article-title {
  font-size: 1rem;
  margin: 0 0 4px 0;
  font-weight: 600;
  color: #30220f;
  text-decoration: none;
}

/* Title underline on hover */
.library-article-row:hover .library-article-title {
  text-decoration: underline;
}

/* Snippet text */
.library-article-row p {
  margin: 0;
  color: #4a3f33;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Meta (date + author) */
.library-article-meta {
  text-align: right;
  min-width: 120px;
  font-size: 0.82rem;
  color: #6a5f52;
}




/& 20260129 10:07 am  */



/* REAL structure — article row is the <a> */
.library-article-list a.library-article-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 12px 18px;
  margin-bottom: 10px;

  border-radius: 8px;
  background: var(--article-row-bg);
  border: 1px solid rgba(5, 15, 40, 0.06);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);

  text-decoration: none;
  color: inherit;
  cursor: pointer;

  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* Even row */
.library-article-list a.library-article-row:nth-of-type(even) {
  background: var(--article-row-alt);
}

/* Hover */
.library-article-list a.library-article-row:hover {
  background: var(--article-hover);
}

.library-article-list a.library-article-row:hover .library-article-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}





/* === FINAL ARTICLE INDEX ROW STYLING === */

/* Base row (card) */
.library-article-list a.library-article-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 12px 18px;
  margin-bottom: 10px;

  border-radius: 8px;
  background-color: var(--article-row-bg) !important;   /* light parchment */
  border: 1px solid rgba(5, 15, 40, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

  text-decoration: none;
  color: inherit;
  cursor: pointer;

  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* Alternating even rows */
.library-article-list a.library-article-row:nth-of-type(even) {
  background-color: var(--article-row-alt) !important;  /* darker parchment */
}

/* Hover on any row (odd or even) */
.library-article-list a.library-article-row:hover {
  background-color: var(--article-hover) !important;    /* blue accent */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  border-color: rgba(5, 15, 40, 0.16);
}

/* Title behavior on hover */
.library-article-list a.library-article-row:hover .library-article-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Indent article index rows (align with header nicely) */
.library-article-list {
  margin-left: 50px;
}



/* Kill extra spacing inside */
.wing-search-form {
  margin: 0;
  padding: 0;
}

.wing-search-wrapper {
  background: var(--lib-card-bg);
  border-radius: var(--lib-card-radius);
  box-shadow: var(--lib-card-shadow);
  padding: 16px 18px 18px;
  transition: box-shadow .18s ease, background .18s ease, border-color .18s ease;
	max-width: 720px;
	width: auto;
  border: 1px solid rgba(5,15,40,0.06);   /* NEW */
}



.library-card-row {
  display: flex;
  flex-wrap: wrap;       /* ⭐ allow a second row */
  gap: 25px;
  justify-content: center;
}

/*
.library-card {
  flex: 1 1 calc(33.333% - 25px);  /* about one-third width 
  max-width: 360px;                /* keeps them from going huge on big screens
  flex-direction: column;
}
*/


.library-card {
  width: 360px;               
}

@media (max-width: 900px) {
  .library-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* Subcategory Card Image Shadow */
.library-card-img {
    box-shadow: 0 6px 12px rgba(0,0,0,0.28);
    border-radius: 8px;
}

.accessories-subcats,
.other-subcats-block {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accessories-subcats.is-open,
.other-subcats-block.is-open {
  /* JS will set max-height, this just makes the transition smooth */
}


.accessories-subcats {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* .is-open class is what the JS adds */
.accessories-subcats.is-open {
  /* we let JS set max-height dynamically */
}


.accessories-trigger {
  text-decoration: none;
  color: inherit;
  display: block; /* makes the whole card feel like one clickable block */
}

.accessories-trigger:hover {
  text-decoration: none;
}


/* Base wrapper behavior */
.library-article-list-wrapper {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* CLOSED state: no vertical padding so they take up ZERO vertical space */
.library-article-list-wrapper:not(.is-visible) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* OPEN state: gets the nice breathing room */
.library-article-list-wrapper.is-visible {
  padding-top: 25px;
  padding-bottom: 25px;
}


.library-results {
  margin-left: 100px;
  margin-top: 50px;
}



/* Base state: closed, invisible, no vertical padding */
.library-article-list-wrapper {
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: opacity 1.0s ease-out;
}

/* Open state: visible, with your 25px padding */
.library-article-list-wrapper.is-visible {
  opacity: 1;
  padding-top: 25px;
  padding-bottom: 25px;
}

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;
}

.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;
}

  /* FORCE 3 equal-width cards per row in each wing */
  #wing-health .library-cards,
  #wing-lifestyle .library-cards,
  #wing-style .library-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    justify-items: stretch;
  }

  #wing-health .library-card,
  #wing-lifestyle .library-card,
  #wing-style .library-card {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  /* Optional: nicer behavior on narrow screens */
  @media (max-width: 900px) {
    #wing-health .library-cards,
    #wing-lifestyle .library-cards,
    #wing-style .library-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 600px) {
    #wing-health .library-cards,
    #wing-lifestyle .library-cards,
    #wing-style .library-cards {
      grid-template-columns: 1fr;
    }
  }


.fade-target {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.fade-target.visible {
  opacity: 1;
}

.library-wing {
  display: none;
}

.library-wing.visible {
  display: block;
}

.library-wing.visible.animate {
animation: fadeZoomIn 3.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/*
@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
*/
@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: rotate(10deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.category-section {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.category-section.visible {
  opacity: 1;
  animation: fadeIn 1s ease;
}
@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-zoom {
  animation: fadeZoomIn 1s ease-out;
}


/* Base button */
.dc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #000000;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

/* Hover state */
.dc-button:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-1px);
}

/* Optional: icon sizing if you use â–¶ or SVG */
.dc-button .icon {
  font-size: 0.9rem;
  line-height: 1;
}
/* Fix: Button text inside library cards should NOT inherit teal link color */
.library-card-link .article-listen-btn {
  color: #e2ce99 !important;   /* your vanilla/cream */
	text-decoration: none !important;
}

.library-card-link:hover .article-listen-btn {
  color: #ffffff !important;   /* white on hover */
	text-decoration: none !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.28);  /* BELOW only */
}



/* LIBRARY CARD CTA BUTTON â€“ content-sized, centered */
.lib-card-cta-btn {
  display: inline-block;
  width: auto;                     /* do NOT stretch full width */
  max-width: 100%;
  
  padding: 5px 15px;
  margin-top: 12px;
  margin-left: auto;               /* center horizontally */
  margin-right: auto;

  background-color: #0a0f1a;
  color: #f7edcf;                  /* vanilla */
  
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  text-decoration: none;
  user-select: none;
  cursor: pointer;

  transition: all 0.25s ease;
}

/* Hover */
.lib-card-cta-btn:hover {
  color: #ffffff;
  background-color: #141a26;
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.featured-guide-button-row .lib-card-cta-btn {
  margin: 0;           /* no auto-centering */
}



.dc-search-console {
  margin-top: 15px;
  padding: 12px 18px;
  background: #e7ddc2; /* NEW */
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main); /* charcoal text */
}

.dc-sort-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.dc-sort-label {
  font-size: 0.95rem;
  color: var(--text-main); /* charcoal */
}

.dc-sort-help {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent); /* gold */
  color: #000; /* strong contrast */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.dc-sort-help-popup {
  margin-top: 10px;
  padding: 10px 14px;
  background: #e7ddc2; /* main panel tone */
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-main); /* charcoal */
  line-height: 1.4;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.dc-search-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.wing-search-form {
  display: flex;
  justify-content: center;
  gap: 12px;
}


.dc-search-console {
  margin-top: 15px;
  padding: 12px 18px;
  background: #f8efd4;                /* UPDATED PANEL BG */
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
}

.dc-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 150px;
  padding: 6px 34px 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-main);
  background-color: #fffdf8;
  /* SINGLE ARROW, NO REPEAT */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23212121' height='14' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M3 5l4 4 4-4'/></svg>");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 14px;
}

/* HOVER + FOCUS: we RESTATE the arrow so it can't vanish */
.dc-sort-select:hover,
.dc-sort-select:focus {
  background-color: #def3f5 !important;  /* your soft blue */
  border-color: var(--accent);
  outline: none;
  /* force arrow to stay */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23212121' height='14' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M3 5l4 4 4-4'/></svg>") !important;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}


.dc-sort-select::-ms-expand {
  display: none;
}
.dc-sort-select {
  appearance: none;
  -webkit-appearance: none;
}
.dc-sort-select,
.dc-sort-select:hover,
.dc-sort-select:focus {
  background-repeat: no-repeat !important;
}

/* Subtle luxury shadow for the whole sort panel */
.dc-search-console {
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.08),
    0 6px 14px rgba(0,0,0,0.06);
}

/* Popup shadow refinement */
.dc-sort-help-popup {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.10),
    0 8px 18px rgba(0,0,0,0.08);
}

/* Fade in animation */
@keyframes dcFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade when shown */
.dc-sort-help-popup.dc-visible {
  animation: dcFadeIn 0.18s ease-out forwards;
}

.dc-search-top-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
}


/* The whole search box area stacks correctly */
.dc-search-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* The form stacks top-row + sort console vertically */
.wing-search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 3px;
}

/* The top search row stays aligned horizontally */
.dc-search-top-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
}