:root {
  --pico-font-family: "Source Sans 3", Arial, sans-serif;
  --pico-background-color: #f7f2e8;
  --pico-color: #1f2732;
  --pico-muted-color: #5d6876;
  --pico-primary: #c93543;
  --pico-primary-hover: #a82835;
  --pico-primary-focus: rgba(201, 53, 67, 0.18);
  --pico-primary-inverse: #ffffff;
  --pico-card-background-color: rgba(255, 255, 255, 0.82);
  --pico-card-border-color: rgba(16, 38, 61, 0.08);
  --pico-form-element-border-color: rgba(16, 38, 61, 0.18);
  --aml-navy: #10263d;
  --aml-navy-soft: #1c3857;
  --aml-crimson: #c93543;
  --aml-gold: #d5a54a;
  --aml-paper: #f7f2e8;
  --aml-paper-soft: #efe7da;
  --aml-ink: #1f2732;
  --aml-muted: #5d6876;
  --aml-shadow: 0 24px 60px rgba(16, 38, 61, 0.15);
  --aml-radius-lg: 32px;
  --aml-radius-md: 22px;
  --aml-radius-sm: 14px;
  --aml-max: 1320px;
}

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

html {
  background:
    radial-gradient(circle at top right, rgba(213, 165, 74, 0.16), transparent 24%),
    linear-gradient(180deg, #faf7f1 0%, #f3ebdd 100%);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--aml-ink);
  background: transparent;
}

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

a {
  color: var(--aml-crimson);
  text-decoration: none;
}

a:hover {
  color: var(--aml-navy);
}

.aml-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.aml-skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  padding: 0.7rem 0.95rem;
  background: var(--aml-navy);
  color: #fff;
  border-radius: 999px;
}

.aml-page-wrap {
  width: min(calc(100% - 32px), var(--aml-max));
  margin: 0 auto;
  padding-bottom: 56px;
}

.aml-main-shell {
  padding-top: 30px;
}

.aml-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 18px;
  backdrop-filter: blur(14px);
}

.aml-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  padding: 20px 24px 18px;
  border-radius: var(--aml-radius-lg) var(--aml-radius-lg) 0 0;
  background: rgba(247, 242, 232, 0.88);
  border: 1px solid rgba(16, 38, 61, 0.08);
  border-bottom: none;
}

.aml-brand-lockup {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.aml-brand-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(155deg, var(--aml-navy) 0%, var(--aml-navy-soft) 100%);
  box-shadow: var(--aml-shadow);
}

.aml-brand-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.aml-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--aml-crimson);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aml-overline::before,
.aml-overline::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(201, 53, 67, 0.38);
}

.aml-overline--light {
  color: var(--aml-gold);
}

.aml-overline--light::before,
.aml-overline--light::after {
  background: rgba(213, 165, 74, 0.32);
}

.aml-brand-copy {
  min-width: 0;
  text-align: center;
}

.aml-brand-title {
  display: block;
  color: var(--aml-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.aml-brand-title:hover {
  color: var(--aml-crimson);
}

.aml-brand-subtitle {
  margin: 8px 0 0;
  color: var(--aml-muted);
  font-size: 0.95rem;
}

.aml-header-note {
  padding: 16px 18px;
  border-radius: var(--aml-radius-md);
  background: linear-gradient(160deg, rgba(213, 165, 74, 0.16), rgba(16, 38, 61, 0.08));
  border: 1px solid rgba(16, 38, 61, 0.08);
  box-shadow: var(--aml-shadow);
  font-size: 0.88rem;
  line-height: 1.45;
}

.aml-header-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--aml-navy);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aml-primary-nav {
  padding: 0 18px 18px;
  border-radius: 0 0 var(--aml-radius-lg) var(--aml-radius-lg);
  background: rgba(247, 242, 232, 0.88);
  border: 1px solid rgba(16, 38, 61, 0.08);
  border-top: none;
}

.aml-primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 12px 0;
  list-style: none;
  background: linear-gradient(90deg, var(--aml-crimson), #d44f3e 70%, #bb2b43);
  border-top: 4px solid var(--aml-gold);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(16, 38, 61, 0.1);
}

.aml-nav-item {
  margin: 0;
  list-style: none;
}

.aml-nav-item > a,
.aml-nav-item summary,
.aml-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff8e9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.aml-nav-item > a[aria-current="page"],
.aml-nav-item > a:hover,
.aml-nav-item summary:hover,
.aml-nav-button:hover {
  background: rgba(16, 38, 61, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.aml-nav-item details {
  position: relative;
}

.aml-nav-item details[open] summary {
  background: rgba(16, 38, 61, 0.22);
}

.aml-nav-item summary {
  list-style: none;
  cursor: pointer;
}

.aml-nav-item summary::-webkit-details-marker {
  display: none;
}

.aml-nav-item details > ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--aml-radius-md);
  background: rgba(16, 38, 61, 0.96);
  list-style: none;
  box-shadow: var(--aml-shadow);
}

.aml-nav-item details > ul a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: #f6f0e6;
}

