/* ==========================================================================
   7L International Blog stylesheet
   Version: 1.14.0
   Palette and typography mirror 7linternational.com:
   brand red #ed1c24, black header, zinc greys, Montserrat.
   ========================================================================== */

:root {
   --brand-red: #ed1c24;
   --brand-red-dark: #c4141b;
   --black: #000000;
   --near-black: #0a0a0a;
   --text: #333333;
   --text-muted: #6b7280;
   --text-soft: #9ca3af;
   --surface: #ffffff;
   --surface-alt: #f0f0f0;
   --surface-zinc: #f4f4f5;
   --border: #e5e7eb;
   --radius: 20px;
   --radius-sm: 8px;
   --max-width: 1200px;
   --header-height: 80px;
   --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
   scroll-behavior: smooth;
}

body {
   margin: 0;
   font-family: var(--font);
   font-size: 16px;
   line-height: 1.7;
   color: var(--text);
   background: var(--surface);
   -webkit-font-smoothing: antialiased;
}

img {
   max-width: 100%;
   display: block;
}

a {
   color: var(--brand-red);
   text-decoration: none;
   transition: color 150ms ease-in-out;
}

a:hover {
   color: var(--brand-red-dark);
}

h1, h2, h3, h4 {
   color: var(--near-black);
   line-height: 1.2;
   font-weight: 700;
   margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p {
   margin: 0 0 1.25em;
}

.container {
   width: 100%;
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 2rem;
}

.sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 50;
   background: var(--black);
   color: #ffffff;
   box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.site-header .container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: var(--header-height);
}

.site-logo {
   color: #ffffff;
   font-weight: 800;
   font-size: 1.25rem;
   letter-spacing: -0.02em;
}

.site-logo img {
   height: 48px;
   width: auto;
}

.site-nav ul {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   gap: 2rem;
   align-items: center;
}

.site-nav a {
   color: #ffffff;
   font-weight: 500;
   font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
   color: var(--brand-red);
}

.nav-toggle {
   display: none;
   background: none;
   border: 0;
   padding: 0.5rem;
   cursor: pointer;
   color: #a1a1aa;
   border-radius: 6px;
}

.nav-toggle svg {
   width: 24px;
   height: 24px;
   display: block;
}

@media (max-width: 860px) {
   .nav-toggle { display: inline-flex; }

   .site-nav {
      position: absolute;
      top: var(--header-height);
      left: 0;
      right: 0;
      background: var(--black);
      display: none;
      padding: 1rem 2rem 1.5rem;
      border-top: 1px solid #27272a;
   }

   .site-nav.is-open { display: block; }

   .site-nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
   }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
   display: inline-block;
   padding: 0.85rem 1.75rem;
   border-radius: 999px;
   font-weight: 600;
   font-size: 0.95rem;
   line-height: 1;
   transition: background-color 150ms ease-in-out, color 150ms ease-in-out, transform 150ms ease-in-out;
}

.btn-primary {
   background: var(--brand-red);
   color: #ffffff;
}

.btn-primary:hover {
   background: var(--brand-red-dark);
   color: #ffffff;
   transform: translateY(-1px);
}

.btn-outline {
   border: 2px solid #ffffff;
   color: #ffffff;
}

.btn-outline:hover {
   background: #ffffff;
   color: var(--black);
}

.btn-dark {
   background: var(--near-black);
   color: #ffffff;
}

.btn-dark:hover {
   background: var(--brand-red);
   color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
   background: var(--near-black);
   color: #ffffff;
   padding: calc(var(--header-height) + 5rem) 0 5rem;
   position: relative;
   overflow: hidden;
}

.hero::after {
   content: "";
   position: absolute;
   right: -10%;
   top: -30%;
   width: 55%;
   height: 160%;
   background: radial-gradient(circle at center, rgb(237 28 36 / 0.35), transparent 60%);
   pointer-events: none;
}

.hero .container {
   position: relative;
   z-index: 1;
}

