:root {
  --background: #fbfefd;
  --surface-100: #f2faf7;
  --primary-100: #e7f4ef;
  --text: #17231f;
  --text-muted: #60716b;
  --border: #d8e9e3;
  --primary-500: #087568;
  --primary-700: #0b6f92;
  --primary-800: #055c52;
  --accent-400: #c8962f;
  --accent-500: #a07a22;
  --white: #ffffff;
  --gray-300: #d8e9e3;
  --gray-600: #60716b;
  --radius: 8px;
  --content: 1290px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --box-shadow-sm: 0 1px 3px 0 rgba(34, 40, 42, 0.1);
  --box-shadow-md: 0 4px 20px 0 rgba(33, 37, 41, 0.05);
  --box-shadow-lg: 0 4px 20px 0 rgba(33, 37, 41, 0.15);
}

/* iOS Safari fix */
html { background: var(--background); font-family: var(--font-body); }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

/* Visually hidden checkbox for nav toggle */
#nav-toggle-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

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


.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(8, 117, 104, 0.12);
  background: rgba(251, 254, 253, 0.88);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, var(--content));
  min-height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: max-content;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand span {
  color: var(--primary-500);
}

.brand strong {
  color: var(--text);
  font-weight: 800;
}

/* Nav toggle - label acts as the button */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-toggle svg {
  width: 21px;
  height: 21px;
  overflow: visible;
}

.nav-toggle .icon-menu,
.nav-toggle .icon-close {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 190ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-toggle .icon-menu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-toggle .icon-close {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

/* Checkbox-driven icon swap */
#nav-toggle-cb:checked ~ .nav-toggle .icon-menu {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

#nav-toggle-cb:checked ~ .nav-toggle .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

/* details/summary nav items */
details.nav-item {
  position: relative;
}

/* Remove default details marker from summary */
summary {
  list-style: none;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 22px 0 19px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  list-style: none;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease;
  width: 100%;
}

.nav-link::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: "";
  flex-shrink: 0;
}

details.nav-item:hover > .nav-link,
details.nav-item:focus-within > .nav-link {
  color: var(--primary-500);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  display: grid;
  width: 275px;
  padding: 10px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(251, 254, 253, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(7px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
  white-space: normal;
}

@media (min-width: 901px) {
  /* Desktop: show menus while a category is hovered or keyboard-focused. */
  details.nav-item:hover > .nav-menu,
  details.nav-item:focus-within > .nav-menu,
  details.nav-item > .nav-link:hover + .nav-menu,
  details.nav-item > .nav-menu:hover,
  details.nav-item[data-hovered] > .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
  }
}

.nav-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.32;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav-menu a:hover {
  background: var(--surface-100);
  color: var(--primary-500);
}

.page-shell {
  width: min(100% - 48px, var(--content));
  margin: 0 auto;
  padding: 42px 0 0;
}

.section-title {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 34px;
  align-items: stretch;
}

.lead-stack {
  display: grid;
  gap: 30px;
  min-width: 0;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(320px, 1.03fr) minmax(300px, 0.97fr);
  gap: 28px;
  align-items: start;
}

.lead-copy {
  min-width: 0;
}

.lead-h1 {
  display: block;
}

.lead-copy .lead-h1 {
  max-width: 560px;
  margin: 0;
  font-size: 2.56rem;
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 700;
  transition: color 160ms ease;
}

.lead-p {
  display: block;
}

.lead-copy .lead-p {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 500;
}

.image-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-100), var(--primary-100));
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.image-frame--hero {
  aspect-ratio: 1.66 / 1;
}

.image-frame--standard {
  aspect-ratio: 1.72 / 1;
  margin-bottom: 13px;
}

.image-frame--thumb {
  aspect-ratio: 1.62 / 1;
  border-radius: 6px;
}

a:hover .image-frame img {
  transform: scale(1.025);
}

.article-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border);
}

