/* Meridian17 - Main Stylesheet */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Heebo', sans-serif; font-weight: 300; color: #171717; background: #ffffff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* Colours */
:root {
  --dark-green: #024203;
  --mid-green: #026203;
  --bright-green: #028203;
  --near-black: #171717;
  --off-white: #ededed;
  --border: #d8d8d0;
  --white: #ffffff;
  --body-muted: #555555;
  --body-light: rgba(255,255,255,0.75);
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.section { padding: 80px 0; }
.section--white { background: var(--white); }
.section--offwhite { background: var(--off-white); }
.section--dark { background: var(--dark-green); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }

/* Navigation */
.nav { background: var(--dark-green); height: 64px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; width: 100%; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 17px; font-weight: 500; }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__links a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 300; transition: color 0.2s; }
.nav__links a:hover { color: var(--white); }
.nav__cta { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--white); padding: 8px 18px; font-size: 13px; font-weight: 300; border-radius: 3px; cursor: pointer; font-family: 'Heebo', sans-serif; transition: background 0.2s; }
.nav__cta:hover { background: rgba(255,255,255,0.08); }

/* Hero */
.hero { background: var(--dark-green); padding: 80px 0 72px; }
.hero__inner { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.hero__title { font-size: 52px; font-weight: 500; color: var(--white); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 24px; max-width: 780px; }
.hero__title em { font-style: normal; color: #a8d5a2; }
.hero__sub { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.78); max-width: 580px; font-weight: 300; margin-bottom: 36px; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__tagline { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; font-size: 15px; font-family: 'Heebo', sans-serif; font-weight: 400; border-radius: 3px; cursor: pointer; transition: opacity 0.2s; border: none; }
.btn:hover { opacity: 0.88; }
.btn--solid { background: #ffffff; color: #024203; }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn--outline-dark { background: transparent; color: var(--mid-green); border: 1px solid var(--mid-green); }

/* Labels */
.label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-green); font-weight: 500; margin-bottom: 16px; }
.label--white { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 16px; }

/* Typography */
.section-title { font-size: 36px; font-weight: 500; line-height: 1.2; color: var(--near-black); margin-bottom: 20px; }
.section-title--white { font-size: 36px; font-weight: 500; line-height: 1.2; color: var(--white); margin-bottom: 20px; }
.section-body { font-size: 18px; line-height: 1.7; color: var(--body-muted); font-weight: 300; margin-bottom: 28px; max-width: 520px; }
.section-body--white { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.75); font-weight: 300; margin-bottom: 28px; }
.text-link { font-size: 15px; color: var(--mid-green); font-weight: 500; border-bottom: 1px solid var(--mid-green); padding-bottom: 1px; transition: opacity 0.2s; }
.text-link:hover { opacity: 0.75; }
.text-link--white { font-size: 15px; color: var(--bright-green); font-weight: 500; border-bottom: 1px solid var(--bright-green); padding-bottom: 1px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 32px; display: flex; flex-direction: column; }
.card__tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-green); font-weight: 500; margin-bottom: 12px; }
.card__title { font-size: 22px; font-weight: 500; color: var(--near-black); line-height: 1.3; margin-bottom: 12px; }
.card__body { font-size: 15px; line-height: 1.65; color: var(--body-muted); font-weight: 300; flex: 1; margin-bottom: 20px; }
.card__link { font-size: 14px; color: var(--mid-green); font-weight: 500; border-bottom: 1px solid var(--mid-green); padding-bottom: 1px; align-self: flex-start; }
.card--dark { background: var(--mid-green); border: none; border-radius: 4px; padding: 32px; display: flex; flex-direction: column; }
.card--dark .card__tag { color: rgba(255,255,255,0.5); }
.card--dark .card__title { color: var(--white); }
.card--dark .card__body { color: rgba(255,255,255,0.72); }
.card--dark .card__link { color: var(--white); border-bottom-color: rgba(255,255,255,0.5); }

/* Experts */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { text-align: center; }
.expert-avatar { width: 80px; height: 80px; border-radius: 50%; background: #c8d8c8; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 500; color: var(--mid-green); overflow: hidden; }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-name { font-size: 15px; font-weight: 500; color: var(--near-black); margin-bottom: 4px; }
.expert-role { font-size: 13px; color: var(--body-muted); font-weight: 300; line-height: 1.4; }

/* Podcast */
.podcast-row { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.podcast-cover { border-radius: 4px; overflow: hidden; aspect-ratio: 1; background: var(--dark-green); display: flex; align-items: center; justify-content: center; }
.podcast-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Newsletter */
.newsletter { padding: 64px 0; background: var(--off-white); text-align: center; }
.newsletter__title { font-size: 28px; font-weight: 500; color: var(--near-black); margin-bottom: 12px; }
.newsletter__sub { font-size: 16px; color: var(--body-muted); font-weight: 300; margin-bottom: 28px; }
.newsletter__form { display: flex; gap: 8px; justify-content: center; max-width: 440px; margin: 0 auto; }
.newsletter__form input { flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; font-family: 'Heebo', sans-serif; background: var(--white); }
.newsletter__form input:focus { outline: none; border-color: var(--mid-green); }
.newsletter__form button { background: var(--dark-green); color: var(--white); padding: 11px 20px; border: none; border-radius: 3px; font-size: 14px; font-family: 'Heebo', sans-serif; cursor: pointer; white-space: nowrap; }

/* Footer */
.footer { background: var(--near-black); padding: 48px 0 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.footer__logo { color: var(--white); font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__logo img { height: 28px; width: auto; }
.footer__desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.45); max-width: 280px; }
.footer__nav { display: flex; gap: 48px; }
.footer__nav-col h4 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 12px; font-weight: 500; }
.footer__nav-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; font-weight: 300; transition: color 0.2s; }
.footer__nav-col a:hover { color: var(--white); }
.footer__bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.25); }

