/* ==========================================================================
   public_design.css — Unified Design System for Every Public Prilago Page
   ==========================================================================
   Self-hosted typography (Inter + Source Serif 4), single `:root` token set,
   1,120px content container, sticky header, two button styles, 13px floor,
   phone stacked-block tables, dark closing band, and dark 4-group footer.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/frontend/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/frontend/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/frontend/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/frontend/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour */
  --paper: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --text: #334155;
  --muted: #586174;
  --line: #E6E3DB;
  --line-soft: #F1EFE9;
  --control: #C6CEDA;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --mark: #FEF6D8;
  --mark-bar: #D97706;
  --night: #0B1324;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
  --section: 96px;
  --stack: 40px;

  /* Shape */
  --r-card: 14px;
  --r-ctl: 10px;

  /* Type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

@media (max-width: 760px) {
  :root {
    --section: 64px;
    --gutter: 20px;
    --stack: 32px;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body.prilago-public {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font: 400 16px/26px var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.prilago-public *,
body.prilago-public *::before,
body.prilago-public *::after {
  box-sizing: border-box;
}

body.prilago-public h1,
body.prilago-public h2,
body.prilago-public h3 {
  margin: 0;
  color: var(--ink);
}

body.prilago-public h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.prilago-public .hero-top h1 {
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.06;
  max-width: 15em;
  margin: 0 auto;
}

body.prilago-public h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

body.prilago-public h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  body.prilago-public h1 {
    font-size: 34px;
    line-height: 1.12;
  }
  body.prilago-public .hero-top h1 {
    font-size: 36px;
    line-height: 1.08;
  }
  body.prilago-public h2 {
    font-size: 28px;
    line-height: 34px;
  }
}

/* 13px minimum text floor across public pages */
body.prilago-public .text-xs,
body.prilago-public small {
  font-size: 13px !important;
  line-height: 20px !important;
}

/* Keyboard focus ring (S10) */
body.prilago-public :focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

body.prilago-public .night :focus-visible {
  outline: 2px solid #93C5FD !important;
  outline-offset: 2px !important;
}

/* Skip link */
.prilago-skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  background-color: var(--accent);
  color: #FFFFFF !important;
  font: 600 14px/20px var(--sans);
  text-decoration: none;
}

.prilago-skip-link:focus {
  top: 12px;
}

/* View isolation for MCP internal mode */
html[data-prilago-view="internal"] #prilagoPublicNav,
html[data-prilago-view="internal"] .prilago-external-only,
html[data-prilago-view="internal"] .night {
  display: none !important;
}

html:not([data-prilago-view="internal"]) #prilagoInternalMcpHeader {
  display: none !important;
}

/* Layout containers & bands */
.pub-container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.pub-section {
  padding: var(--section) 0;
}

.pub-band {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pub-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
}

@media (max-width: 760px) {
  .pub-card {
    padding: 22px 20px;
  }
}

.pub-link,
.link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.pub-link:hover,
.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-ctl);
  background-color: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 500 13px/18px var(--sans);
}

/* Unified 14px card corners & 10px control corners across generated public pages (Part 2, Item G) */
body.prilago-public .rounded-2xl,
body.prilago-public .rounded-xl,
body.prilago-public .rounded-lg,
body.prilago-public .rounded-\[14px\] {
  border-radius: var(--r-card) !important;
}

body.prilago-public button.rounded-lg,
body.prilago-public button.rounded-xl,
body.prilago-public a.rounded-lg,
body.prilago-public a.rounded-xl,
body.prilago-public .btn,
body.prilago-public .pub-input,
body.prilago-public input:not([type="checkbox"]):not([type="radio"]),
body.prilago-public select,
body.prilago-public textarea,
body.prilago-public .rounded-\[10px\] {
  border-radius: var(--r-ctl) !important;
}

body.prilago-public a,
body.prilago-public code,
body.prilago-public td,
body.prilago-public p,
body.prilago-public li {
  overflow-wrap: break-word;
}

/* Two button styles only (Part 2 & S2) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn-quiet {
  background-color: var(--surface);
  border-color: var(--control);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: #94A3B8;
  background-color: var(--paper);
  color: var(--ink);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* Standard 44px fields */
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
}

.field select,
.field input,
.pub-input,
.pub-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--control);
  border-radius: var(--r-ctl);
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
}