.article-column {
  position: relative;
  min-width: 0;
  padding: 22px 0 0;
}

.article-column + .article-column::before {
  position: absolute;
  top: 22px;
  bottom: 0;
  left: -12px;
  width: 1px;
  background: var(--border);
  content: "";
}

.article-category {
  display: flex;
  align-items: center;
  min-height: 0;
  margin: 0 0 5px;
  color: var(--primary-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.article-stack {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-column > a + .article-stack {
  margin-top: 13px;
  border-top: 1px solid var(--border);
}

.article-stack li,
.article-list li,
.text-list li {
  border-bottom: 1px solid var(--border);
}

.article-stack li:last-child,
.article-list li:last-child,
.text-list li:last-child {
  border-bottom: 0;
}

.article-stack a {
  display: block;
  padding: 0 0 15px;
  font-size: 0.94rem;
  line-height: 1.36;
  font-weight: 600;
}

.article-stack li + li a {
  padding-top: 15px;
}

.article-column > a + .article-stack li:first-child a {
  padding-top: 14px;
}

.side-rail {
  min-width: 0;
  height: 100%;
  padding-left: 26px;
  border-left: 1px solid var(--border);
}

.text-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-list a {
  display: block;
  padding: 0 0 19px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.34;
  font-weight: 600;
  transition: color 160ms ease;
}

.text-list li + li a {
  padding-top: 19px;
}

.text-list a:hover,
.article-stack a:hover,
.article-list a:hover {
  color: var(--primary-700);
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 32px;
  align-items: start;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid rgba(8, 117, 104, 0.12);
  border-radius: var(--radius);
  background: var(--background);
}

.news-box {
  min-width: 0;
}

.news-box--feature .image-frame {
  margin-bottom: 17px;
}

.article-heading {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
  font-weight: 700;
  transition: color 160ms ease;
}

.lead-copy a:hover .lead-h1,
.article-column > a:hover .article-heading,
.news-box a:hover .article-heading,
.article-list a:hover .article-heading {
  color: var(--primary-700);
}

.article-heading--feature {
  max-width: 760px;
  font-size: 2.2rem;
  line-height: 1.08;
}

.article-heading--feed {
  font-size: 1.14rem;
  line-height: 1.28;
}

.article-summary {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.article-copy {
  display: block;
  min-width: 0;
}

.rail-panel {
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid var(--border);
}

.compact-list {
  display: grid;
  gap: 19px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list a {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.34;
  transition: color 160ms ease;
}

.compact-list a:hover {
  color: var(--primary-700);
}

.footer-column a:hover {
  color: var(--primary-800);
  background-size: 100% 1px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 900px) 315px;
  gap: 34px;
  align-items: start;
  margin-top: 52px;
  padding-bottom: 78px;
}

.article-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 124px;
  padding: 18px 0;
  transition: color 160ms ease;
}

.article-list .image-frame {
  aspect-ratio: 1.74 / 1;
  border-radius: 7px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f2faf7 0%, #eaf6f1 100%);
  border-top: 0;
  color: var(--text);
}

.site-footer::before {
  display: none;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.footer-inner,
.browse-topics,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(170px, 0.78fr));
  gap: 46px;
  width: min(100% - 48px, var(--content));
  margin: 0 auto;
  padding: 58px 0 34px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
  color: var(--text);
  max-width: 510px;
}

.footer-brand .brand {
  font-size: 1.5rem;
}

.footer-brand .brand strong {
  color: var(--text);
}

.footer-brand .brand span {
  color: var(--primary-500);
}

.footer-deck {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(8, 117, 104, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  color: var(--primary-800);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-action:first-child {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #ffffff;
}

.footer-action:hover {
  background: #ffffff;
  border-color: rgba(8, 117, 104, 0.42);
  transform: translateY(-1px);
}

.footer-action:first-child:hover {
  background: var(--primary-800);
  border-color: var(--primary-800);
}

.footer-copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.footer-column {
  color: var(--text);
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-decoration: none;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 160ms ease, background-size 160ms ease;
}

/* Browse All Topics bubble section */
.browse-topics {
  width: min(100% - 48px, var(--content));
  margin: 0 auto;
  padding: 26px 0 28px;
  border-top: 0;
}

.browse-topics h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.topics-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topics-bubbles a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(8, 117, 104, 0.16);
  background: rgba(255, 255, 255, 0.64);
  color: var(--primary-800);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 100px;
  line-height: 1.3;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.topics-bubbles a:hover {
  background: #ffffff;
  border-color: rgba(8, 117, 104, 0.32);
  color: var(--text);
}

.footer-bottom {
  background: rgba(255, 255, 255, 0.66);
  border-top: 0;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 20px;
  width: min(100% - 48px, var(--content));
  margin: 0 auto;
  padding: 26px 0 18px;
  text-align: left;
}

.footer-links-row a {
  color: var(--primary-800);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-links-row a:hover {
  color: var(--text);
}

.footer-note {
  width: min(100% - 48px, var(--content));
  margin: 0 auto;
  padding: 0 0 46px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-note a {
  color: var(--primary-800);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.footer-note a:hover {
  color: var(--text);
}

@media (max-width: 1120px) {
  .header-inner,
  .page-shell,
  .footer-inner,
  .browse-topics,
  .footer-links-row,
  .footer-note {
    width: min(100% - 36px, var(--content));
  }

  .site-nav {
    gap: 18px;
    font-size: 0.86rem;
  }

  .lead-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .lead-story {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  }

  .side-rail,
  .split-section .rail-panel {
    padding: 22px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .text-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 64px;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: var(--background);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 300ms cubic-bezier(0.2, 0.8, 0.2, 1), padding 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 190ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, visibility 0s linear 300ms;
    visibility: hidden;
    white-space: normal;
  }

  /* Checkbox-driven mobile nav open state */
  #nav-toggle-cb:checked ~ .site-nav {
    max-height: min(78vh, 760px);
    padding: 8px 18px 16px;
    overflow-y: auto;
    border-bottom-color: var(--border);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  details.nav-item {
    border-bottom: 1px solid var(--border);
  }

  details.nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    justify-content: space-between;
    padding: 13px 0;
  }

  /* Mobile: nav-menu is shown natively via details[open] */
  .nav-menu {
    position: static;
    display: grid;
    width: 100%;
    gap: 12px;
    max-height: 0;
    padding: 0 0 0 14px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 320ms cubic-bezier(0.2, 0.8, 0.2, 1), padding 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 190ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 320ms;
    visibility: hidden;
    will-change: max-height, opacity, transform;
  }

  details.nav-item[open] > .nav-menu {
    max-height: 340px;
    padding: 4px 0 18px 14px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  details.nav-item[open] > .nav-link::after {
    transform: translateY(1px) rotate(225deg);
  }

  .nav-menu a {
    padding: 3px 0;
    color: var(--text-muted);
    line-height: 1.48;
  }

  .page-shell {
    padding-top: 30px;
  }

  .lead-story,
  .article-columns,
  .content-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .lead-copy .lead-h1 {
    max-width: none;
    font-size: 2.55rem;
  }

  .article-column {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
  }

  .article-column::before {
    display: none;
  }

  .article-column:last-child {
    border-bottom: 0;
  }

  .content-band {
    gap: 24px;
    padding: 22px;
  }

  .rail-panel {
    padding: 22px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .footer-inner {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 58px;
  }

  .header-inner,
  .page-shell,
  .footer-inner,
  .browse-topics,
  .footer-links-row,
  .footer-note {
    width: min(100% - 28px, var(--content));
  }

  .header-inner {
    min-height: 58px;
  }

  .brand {
    font-size: 1.24rem;
  }

  .site-nav {
    grid-template-columns: 1fr;
  }

  .lead-stack {
    gap: 24px;
  }

  .lead-story {
    gap: 18px;
  }

  .lead-copy .lead-h1 {
    font-size: 2rem;
    line-height: 1.06;
  }

  .lead-copy .lead-p {
    font-size: 1rem;
  }

  .text-list {
    grid-template-columns: 1fr;
  }

  .content-band {
    margin-top: 34px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .article-heading--feature {
    font-size: 1.72rem;
    line-height: 1.12;
  }

  .compact-list a,
  .article-list a {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
  }

  .compact-list a {
    font-size: 0.94rem;
  }

  .article-list a {
    min-height: 106px;
  }

  .article-heading--feed {
    font-size: 1rem;
  }

  .split-section {
    margin-top: 38px;
    padding-bottom: 54px;
  }

  .footer-inner {
    padding: 42px 0 28px;
  }

  .browse-topics {
    padding: 24px 0 18px;
  }

  .footer-links-row {
    gap: 9px 16px;
    padding-bottom: 24px;
  }

  .footer-note {
    padding-bottom: 42px;
  }
}

@media (max-width: 420px) {
  .compact-list a,
  .article-list a {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .section-title {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle,
  .nav-toggle .icon-menu,
  .nav-toggle .icon-close,
  .site-nav,
  .nav-menu {
    transition: none;
  }
}

/* LAYOUT RESET */
.home .container.main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.container.layout {
  max-width: 100%;
  padding: 0;
}

.container.layout .row.layout {
  margin: 0;
}

.container.layout .row.layout > .cols {
  overflow-x: hidden;
}

.home .container.layout .row.layout > .cols {
  padding: 0;
}

.pages .main-wrapper .container.main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px 16px;
}

/* FONTS RESET */
h1,
h2 {
  font-weight: 700;
  color: var(--text);
}

h1,
h2,
h3,
p,
strong {
  color: var(--text);
}

h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 24px 0 10px;
}

p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 25px;
    margin: 32px 0 16px;
  }

  h3 {
    font-size: 20px;
    margin: 22px 0 8px;
  }

  p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 14px;
  }
}

/* TABLE RESET */
table { border: 0 !important; margin: 32px 0; }
table th, table td { border: 0 !important; border-bottom: 1px solid var(--border) !important; padding: 8px 16px !important; }
table td { color: var(--text) !important; }
table th { border-bottom: 1px solid var(--text) !important; background: transparent !important; color: var(--text) !important; font-size: 13px !important; font-weight: bold !important; }
table tbody tr:nth-child(even) td { background: var(--surface-100) !important; }
@media (max-width: 992px) { table { display: block !important; overflow-x: auto !important; border: 0 !important; } }

/* CONTACT US FORM */
#contact-form {
  margin: 45px auto 0;
  max-width: 500px;
}

#contact-form input,
#contact-form textarea {
  flex: 1;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  outline: 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  min-width: 100%;
}

#contact-form input:active,
#contact-form input:focus,
#contact-form textarea:active,
#contact-form textarea:focus {
  border: 2px solid var(--primary-500);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--gray-600);
}

#contact-form button {
  background: var(--primary-500);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  width: 100%;
}

#contact-form button:hover {
  background: var(--accent-500);
}

