/*
Theme Name: Two Cents
Theme URI: https://magazine.financial-cents.com
Template: generatepress
Author: Financial Cents
Author URI: https://financial-cents.com
Description: Two Cents Magazine child theme built on GeneratePress.
Version: 1.0.0
Updated: 2026-05-28

*/

/* ==========================================================================
   Financial Cents Design System
   Migrated from financial-cents-new.local
   ========================================================================== */

/* Typography system based on Utopia: https://utopia.fyi/type/calculator?c=479,20,1.2,1514,20,1.25,8,2,1280-5-0-0-0 */

:root {
  /* Fonts */
  --font-primary: 'Sora', sans-serif;
  --font-secondary: 'Inter', serif;

  /* Font sizes and line heights (fluid via clamp) */
  --fs-h1: clamp(3.202rem, 1.373rem + 3.808vw, 4.313rem); /* 51px - 69px */
  --lh-h1: 1.04em;

  --fs-h2: clamp(2.25rem, 1.772rem + 1.257vw, 2.375rem); /* 36px - 38px */
  --lh-h2: 1.18em;

  --fs-h3: clamp(1.875rem, 1.581rem + 0.615vw, 2rem); /* 30px - 32px */
  --lh-h3: 1.33em;

  --fs-h4: clamp(1.313rem, 1.171rem + 0.296vw, 1.313rem); /* 21px fixed */
  --lh-h4: 1.38em;

  --fs-h5: clamp(1.313rem, 1.171rem + 0.296vw, 1.313rem); /* 21px fixed */
  --lh-h5: 1.52em;

  --fs-body: clamp(1.25rem, 1.171rem + 0.148vw, 1.313rem); /* 20px - 21px */
  --lh-body: 1.52em;

  /* Spacing tokens */
  --s-5:   clamp(0.188rem, 0.143rem + 0.095vw, 0.313rem);   /*  3px ->  5px */
  --s-10:  clamp(0.375rem, 0.286rem + 0.191vw, 0.625rem);   /*  6px -> 10px */
  --s-15:  clamp(0.563rem, 0.429rem + 0.286vw, 0.938rem);   /* 10px -> 15px */
  --s-25:  clamp(0.938rem, 0.753rem + 0.477vw, 1.563rem);   /* 15px -> 25px */
  --s-30:  clamp(1.125rem, 0.902rem + 0.573vw, 1.875rem);   /* 18px -> 30px */
  --s-40:  clamp(1.25rem,  1.002rem + 0.616vw, 2.5rem);     /* 20px -> 40px */
  --s-50:  clamp(1.563rem, 1.253rem + 0.785vw, 3.125rem);   /* 25px -> 50px */
  --s-55:  clamp(1.75rem,  1.402rem + 0.858vw, 3.438rem);   /* 28px -> 55px */
  --s-60:  clamp(1.875rem, 1.502rem + 0.916vw, 3.75rem);    /* 30px -> 60px */
  --s-75:  clamp(2.188rem, 1.752rem + 1.074vw, 4.688rem);   /* 35px -> 75px */
  --s-84:  clamp(2.625rem, 2.102rem + 1.288vw, 5.25rem);    /* 42px -> 84px */
  --s-90:  clamp(2.813rem, 2.254rem + 1.380vw, 5.625rem);   /* 45px -> 90px */
  --s-100: clamp(3.125rem, 2.503rem + 1.532vw, 6.25rem);    /* 50px -> 100px */
  --s-120: clamp(3.75rem,  3.003rem + 1.840vw, 7.5rem);     /* 60px -> 120px */
  --s-140: clamp(4.375rem, 3.502rem + 2.148vw, 8.75rem);    /* 70px -> 140px */
}

html {
  overflow-x: hidden !important;
}

/* Heading styles */

h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: 0;
  margin-bottom: 0;
}

h2 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: 0;
  margin-bottom: 0;
}

h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: 0;
  margin-bottom: 0;
}

h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: 0;
  margin-bottom: 0;
}

h5 {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  letter-spacing: 0;
  margin-bottom: 0;
}

/* Paragraph */
p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0;
  margin-bottom: 0;
}

/* Button utility classes */

.primary-button-l,
.primary-button-m,
.primary-button-s {
  background-color: var(--green-strong) !important;
  color: var(--white-pure) !important;
}

.secondary-button-l,
.secondary-button-m,
.secondary-button-s {
  background-color: rgba(0, 0, 0, 0) !important;
  color: var(--black-pure) !important;
}

.tertiary-button-l,
.tertiary-button-m,
.tertiary-button-s {
  background-color: rgba(0, 0, 0, 0) !important;
  color: var(--white-pure) !important;
}

.secondary-button-white {
  background-color: var(--white-pure) !important;
  color: var(--black-pure) !important;
}