.hero .eyebrow {
   color: var(--brand-red);
   text-transform: uppercase;
   letter-spacing: 0.15em;
   font-size: 0.8rem;
   font-weight: 700;
   margin-bottom: 1rem;
}

.hero h1 {
   color: #ffffff;
   max-width: 800px;
}

.hero p {
   color: #d4d4d8;
   font-size: 1.125rem;
   max-width: 640px;
}

.hero .actions {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
   margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
   padding: 5rem 0;
}

.section-alt {
   background: var(--surface-alt);
}

.section-head {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 2rem;
   margin-bottom: 2.5rem;
}

.section-head p {
   margin: 0;
   color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Featured post
   -------------------------------------------------------------------------- */

.featured {
   display: grid;
   grid-template-columns: 1.1fr 1fr;
   gap: 0;
   background: var(--surface);
   border-radius: var(--radius);
   overflow: hidden;
   box-shadow: 0 10px 30px rgb(0 0 0 / 0.08);
}

.featured .featured-media {
   min-height: 320px;
   background: var(--near-black);
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
}

.featured .featured-body {
   padding: 3rem;
}

.featured h2 a {
   color: var(--near-black);
}

.featured h2 a:hover {
   color: var(--brand-red);
}

@media (max-width: 860px) {
   .featured { grid-template-columns: 1fr; }
   .featured .featured-body { padding: 2rem; }
}

/* --------------------------------------------------------------------------
   Post cards
   -------------------------------------------------------------------------- */

.post-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
}

@media (max-width: 1024px) {
   .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
   .post-grid { grid-template-columns: 1fr; }
}

.post-card {
   background: var(--surface);
   border-radius: var(--radius);
   overflow: hidden;
   display: flex;
   flex-direction: column;
   border: 1px solid var(--border);
   transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.post-card:hover {
   transform: translateY(-4px);
   box-shadow: 0 12px 30px rgb(0 0 0 / 0.1);
}

.post-card .card-media {
   height: 180px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--near-black);
}

.post-card .card-body {
   padding: 1.75rem;
   display: flex;
   flex-direction: column;
   flex: 1;
}

.post-card h3 {
   font-size: 1.15rem;
   margin-bottom: 0.75rem;
}

.post-card h3 a {
   color: var(--near-black);
}

.post-card h3 a:hover {
   color: var(--brand-red);
}

.post-card p {
   color: var(--text-muted);
   font-size: 0.95rem;
   flex: 1;
}

.post-card .read-more {
   font-weight: 600;
   font-size: 0.9rem;
}

.post-card .read-more::after {
   content: " \2192";
}

/* Numbered cover tiles used in place of photography */
.cover-tile {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   overflow: hidden;
}

.cover-tile::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, rgb(237 28 36 / 0.9) 0%, rgb(237 28 36 / 0.25) 45%, transparent 100%);
}

.cover-tile span {
   position: relative;
   font-size: 4.5rem;
   font-weight: 800;
   color: #ffffff;
   letter-spacing: -0.04em;
   opacity: 0.95;
}

.featured .cover-tile span {
   font-size: 8rem;
}

/* --------------------------------------------------------------------------
   Meta and tags
   -------------------------------------------------------------------------- */

.post-meta {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 0.75rem;
   font-size: 0.85rem;
   color: var(--text-soft);
   margin-bottom: 1rem;
}

.post-meta .dot::before {
   content: "\00b7";
}

.tag {
   display: inline-block;
   padding: 0.25rem 0.75rem;
   border-radius: 999px;
   background: var(--surface-zinc);
   color: var(--text);
   font-size: 0.75rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.06em;
}

.tag-red {
   background: var(--brand-red);
   color: #ffffff;
}

/* --------------------------------------------------------------------------
   Topics strip
   -------------------------------------------------------------------------- */

.topics {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
}

.topics a {
   padding: 0.6rem 1.1rem;
   border-radius: 999px;
   background: var(--surface-zinc);
   color: var(--text);
   font-weight: 600;
   font-size: 0.9rem;
}

