@font-face {
  font-family: "Noto Sans";
  src: url("/noto-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

.directiva {
  --navy: #113644;
  --teal: #1e6250;
  --aqua: #e5f2e7;
  --ink: #18383c;
  --muted: #45605b;
  --line: #deded1;
  --paper: #faf5e9;
  --sun: #ffd787;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", system-ui, sans-serif;
}

.directiva-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(295px, 335px);
  height: 100dvh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 29px 16px;
  background:
    radial-gradient(ellipse at 0% 100%, #187360 0%, transparent 57%),
    linear-gradient(155deg, #0d293d 8%, #103c45 62%, #18594b);
  color: #f6faf2;
}

.directiva-brand { display: flex; align-items: center; gap: 10px; padding: 0 5px; }
.directiva-brand strong, .directiva-brand span { display: block; }
.directiva-brand strong { font-family: Georgia, serif; font-size: 1.22rem; line-height: 1.05; }
.directiva-brand span { color: #c0ddcf; font-size: .76rem; margin-top: 4px; }
.directiva-brand .brand-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  height: 39px;
  margin: 0;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff0bd, #eabb62);
  color: #123b45;
  font: italic 700 1.46rem Georgia, serif;
  box-shadow: 0 3px 14px #001b2890;
}
.section-nav { display: grid; gap: 6px; margin-top: 31px; padding-top: 18px; border-top: 1px solid #ffffff28; }
.section-nav a {
  display: block;
  padding: 11px 14px;
  color: #e4f0e8;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 650;
  font-size: .94rem;
}
.section-nav a:hover { background: #ffffff1c; }
.section-nav a[aria-current="page"] {
  background: linear-gradient(110deg, #ffe8b3, #fffae9);
  color: #143742;
  box-shadow: 0 5px 14px #041e3280;
  font-weight: 800;
}
.mobile-assistant { display: none; }
.profile-switch { display: grid; gap: 7px; margin: 20px 0 0; font-size: .84rem; }
.profile-switch label { font-weight: 750; color: #f7edd7; }
.profile-switch select { min-width: 0; width: 100%; padding: 9px 6px; border-radius: 8px; font: inherit; color: #153c43; }
.profile-switch button, .content-column form button { font: inherit; cursor: pointer; }
.profile-switch button { padding: 7px 10px; justify-self: start; }
.content-column form { margin-top: 9px; }
.content-column form button { border: 0; padding: 8px 12px; font-size: .85rem; }

.content-column, .context-column {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.content-column {
  padding: 24px clamp(22px, 3vw, 42px) 56px;
  background: radial-gradient(ellipse at 88% 0%, #f7e9c9, transparent 56%), #faf6ed;
}
.context-column {
  background: linear-gradient(145deg, #dcebea, #edf4e8 65%, #e7eee5);
  border-left: 1px solid #cbded6;
  padding: 24px 16px 28px;
}

.demo-banner {
  margin: 0 0 16px;
  padding: 9px 13px;
  background: #fff3d7;
  border: 1px solid #eddaae;
  color: #6a4819;
  border-radius: 9px;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .045em;
}

.page-heading { padding: 22px 0 10px; }
.page-heading h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -.045em;
}
.page-heading .lead { margin: 9px 0 0; font-size: 1rem; }
.content-column > .fine { margin: 13px 0 21px; }
.page-heading.scenic {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 302px;
  flex-direction: column;
  justify-content: end;
  border-radius: 25px;
  overflow: hidden;
  padding: 29px 32px;
  color: white;
  background: #163c50;
  box-shadow: 0 15px 32px #193c4d36, 0 3px 7px #24414430;
}
.scenic-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  filter: saturate(1.21) contrast(1.06);
}
.scenic::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 98% -8%, #ffdb8f55, transparent 57%),
    linear-gradient(100deg, #0a263b94, #0e314423 66%, transparent),
    linear-gradient(0deg, #092639 0%, #102f437e 32%, transparent 72%);
}
.page-heading.scenic h1 { color: #fff9ed; font-size: clamp(3.3rem, 5.9vw, 5.7rem); }
.scenic-location { color: var(--sun); font-weight: 850; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.scenic .lead { color: #fff8e9; max-width: 38ch; }
.photo-credit {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #0d293ee0;
  color: #fff7e4;
  font-size: .65rem;
}

.directiva h2 { font-size: 1.18rem; letter-spacing: -.028em; line-height: 1.25; margin: 0 0 10px; }
.directiva .info-card {
  min-width: 0;
  padding: 19px;
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 9px 23px #193f4913, 0 2px 5px #253e3110;
}
.directiva .info-card p { margin: 9px 0 0; }
.directiva .info-card a { display: inline-block; margin-top: 9px; }
.directiva .demo-grid > .info-card:has(a) { border-top: 3px solid #37846a; }
.directiva .demo-grid > .info-card:has(.attention) { border-top: 3px solid #d39132; }
.directiva .detail > h2, .directiva .documents > h2 { color: var(--navy); }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-grid.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail { margin-top: 14px; }
.metric h2 { margin: 9px 0 4px; font-size: .99rem; }
.metric strong { color: var(--navy); font-size: clamp(1.15rem, 1.85vw, 1.65rem); white-space: nowrap; letter-spacing: -.045em; }
.metric p { font-size: .87rem; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 100px; background: var(--aqua); color: #174b42; font-size: .74rem; font-weight: 750; }
.tag.attention { background: #ffe8b5; color: #633b10; }
.tag.projection { background: #e1edf4; color: #24536c; }
.directiva dl { margin: 0; }
.directiva dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; }
.directiva dd { margin: 0; font-weight: 750; }

.cash-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.cash-chart label { display: block; font-weight: 700; font-size: .87rem; }
.cash-chart meter { width: 100%; height: 19px; }
.cash-chart meter::-webkit-meter-bar { background: #e4edec; border: 0; }
.cash-chart meter::-webkit-meter-optimum-value { background: #35798a; }

.directiva table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.directiva th, .directiva td { padding: 11px 9px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.directiva thead { background: var(--aqua); color: var(--navy); }
.directiva tbody tr:last-child > * { border-bottom: 0; }
.directiva th[scope="row"] { color: var(--navy); }
.directiva .mobile-label { display: none; }
.documents details { padding: 12px 0; border-top: 1px solid var(--line); }
.documents summary { cursor: pointer; }
.documents summary span { display: block; padding-left: 18px; color: var(--muted); }
.documents details p { padding-left: 18px; }

.assistant-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -19px -19px 12px;
  padding: 15px 19px;
  border-radius: 17px 17px 0 0;
  background:
    radial-gradient(ellipse at 100% -15%, #437962, transparent 76%),
    linear-gradient(110deg, #102d42, #175d55);
  color: #fff9e9;
}
.assistant-heading h2 { margin: 0; color: inherit; font-size: 1.83rem; font-weight: 650; }
.assistant-heading h2 strong { color: var(--sun); font-weight: 900; }
.assistant .tag { background: #fff4d7; color: #60421d; }
.conversation {
  display: grid;
  gap: 8px;
  min-height: 150px;
  max-height: 220px;
  overflow: auto;
  align-content: start;
  list-style: none;
  padding: 8px 0;
  margin: 8px 0;
}
.conversation li { background: #e9f3e9; padding: 10px; border-radius: 11px; border-left: 2px solid #4a896c; overflow-wrap: anywhere; font-size: .84rem; }
.conversation li:nth-last-child(even) { background: #edf3fa; border-color: #6794a9; margin-left: 14px; }
.conversation strong { color: #2b5f56; font-size: .76rem; }
.directiva .conversation p { margin-top: 4px; color: var(--ink); }
.suggestions-label, #ask-bahio label { font-size: .79rem; font-weight: 750; }
.suggestions { display: grid; gap: 6px; margin: 7px 0 16px; }
.suggestions button, #ask-bahio textarea {
  padding: 8px 9px;
  border: 1px solid #b9cdc2;
  border-radius: 8px;
  background: #f9fcf9;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
}
.suggestions button { text-align: left; cursor: pointer; }
.suggestions button:hover { background: var(--aqua); }
#ask-bahio { display: grid; gap: 6px; }
#ask-bahio textarea { resize: vertical; min-height: 56px; }
#ask-bahio button { justify-self: start; border: 0; padding: 8px 12px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.context-column .context-alert { margin-top: 14px; background: #fff5dd; border-color: #ead5aa; border-left: 4px solid #d39132; }
.context-column .context-source { margin-top: 14px; }
.context-column .context-alert p, .context-column .context-source p { font-size: .86rem; }
.directiva :focus-visible { outline: 2px solid #327c73; outline-offset: 3px; }
.sidebar :focus-visible { outline-color: #c9efdc; }
.directiva .skip { position: fixed; z-index: 2; left: 12px; top: 12px; transform: translateY(-160%); padding: 7px 12px; background: white; }
.directiva .skip:focus { transform: none; }

@media (max-width: 1180px) {
  .directiva-layout { grid-template-columns: 175px minmax(0, 1fr) 290px; }
  .demo-grid.metrics { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .directiva-layout { display: block; height: auto; }
  .sidebar { padding: 17px 16px 12px; }
  .section-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 12px; padding-top: 8px; }
  .section-nav a { padding: 8px 3px; text-align: center; font-size: clamp(.69rem, 2.2vw, .94rem); }
  .profile-switch { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-top: 10px; }
  .profile-switch label { grid-column: 1 / -1; }
  .mobile-assistant { display: inline-block; align-self: start; margin-top: 8px; font-size: .84rem; font-weight: 700; }
  .content-column, .context-column { overflow: visible; }
  .content-column, .context-column { padding: 17px 16px 25px; }
  .context-column { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .page-heading.scenic { padding: 22px; min-height: 270px; }
  .demo-grid, .cash-chart { grid-template-columns: minmax(0, 1fr); }
  .directiva table, .directiva tbody, .directiva tr, .directiva th[scope="row"] { display: block; }
  .directiva thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .directiva tbody tr { border-top: 1px solid var(--line); padding: 10px 0; }
  .directiva tbody tr > * { border: 0; padding: 4px 0; }
  .directiva td { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 10px; }
  .directiva .mobile-label { display: block; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.directiva) { scroll-behavior: auto; }
}