.aml-nav-item details > ul a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.aml-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.aml-layout--reading .aml-layout__main {
  max-width: 860px;
}

.aml-layout__sidebar {
  position: sticky;
  top: 196px;
}

.aml-layout__main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.aml-sidebar-stack {
  display: grid;
  gap: 16px;
}

.aml-sidebar-card {
  padding: 20px;
  border-radius: var(--aml-radius-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 38, 61, 0.08);
  box-shadow: var(--aml-shadow);
}

.aml-sidebar-card--primary {
  background: linear-gradient(180deg, var(--aml-navy), var(--aml-navy-soft));
  color: #fff;
}

.aml-sidebar-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aml-sidebar-links li + li {
  border-top: 1px solid rgba(16, 38, 61, 0.08);
}

.aml-sidebar-card--primary .aml-sidebar-links li + li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.aml-sidebar-links a {
  display: block;
  padding: 12px 0;
  color: inherit;
  font-weight: 600;
}

.aml-sidebar-links--compact a {
  font-size: 0.95rem;
  line-height: 1.35;
}

.aml-surface {
  padding: 28px;
  border-radius: var(--aml-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 38, 61, 0.08);
  box-shadow: var(--aml-shadow);
}

.aml-surface--hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(213, 165, 74, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 241, 0.95));
}

.aml-surface--hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(213, 165, 74, 0.34);
  border-radius: 24px;
  pointer-events: none;
}

.aml-home-hero-card,
.aml-home-showcase,
.aml-category-shell,
.aml-thin-shell {
  margin-bottom: 24px;
}

h1, h2, h3, h4, h5 {
  margin-top: 0;
  color: var(--aml-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.aml-lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--aml-muted);
  line-height: 1.75;
}

.aml-breadcrumbs {
  margin-bottom: -6px;
}

.aml-breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--aml-muted);
  font-size: 0.9rem;
}

.aml-breadcrumbs li + li::before {
  content: "›";
  margin-right: 10px;
  color: rgba(16, 38, 61, 0.35);
}

.aml-breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.aml-prose {
  display: grid;
  gap: 18px;
}

.aml-prose--narrow {
  max-width: 860px;
}

.aml-prose--formal .aml-quote {
  font-style: normal;
}

.aml-heading {
  margin: 0;
}

.aml-copy,
.aml-copy p {
  margin: 0;
  color: var(--aml-ink);
  line-height: 1.75;
  font-size: 1.02rem;
}

.aml-copy a {
  text-decoration: underline;
  text-decoration-color: rgba(201, 53, 67, 0.4);
}

.aml-rule {
  margin: 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 38, 61, 0.18), transparent);
}

.aml-figure,
.aml-gallery-tile {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--aml-navy);
  box-shadow: 0 18px 32px rgba(16, 38, 61, 0.12);
}

.aml-figure img,
.aml-gallery-tile img,
.aml-category-card__media img,
.aml-float-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.aml-figure figcaption,
.aml-gallery-tile figcaption {
  padding: 12px 14px;
  background: rgba(16, 38, 61, 0.9);
  color: #fff;
  font-size: 0.9rem;
}

.aml-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.aml-gallery-tile {
  min-height: 180px;
}

.aml-table-wrap {
  overflow-x: auto;
}

.aml-table-wrap table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 20px;
}

.aml-table-wrap th,
.aml-table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(16, 38, 61, 0.08);
  vertical-align: top;
}

.aml-table-wrap thead th {
  background: rgba(16, 38, 61, 0.06);
  color: var(--aml-navy);
}

.aml-table-stack {
  display: grid;
  gap: 10px;
}

.aml-table-image img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 14px;
}

.aml-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.aml-quote {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--aml-gold);
  border-radius: 18px;
  background: rgba(16, 38, 61, 0.04);
  color: var(--aml-navy);
  font-size: 1.05rem;
  line-height: 1.7;
}