.topics a:hover {
   background: var(--near-black);
   color: #ffffff;
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   text-align: center;
}

.stats .stat strong {
   display: block;
   font-size: 2.75rem;
   color: var(--brand-red);
   font-weight: 800;
   line-height: 1;
   margin-bottom: 0.5rem;
}

.stats .stat span {
   color: var(--text-muted);
   font-size: 0.95rem;
}

@media (max-width: 640px) {
   .stats { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.cta {
   background: var(--brand-red);
   color: #ffffff;
   text-align: center;
   padding: 4rem 0;
}

.cta h2 {
   color: #ffffff;
   margin-bottom: 1.5rem;
}

.cta .btn-outline:hover {
   color: var(--brand-red);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article-hero {
   background: var(--near-black);
   color: #ffffff;
   padding: calc(var(--header-height) + 4rem) 0 4rem;
}

.article-hero h1 {
   color: #ffffff;
   max-width: 900px;
}

.article-hero .post-meta {
   color: #a1a1aa;
}

.article-hero .lede {
   color: #d4d4d8;
   font-size: 1.2rem;
   max-width: 760px;
   margin: 0;
}

.article {
   padding: 4rem 0;
}

.article .container {
   max-width: 800px;
}

.article-body {
   font-size: 1.05rem;
}

.article-body h2 {
   margin-top: 2.5rem;
   font-size: 1.6rem;
}

.article-body h3 {
   margin-top: 2rem;
}

.article-body ul,
.article-body ol {
   padding-left: 1.4rem;
   margin: 0 0 1.5rem;
}

.article-body li {
   margin-bottom: 0.5rem;
}

.article-body blockquote {
   margin: 2rem 0;
   padding: 1.25rem 1.75rem;
   border-left: 4px solid var(--brand-red);
   background: var(--surface-alt);
   border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
   font-style: italic;
   color: var(--text);
}

.article-body blockquote p:last-child {
   margin-bottom: 0;
}

.article-body .callout {
   background: var(--surface-alt);
   border-radius: var(--radius);
   padding: 1.75rem 2rem;
   margin: 2rem 0;
}

.article-body .callout h3 {
   margin-top: 0;
}

.article-footer {
   margin-top: 3rem;
   padding-top: 2rem;
   border-top: 1px solid var(--border);
}

.article-footer .tags {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   margin-bottom: 2rem;
}

.author-box {
   display: flex;
   gap: 1.25rem;
   align-items: center;
   background: var(--surface-alt);
   border-radius: var(--radius);
   padding: 1.5rem 2rem;
}

.author-box .avatar {
   flex-shrink: 0;
   width: 56px;
   height: 56px;
   border-radius: 50%;
   background: var(--brand-red);
   color: #ffffff;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 800;
}

.author-box p {
   margin: 0;
   color: var(--text-muted);
   font-size: 0.95rem;
}

.author-box strong {
   color: var(--near-black);
}

.post-nav {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem;
   margin-top: 2.5rem;
}

.post-nav a {
   display: block;
   padding: 1.25rem 1.5rem;
   border: 1px solid var(--border);
   border-radius: var(--radius-sm);
   color: var(--near-black);
   font-weight: 600;
}

.post-nav a small {
   display: block;
   color: var(--text-soft);
   font-weight: 500;
   font-size: 0.8rem;
   text-transform: uppercase;
   letter-spacing: 0.08em;
   margin-bottom: 0.25rem;
}

.post-nav a:hover {
   border-color: var(--brand-red);
   color: var(--brand-red);
}

.post-nav .next {
   text-align: right;
}

@media (max-width: 640px) {
   .post-nav { grid-template-columns: 1fr; }
   .post-nav .next { text-align: left; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
   background: var(--black);
   color: #d4d4d8;
   padding: 4rem 0 2rem;
   font-size: 0.95rem;
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 3rem;
   margin-bottom: 3rem;
}

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

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

.site-footer h4 {
   color: #ffffff;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   margin-bottom: 1rem;
}

.site-footer ul {
   list-style: none;
   margin: 0;
   padding: 0;
}

.site-footer li {
   margin-bottom: 0.5rem;
}

.site-footer a {
   color: #d4d4d8;
}

.site-footer a:hover {
   color: var(--brand-red);
}

.site-footer .footer-logo img {
   height: 44px;
   margin-bottom: 1rem;
}

.footer-bottom {
   border-top: 1px solid #27272a;
   padding-top: 1.5rem;
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   gap: 1rem;
   color: #a1a1aa;
   font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Article extras: direct answer, tables, FAQ (v1.3.0)
   -------------------------------------------------------------------------- */

.direct-answer {
   border: 2px solid var(--brand-red);
   border-radius: var(--radius);
   padding: 1.5rem 2rem;
   margin: 0 0 2.5rem;
   background: #fff5f5;
}

.direct-answer .label {
   display: block;
   color: var(--brand-red);
   text-transform: uppercase;
   letter-spacing: 0.12em;
   font-size: 0.75rem;
   font-weight: 700;
   margin-bottom: 0.5rem;
}

.direct-answer p {
   margin: 0;
   font-weight: 500;
   color: var(--near-black);
}

.article-body .table-wrap {
   overflow-x: auto;
   margin: 1.5rem 0 2rem;
   border-radius: var(--radius-sm);
   border: 1px solid var(--border);
}

.article-body table {
   width: 100%;
   border-collapse: collapse;
   font-size: 0.95rem;
   min-width: 560px;
}

.article-body th,
.article-body td {
   padding: 0.85rem 1rem;
   text-align: left;
   vertical-align: top;
   border-bottom: 1px solid var(--border);
}

.article-body th {
   background: var(--near-black);
   color: #ffffff;
   font-weight: 600;
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 0.06em;
}

.article-body tbody tr:nth-child(even) {
   background: var(--surface-zinc);
}

.article-body tbody tr:last-child td {
   border-bottom: 0;
}

.article-body td strong {
   color: var(--near-black);
}

.faq {
   margin-top: 3rem;
}

.faq details {
   border: 1px solid var(--border);
   border-radius: var(--radius-sm);
   padding: 0 1.25rem;
   margin-bottom: 0.75rem;
   background: var(--surface);
}

.faq details[open] {
   border-color: var(--brand-red);
}

.faq summary {
   cursor: pointer;
   padding: 1rem 0;
   font-weight: 600;
   color: var(--near-black);
   list-style: none;
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 1rem;
}

.faq summary::-webkit-details-marker {
   display: none;
}

.faq summary::after {
   content: "+";
   color: var(--brand-red);
   font-size: 1.4rem;
   font-weight: 400;
   line-height: 1;
   flex-shrink: 0;
}

.faq details[open] summary::after {
   content: "\2212";
}

.faq details p {
   margin: 0 0 1rem;
   color: var(--text);
}

/* --------------------------------------------------------------------------
   Currency note under the short answer (v1.4.1)
   -------------------------------------------------------------------------- */

.currency-note {
   font-size: 0.85rem;
   color: var(--text-muted);
   margin: -1.5rem 0 2.5rem;
}

/* --------------------------------------------------------------------------
   Topic pages and linked tags (v1.10.0)
   -------------------------------------------------------------------------- */

a.tag {
   transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
}

a.tag:hover {
   background: var(--near-black);
   color: #ffffff;
}

a.tag.tag-red:hover {
   background: #ffffff;
   color: var(--brand-red);
}

.topics a .count {
   display: inline-block;
   margin-left: 0.35rem;
   padding: 0 0.45rem;
   border-radius: 999px;
   background: #ffffff;
   color: var(--text-muted);
   font-size: 0.75rem;
   font-weight: 700;
   line-height: 1.5;
}

.topics a:hover .count {
   background: var(--brand-red);
   color: #ffffff;
}
