/* Thoughts About God internal page templates. Scoped to .tagip-wrap only. */

.tagip-wrap,
.tagip-wrap * {
    box-sizing: border-box;
}

.tagip-wrap {
    --tagip-cream: #faf5ea;
    
    
    
    
    
    
    
    
    
    
    
    color: var(--tagip-text);
    
    overflow: hidden;
}

.tagip-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.tagip-hero {
    padding: 82px 0 56px;
}

.tagip-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
    gap: 42px;
    align-items: center;
}

.tagip-eyebrow,
.tagip-kicker,
.tagip-sidebar-label {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--tagip-gold-soft);
    color: var(--tagip-brown);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.tagip-hero h1 {
    color: var(--tagip-dark);
    font-family: inherit;
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 900;
    line-height: 0.99;
    letter-spacing: -0.055em;
    margin: 20px 0 18px;
}

.tagip-hero p {
    max-width: 760px;
    color: var(--tagip-muted);
    font-size: 19px;
    line-height: 1.72;
    margin: 0;
}

.tagip-hero-media {
    position: relative;
    min-height: 380px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(62, 47, 36, 0.94), rgba(86, 97, 79, 0.82)),
        radial-gradient(circle at 78% 18%, rgba(199, 147, 60, 0.42), transparent 38%);
    box-shadow: var(--tagip-shadow);
}

.tagip-hero-media::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    pointer-events: none;
}

.tagip-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}

.tagip-hero-mark {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.tagip-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
    padding: 24px 0 96px;
}

.tagip-main-content {
    display: grid;
    gap: 24px;
}

.tagip-editor-content,
.tagip-content-section,
.tagip-card,
.tagip-mini-card,
.tagip-sidebar-box {
    background: var(--tagip-white);
    border: 1px solid var(--tagip-line);
    border-radius: 26px;
    box-shadow: 0 16px 44px rgba(31, 26, 21, 0.08);
}

.tagip-editor-content,
.tagip-content-section,
.tagip-card {
    padding: clamp(26px, 4vw, 44px);
}

.tagip-editor-content {
    font-size: 18px;
    line-height: 1.78;
}

.tagip-editor-content > *:first-child,
.tagip-content-section > *:first-child,
.tagip-card > *:first-child {
    margin-top: 0;
}

.tagip-editor-content > *:last-child,
.tagip-content-section > *:last-child,
.tagip-card > *:last-child {
    margin-bottom: 0;
}

.tagip-content-section h2,
.tagip-card h2 {
    color: var(--tagip-dark);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 16px 0 16px;
    font-weight: 900;
}

.tagip-content-section p,
.tagip-card p,
.tagip-mini-card p,
.tagip-side-cta p {
    color: var(--tagip-muted);
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 16px;
}

.tagip-content-section p:last-child,
.tagip-mini-card p:last-child,
.tagip-side-cta p:last-child {
    margin-bottom: 0;
}

.tagip-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tagip-mini-card {
    padding: 24px;
}

.tagip-mini-card h3,
.tagip-side-cta h3 {
    color: var(--tagip-dark);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 10px;
    font-weight: 900;
}

.tagip-sidebar {
    position: sticky;
    top: 108px;
}

.tagip-sidebar-box {
    padding: 22px;
}

.tagip-side-nav {
    display: grid;
    gap: 8px;
    margin: 18px 0 20px;
}

.tagip-side-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--tagip-brown);
    background: #fffaf2;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(62, 47, 36, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tagip-side-nav a:hover,
.tagip-side-nav a:focus {
    background: var(--tagip-gold-soft);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 26, 21, 0.08);
}

.tagip-side-cta {
    padding-top: 18px;
    border-top: 1px solid var(--tagip-line);
}

.tagip-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--tagip-brown);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    line-height: 1;
}

.tagip-small-btn:hover,
.tagip-small-btn:focus {
    color: #fff;
    background: var(--tagip-sage);
}

.tagip-form-wrap {
    margin-top: 20px;
}

.tagip-form-wrap .frm_forms,
.tagip-form-wrap form {
    max-width: none;
}