/* Mobile hamburger */
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); margin: 5px 0; transition: all 0.3s; }
.nav__mobile { background: var(--dark-green); z-index: 99; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; max-width: 320px; margin-left: auto; }
.nav__mobile.open { max-height: 100vh; padding: 32px 20px 32px 0; overflow-y: auto; }
.nav__mobile a { display: block; color: rgba(255,255,255,0.9); font-size: 18px; font-weight: 400; padding: 16px 20px 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.2s; text-align: right; }
.nav__mobile a:hover { color: var(--white); }
body.menu-open { overflow: hidden; }

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero__inner { padding: 0 32px; }
  .nav__inner { padding: 0 32px; }
  .hero__title { font-size: 42px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .three-col { grid-template-columns: 1fr 1fr; gap: 24px; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .podcast-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__nav { flex-wrap: wrap; gap: 32px; }
}

/* =========================================
   Commentary section
   ========================================= */

/* Article list (commentary.html) */
.commentary-list { max-width: 800px; }
.commentary-item { padding: 32px 0; border-bottom: 1px solid var(--border); }
.commentary-item:first-child { border-top: 1px solid var(--border); }
.commentary-item__meta { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-green); font-weight: 500; margin-bottom: 10px; }
.commentary-item__title { font-size: 22px; font-weight: 500; color: var(--near-black); line-height: 1.3; margin-bottom: 10px; }
.commentary-item__title a { color: inherit; }
.commentary-item__title a:hover { color: var(--mid-green); }
.commentary-item__excerpt { font-size: 15px; line-height: 1.65; color: var(--body-muted); font-weight: 300; margin-bottom: 14px; }
.commentary-item__cta { font-size: 13px; color: var(--mid-green); font-weight: 500; }
.commentary-item__cta:hover { opacity: 0.75; }
.commentary-item__lang { display: inline-block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--off-white); color: var(--body-muted); padding: 2px 8px; border-radius: 2px; margin-left: 8px; vertical-align: middle; font-weight: 400; }

/* Article hero */
.article-hero { background: var(--dark-green); padding: 60px 0 52px; }
.article-hero__meta { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 300; margin-bottom: 14px; }
.article-hero__title { font-size: 38px; font-weight: 500; color: var(--white); line-height: 1.2; max-width: 820px; letter-spacing: -0.01em; }

/* Article two-column layout */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: flex-start; }
.article-image { margin-bottom: 28px; }
.article-image img { width: 100%; border-radius: 3px; }
.article-image__credit { font-size: 11px; color: var(--body-muted); margin-top: 6px; font-weight: 300; font-style: italic; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--near-black); font-weight: 300; margin-bottom: 20px; }
.article-body h3 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--near-black); margin: 32px 0 12px; }
.article-body .author-note { font-size: 14px; font-style: italic; color: var(--body-muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.article-cta { margin-top: 32px; }

/* Translation section (FD articles) */
.article-translation { margin-top: 52px; border-top: 2px solid var(--off-white); padding-top: 44px; }
.article-translation__banner { display: flex; align-items: center; gap: 10px; background: #f3f9f3; border-left: 3px solid var(--mid-green); padding: 10px 16px; margin-bottom: 28px; font-size: 13px; color: var(--body-muted); font-weight: 400; border-radius: 0 2px 2px 0; }
.article-translation__title { font-size: 26px; font-weight: 500; color: var(--near-black); line-height: 1.3; margin-bottom: 28px; letter-spacing: -0.01em; }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }
.article-sidebar__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-green); font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 0; }
.article-sidebar__item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.article-sidebar__item:last-child { border-bottom: none; }
.article-sidebar__meta { font-size: 10px; color: var(--body-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 400; margin-bottom: 5px; }
.article-sidebar__link { font-size: 13px; color: var(--near-black); font-weight: 400; line-height: 1.45; }
.article-sidebar__link:hover { color: var(--mid-green); }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; }
  .article-hero__title { font-size: 30px; }
  .article-translation__title { font-size: 22px; }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero__inner { padding: 0 20px; }
  .nav__inner { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .hero__title { font-size: 32px; max-width: 100%; }
  .hero__sub { font-size: 16px; }
  .hero__tagline { margin-top: 40px; }
  .section-title { font-size: 28px; }
  .section-title--white { font-size: 28px; }
  .article-hero { padding: 44px 0 36px; }
  .article-hero__title { font-size: 24px; }
  .commentary-item__title { font-size: 18px; }
  .three-col { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter__form { flex-direction: column; }
  .nav { flex-direction: column; height: auto; }
  .nav__inner { width: 100%; }
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .footer__nav { flex-direction: column; gap: 24px; }
}
