/* site palette */
html:root {
    --bg: #FFFFFF;
    --surface: #F5F7F7;
    --surface-alt: #DFF3ED;
    --text: #1B2824;
    --text-muted: #556D65;
    --border: #D8E4E0;
    --primary: #1A8663;
    --primary-hover: #14684D;
    --on-primary: #FFFFFF;
    --primary-text: #177556;
    --accent: #F7C0D9;
    --on-accent: #111111;
    --accent-text: #D11B6D;
    --dark-band: #13644A;
    --on-dark: #FFFFFF;
    --on-dark-muted: #CCD5D3;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #13644A;
    --section-alt-bg: #DFF3ED;
    --dark-band-bg: #13644A;
    --brand-band-bg: #1A8663;
    --hero-bg: #13644A;
}

/* /site palette */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Hepta Slab', serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: var(--text-muted) !important;
}

.ana-eyebrow {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-text);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.ana-title {
    font-size: 1.75rem;
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .ana-title {
        font-size: 2.25rem;
        line-height: 2.75rem;
    }
}

.ana-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.25;
    text-decoration: none;
    background-color: var(--primary);
    color: var(--on-primary);
    border: 0;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.ana-btn:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
}

.ana-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 19px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.25;
    text-decoration: none;
    background-color: transparent;
    color: var(--primary-text);
    border: 1px solid var(--primary-text);
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.ana-btn-alt:hover {
    background-color: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.ana-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    background-color: var(--primary);
    color: var(--on-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ana-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--surface-alt);
    color: var(--primary-text);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ana-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    color: var(--text);
    isolation: isolate;
    transition: transform 300ms ease;
    height: 100%;
}

.ana-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 500ms ease;
}

.ana-card:hover .ana-card-bg {
    transform: scale(1.04);
}

.ana-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ana-card-content .ana-title,
.ana-card-content h3,
.ana-card-content h4 {
    color: var(--text);
    margin: 0;
}

.ana-card-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ana-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.ana-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ana-section {
    background-color: var(--bg);
    padding: 48px 0;
}

.ana-section-alt {
    background-color: var(--section-alt-bg, var(--surface-alt));
    padding: 48px 0;
}

.ana-section-dark {
    background-color: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
    padding: 48px 0;
}

.ana-section-brand {
    background-color: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding: 48px 0;
}

@media (min-width: 768px) {

    .ana-section,
    .ana-section-alt,
    .ana-section-dark,
    .ana-section-brand {
        padding: 80px 0;
    }
}

.ana-section-dark .ana-eyebrow,
.ana-on-dark .ana-eyebrow {
    color: var(--accent);
}

.ana-section-dark .ana-title,
.ana-on-dark .ana-title {
    color: var(--on-dark);
}

.ana-section-dark .text-muted,
.ana-on-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.ana-section-dark .ana-btn-alt,
.ana-on-dark .ana-btn-alt {
    color: var(--on-dark);
    border-color: var(--on-dark);
}

.ana-section-dark .ana-btn-alt:hover,
.ana-on-dark .ana-btn-alt:hover {
    background-color: var(--on-dark);
    color: var(--dark-band);
}

.ana-section-brand .ana-btn {
    background-color: var(--brand-btn-bg, #FFFFFF);
    color: var(--brand-btn-text, #13644A);
}

.ana-section-brand .ana-btn:hover {
    background-color: var(--surface);
    color: var(--brand-btn-text, #13644A);
}

.ana-section-brand .ana-btn-alt {
    color: var(--on-primary);
    border-color: var(--on-primary);
}

.ana-section-brand .ana-btn-alt:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}

.ana-section-dark .ana-card,
.ana-section-brand .ana-card,
.ana-on-dark .ana-card {
    color: var(--text);
}

.ana-on-dark {
    color: var(--on-dark);
}

/* ===== header ===== */
.bolde-header {
    background-color: var(--bg);
    font-family: var(--font-family-base, 'Hepta Slab', serif);
}

.bolde-header__logo-img {
    max-width: 45px;
    max-height: 45px;
}

.bolde-header__link {
    position: relative;
}

.bolde-header__link:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .bolde-header__topbar {
        display: none;
    }
}

/* ===== hero ===== */
.hero-bolde {
    background-color: var(--surface);
}

.hero-bolde-decor {
    overflow: hidden;
}

.hero-bolde-floating-left {
    position: absolute;
    top: 25%;
    left: 6%;
}

.hero-bolde-floating-right {
    position: absolute;
    bottom: 25%;
    right: 6%;
}

.hero-bolde-circle-graphic {
    position: absolute;
    top: 12%;
    right: 12%;
}

.hero-bolde-arrow-graphic {
    position: absolute;
    bottom: 16%;
    left: 12%;
}

.hero-bolde-accent-pill {
    box-shadow: 0 0 12px rgba(26, 134, 99, 0.12);
}

@media (max-width: 767px) {

    .hero-bolde .hero-bolde-floating-left,
    .hero-bolde .hero-bolde-floating-right,
    .hero-bolde .hero-bolde-circle-graphic,
    .hero-bolde .hero-bolde-arrow-graphic {
        display: none;
    }
}

/* ===== latest-publications ===== */
.latest-publications-section {
    overflow-wrap: anywhere;
}

.latest-publications-section .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== interviews ===== */
.block-interviews-card {
    box-shadow: none;
}

/* ===== infographics ===== */
#financial-infographics .js-chart-btn.active {
    background-color: #FFFFFF;
    color: #13644A;
    border-color: transparent;
}