.tagip-form-wrap input[type="text"],
.tagip-form-wrap input[type="email"],
.tagip-form-wrap input[type="url"],
.tagip-form-wrap input[type="tel"],
.tagip-form-wrap textarea,
.tagip-form-wrap select {
    width: 100%;
    border: 1px solid var(--tagip-line) !important;
    border-radius: 14px !important;
    background: #fffdf8 !important;
    padding: 13px 14px !important;
    color: var(--tagip-text) !important;
    box-shadow: none !important;
}

.tagip-form-wrap button,
.tagip-form-wrap input[type="submit"],
.tagip-form-wrap .frm_button_submit {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tagip-brown) !important;
    color: #fff !important;
    padding: 13px 22px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 24px rgba(62, 47, 36, 0.18) !important;
}

.tagip-notice {
    padding: 18px;
    border-radius: 18px;
    background: #fff7e8;
    color: var(--tagip-brown);
    line-height: 1.65;
    border: 1px solid rgba(199, 147, 60, 0.25);
}

.tagip-notice code {
    background: rgba(255, 255, 255, 0.72);
    padding: 2px 5px;
    border-radius: 6px;
}

@media (max-width: 1040px) {
    .tagip-hero-grid,
.tagip-main-grid {
        grid-template-columns: 1fr;
    }

    .tagip-sidebar {
        position: relative;
        top: auto;
        order: -1;
    }

    .tagip-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .tagip-container {
        width: min(100% - 24px, 1180px);
    }

    .tagip-hero {
        padding: 52px 0 30px;
    }

    .tagip-hero-media,
.tagip-hero-media img,
.tagip-hero-mark {
        min-height: 260px;
    }

    .tagip-hero-media {
        border-radius: 24px;
    }

    .tagip-main-grid {
        padding-bottom: 62px;
        gap: 22px;
    }

    .tagip-editor-content,
.tagip-content-section,
.tagip-card,
.tagip-mini-card,
.tagip-sidebar-box {
        border-radius: 22px;
    }

    .tagip-editor-content,
.tagip-content-section,
.tagip-card {
        padding: 24px;
    }
}

/* ---------------------------------------------------------
   Thoughts About God - Internal Page Mobile Heading Fix
   Placement:
   public_html/wp-content/themes/thoughtsaboutgod2026/assets/css/tag-internal-pages.css

   Keep this at the very bottom of this file.

   This is intentionally scoped ONLY to .tagip-wrap so it will not
   conflict with devotionals, posts, Tailwind prose headings, or newer
   page templates outside the TAG Internal Page renderer.
--------------------------------------------------------- */

@media (max-width: 680px) {
    .tagip-wrap .tagip-hero h1 {
        font-size: clamp(26px, 7.4vw, 34px) !important;
        line-height: 1.16 !important;
        letter-spacing: -0.026em !important;
        margin: 16px 0 14px !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .tagip-wrap .tagip-hero p {
        font-size: 16px !important;
        line-height: 1.62 !important;
    }

    .tagip-wrap .tagip-content-section h2,
.tagip-wrap .tagip-card h2,
.tagip-wrap .tagip-editor-content h2 {
        font-size: clamp(22px, 6.2vw, 28px) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.018em !important;
        margin: 22px 0 12px !important;
    }

    .tagip-wrap .tagip-mini-card h3,
.tagip-wrap .tagip-side-cta h3,
.tagip-wrap .tagip-editor-content h3 {
        font-size: clamp(19px, 5.2vw, 23px) !important;
        line-height: 1.25 !important;
        letter-spacing: -0.01em !important;
    }
}

@media (max-width: 380px) {
    .tagip-wrap .tagip-hero h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.018em !important;
    }

    .tagip-wrap .tagip-content-section h2,
.tagip-wrap .tagip-card h2,
.tagip-wrap .tagip-editor-content h2 {
        font-size: 21px !important;
        line-height: 1.25 !important;
    }
}
/* ---------------------------------------------------------
   INTERNAL PAGE HEADING CAPITALIZATION
   Preserve authored capitalization for every semantic heading.
--------------------------------------------------------- */