.aml-code {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  overflow-x: auto;
  background: rgba(16, 38, 61, 0.94);
  color: #f7f2e8;
}

.aml-listing-stream {
  display: grid;
  gap: 16px;
}

.aml-listing-entry {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,242,232,0.92));
  border: 1px solid rgba(16, 38, 61, 0.08);
}

.aml-listing-entry__title {
  display: block;
  color: var(--aml-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.aml-listing-rich-block {
  display: grid;
  gap: 16px;
}

.aml-article-header {
  padding-bottom: 20px;
}

.aml-article-sheet,
.aml-category-shell {
  display: grid;
  gap: 18px;
}

.aml-article-sheet--single {
  max-width: 980px;
  margin: 0 auto;
}

.aml-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.aml-article-layout--left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.aml-article-layout--left .aml-article-layout__toc {
  order: 0;
}

.aml-article-layout__toc {
  position: sticky;
  top: 188px;
  align-self: start;
}

.aml-toc {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 38, 61, 0.08);
  box-shadow: var(--aml-shadow);
}

.aml-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--aml-navy);
}

.aml-toc ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.55rem;
}

.aml-toc__level-3,
.aml-toc__level-4 {
  margin-left: 0.8rem;
}

.aml-toc--mobile {
  display: none;
}

.aml-toc--top {
  margin-bottom: 18px;
}

.aml-float-image {
  width: min(38%, 320px);
  float: right;
  margin: 0 0 18px 24px;
  border-radius: 24px;
  overflow: hidden;
}

.aml-article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 16px;
  color: var(--aml-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aml-category-grid {
  display: grid;
  gap: 18px;
}

.aml-category-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aml-category-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aml-category-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 38, 61, 0.08);
  box-shadow: 0 20px 42px rgba(16, 38, 61, 0.12);
}

.aml-category-card--horizontal {
  grid-template-columns: 160px minmax(0, 1fr);
}

.aml-category-card--minimal {
  border-left: 4px solid var(--aml-crimson);
}

.aml-category-card__media {
  display: block;
  min-height: 200px;
  background: var(--aml-navy);
}

.aml-category-card__body {
  padding: 20px;
}

.aml-category-card h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.aml-category-card p {
  margin: 0 0 14px;
  color: var(--aml-muted);
  line-height: 1.65;
}

.aml-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(201, 53, 67, 0.12);
  color: var(--aml-crimson);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aml-site-footer {
  margin-top: 36px;
}

.aml-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.aml-footer-panel {
  padding: 24px;
  border-radius: var(--aml-radius-lg);
  background: linear-gradient(180deg, var(--aml-navy), var(--aml-navy-soft));
  color: #f7f2e8;
  box-shadow: var(--aml-shadow);
}

.aml-footer-panel h2,
.aml-footer-panel p,
.aml-footer-panel a {
  color: inherit;
}

.aml-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.aml-thin-shell {
  max-width: 840px;
  margin: 0 auto;
}

.is-scrolled .aml-site-header {
  transform: translateY(-4px);
}

@media (max-width: 1120px) {
  .aml-header-top {
    grid-template-columns: 1fr;
  }

  .aml-layout,
  .aml-article-layout,
  .aml-article-layout--left {
    grid-template-columns: 1fr;
  }

  .aml-layout__sidebar,
  .aml-article-layout__toc {
    position: static;
  }

  .aml-footer-grid,
  .aml-category-grid--3,
  .aml-category-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .aml-toc--mobile {
    display: block;
    margin-bottom: 18px;
  }

  .aml-article-layout__toc .aml-toc {
    display: none;
  }
}

@media (max-width: 800px) {
  .aml-page-wrap {
    width: min(calc(100% - 18px), var(--aml-max));
  }

  .aml-header-top,
  .aml-primary-nav,
  .aml-surface,
  .aml-sidebar-card,
  .aml-footer-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .aml-brand-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .aml-brand-copy {
    text-align: center;
  }

  .aml-primary-nav ul {
    justify-content: flex-start;
    padding-left: 12px;
    padding-right: 12px;
  }

  .aml-gallery-grid,
  .aml-footer-grid,
  .aml-category-grid--3,
  .aml-category-grid--2,
  .aml-category-card--horizontal {
    grid-template-columns: 1fr;
  }

  .aml-float-image {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }
}
