/* Teal Notes - Core Stylesheet */
:root {
  --teal-900: #092c28;
  --teal-850: #0b3d37;
  --teal-800: #0f4c5c;
  --teal-700: #115e59;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #f2f9f8;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --bg-page: #f7faf9;
  --bg-surface: #ffffff;
  --text-main: #142825;
  --text-muted: #4f6662;
  --text-soft: #738a86;
  --border-color: #dce7e5;
  --border-focus: #0d9488;
  --font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-w: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 76, 92, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 76, 92, 0.08);
  --shadow-hover: 0 8px 22px rgba(15, 76, 92, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--teal-600);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--teal-900);
  font-weight: 700;
  line-height: 1.3;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--teal-800);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top bar */
.top-notice-bar {
  background-color: var(--teal-850);
  color: #e0f2fe;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-notice-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-notice-bar a {
  color: #a7f3d0;
  text-decoration: none;
}
.top-notice-bar a:hover {
  text-decoration: underline;
}

/* Main Header */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--teal-900);
}
.brand-logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-900);
  line-height: 1.15;
}
.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Navigation - Pure CSS toggle */
#nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  border: 1px solid var(--border-color);
}
.nav-toggle-icon {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background-color: var(--teal-900);
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: var(--teal-900);
  transition: transform 0.2s ease;
}
.nav-toggle-icon::before {
  top: -6px;
}
.nav-toggle-icon::after {
  bottom: -6px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-700);
  border-bottom-color: var(--teal-600);
}
.nav-cta-link {
  background-color: var(--teal-50);
  color: var(--teal-700) !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-600) !important;
  font-weight: 600 !important;
}
.nav-cta-link:hover {
  background-color: var(--teal-600);
  color: #ffffff !important;
}

/* Home Editorial Intro Hero */
.home-hero-wrap {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.4) 0%, rgba(247, 250, 249, 0) 100%);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.home-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: var(--teal-800);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.home-hero-title {
  font-size: 2.3rem;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--teal-900);
}
.home-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.topic-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.topic-tag {
  background-color: #ffffff;
  color: var(--teal-700);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
}
.topic-tag:hover {
  border-color: var(--teal-600);
  background-color: var(--teal-50);
}

.home-featured-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}
.home-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(9, 44, 40, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.featured-card-body {
  padding: 24px;
}
.featured-card-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.featured-card-title a {
  color: var(--teal-900);
  text-decoration: none;
}
.featured-card-title a:hover {
  color: var(--teal-600);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.featured-card-excerpt {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Section Header */
.section-head-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
  margin: 48px 0 28px;
}
.section-title {
  font-size: 1.55rem;
  color: var(--teal-900);
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.section-link-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
}
.section-link-all:hover {
  text-decoration: underline;
}

/* Articles Grid */
.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.articles-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.article-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.article-card .card-thumb-wrap {
  aspect-ratio: 16 / 9;
}
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-content h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-content h3 a {
  color: var(--teal-900);
  text-decoration: none;
}
.card-content h3 a:hover {
  color: var(--teal-600);
}
.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.card-read-link {
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
}
.card-read-link:hover {
  text-decoration: underline;
}

/* Editorial Transparency / Standards box */
.standards-card {
  background-color: #ffffff;
  border-left: 4px solid var(--teal-600);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 56px 0;
}
.standards-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--teal-900);
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.standard-item {
  background-color: var(--teal-50);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.standard-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--teal-800);
}
.standard-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Article Page Layout */
.article-header {
  padding: 32px 0 24px;
}
.breadcrumbs {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--teal-700);
  text-decoration: none;
}
.breadcrumbs span {
  margin: 0 6px;
}
.article-kicker {
  display: inline-block;
  background-color: var(--teal-100);
  color: var(--teal-800);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.article-title {
  font-size: 2.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--teal-900);
}
.article-standfirst {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 450;
  border-left: 3px solid var(--teal-500);
  padding-left: 16px;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 28px;
}
.article-meta-row strong {
  color: var(--text-main);
}

.article-hero-figure {
  margin-bottom: 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
}
.article-hero-figure img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.img-caption-credit {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-soft);
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  line-height: 1.4;
}
.img-caption-credit a {
  color: var(--teal-700);
}

/* Article Body Typography & Flow */
.article-body {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}
.article-body p {
  margin-bottom: 1.4rem;
}
.article-body h2 {
  font-size: 1.6rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--teal-900);
}
.article-body h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--teal-850);
}
.article-body ul, .article-body ol {
  margin-bottom: 1.4rem;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body strong {
  font-weight: 600;
  color: var(--teal-900);
}

/* Table of Contents */
.toc-box {
  background-color: var(--teal-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0 36px;
}
.toc-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 12px;
}
.toc-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}
.toc-list li {
  margin-bottom: 8px;
  font-size: 0.94rem;
}
.toc-list a {
  text-decoration: none;
  color: var(--teal-700);
}
.toc-list a:hover {
  text-decoration: underline;
  color: var(--teal-900);
}

/* Callout & Alert Boxes */
.callout-box {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  border-left: 4px solid var(--teal-600);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.callout-box.law-alert {
  border-left-color: var(--amber-600);
  background-color: var(--amber-50);
}
.callout-head {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--teal-900);
}
.callout-box.law-alert .callout-head {
  color: #92400e;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  background-color: var(--teal-50);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-900);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Author / Editorial Box */
.author-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 48px 0 32px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--teal-100);
  color: var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.author-bio h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.author-bio p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Related articles */
.related-wrap {
  margin: 48px 0 20px;
  border-top: 2px solid var(--border-color);
  padding-top: 32px;
}

/* Generic Page Content (About, Contact, Write-for-us, 404) */
.page-header {
  padding: 36px 0 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.page-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.page-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.static-page-body {
  max-width: 820px;
  margin: 0 auto 60px;
  background-color: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1.75;
}
.static-page-body h2 {
  font-size: 1.45rem;
  margin-top: 28px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.static-page-body h3 {
  font-size: 1.18rem;
  margin-top: 22px;
  margin-bottom: 10px;
}
.static-page-body p {
  margin-bottom: 18px;
}
.static-page-body ul, .static-page-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.static-page-body li {
  margin-bottom: 8px;
}

/* Forms (Contact, Pitch) */
.contact-box {
  background-color: var(--teal-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}
.contact-email-link {
  display: inline-block;
  font-size: 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-800);
  margin: 10px 0;
  text-decoration: none;
}
.contact-email-link:hover {
  color: var(--teal-600);
  text-decoration: underline;
}

/* 404 Page */
.error-page-wrap {
  text-align: center;
  padding: 80px 20px;
}
.error-code {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: var(--teal-800);
  line-height: 1;
  margin-bottom: 16px;
}
.error-btn {
  display: inline-block;
  background-color: var(--teal-700);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
}
.error-btn:hover {
  background-color: var(--teal-600);
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 56px 0 28px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.98rem;
  margin-bottom: 16px;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}
.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-col a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .standards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-toggle-label {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
  }
  #nav-toggle:checked ~ .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 8px 0;
  }
  .nav-cta-link {
    text-align: center;
    margin-top: 8px;
  }
  .articles-grid-3, .articles-grid-2 {
    grid-template-columns: 1fr;
  }
  .home-hero-title {
    font-size: 1.8rem;
  }
  .article-title {
    font-size: 1.7rem;
  }
  .static-page-body {
    padding: 24px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}