#financial-infographics .js-chart-btn.inactive {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#financial-infographics .js-chart-btn.inactive:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== article-cycles ===== */
.article-cycles-wrapper {
    position: relative;
    overflow-wrap: anywhere;
}

.article-cycles-wrapper .cycle-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.article-cycles-wrapper a {
    text-decoration: none;
}

/* ===== glossary ===== */
.bolde-glossary-section {
    font-family: var(--font-family-base, 'Hepta Slab', serif);
}

.bolde-glossary-section .js-glossary-card {
    min-height: 220px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bolde-glossary-section .js-glossary-card.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .bolde-glossary-section .js-glossary-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== newsletter ===== */
.newsletter-block {
    position: relative;
    background-color: var(--dark-band);
}

.newsletter-block__wrapper {
    margin-left: auto;
    margin-right: auto;
}

.newsletter-block__input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.newsletter-block__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 134, 99, 0.25);
}

.newsletter-block__checkbox {
    accent-color: var(--primary);
}

@media (max-width: 767px) {
    .newsletter-block__form .flex-col {
        flex-direction: column;
    }
}

/* ===== footer ===== */
.bolde-footer {
    background-color: var(--dark-band, #13644A);
}

.bolde-footer__divider svg {
    transform: rotate(180deg);
}

.bolde-footer__link {
    text-decoration: none;
}

.bolde-footer__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .bolde-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE: about-project ===== */
.ana-section input::placeholder,
.ana-section textarea::placeholder,
.ana-section-alt input::placeholder,
.ana-section-alt textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.ana-section input:focus,
.ana-section textarea:focus,
.ana-section-alt input:focus,
.ana-section-alt textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

@media (max-width: 767px) {
  .ana-section h2, .ana-section-alt h2, .ana-section-dark h2 {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  .ana-section h3, .ana-section-alt h3, .ana-section-dark h3 {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

/* ===== PAGE: budget-planning ===== */
.budget-articles-block .budget-grid-layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.budget-articles-block .budget-post-card--featured {
  grid-column: span 3;
}

.budget-articles-block .budget-post-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.budget-articles-block .budget-post-card:hover .budget-card-img {
  transform: scale(1.04);
}

.budget-articles-block .budget-title-link {
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .budget-articles-block .budget-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .budget-articles-block .budget-post-card--featured,
  .budget-articles-block .budget-post-card {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .budget-articles-block .budget-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .budget-articles-block .budget-post-card--featured,
  .budget-articles-block .budget-post-card {
    grid-column: span 1;
  }
}

/* ===== PAGE: financial-goals ===== */
.goals-category-block .ana-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.goals-category-block .ana-card:hover {
  border-color: var(--primary);
}

/* ===== PAGE: expense-management ===== */
.expense-listing-block .expense-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.expense-listing-block .expense-item:hover {
  transform: translateY(-4px);
}

/* ===== PAGE: privacy-policy ===== */
.privacy-policy-content h2 { font-family: var(--font_family_headings, 'Hepta Slab', serif); overflow-wrap: anywhere; } .privacy-policy-content p, .privacy-policy-content li { overflow-wrap: anywhere; }

/* ===== PAGE: terms-of-use ===== */
.terms-content-block .terms-article { transition: background-color 0.2s ease; } .terms-content-block .js-toc-link.is-active { background-color: var(--surface-alt); color: var(--primary-text); font-weight: 700; }

/* ===== PAGE: disclaimer ===== */
.legal-section .legal-block { border-left: 3px solid var(--primary); padding-left: 1.25rem; } @media (max-width: 767px) { .legal-section .legal-block { padding-left: 0.75rem; } }

.comment-item {
    font-family: 'Hepta Slab', serif;
}

.comment-avatar {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-author {
    color: #1B2824;
    font-weight: 700;
}

.comment-body {
    color: #1B2824;
    line-height: 1.6;
}

.comment-actions button {
    cursor: pointer;
}

.comment-like-btn:hover {
    color: #1A8663;
}

.comment-reply-btn:hover {
    color: #14684D;
}

.reply-comment {
    font-family: 'Hepta Slab', serif;
}

.reply-comment .comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-comment .comment-author {
    color: #1B2824;
    font-weight: 700;
}

.reply-comment .comment-body {
    color: #1B2824;
    line-height: 1.5;
}

.reply-comment .comment-actions button {
    cursor: pointer;
}

.reply-comment .comment-like-btn:hover {
    color: #1A8663;
}


/* ===== PAGE TEMPLATE: budget-planning-posts ===== */
.bolde-header {
    background-color: var(--bg);
    font-family: var(--font-family-base, 'Hepta Slab', serif);
}

.bolde-header__logo-img {
    max-width: 45px;
    max-height: 45px;
}

.bolde-header__link {
    position: relative;
}

.bolde-header__link:hover {
    color: var(--primary);
}

.article-main-wrapper {
    font-family: var(--font-family-base, 'Hepta Slab', serif);
    overflow-wrap: anywhere;
}

.article-main-wrapper .article-dropcap-p::first-letter {
    font-size: 3.1rem;
    line-height: 0.85;
    float: left;
    margin-top: 4px;
    margin-right: 12px;
    margin-bottom: 2px;
    font-weight: 700;
    color: var(--primary);
}

.article-main-wrapper .article-cta-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.bolde-footer {
    background-color: var(--dark-band, #13644A);
}

.bolde-footer__divider svg {
    transform: rotate(180deg);
}

.bolde-footer__link {
    text-decoration: none;
}

.bolde-footer__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .bolde-header__topbar {
        display: none;
    }

    .bolde-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: financial-goals-posts ===== */
.bolde-header {
    background-color: var(--bg);
    font-family: var(--font-family-base, 'Hepta Slab', serif);
}

.bolde-header__logo-img {
    max-width: 45px;
    max-height: 45px;
}

.bolde-header__link {
    position: relative;
}

.bolde-header__link:hover {
    color: var(--primary);
}

.hero-bolde {
    background-color: var(--surface);
}

.article-detail-view {
    font-family: var(--font-family-base, 'Hepta Slab', serif);
}

.article-detail-view .article-prose h2 {
    overflow-wrap: anywhere;
}

.article-detail-view .article-prose p {
    overflow-wrap: break-word;
}

.bolde-footer {
    background-color: var(--dark-band, #13644A);
}

.bolde-footer__divider svg {
    transform: rotate(180deg);
}

.bolde-footer__link {
    text-decoration: none;
}

.bolde-footer__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .bolde-header__topbar {
        display: none;
    }

    .bolde-footer .grid {
        grid-template-columns: 1fr;
    }

    .article-detail-view .sticky-action-card {
        position: static;
    }
}

/* ===== PAGE TEMPLATE: expense-management-posts ===== */
.bolde-header {
    background-color: var(--bg);
    font-family: var(--font-family-base, 'Hepta Slab', serif);
}

.bolde-header__logo-img {
    max-width: 45px;
    max-height: 45px;
}

.bolde-header__link {
    position: relative;
}

.bolde-header__link:hover {
    color: var(--primary);
}

.bolde-footer {
    background-color: var(--dark-band, #13644A);
}

.bolde-footer__divider svg {
    transform: rotate(180deg);
}

.bolde-footer__link {
    text-decoration: none;
}

.bolde-footer__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-detail-page .newsletter-input::placeholder {
    color: var(--text-muted, #556D65);
    opacity: 0.85;
}

.article-detail-page .article-pull-quote {
    box-shadow: 0 4px 20px -2px rgba(19, 100, 74, 0.05);
}

.article-detail-page .faq-icon.is-open {
    transform: rotate(45deg);
}

@media (max-width: 767px) {
    .bolde-header__topbar {
        display: none;
    }

    .bolde-footer .grid {
        grid-template-columns: 1fr;
    }

    .article-mag-columns {
        grid-template-columns: 1fr;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* ===== button hover/pressed/active states: green background, white text ===== */
.ana-btn:active,
.ana-btn:focus-visible,
.ana-btn-alt:hover,
.ana-btn-alt:active,
.ana-btn-alt:focus,
.ana-btn-alt:focus-visible,
.ana-btn-alt.active {
    background-color: var(--primary) !important;
    color: var(--on-primary) !important;
    border-color: var(--primary) !important;
}

.ana-btn:active *,
.ana-btn:focus-visible *,
.ana-btn-alt:hover *,
.ana-btn-alt:active *,
.ana-btn-alt:focus *,
.ana-btn-alt:focus-visible *,
.ana-btn-alt.active * {
    color: var(--on-primary) !important;
}

/* ===== buttons on light cards inside brand/dark sections ===== */
.ana-section-brand .article-card-btn,
.ana-section-brand .article-card-btn:hover,
.ana-section-brand .article-card-btn:active {
    background-color: var(--primary);
    color: var(--on-primary);
}

/* ===== glossary cards: dark background, white text ===== */
.bolde-glossary-section .js-glossary-card {
    background-color: var(--dark-band);
    border-color: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.bolde-glossary-section .js-glossary-card h3,
.bolde-glossary-section .js-glossary-card span,
.bolde-glossary-section .js-glossary-card i {
    color: #FFFFFF;
}

.bolde-glossary-section .js-glossary-card p {
    color: rgba(255, 255, 255, 0.82);
}

.bolde-glossary-section .js-glossary-card .border-t {
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.7);
}

.bolde-glossary-section .js-glossary-card .ana-badge {
    background-color: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}