.field select,
.pub-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23334155' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input::placeholder,
.pub-input::placeholder {
  color: var(--muted);
}

/* ==========================================================================
   Sticky Public Header (#prilagoPublicNav.site-header)
   ========================================================================== */
#prilagoPublicNav.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background-color: rgba(250, 249, 246, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: -0.03em;
  text-decoration: none;
  justify-self: start;
}

.brand svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand .prilago-brand-dot {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a.nav-public-active {
  color: var(--accent);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.signin {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 4px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.signin:hover {
  color: var(--ink);
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-ctl);
  cursor: pointer;
}

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

.menu summary i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: min(300px, calc(100vw - 40px));
  padding: 8px;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.25);
  z-index: 50;
}

.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.menu-panel a:hover {
  background-color: var(--paper);
}

/* ==========================================================================
   Home Page Worked Example (Mock-up B — Part 2B)
   ========================================================================== */
.hero-top {
  text-align: center;
}

.lede {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: 19px;
  line-height: 30px;
  color: var(--text);
}

.search {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  text-align: left;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.search-note {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.search-note a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-note a:hover {
  color: var(--ink);
}

.example {
  margin-top: 64px;
  padding: 40px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 28px 56px -28px rgba(15, 23, 42, 0.16);
}

.example-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.example-head h2 {
  font-size: 28px;
  line-height: 34px;
}

.example-head a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
}

.example-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

.doc {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #FFFFFF;
}

.doc-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.doc-page {
  padding: 20px 20px 12px;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 19px;
  color: var(--text);
}

.doc-head b {
  color: var(--ink);
  font-weight: 600;
}

.doc-head div:last-child {
  text-align: right;
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  line-height: 19px;
  font-variant-numeric: tabular-nums;
}

.doc col.c-fund { width: 43%; }
.doc col.c-class { width: 25%; }
.doc col.c-year { width: 12%; }
.doc col.c-value { width: 20%; }

.doc th {
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.doc td {
  padding: 8px 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc .num {
  text-align: right;
  white-space: nowrap;
}

.doc tr.cited td {
  position: relative;
  background-color: var(--mark);
  color: var(--ink);
  font-weight: 600;
}

.doc tr.cited td:first-child {
  box-shadow: inset 3px 0 0 var(--mark-bar);
}

.pin {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  font-style: normal;
}

.doc tr.cited .pin {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px var(--surface);
}

.doc-foot {
  padding: 0 20px 12px;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.doc-bar .pin {
  flex: none;
}

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

.facts li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.facts .pin {
  margin-top: 2px;
}

.facts p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text);
}

.facts .link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  font-size: 15px;
}

/* What you see before you pay */
.plans {
  margin-top: var(--stack);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.plan.paid {
  background-color: var(--surface);
  border-color: var(--ink);
}

.plan h3 {
  font-size: 20px;
  line-height: 28px;
}

.plan .terms {
  margin-top: 2px;
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.plan .foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

/* Questions managers ask */
.guides-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.guides-head a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
}

.guides {
  margin-top: var(--stack);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  border-top: 1px solid var(--ink);
}

.guide {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.guide b {
  display: block;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.guide span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

.guide:hover b {
  color: var(--accent);
}

/* What is Prilago */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.about p + p {
  margin-top: 16px;
}

.about .links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
}

.about .links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* ==========================================================================
   Dark Closing Band & Dark 4-Group Footer (.night)
   ========================================================================== */
.night {
  background-color: var(--night);
  color: #B8C2D1;
}

body.prilago-public h1.text-white,
body.prilago-public h2.text-white,
body.prilago-public h3.text-white,
body.prilago-public .night h1,
body.prilago-public .night h2,
body.prilago-public .night h3,
.night h1,
.night h2,
.night h3 {
  color: #FFFFFF;
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.closing p {
  margin-top: 16px;
  max-width: 30em;
  color: #B8C2D1;
}

.closing form {
  display: grid;
  gap: 16px;
}

.closing .form-row {
  display: grid;
  gap: 12px;
  align-items: end;
}

.closing .form-row.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.closing .form-row.send {
  grid-template-columns: minmax(0, 1fr) auto;
}

.closing .field label {
  color: #FFFFFF;
}

.closing .field label span {
  font-weight: 400;
  color: #B8C2D1;
}

.closing .field input {
  border-color: transparent;
  background-color: #FFFFFF;
  color: var(--ink);
}

.closing .btn-primary {
  background-color: #2563EB;
  color: #FFFFFF;
}

.closing .btn-primary:hover {
  background-color: var(--accent);
}

.closing .closing-terms {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  line-height: 20px;
  color: #94A3B8;
}

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr 0.9fr;
  gap: 32px;
}

.site-footer .brand {
  color: #FFFFFF;
}

.site-footer .brand .prilago-brand-dot {
  color: #60A5FA;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 21em;
  font-size: 14px;
  line-height: 22px;
  color: #94A3B8;
}

.footer-label {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #FFFFFF;
}

.footer-col ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.footer-col a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 20px;
  color: #B8C2D1;
  text-decoration: none;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 20px;
  color: #94A3B8;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 0;
  color: #B8C2D1;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Phone Stacked-Block Tables (S5, S7, I7, R2, Item F — <= 760px)
   ========================================================================== */
@media (max-width: 760px) {
  table.pub-stack-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  table.pub-stack-table thead {
    display: none;
  }
  table.pub-stack-table tbody {
    display: block;
    width: 100%;
  }
  table.pub-stack-table tbody tr {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  table.pub-stack-table tbody tr:last-child {
    border-bottom: 0;
  }
  table.pub-stack-table tbody td {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 5px 0 !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 14px;
    line-height: 22px;
  }
  table.pub-stack-table tbody td.stack-empty-cell {
    display: none !important;
  }
  table.pub-stack-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
  }
  table.pub-stack-table tbody td.stack-primary {
    display: block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
  }
  table.pub-stack-table tbody td.stack-primary::before {
    display: none;
  }
  table.pub-stack-table tbody td.stack-primary > a,
  table.pub-stack-table tbody td > a:only-child {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 0;
  }
}

/* ==========================================================================
   Responsive Breakpoints (<= 900px & <= 560px)
   ========================================================================== */
@media (max-width: 900px) {
  .header-row {
    grid-template-columns: 1fr auto;
  }
  .main-nav,
  .signin {
    display: none;
  }
  .menu {
    display: block;
  }
  .header-actions {
    gap: 8px;
  }
  .example {
    padding: 24px;
  }
  .example-grid,
  .about-grid,
  .closing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .guides {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col a,
  .footer-bottom a,
  .search-note a,
  .about .links a,
  .example-head a,
  .guides-head a,
  .facts .link {
    min-height: 40px;
    padding: 8px 0;
  }
  .btn-sm {
    height: 40px;
  }
}

@media (max-width: 560px) {
  .example-head h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .lede {
    font-size: 17px;
    line-height: 28px;
  }
  .search,
  .closing .form-row.two,
  .closing .form-row.send {
    grid-template-columns: 1fr;
  }
  .search .btn,
  .closing .btn {
    width: 100%;
  }
  .example {
    margin-top: 48px;
    padding: 20px;
    border-radius: var(--r-card);
  }
  .doc-page {
    padding: 16px 12px 8px;
  }
  .doc th,
  .doc td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .doc .opt {
    display: none;
  }
  .doc col.c-fund { width: 62%; }
  .doc col.c-value { width: 38%; }
  .doc-head {
    flex-direction: column;
    gap: 2px;
  }
  .doc-head div:last-child {
    text-align: left;
  }
  .doc tr.cited .pin {
    left: -24px;
  }
  .plan {
    padding: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Signed-in top-right Account Pill & Dropdown on public/SSR pages */
.prilago-account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.prilago-account-btn {
  height: 38px;
  padding: 0 10px 0 6px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--control);
  background-color: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.prilago-account-btn:hover {
  border-color: #94A3B8;
  background-color: var(--paper);
}

.prilago-account-initials {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background-color: var(--accent);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 var(--sans);
  flex-shrink: 0;
}

.prilago-account-label {
  color: var(--ink);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prilago-account-caret {
  color: var(--muted);
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.prilago-account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  max-width: calc(100vw - 24px);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.06);
  z-index: 1200;
  overflow: hidden;
  text-align: left;
}

@media (max-width: 640px) {
  .prilago-account-label {
    display: none;
  }
  .prilago-account-btn {
    padding: 0 7px;
  }
}
