/* site palette */
html:root {
    --bg: #F9F6F1;
    --surface: #FFFFFF;
    --surface-alt: #F7F3EC;
    --text: #1E1A14;
    --text-muted: #726A5A;
    --border: #E4E0D8;
    --primary: #9F1337;
    --primary-hover: #7F0F2C;
    --on-primary: #FFFFFF;
    --primary-text: #9F1337;
    --accent: #291E21;
    --on-accent: #FFFFFF;
    --accent-text: #291E21;
    --dark-band: #19150F;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3BFB6;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #19150F;
    --section-alt-bg: linear-gradient(174deg, #F7F3EC 0%, #F8F5EF 100%);
    --dark-band-bg: linear-gradient(130deg, #19150F 0%, #541223 100%);
    --brand-band-bg: #9F1337;
    --hero-bg: linear-gradient(130deg, #19150F 0%, #541223 100%);
}

/* /site palette */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arsenal', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

.yr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 0px;
    border: 1px solid var(--primary);
    text-decoration: none;
    transition: all 250ms ease-in-out;
    cursor: pointer;
}

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

.yr-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-text);
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 0px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 250ms ease-in-out;
    cursor: pointer;
}

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

.yr-card {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 1.5rem;
    transition: all 250ms ease-in-out;
}

.yr-card:hover {
    border-color: var(--primary);
}

.yr-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0px;
    background-color: var(--surface-alt);
}

.yr-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease-in-out;
}

.yr-card:hover .yr-media img {
    transform: scale(1.03);
}

.yr-eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.yr-title {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1rem;
}

.yr-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    background-color: var(--surface);
    color: var(--primary-text);
    border-radius: 0px;
    border: 1px solid var(--border);
}

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

.yr-section {
    background-color: var(--bg);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.yr-section-alt {
    background-color: var(--surface-alt);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.yr-section-dark {
    background: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.yr-section-brand {
    background: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {

    .yr-section,
    .yr-section-alt,
    .yr-section-dark,
    .yr-section-brand {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }
}

.yr-section-brand .yr-btn {
    background-color: var(--brand-btn-bg, #FFFFFF);
    color: var(--brand-btn-text, #19150F);
    border-color: var(--brand-btn-bg, #FFFFFF);
}

.yr-section-brand .yr-btn:hover {
    background-color: var(--surface-alt, #F7F3EC);
    color: var(--primary, #9F1337);
}

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

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

.yr-section-dark h1,
.yr-section-dark h2,
.yr-section-dark h3,
.yr-section-dark h4,
.yr-section-dark .yr-title,
.yr-on-dark h1,
.yr-on-dark h2,
.yr-on-dark h3,
.yr-on-dark h4,
.yr-on-dark .yr-title {
    color: var(--on-dark);
}

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

.yr-section-dark .yr-eyebrow,
.yr-on-dark .yr-eyebrow {
    color: var(--on-dark-muted);
}

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

.yr-section-dark .yr-card,
.yr-on-dark .yr-card {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.yr-section-dark .yr-card h2,
.yr-section-dark .yr-card h3,
.yr-section-dark .yr-card h4,
.yr-section-dark .yr-card .yr-title,
.yr-on-dark .yr-card h2,
.yr-on-dark .yr-card h3,
.yr-on-dark .yr-card h4,
.yr-on-dark .yr-card .yr-title {
    color: var(--text);
}

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

.yr-section-dark .yr-card .yr-eyebrow,
.yr-on-dark .yr-card .yr-eyebrow {
    color: var(--primary-text);
}

/* ===== header ===== */
.pv-site-header {
    font-family: 'Arsenal', sans-serif;
    border-radius: 0;
}

.pv-site-header * {
    border-radius: 0;
}

.pv-site-header .js-mobile-menu-drawer.is-open {
    transform: translateX(0);
}

/* ===== hero ===== */
.pv-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.pv-hero__overlay {
    background: linear-gradient(90deg, rgba(25, 21, 15, 0.94) 0%, rgba(25, 21, 15, 0.82) 55%, rgba(25, 21, 15, 0.45) 100%);
}

.pv-hero__input::placeholder {
    color: #C3BFB6;
    opacity: 1;
}

.pv-hero__input:-ms-input-placeholder {
    color: #C3BFB6;
}

.pv-hero__input::-ms-input-placeholder {
    color: #C3BFB6;
}

@media (max-width: 767px) {
    .pv-hero {
        min-height: auto;
    }

    .pv-hero__overlay {
        background: rgba(25, 21, 15, 0.92);
    }
}

/* ===== mythbusters ===== */
.yr-section .js-myth-item {
    min-height: 100%;
}

.yr-section .js-filter-btn {
    cursor: pointer;
    border-radius: 0;
    outline: none;
}

.yr-section .yr-card {
    border-radius: 0;
}

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

/* ===== about-author ===== */
.about-author-section {
    background-color: var(--bg);
    color: var(--text);
}

.about-author-section .yr-card {
    box-shadow: 0 4px 20px rgba(30, 26, 20, 0.04);
}

@media (max-width: 767px) {
    .about-author-section h2 {
        font-size: 16px !important;
    }

    .about-author-section h3 {
        font-size: 14px !important;
    }
}

/* ===== where-to-start ===== */
#where-to-start .yr-card {
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease
}

#where-to-start .yr-card:hover {
    box-shadow: 0 10px 30px rgba(30, 26, 20, 0.06)
}

#where-to-start a {
    overflow-wrap: anywhere
}

#where-to-start h2,
#where-to-start h3 {
    overflow-wrap: anywhere
}

/* ===== category-nav ===== */
.category-nav-section {
    background-color: var(--primary, #9F1337);
}

.category-nav-section .category-card {
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(30, 26, 20, 0.08);
}

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

/* ===== reader-questions ===== */
#reader-questions-section {
    background: var(--surface-alt, #F7F3EC);
}

#reader-questions-section .yr-card {
    border-radius: 0;
    box-sizing: border-box;
}

#reader-questions-section .yr-btn {
    border-radius: 0;
    text-decoration: none;
}

#reader-questions-section .js-qa-filter {
    border-radius: 0;
    outline: none;
}

#reader-questions-section .js-qa-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    #reader-questions-section #qa-cards-container {
        grid-template-columns: 1fr;
    }
}

/* ===== financial-modeling-grid ===== */
.financial-modeling-section {
    box-sizing: border-box;
}

.financial-modeling-section .financial-modeling-card {
    border-radius: 0px;
    transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out;
}

.financial-modeling-section .financial-modeling-card:hover {
    box-shadow: 0 10px 30px rgba(30, 26, 20, 0.08);
}

.financial-modeling-section .financial-modeling-media img {
    border-radius: 0px;
    transition: transform 300ms ease;
}

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

/* ===== visualization-grid ===== */
#visualization-grid-section .visualization-grid-card {
    border-radius: 0px;
    transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out;
}

#visualization-grid-section .visualization-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 26, 20, 0.08);
}