.primary-button-l:hover,
.primary-button-m:hover,
.primary-button-s:hover,
.secondary-button-l:hover,
.secondary-button-m:hover,
.tertiary-button-s:hover,
.tertiary-button-m:hover,
.tertiary-button-l:hover {
  opacity: 0.75;
}

/* Content page defaults */

.content-page p {
  margin: 0 0 1em 0;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4,
.content-page h5 {
  margin: 2rem 0;
}

.content-page li {
  margin: 0.5rem 0 0 2rem;
  font-size: 1.125rem;
}

/* Utility */

.no-decoration,
.no-decoration:hover {
  text-decoration: none !important;
}

/* List styles */
ol, ul {
  margin: 0 0 1em 1.5em;
}

ul li::marker,
ol li::marker {
  color: var(--green-strong);
}

/* Transition arrow (ported from financial-cents.com) */
.transition-arrow:hover .gb-shape {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

blockquote{
  border-left-color: var(--green-strong);
}

ul, ol, li,
span {
  font-family: var(--font-secondary);
}

input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
  border-radius: 10px;
}

.content-container .primary-button-m,
.content-blocks .primary-button-m {
  margin: 15px 0;
}
.content-container a,
.content-blocks a {
  color: var(--green-strong);
  text-decoration: underline;
}
.content-container p{
  font-size: 18px;
  line-height: 30.4px;
  margin-bottom: 1.5rem;
}
.content-container h2{
  font-size: 32px;
}
.content-container h3{
  font-size: 28px;
}
.content-container h4{
  font-size: 24px;
}
.content-container h2,
.content-container h3{
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
}
.content-container h2,
.content-container h3,
.content-container h4{
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

/* Footer nav accordion */
@media (min-width: 768px) {
  footer .gb-accordion__content {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  footer .gb-accordion__toggle-icon { display: none !important; }
  footer .gb-accordion__toggle {
    cursor: default !important;
    pointer-events: none !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
  }
  /* Spacing between stacked accordion items*/
  footer .gb-accordion__item + .gb-accordion__item { margin-top: var(--s-40, 2rem); }
}

.footer-items-list a:hover{
    text-decoration: underline;
    color: inherit !important;
}

.resources-container:hover span {
  color: var(--green-strong);
}

/* Article Table of Contents */
.article-toc {
  font-family: var(--gp-font--inter);
  position: sticky;
  top: 100px;
}
.article-toc__title {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-strong);
  margin-bottom: 1rem;
}
.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--gray-light);
}
.article-toc__item {
  position: relative;
}
.article-toc__item a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--black-pure);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.article-toc__item--h3 a {
  padding-left: 1.75rem;
  font-size: 0.875rem;
}
.article-toc__item--h4 a {
  padding-left: 2.25rem;
  font-size: 0.85rem;
}
.article-toc__item a:hover {
  color: var(--green-strong);
}
.article-toc__item a.is-active {
  color: var(--green-strong);
  font-weight: 600;
}
.article-toc__item a.is-active::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--green-strong);
}
.article-toc a {
  text-decoration: none !important;
}

@media (max-width: 1024px) {
  .article-toc {
    position: static;
    top: auto;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: var(--white-pure);
    margin-bottom: 1.5rem;
  }
  .article-toc__title {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
  }
  .article-toc__title::after {
    content: '+';
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 400;
    color: var(--black-pure);
    transition: transform 0.2s ease;
  }
  .article-toc.is-open .article-toc__title::after {
    content: '\2212'; /* minus sign */
  }
  .article-toc__list {
    max-height: 0;
    overflow: hidden;
    border-left: 0;
    transition: max-height 0.25s ease, margin-top 0.25s ease, border-left-width 0.25s ease;
    margin-top: 0;
  }
  .article-toc.is-open .article-toc__list {
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 1rem;
    border-left: 2px solid var(--gray-light);
  }
}

/* Customer love slider */

.slider-customer-love {
  -webkit-transform: translate3d(0, 0, 0);
  animation: scrollVertical linear infinite 90s;
  will-change: transform;
  transition: animation-play-state ease .3s;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 100%;
  gap: var(--s-30);
  padding: 0;
}

.slider-customer-love-down{
  -webkit-transform: translate3d(0, 0, 0);
  animation: scrollVerticalDown linear infinite 90s;
  will-change: transform;
  transition: animation-play-state ease .3s;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 100%;
  gap: var(--s-30);
  padding: 0;
}

/* Mobile Scroll */

@media (max-width: 767px) {
  .slider-customer-love{
    animation: scrollVertical linear infinite 60s;
  }

}

@keyframes scrollVerticalDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0%);
  }
}

.customer-love-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: text;
}

@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.slider-customer-love:hover, .slider-customer-love-down:hover {
  animation-play-state: paused !important;
}

.social-comments-vertical-slider {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
