@import '@fontsource/archivo/600.css';
@import '@fontsource/archivo/700.css';
@import '@fontsource/ibm-plex-sans/400.css';
@import '@fontsource/ibm-plex-sans/500.css';

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  *,
  *::before,
  *::after {
    border-radius: 0 !important;
  }

  html {
    font-family: 'IBM Plex Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #111826;
    background: #FCFCFB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo', 'PingFang SC', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
  h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
  h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
  h4 { font-size: 1.125rem; }

  p {
    line-height: 1.7;
  }

  a {
    color: #7A1F2B;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  a:hover {
    color: #B8945A;
  }

  /* Thin line separator - the soul of finance-trust */
  hr {
    border: none;
    border-top: 1px solid #DFE3E7;
    margin: 0;
  }

  /* Minimal radius only on specific interactive elements */
  button,
  .btn,
  input[type="text"],
  input[type="search"],
  select {
    border-radius: 3px !important;
  }
}

@layer components {
  .site-container {
    @apply mx-auto max-w-site px-site-pad;
  }

  .section-gap {
    margin-bottom: 70px;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    text-transform: uppercase;
  }

  .btn-primary {
    background: #7A1F2B;
    color: #FCFCFB;
    border: none;
  }

  .btn-primary:hover {
    background: #5C1720;
    color: #FCFCFB;
  }

  .btn-gold {
    background: #B8945A;
    color: #FCFCFB;
    border: none;
  }

  .btn-gold:hover {
    background: #A07E4A;
    color: #FCFCFB;
  }

  .btn-outline {
    background: transparent;
    color: #7A1F2B;
    border: 1px solid #7A1F2B;
  }

  .btn-outline:hover {
    background: #7A1F2B;
    color: #FCFCFB;
  }

  .btn-ghost {
    background: transparent;
    color: #475569;
    border: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .btn-ghost:hover {
    color: #7A1F2B;
  }

  /* Trust bar badges */
  .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8125rem;
    color: #475569;
  }

  .trust-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  /* Ranked list */
  .ranked-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .ranked-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #DFE3E7;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
  }

  .ranked-list .rank-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    color: #B8945A;
    font-size: 1.125rem;
    margin-right: 0.75rem;
    min-width: 2rem;
  }

  .ranked-list .rank-value {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    color: #111826;
  }

  /* Panel note - left gold bar quote block */
  .panel-note {
    border-left: 3px solid #B8945A;
    padding: 1.25rem 1.5rem;
    background: #F5F6F4;
    margin: 1.5rem 0;
  }

  .panel-note blockquote {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 0.5rem;
  }

  .panel-note .attribution {
    font-family: 'Archivo', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111826;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* FAQ accordion */
  .faq-item {
    border-bottom: 1px solid #DFE3E7;
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #111826;
    text-align: left;
    transition: color 0.2s ease;
  }

  .faq-question:hover {
    color: #B8945A;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .faq-item.open .faq-icon {
    transform: rotate(45deg);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
  }

  .faq-item.open .faq-answer {
    max-height: 20rem;
    padding-bottom: 1.25rem;
  }

  /* Vertical divider for metrics */
  .metric-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
  }

  /* Shared border grid */
  .shared-border-grid {
    border: 1px solid #DFE3E7;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .shared-border-grid > * {
    padding: 2rem;
    border-right: 1px solid #DFE3E7;
  }

  .shared-border-grid > *:last-child {
    border-right: none;
  }

  .shared-border-grid > *:hover {
    background: #F5F6F4;
  }

  /* Article list - editorial 3-col rows */
  .article-row {
    display: grid;
    grid-template-columns: 160px 1fr 40px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #DFE3E7;
    transition: background 0.2s ease;
  }

  .article-row:hover {
    background: #F5F6F4;
  }

  .article-row .article-meta {
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .article-row .article-category {
    font-size: 0.6875rem;
    color: #B8945A;
    display: block;
    margin-bottom: 0.25rem;
  }

  .article-row .article-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    color: #111826;
    transition: color 0.2s ease;
  }

  .article-row .article-excerpt {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8125rem;
    color: #475569;
    margin-top: 0.25rem;
  }

  .article-row:hover .article-title {
    color: #B8945A;
  }

  .article-row .article-arrow {
    color: #DFE3E7;
    font-size: 1.25rem;
    transition: color 0.2s ease;
  }

  .article-row:hover .article-arrow {
    color: #B8945A;
  }

  /* Nav link underline hover */
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #B8945A;
    transition: width 0.2s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  /* Article prose */
  .prose-custom h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
  }
  .prose-custom p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #111826;
  }
  .prose-custom strong {
    color: #7A1F2B;
  }
  .prose-custom ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }
  .prose-custom li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
  }
}
@media (max-width:768px){a,button,input,select,textarea,summary,[role="button"]{min-height:44px;box-sizing:border-box}a,button,summary,[role="button"]{display:inline-flex;align-items:center}}