#visualization-grid-section .yr-media {
    transition: transform 400ms ease-in-out;
}

#visualization-grid-section .visualization-grid-card:hover .yr-media {
    transform: scale(1.03);
}

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

/* ===== strategic-grid ===== */
.strategic-planning-block .strategic-card {
    border-radius: 0;
    transition: box-shadow 250ms ease-in-out, transform 250ms ease-in-out;
}

.strategic-planning-block .strategic-card:hover {
    box-shadow: 0 10px 30px rgba(30, 26, 20, 0.08);
    transform: translateY(-2px);
}

.strategic-planning-block .strategic-date-badge {
    border-radius: 0;
    letter-spacing: 0.05em;
}

.strategic-planning-block h2,
.strategic-planning-block h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (max-width: 767px) {
    .strategic-planning-block .strategic-card {
        width: 100%;
    }
}

/* ===== footer ===== */
.footer-block {
    background: linear-gradient(130deg, #19150F 0%, #291E21 100%);
    font-family: 'Arsenal', sans-serif;
}

.footer-block .footer-disclaimer-banner {
    border-radius: 0px;
}

.footer-block .footer-icon-circle {
    border-style: dashed;
    border-width: 1.5px;
}

.footer-block .footer-input {
    border-radius: 0px;
}

.footer-block .footer-input::placeholder {
    color: #726A5A;
    opacity: 1;
}

.footer-block .footer-checkbox {
    width: 15px;
    height: 15px;
}

@media (max-width: 767px) {
    .footer-block .footer-disclaimer-banner {
        flex-direction: column;
    }
}

.pv-site-header {
    font-family: 'Arsenal', sans-serif;
    border-radius: 0;
}

.pv-site-header * {
    border-radius: 0;
}

.pv-site-header .js-mobile-menu-drawer.is-open {
    transform: translateX(0);
}

.pv-cat-hero {
    font-family: 'Arsenal', sans-serif;
}

.pv-category-page {
    font-family: 'Arsenal', sans-serif;
}

.pv-category-page .pv-category-page__card {
    border-radius: 0;
}

.pv-category-page .pv-category-page__card:hover {
    box-shadow: 0 10px 30px rgba(30, 26, 20, 0.08);
}

.pv-category-page .pv-category-page__tariff-card.is-selected {
    background-color: #FFFFFF;
    border-color: #9F1337;
    box-shadow: 0 8px 24px rgba(159, 19, 55, 0.12);
}

.pv-category-page input::placeholder {
    color: #726A5A;
    opacity: 1;
}

@media (max-width: 767px) {
    .pv-category-page__item {
        flex-direction: column !important;
    }

    .pv-category-page__meta {
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pv-category-page__card-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.footer-block {
    background: linear-gradient(130deg, #19150F 0%, #291E21 100%);
    font-family: 'Arsenal', sans-serif;
}

.footer-block .footer-disclaimer-banner {
    border-radius: 0;
}

.footer-block .footer-icon-circle {
    border-style: dashed;
    border-width: 1.5px;
}

.footer-block .footer-input {
    border-radius: 0;
}

.footer-block .footer-input::placeholder {
    color: #726A5A;
    opacity: 1;
}

.footer-block .footer-checkbox {
    width: 15px;
    height: 15px;
}


/* ===== PAGE: about-project ===== */
.yr-section { background-color: var(--bg); }
.yr-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.yr-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(30, 26, 20, 0.06); }
@media (max-width: 767px) {
  .yr-title { font-size: 16px; }
  h3 { font-size: 14px; }
}

/* ===== PAGE: privacy-policy ===== */
.pv-policy-block {
  overflow-wrap: anywhere;
}
.pv-policy-block .pv-policy-card {
  border-radius: 0px;
  box-shadow: 0 4px 20px rgba(30, 26, 20, 0.04);
}
.pv-policy-block .pv-policy-nav a.active {
  border-left-color: #9F1337;
  background-color: #F7F3EC;
  color: #9F1337;
}
@media (max-width: 767px) {
  .pv-policy-block article {
    padding: 1.25rem;
  }
  .pv-policy-block table th,
  .pv-policy-block table td {
    padding: 0.5rem;
  }
}

/* ===== PAGE: terms-of-use ===== */
.terms-content-section a.js-toc-link.is-active{color:var(--primary);border-left-color:var(--primary);background-color:var(--surface-alt)}

/* ===== PAGE: disclaimer ===== */
.yr-section article { transition: border-color 0.2s ease-in-out; } .yr-section article:hover { border-color: var(--primary); }

/* ===== PAGE: contact-us ===== */
.yr-section input::placeholder,
.yr-section textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.yr-section input:focus,
.yr-section textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.comment-item {
    border-radius: 0px;
    box-shadow: 0 4px 16px rgba(30, 26, 20, 0.03);
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    object-fit: cover;
}

.comment-btn-like,
.comment-btn-reply {
    border-radius: 0px;
    border: 1px solid #E4E0D8;
}

.comment-btn-like:hover,
.comment-btn-reply:hover {
    border-color: transparent;
}

.reply-comment-item {
    border-radius: 0px;
}

.reply-comment-item .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    object-fit: cover;
}

.reply-btn-like {
    border-radius: 0px;
    border: 1px solid #E4E0D8;
}

.reply-btn-like:hover {
    border-color: transparent;
}


/* ===== PAGE TEMPLATE: financial-modeling, visualization-and-reporting, strategic-planning ===== */
.pv-site-header {
    font-family: 'Arsenal', sans-serif;
    border-radius: 0;
}

.pv-site-header * {
    border-radius: 0;
}

.pv-site-header .js-mobile-menu-drawer.is-open {
    transform: translateX(0);
}

.pv-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    font-family: 'Arsenal', sans-serif;
}

.pv-hero__overlay {
    background: linear-gradient(130deg, #19150F 0%, #541223 100%);
}

.pv-article-main {
    font-family: 'Arsenal', sans-serif;
}

.pv-article-main * {
    border-radius: 0;
}

.pv-article-body h2.pv-content-heading {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pv-article-body p {
    overflow-wrap: anywhere;
}

.pv-pullquote {
    border-radius: 0;
}

.pv-sticky-action {
    border-radius: 0;
}

.footer-block {
    background: linear-gradient(130deg, #19150F 0%, #291E21 100%);
    font-family: 'Arsenal', sans-serif;
}

.footer-block .footer-disclaimer-banner {
    border-radius: 0px;
}

.footer-block .footer-icon-circle {
    border-style: dashed;
    border-width: 1.5px;
}

.footer-block .footer-input {
    border-radius: 0px;
}

.footer-block .footer-input::placeholder {
    color: #726A5A;
    opacity: 1;
}

.footer-block .footer-checkbox {
    width: 15px;
    height: 15px;
}

@media (max-width: 767px) {
    .pv-hero {
        min-height: auto;
    }

    .footer-block .footer-disclaimer-banner {
        flex-direction: column;
    }

    .pv-cta-box {
        flex-direction: column;
    }
}

/* 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%;
  }
}