.tagip-wrap h1,
.tagip-wrap h2,
.tagip-wrap h3,
.tagip-wrap h4,
.tagip-wrap h5,
.tagip-wrap h6,
.tagip-wrap .wp-block-heading {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
}
/* v1.5.0 internal-page editorial heading family. */
.tagip-wrap h1,
.tagip-wrap h2,
.tagip-wrap h3,
.tagip-wrap h4,
.tagip-wrap h5,
.tagip-wrap h6 {
  font-family: var(--tag-font-heading) !important;
}

/* =========================================================
   SINGLE PAGE SIDEBAR + DEVOTIONAL TOC RESPONSIVE FIX
   Add to:
   /assets/css/tag-internal-pages.css
   ========================================================= */

/* Prevent either grid column from forcing horizontal overflow. */
.tag-content-page--single .tag-content-layout,
.tag-content-page--devotional .tag-content-layout {
  width: min(100% - 40px, 1240px);
  max-width: 1240px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  column-gap: clamp(28px, 4vw, 56px);
}

.tag-content-page--single .tag-content-main,
.tag-internal-page-active .tag-content-page--single .tag-content-sidebar,
.tag-content-page--devotional .tag-content-main,
.tag-internal-page-active .tag-content-page--devotional .tag-content-sidebar {
  min-width: 0;
  max-width: 100%;
}

/* Standard internal-page resource card. */
.tag-internal-page-active .tag-content-page--single .tag-content-sidebar:not(.tag-content-sidebar--toc) {
  width: 100%;
  max-width: 280px;
  justify-self: end;
}

.tag-internal-page-active .tag-content-sidebar__intro {
  width: 100%;
  padding: 26px 26px 24px;
  box-sizing: border-box;
}

.tag-internal-page-active .tag-content-sidebar__intro h2 {
  margin: 6px 0 10px;
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.12;
}

.tag-internal-page-active .tag-content-sidebar__intro > p:not(.tag-content-sidebar__eyebrow) {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.tag-internal-page-active .tag-content-sidebar__social {
  margin-top: 18px;
}

.tag-internal-page-active .tag-content-sidebar__social .tag-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.tag-internal-page-active .tag-content-sidebar__social .tag-social-links__link {
  width: 40px;
  height: 40px;
}

/* Devotional table-of-contents card. */
.tag-internal-page-active .tag-content-page--devotional .tag-content-sidebar--toc {
  width: 100%;
  max-width: 280px;
  justify-self: end;
}

.tag-internal-page-active .tag-content-page--devotional .tag-devotional-toc {
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  overflow: hidden;
}

.tag-internal-page-active .tag-devotional-toc__summary {
  padding: 22px 22px 18px;
}

.tag-internal-page-active .tag-devotional-toc__nav {
  padding: 0 22px 20px;
}

.tag-internal-page-active .tag-devotional-toc__list {
  margin: 0;
  padding: 0;
}

.tag-internal-page-active .tag-devotional-toc__list a {
  padding: 10px 12px 10px 18px;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tag-internal-page-active .tag-devotional-toc__social {
  padding: 18px 22px 22px;
}

.tag-internal-page-active .tag-devotional-toc__social .tag-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
}

.tag-internal-page-active .tag-devotional-toc__social .tag-social-links__link {
  width: 40px;
  height: 40px;
}

/* Tablet and mobile: collapse the two-column layout completely. */
@media (max-width: 1024px) {
  .tag-content-page--single .tag-content-layout,
.tag-content-page--devotional .tag-content-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100% - 32px, 760px);
    max-width: 760px;
    row-gap: 28px;
  }

  .tag-content-page--single .tag-content-main,
