.reg-home,
.reg-center {
  --reg-ink: #0f2137;
  --reg-muted: #475569;
  --reg-link: #075985;
  --reg-line: #d9e3ec;
  --reg-paper: #fff;
  --reg-panel: #f5f8fb;
  --reg-proposed-ink: #83511a;
  --reg-proposed-paper: #fff2df;
  --reg-current-ink: #145d4d;
  --reg-current-paper: #e5f5ef;
  color: var(--reg-ink);
}

.reg-home {
  background: var(--reg-panel);
  border-bottom: 1px solid var(--reg-line);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.reg-wrap {
  width: min(100% - 2rem, 82rem);
  margin-inline: auto;
}

.reg-home-heading {
  margin-bottom: 1.3rem;
}

.reg-home h2 {
  color: var(--reg-ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.reg-kicker {
  color: var(--reg-muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .065em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.reg-prose a {
  color: var(--reg-link);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .19em;
}

.reg-prose a:hover {
  color: var(--reg-ink);
}

.reg-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.reg-home .reg-paths {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.reg-path {
  background: var(--reg-paper);
  border: 1px solid var(--reg-line);
  overflow: hidden;
  border-radius: .75rem;
}

.reg-path:hover {
  border-color: #4785a5;
}

.reg-path-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.reg-scene {
  display: block;
  aspect-ratio: 1672 / 941;
  background: #d7e4ee url("../regulations/flight-scenes.1610d301c32d.webp") no-repeat;
  background-size: 303% 303%;
}

.reg-path-body {
  padding: .85rem 1rem 1.05rem;
}

.reg-path-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  font-size: .84rem;
  font-weight: 750;
}

.reg-status {
  display: inline-block;
  border-radius: .25rem;
  padding: .17rem .42rem;
  font-size: .7rem;
  font-weight: 750;
  line-height: 1.35;
}

.reg-status-current {
  background: var(--reg-current-paper);
  color: var(--reg-current-ink);
}

.reg-status-proposed {
  background: var(--reg-proposed-paper);
  color: var(--reg-proposed-ink);
}

.reg-path h2,
.reg-path h3 {
  margin-block: .55rem .35rem;
  font-size: clamp(1.1rem, 1.7vw, 1.36rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.reg-path-link:hover h2,
.reg-path-link:hover h3 {
  color: var(--reg-link);
}

.reg-path h2 span,
.reg-path h3 span {
  color: var(--reg-link);
  font-size: .78em;
}

.reg-path-body p {
  color: var(--reg-muted);
  font-size: .9rem;
  line-height: 1.48;
}

.reg-center {
  min-height: 65vh;
}

.reg-masthead {
  background-image: radial-gradient(ellipse at top right, color-mix(in srgb, var(--color-sky-500) 16%, transparent), transparent 68%), linear-gradient(135deg, var(--color-navy-deep), var(--color-navy));
}

.reg-masthead h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.reg-guide-width {
  max-width: 59rem;
}

.reg-mode-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.5rem;
  padding: .4rem .7rem;
  border: 1px solid var(--color-slate-200);
  border-radius: .5rem;
  background: white;
  color: var(--color-slate-700);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}

.reg-mode-tabs a:hover,
.reg-mode-tabs a[aria-current] {
  border-color: var(--color-sky-200);
  background: var(--color-sky-50);
  color: var(--color-sky-800);
}

.reg-mode-toggle[aria-expanded="true"] iconify-icon {
  transform: rotate(180deg);
}

/* Markdown output uses the same type, colors and dividers as the public templates. */
.reg-prose {
  color: var(--color-slate-700);
  line-height: 1.65;
}

.reg-prose h2,
.reg-prose h3,
.reg-prose strong {
  color: var(--color-navy);
}

.reg-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: .025em;
}

.reg-prose h2:not(:first-child) {
  margin-top: clamp(1.8rem, 4vw, 2.75rem);
}

.reg-prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.4rem;
}

.reg-prose p,
.reg-prose ul,
.reg-prose ol {
  margin-top: .75rem;
}

.reg-prose > p:not(.reg-reviewed),
.reg-prose > ul,
.reg-prose > ol {
  max-width: 75ch;
}

.reg-prose ul,
.reg-prose ol {
  padding-left: 1.25rem;
}

.reg-prose ul {
  list-style-type: disc;
}

.reg-prose ol {
  list-style-type: decimal;
}

.reg-prose ol li::marker {
  color: var(--reg-link);
  font-weight: 700;
}

.reg-prose li + li {
  margin-top: .5rem;
}

.reg-prose [id] {
  scroll-margin-top: 5rem;
}

.reg-prose .reg-reviewed {
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-slate-200);
  padding-top: .9rem;
  color: var(--color-slate-500);
  font-size: .875rem;
}

.reg-callout {
  --notice-accent: var(--color-sky-700);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-block: 1.25rem;
  padding: .9rem 1rem;
  border-inline-start: 2px solid var(--color-sky-300);
  background: var(--color-sky-50);
  font-size: .9375rem;
}

.reg-callout-warning {
  --notice-accent: var(--color-amber-800);
  border-inline-start-color: var(--color-amber-400);
  background: var(--color-amber-50);
}

.reg-callout-icon {
  flex: 0 0 1.25rem;
  color: var(--notice-accent);
  font-size: 1.25rem;
  line-height: 1.2;
}

.reg-callout h3 {
  margin-top: 0;
  font-size: 1rem;
}

.reg-callout p {
  margin-top: .25rem;
}

.reg-table {
  margin-block: 1rem;
}

.reg-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9375rem;
}

.reg-table th,
.reg-table td {
  text-align: left;
  vertical-align: top;
  padding: .8rem .85rem;
  border-bottom: 1px solid var(--color-slate-200);
  overflow-wrap: anywhere;
}

.reg-table th {
  background: var(--color-slate-50);
  color: var(--color-navy);
  font-size: .875rem;
  font-weight: 700;
}

.reg-table th:first-child,
.reg-table td:first-child {
  min-width: 7.5rem;
  overflow-wrap: normal;
}

.reg-table td:first-child {
  font-weight: 700;
  color: var(--color-navy);
}

.reg-map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--reg-line);
  border-radius: .65rem;
}

.reg-map figcaption {
  margin-top: .6rem;
  font-size: .875rem;
}

.reg-home :focus-visible,
.reg-center :focus-visible {
  outline: 2px solid var(--reg-link);
  outline-offset: 3px;
}

.reg-path-link:focus-visible {
  outline-offset: -3px;
}

@media (max-width: 68rem) {
  .reg-paths {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 53rem) {
  .reg-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .reg-masthead h1 {
    font-size: clamp(2rem, 8.7vw, 3rem);
  }

  .reg-table table,
  .reg-table tbody,
  .reg-table tr,
  .reg-table td {
    display: block;
    width: 100%;
  }

  .reg-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .reg-table tbody tr {
    border-top: 1px solid var(--color-slate-200);
    padding-block: .7rem;
  }

  .reg-table tbody tr:last-child {
    border-bottom: 1px solid var(--color-slate-200);
  }

  .reg-table td {
    padding: .2rem 0;
    border-bottom: 0;
  }

  .reg-table td:first-child {
    font-size: 1rem;
  }

  .reg-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--color-slate-600);
    font-size: .78rem;
    font-weight: 700;
  }
}

@media (max-width: 30rem) {
  .reg-home .reg-paths {
    grid-template-columns: minmax(0, 1fr);
  }
}