/* ═══════════════════════════════════
           WIDGETS
═══════════════════════════════════ */

/* IMAGE STYLE RESET */
.item-current-image img {
  box-shadow: none !important;
  border-radius: 4px !important;
  border-color: var(--gray-300) !important;
}

/* SUBLIST */
.item-sublist a {
  width: 100%;
  height: 100%;
}

.item.item-bubbles {
  margin-bottom: 32px;
}

.item-bubbles .row {
  margin: 0;
}

.bubbles-chip {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  font-weight: 500;
  height: 100%;
  padding: 16px 48px 16px 24px;
  position: relative;
  transition: padding 0.2s ease-in-out;
}

.bubbles-chip:hover {
  color: var(--text);
  background: var(--surface-100);
  border-color: var(--primary-500);
  padding-left: 20px;
}

.bubbles-chip:active,
.bubbles-chip:focus {
  background: var(--surface-100);
  color: var(--text);
}

.bubbles-link {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.bubbles-link .bubbles-outer {
  height: 100%;
  padding: 5px;
  max-width: 100%;
}

.sibling.link-button .bubbles-link .bubbles-outer,
.sibling.link-button .bubbles-chip {
  height: auto;
}

.col-gap:has(> .item-bubbles)::before {
  display: none !important;
}

.bubbles-chip::after {
  content: url("data:image/svg+xml,%3Csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.87771 7.01782H1.02042C0.737361 7.01782 0.496528 6.91886 0.297917 6.72094C0.0993056 6.52317 0 6.2833 0 6.00136C0 5.71942 0.0993056 5.4781 0.297917 5.2774C0.496528 5.07657 0.737361 4.97615 1.02042 4.97615H8.87771L5.66583 1.76428C5.46111 1.55955 5.35681 1.31719 5.35292 1.03719C5.34889 0.757332 5.45076 0.510249 5.65854 0.295943C5.86632 0.0948319 6.11014 -0.00377823 6.39 0.000110661C6.66986 0.00399955 6.91236 0.108583 7.1175 0.313861L12.0713 5.27407C12.1699 5.37282 12.2464 5.4856 12.3008 5.6124C12.3551 5.73935 12.3823 5.86865 12.3823 6.00032C12.3823 6.13199 12.3551 6.26122 12.3008 6.38803C12.2464 6.51497 12.1727 6.62497 12.0798 6.71803L7.10958 11.688C6.89403 11.9037 6.65368 12.0081 6.38854 12.0012C6.12354 11.9942 5.88715 11.8862 5.67938 11.6772C5.4716 11.4629 5.36771 11.2166 5.36771 10.9382C5.36771 10.6599 5.4716 10.4192 5.67938 10.2162L8.87771 7.01782Z' fill='%2317231f'/%3E%3C/svg%3E%0A");
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s ease-in-out;
}

.bubbles-chip:hover::after {
  right: 10px;
}

/* SUBLIST CARDS */
.item-sublist {
  padding-top: 0 !important;
}

.item-sublist:has(.sublist.card) .row > div {
  padding: 10px !important;
}

.sublist.card {
  border: none;
  border-radius: 0;
  transition: 0.2s ease-in;
}

.sublist.card .card-img-holder {
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
  height: auto;
}

.sublist.card .card-img-holder img {
  position: absolute;
  border-radius: 0;
  transition: 0.2s ease-in;
}

.sublist.card h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.3;
  color: var(--text);
  margin-top: 14px;
}

.sublist.card h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  margin-top: 12px;
}

.sublist.card.horizontal h5 {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  margin-top: 0;
}

.sublist.card .card-body {
  padding: 0px;
}

.sublist.card:hover h2,
.sublist.card:hover h5 {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--primary-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sublist.card:hover img {
  transform: scale(1.06);
}

@media (max-width: 767.98px) {
  .item-sublist:has(.sublist.card) .row > div {
    padding: 0 0 10px !important;
  }

  .item-sublist {
    padding-bottom: 0 !important;
  }

  .item-sublist:has(.horizontal) {
    margin-bottom: 20px;
  }

  .container.layout .row.layout > .cols {
    padding: 0;
  }

  .row div:has(> .sublist.card) {
    padding: 0 !important;
  }

  .row:has(> div .sublist.card) {
    margin: 0;
  }

  .sublist.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
  }

  .sublist.card.horizontal {
    margin-bottom: 0;
  }

  .sublist.card .card-img-top {
    border-radius: var(--radius);
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .sublist.card .card-body {
    flex: 1;
  }

  .sublist.card.horizontal .card-title {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sublist.card.horizontal h5 {
    font-size: 16px;
  }
}

.site-disclaimer {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