.tag-internal-page-active .tag-content-page--single .tag-content-sidebar,
.tag-content-page--devotional .tag-content-main,
.tag-internal-page-active .tag-content-page--devotional .tag-content-sidebar {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .tag-internal-page-active .tag-content-page--single .tag-content-sidebar,
.tag-internal-page-active .tag-content-page--devotional .tag-content-sidebar--toc {
    position: static !important;
    inset: auto !important;
    top: auto !important;
  }

  .tag-internal-page-active .tag-content-sidebar__intro,
.tag-internal-page-active .tag-content-page--devotional .tag-devotional-toc {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Phones: compact cards without leaving a blank right-hand column. */
@media (max-width: 680px) {
  .tag-content-page--single .tag-content-layout,
.tag-content-page--devotional .tag-content-layout {
    width: calc(100% - 28px);
    row-gap: 22px;
  }

  .tag-internal-page-active .tag-content-sidebar__intro {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .tag-internal-page-active .tag-content-sidebar__intro h2 {
    font-size: 24px;
  }

  .tag-internal-page-active .tag-devotional-toc__summary {
    padding: 20px 20px 16px;
  }

  .tag-internal-page-active .tag-devotional-toc__nav {
    padding: 0 20px 18px;
  }

  .tag-internal-page-active .tag-devotional-toc__social {
    padding: 16px 20px 20px;
  }

  .tag-internal-page-active .tag-content-sidebar__social .tag-social-links__link,
.tag-internal-page-active .tag-devotional-toc__social .tag-social-links__link {
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   NEWSLETTER HONEYPOT FIELD
   Keep spam protection active but never show it visually.
   ========================================================= */

.tag-newsletter-signup__honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tag-newsletter-signup__honeypot label,
.tag-newsletter-signup__honeypot input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tag-internal-page-active .tag-devotional-signup__form {
  position: relative;
}

.tag-internal-page-active .tag-devotional-signup__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.tag-internal-page-active .tag-devotional-signup__input,
.tag-internal-page-active .tag-devotional-signup__button {
  min-height: 48px;
}

@media (max-width: 680px) {
  .tag-internal-page-active .tag-devotional-signup__fields {
    grid-template-columns: 1fr;
  }

  .tag-internal-page-active .tag-devotional-signup__button {
    width: 100%;
  }
}

/* =========================================================
   v1.9.3 INTERNAL PAGE TYPOGRAPHY READABILITY
   ========================================================= */
.tag-internal-page,
.tag-internal-page :where(p,
li,
dd,
dt,
figcaption),
[class*="tagip-"] :where(p,
li,
dd,
dt,
figcaption) {
  font-weight: 500;
}

.tag-internal-page :where(a,
button,
label,
input,
select,
textarea),
[class*="tagip-"] :where(a,
button,
label,
input,
select,
textarea) {
  font-weight: 600;
}
/* =========================================================
   v2.0.2 INTERNAL PAGE CARD GRID RESPONSIVE STABILIZATION
   Thoughts About God 2026
   Purpose:
   - Keep internal-page cards equal and readable on desktop.
   - Prevent headings/body copy from forcing narrow columns.
   - Use 2 + 1 cards on medium screens.
   - Stack cards cleanly on phones.
   - Preserve the existing TAG 2026 design system.
   ========================================================= */

/* Always allow grid children to shrink correctly. */
.tagip-wrap .tagip-main-grid,
.tagip-wrap .tagip-main-content,
.tagip-wrap .tagip-content-section,
.tagip-wrap .tagip-card-grid,
.tagip-wrap .tagip-mini-card {
    min-width: 0;
    max-width: 100%;
}

/* Desktop card layout. */


/* Equal-height cards with predictable internal spacing. */
.tagip-wrap .tagip-mini-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    
    overflow: hidden;
}

/* Keep card titles compact and readable. */


/* Keep copy from appearing cramped inside cards. */


/* Keep sections using the card grid from stretching oddly. */
.tagip-wrap .tagip-content-section > .tagip-card-grid,
.tagip-wrap .tagip-card > .tagip-card-grid {
    margin-top: 24px;
    margin-bottom: 24px;
}

/* ---------------------------------------------------------
   Medium desktop / tablet landscape
   Two cards on the first row, third card full-width below.
   --------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 721px) {
    .tagip-wrap .tagip-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px;
    }

    .tagip-wrap .tagip-card-grid > .tagip-mini-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .tagip-wrap .tagip-mini-card {
        padding: 22px;
    }
}

/* ---------------------------------------------------------
   Phones / small tablets
   One card per row with comfortable touch spacing.
   --------------------------------------------------------- */
@media (max-width: 720px) {
    .tagip-wrap .tagip-card-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
        margin: 20px 0;
    }

    .tagip-wrap .tagip-card-grid > .tagip-mini-card {
        grid-column: auto !important;
        width: 100%;
        min-height: 0;
        padding: 20px 18px;
    }

    .tagip-wrap .tagip-mini-card h3 {
        font-size: clamp(18px, 5vw, 21px) !important;
        line-height: 1.3 !important;
        margin-bottom: 10px;
    }

    .tagip-wrap .tagip-mini-card p {
        font-size: 16px;
        line-height: 1.62;
    }
}

/* ---------------------------------------------------------
   Very small phones
   Keep cards clear without oversized padding.
   --------------------------------------------------------- */
@media (max-width: 380px) {
    .tagip-wrap .tagip-card-grid {
        gap: 12px;
    }

    .tagip-wrap .tagip-mini-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .tagip-wrap .tagip-mini-card h3 {
        font-size: 18px !important;
    }

    .tagip-wrap .tagip-mini-card p {
        font-size: 15.5px;
        line-height: 1.6;
    }
}
/* =========================================================
   v2.0.3 CARD GRID CONTAINER-AWARE RESPONSIVE FIX
   Thoughts About God 2026
   ---------------------------------------------------------
   Why:
   The Prayer Team cards sit inside the main content column,
   which can be much narrower than the browser viewport.
   Viewport-only media queries therefore leave 3 cards squeezed
   into a ~600-700px content area on desktop.

   This layer responds to the ACTUAL available section width.
   ========================================================= */

/* Let internal content sections act as responsive containers. */
.tagip-wrap .tagip-content-section,
.tagip-wrap .tagip-card {
    container-type: inline-size;
}

/* Safe default: cards choose the number of columns they can really fit. */
.tagip-wrap .tagip-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
    
    align-items: stretch;
    width: 100%;
}

/* Make every card use all of its assigned grid cell. */
.tagip-wrap .tagip-card-grid > .tagip-mini-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 100%;
    margin: 0;
}

/* Avoid artificially forcing the last odd card across a full row. */
.tagip-wrap .tagip-card-grid > .tagip-mini-card:last-child:nth-child(odd) {
    grid-column: auto !important;
}

/*
 * Wide content sections:
 * Three columns only when the SECTION itself has enough room.
 */
@container (min-width: 790px) {
    
}

/*
 * Medium content sections:
 * Two comfortable columns.
 * If there are exactly three cards, centre the final card below.
 */
@container (min-width: 540px) and (max-width: 789px) {
    

    
}

/* Narrow sections / phones: one card per row. */
@container (max-width: 539px) {
    .tagip-wrap .tagip-card-grid {
        
        gap: 14px !important;
    }

    .tagip-wrap .tagip-card-grid > .tagip-mini-card {
        
        width: 100% !important;
        justify-self: stretch !important;
    }
}

/* Card typography tuned for the narrower internal-page column. */


.tagip-wrap .tagip-mini-card h3 {
    max-width: 100%;
    
    
    
    
    
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

.tagip-wrap .tagip-mini-card p {
    max-width: 100%;
    margin: 0 !important;
    
    
    overflow-wrap: normal;
    word-break: normal;
}

/* Small-phone polish. */
@media (max-width: 680px) {
    

    
}

/* =========================================================
   v2.0.4 PROFESSIONAL INTERNAL PAGE REFINEMENT
   Thoughts About God 2026
   ---------------------------------------------------------
   Purpose:
   - Reduce overly soft / lifestyle-card styling.
   - Create a more serious ministry/editorial presentation.
   - Keep the existing 2026 colour system and typography.
   - Improve section hierarchy, spacing, and responsive cards.
   ========================================================= */

.tagip-wrap {
    --tagip-paper: #fffefa;
    --tagip-white: #ffffff;
    --tagip-brown: #3a2a21;
    --tagip-dark: #211914;
    --tagip-text: #443a33;
    --tagip-muted: #62574f;
    --tagip-gold: #a9782f;
    --tagip-gold-soft: rgba(169, 120, 47, 0.11);
    --tagip-sage: #4f5a49;
    --tagip-line: rgba(58, 42, 33, 0.14);
    --tagip-shadow: 0 14px 34px rgba(33, 25, 20, 0.08);

    background:
        linear-gradient(180deg, #faf8f3 0%, #f7f4ee 54%, #faf9f6 100%);
}

/* Keep page width generous but controlled. */
.tagip-wrap .tagip-container {
    width: min(1180px, calc(100% - 48px));
}

/* ---------------------------------------------------------
   HERO: more editorial, less decorative.
   --------------------------------------------------------- */
.tagip-wrap .tagip-hero {
    padding: 68px 0 46px;
}

.tagip-wrap .tagip-hero-grid {
    gap: clamp(36px, 5vw, 64px);
}

.tagip-wrap .tagip-eyebrow,
.tagip-wrap .tagip-kicker,
.tagip-wrap .tagip-sidebar-label {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f4eee3;
    color: var(--tagip-brown);
    border: 1px solid rgba(169, 120, 47, 0.16);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.tagip-wrap .tagip-hero h1 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.tagip-wrap .tagip-hero p {
    color: var(--tagip-text);
    font-size: 18px;
    line-height: 1.68;
}

/* Hero media becomes calmer and more formal. */
.tagip-wrap .tagip-hero-media {
    min-height: 340px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(44, 33, 27, 0.98), rgba(64, 70, 58, 0.92));
    box-shadow: 0 18px 44px rgba(33, 25, 20, 0.12);
}

.tagip-wrap .tagip-hero-media::after {
    inset: 14px;
    border-radius: 12px;
    border-color: rgba(255,255,255,0.18);
}

.tagip-wrap .tagip-hero-mark {
    min-height: 340px;
    padding: 36px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
}

/* ---------------------------------------------------------
   MAIN LAYOUT
   --------------------------------------------------------- */
.tagip-wrap .tagip-main-grid {
    gap: clamp(30px, 4vw, 48px);
    padding: 16px 0 88px;
}

.tagip-wrap .tagip-main-content {
    gap: 22px;
}

/* Serious section treatment: restrained corners and shadows. */
.tagip-wrap .tagip-editor-content,
.tagip-wrap .tagip-content-section,
.tagip-wrap .tagip-card,
.tagip-wrap .tagip-mini-card,
.tagip-wrap .tagip-sidebar-box {
    border: 1px solid var(--tagip-line);
    border-radius: 16px;
    background: var(--tagip-white);
    box-shadow: 0 8px 24px rgba(33, 25, 20, 0.055);
}

/* Main content sections get a subtle editorial accent. */
.tagip-wrap .tagip-content-section,
.tagip-wrap .tagip-card {
    position: relative;
    padding: clamp(30px, 4vw, 46px);
}

.tagip-wrap .tagip-content-section::before,
.tagip-wrap .tagip-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(30px, 4vw, 46px);
    width: 54px;
    height: 3px;
    background: var(--tagip-brown);
}

/* Heading hierarchy. */
.tagip-wrap .tagip-content-section h2,
.tagip-wrap .tagip-card h2 {
    max-width: 800px;
    margin: 18px 0 14px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.032em;
}

.tagip-wrap .tagip-content-section h3,
.tagip-wrap .tagip-card h3 {
    color: var(--tagip-dark);
    margin-top: 28px;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.28;
}

.tagip-wrap .tagip-content-section p,
.tagip-wrap .tagip-card p {
    max-width: 780px;
    color: var(--tagip-text);
    font-size: 17px;
    line-height: 1.72;
}

/* Lists: simple, readable, professional. */
.tagip-wrap .tagip-content-section ul,
.tagip-wrap .tagip-card ul {
    margin: 20px 0 0;
    padding-left: 24px;
}

.tagip-wrap .tagip-content-section li,
.tagip-wrap .tagip-card li {
    margin-bottom: 10px;
    color: var(--tagip-text);
    line-height: 1.65;
}

/* ---------------------------------------------------------
   STEP / MINI CARDS
   More structured and less "floating tile".
   --------------------------------------------------------- */
.tagip-wrap .tagip-card-grid {
    gap: 16px !important;
    margin: 28px 0 30px !important;
}

.tagip-wrap .tagip-mini-card {
    position: relative;
    padding: 24px 22px 22px !important;
    border-radius: 12px;
    border: 1px solid rgba(58, 42, 33, 0.15);
    border-top: 3px solid var(--tagip-brown);
    background: #fff;
    box-shadow: none;
}

.tagip-wrap .tagip-mini-card:hover {
    box-shadow: 0 8px 22px rgba(33, 25, 20, 0.06);
}

.tagip-wrap .tagip-mini-card h3 {
    margin: 0 0 10px !important;
    color: var(--tagip-dark);
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.32 !important;
    letter-spacing: -0.012em !important;
    text-wrap: balance;
}

.tagip-wrap .tagip-mini-card p {
    color: var(--tagip-text);
    font-size: 15.8px !important;
    line-height: 1.62 !important;
}

/*
 * For exactly three cards in medium-width content, avoid the
 * awkward centred "orphan card". Make the third span the full row.
 */
@container (min-width: 540px) and (max-width: 789px) {
    .tagip-wrap .tagip-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tagip-wrap .tagip-card-grid > .tagip-mini-card:nth-child(3):last-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }
}

/* At genuinely wide content widths, use three equal columns. */
@container (min-width: 790px) {
    .tagip-wrap .tagip-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Narrow content stays one clean column. */
@container (max-width: 539px) {
    .tagip-wrap .tagip-card-grid {
        grid-template-columns: 1fr !important;
    }

    .tagip-wrap .tagip-card-grid > .tagip-mini-card {
        grid-column: auto !important;
    }
}

/* ---------------------------------------------------------
   SUBSECTION SEPARATION
   --------------------------------------------------------- */
.tagip-wrap .tagip-content-section > h3:not(:first-child),
.tagip-wrap .tagip-card > h3:not(:first-child) {
    padding-top: 22px;
    border-top: 1px solid var(--tagip-line);
}

/* Notices become formal callouts instead of yellow promo boxes. */
.tagip-wrap .tagip-notice {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid rgba(58, 42, 33, 0.14);
    border-left: 4px solid var(--tagip-brown);
    background: #f8f5ef;
    color: var(--tagip-text);
}

/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */
.tagip-wrap .tagip-sidebar-box {
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(33, 25, 20, 0.05);
}

.tagip-wrap .tagip-side-nav {
    gap: 5px;
}

.tagip-wrap .tagip-side-nav a {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--tagip-text);
    font-weight: 700;
}

.tagip-wrap .tagip-side-nav a:hover,
.tagip-wrap .tagip-side-nav a:focus {
    transform: none;
    background: #f7f3ec;
    border-color: var(--tagip-line);
    box-shadow: none;
    color: var(--tagip-brown);
}

/* Buttons: less pill-like, more formal. */
.tagip-wrap .tagip-small-btn {
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 7px;
    background: var(--tagip-brown);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: none;
}

.tagip-wrap .tagip-small-btn:hover,
.tagip-wrap .tagip-small-btn:focus {
    background: var(--tagip-sage);
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */
@media (max-width: 1040px) {
    .tagip-wrap .tagip-main-grid {
        gap: 24px;
    }

    .tagip-wrap .tagip-sidebar {
        order: initial;
    }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */
@media (max-width: 680px) {
    .tagip-wrap .tagip-container {
        width: calc(100% - 28px);
    }

    .tagip-wrap .tagip-hero {
        padding: 44px 0 28px;
    }

    .tagip-wrap .tagip-hero-media,
.tagip-wrap .tagip-hero-media img,
.tagip-wrap .tagip-hero-mark {
        min-height: 220px;
    }

    .tagip-wrap .tagip-content-section,
.tagip-wrap .tagip-card,
.tagip-wrap .tagip-editor-content {
        padding: 26px 22px;
        border-radius: 12px;
    }

    .tagip-wrap .tagip-content-section::before,
.tagip-wrap .tagip-card::before {
        left: 22px;
        width: 42px;
    }

    .tagip-wrap .tagip-card-grid {
        gap: 12px !important;
        margin: 22px 0 24px !important;
    }

    .tagip-wrap .tagip-mini-card {
        padding: 20px 18px !important;
        border-radius: 10px;
    }

    .tagip-wrap .tagip-mini-card h3 {
        font-size: 18px !important;
    }

    .tagip-wrap .tagip-mini-card p {
        font-size: 16px !important;
    }

    .tagip-wrap .tagip-notice {
        border-radius: 8px;
    }
}