:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --paper: #fffdf8;
  --surface: #fbf7ef;
  --text: #251f1a;
  --muted: #756d63;
  --line: #dfd6c8;
  --green: #1f7a50;
  --green-bg: #e8f4ed;
  --red: #a83a32;
  --red-bg: #f7e8e4;
  --gold: #9a5d22;
  --gold-bg: #f8ead2;
  --accent: #c15f3c;
  --chart-blue-deep: #173e73;
  --chart-blue-soft: #5f9ed8;
  --chart-blue-pale: #a9cfea;
  --chart-blue-bg: #eef6fc;
  --ink: #2f2923;
  --nav-glass: rgba(245, 246, 242, 0.76);
  --nav-line: rgba(117, 109, 99, 0.22);
  --hover-surface: #f0e8dc;
  --control-line: #ccd1d2;
  --control-bg: rgba(255, 255, 255, 0.48);
  --control-hover: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --panel-translucent: rgba(255, 253, 248, 0.7);
  --panel-soft: #f3f6f5;
  --panel-complete: #fbfef9;
  --blue-band: #dcecf2;
  --blue-band-text: #50616a;
  --primary-button: #202326;
  --primary-button-hover: #34383a;
  --primary-button-text: #ffffff;
  --field-bg: rgba(255, 255, 255, 0.82);
  --table-head: #f0e8dc;
  --score-bg: #edf0ee;
  --score-text: #252b2e;
  --calendar-data: #fffaf0;
  --calendar-data-hover: #f6eadc;
  --calendar-empty: rgba(240, 232, 220, 0.36);
  --calendar-holiday: #f2e3d8;
  --closing-bg: #202326;
  --closing-text: #ffffff;
  --subtle-shadow: 0 18px 42px rgba(65, 49, 32, 0.08);
  --strong-shadow: 0 28px 70px rgba(31, 46, 53, 0.12);
  --chart-gradient: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 245, 235, 0.84));
  --info-bg: #edf6fa;
  --info-line: #bed1dc;
  --info-text: #254e66;
  --success-message-bg: #eef8f4;
  --success-message-line: #b7d5c9;
  --success-message-text: #1e624b;
  --error-message-bg: #fcf1ef;
  --error-message-line: #e2c0bc;
  --error-message-text: #8c332c;
}

:root[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #111416;
    --paper: #181c1e;
    --surface: #1e2326;
    --text: #f2eee7;
    --muted: #a7adaf;
    --line: #363d40;
    --green: #6bd6a4;
    --green-bg: #183b2d;
    --red: #ff958b;
    --red-bg: #472725;
    --gold: #efbd78;
    --gold-bg: #43321f;
    --accent: #ff8d68;
    --chart-blue-deep: #9bcfff;
    --chart-blue-soft: #6eb4ef;
    --chart-blue-pale: #b9dff7;
    --chart-blue-bg: #173044;
    --ink: #ece8e1;
    --nav-glass: rgba(17, 20, 22, 0.78);
    --nav-line: rgba(235, 238, 238, 0.14);
    --hover-surface: #272d30;
    --control-line: #41494d;
    --control-bg: rgba(29, 34, 36, 0.72);
    --control-hover: rgba(40, 46, 49, 0.9);
    --panel-solid: #181c1e;
    --panel-translucent: rgba(24, 28, 30, 0.82);
    --panel-soft: #23292b;
    --panel-complete: #1b2420;
    --blue-band: #152a34;
    --blue-band-text: #b7c9d1;
    --primary-button: #ebe7df;
    --primary-button-hover: #ffffff;
    --primary-button-text: #17191a;
    --field-bg: #131719;
    --table-head: #252b2d;
    --score-bg: #2a3032;
    --score-text: #ece9e3;
    --calendar-data: #302820;
    --calendar-data-hover: #3d3024;
    --calendar-empty: rgba(45, 49, 50, 0.58);
    --calendar-holiday: #3b2926;
    --closing-bg: #090c0d;
    --closing-text: #f5f2eb;
    --subtle-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    --strong-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    --chart-gradient: linear-gradient(180deg, rgba(26, 30, 32, 0.98), rgba(18, 22, 24, 0.96));
    --info-bg: #172c38;
    --info-line: #31556a;
    --info-text: #b6dcf1;
    --success-message-bg: #173329;
    --success-message-line: #32644f;
    --success-message-text: #a6e2c8;
    --error-message-bg: #3b2322;
    --error-message-line: #6d3b38;
    --error-message-text: #ffb2aa;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111416;
  --paper: #181c1e;
  --surface: #1e2326;
  --text: #f2eee7;
  --muted: #a7adaf;
  --line: #363d40;
  --green: #6bd6a4;
  --green-bg: #183b2d;
  --red: #ff958b;
  --red-bg: #472725;
  --gold: #efbd78;
  --gold-bg: #43321f;
  --accent: #ff8d68;
  --chart-blue-deep: #9bcfff;
  --chart-blue-soft: #6eb4ef;
  --chart-blue-pale: #b9dff7;
  --chart-blue-bg: #173044;
  --ink: #ece8e1;
  --nav-glass: rgba(17, 20, 22, 0.78);
  --nav-line: rgba(235, 238, 238, 0.14);
  --hover-surface: #272d30;
  --control-line: #41494d;
  --control-bg: rgba(29, 34, 36, 0.72);
  --control-hover: rgba(40, 46, 49, 0.9);
  --panel-solid: #181c1e;
  --panel-translucent: rgba(24, 28, 30, 0.82);
  --panel-soft: #23292b;
  --panel-complete: #1b2420;
  --blue-band: #152a34;
  --blue-band-text: #b7c9d1;
  --primary-button: #ebe7df;
  --primary-button-hover: #ffffff;
  --primary-button-text: #17191a;
  --field-bg: #131719;
  --table-head: #252b2d;
  --score-bg: #2a3032;
  --score-text: #ece9e3;
  --calendar-data: #302820;
  --calendar-data-hover: #3d3024;
  --calendar-empty: rgba(45, 49, 50, 0.58);
  --calendar-holiday: #3b2926;
  --closing-bg: #090c0d;
  --closing-text: #f5f2eb;
  --subtle-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --strong-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  --chart-gradient: linear-gradient(180deg, rgba(26, 30, 32, 0.98), rgba(18, 22, 24, 0.96));
  --info-bg: #172c38;
  --info-line: #31556a;
  --info-text: #b6dcf1;
  --success-message-bg: #173329;
  --success-message-line: #32644f;
  --success-message-text: #a6e2c8;
  --error-message-bg: #3b2322;
  --error-message-line: #6d3b38;
  --error-message-text: #ffb2aa;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  color: var(--muted);
  margin-bottom: 34px;
}

.site-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  border-bottom: 1px solid rgba(117, 109, 99, 0.22);
  background: rgba(245, 246, 242, 0.76);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-nav strong,
.site-brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.site-brand {
  justify-self: start;
  text-decoration: none;
}

.site-nav span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 4px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0 12px;
}

.nav-links a:hover {
  background: #f0e8dc;
  color: var(--text);
}

.nav-links a.active {
  background: transparent;
  color: var(--text);
}

.nav-links a.active:hover {
  background: var(--hover-surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

html:not(.nav-auth-ready):not(.nav-auth-cached) .nav-actions {
  visibility: hidden;
}

.theme-control {
  position: relative;
  flex: 0 0 auto;
}

.theme-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background: var(--control-bg);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease;
}

.theme-button:hover,
.theme-button[aria-expanded="true"] {
  border-color: #8297a2;
  background: var(--control-hover);
}

.theme-button-icon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 172px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--strong-shadow);
  padding: 6px;
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu button {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  padding: 0 8px;
}

.theme-menu button:hover,
.theme-menu button:focus-visible {
  background: var(--hover-surface);
  color: var(--text);
  outline: none;
}

.theme-menu button b {
  visibility: hidden;
  color: var(--chart-blue-soft);
  text-align: center;
}

.theme-menu button.active {
  color: var(--text);
  font-weight: 750;
}

.theme-menu button.active b {
  visibility: visible;
}

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

.nav-login,
.nav-subscribe {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 13px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-login {
  border: 1px solid #ccd1d2;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

.nav-login:hover {
  border-color: #aeb7ba;
  background: rgba(255, 255, 255, 0.78);
}

.nav-subscribe {
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
}

.nav-subscribe:hover {
  border-color: #3c342e;
  background: #3c342e;
  transform: translateY(-1px);
}

.nav-login.active {
  border-color: #94aab7;
  background: rgba(225, 239, 246, 0.72);
  color: #214b67;
}

.nav-login.is-account {
  gap: 7px;
  border-color: transparent;
  background: transparent;
  padding: 3px 9px 3px 4px;
}

.nav-login.is-account:hover,
.nav-login.is-account.active {
  border-color: transparent;
  background: var(--control-bg);
  color: var(--text);
}

.site-nav .nav-account-avatar {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: var(--text);
}

.site-nav .nav-account-avatar svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-nav .nav-account-name {
  max-width: 96px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-shell {
  min-height: 100vh;
}

.auth-layout,
.profile-layout {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 72px;
  align-items: start;
}

.auth-intro,
.profile-heading {
  padding-top: 44px;
}

.auth-intro h1,
.profile-heading h1 {
  max-width: 620px;
  margin: 14px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-intro > p:last-child,
.profile-heading > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.auth-panel,
.profile-details {
  border: 1px solid #d9d1c6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 24px 70px rgba(58, 49, 40, 0.08);
}

.auth-panel {
  padding: 8px 30px 30px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 -22px 26px;
  border-bottom: 1px solid #ddd5ca;
}

.auth-tabs[hidden] {
  display: none;
}

.auth-tabs button {
  min-height: 50px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #776f67;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.auth-tabs button.active {
  border-bottom-color: #315b75;
  color: var(--text);
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-heading h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

.auth-heading p,
.auth-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #4e4943;
  font-size: 0.82rem;
  font-weight: 650;
}

.auth-form input {
  width: 100%;
  min-height: 45px;
  box-sizing: border-box;
  border: 1px solid #cbc4ba;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  padding: 0 13px;
  outline: none;
}

.auth-form input:focus {
  border-color: #315b75;
  box-shadow: 0 0 0 3px rgba(49, 91, 117, 0.12);
}

.auth-submit {
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid #1f1c19;
  border-radius: 6px;
  background: #1f1c19;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.auth-submit:disabled,
.auth-text-button:disabled,
.profile-logout:disabled {
  cursor: wait;
  opacity: 0.58;
}

.auth-text-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #315b75;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.auth-message {
  margin: 20px 0 0;
  border: 1px solid #bed1dc;
  border-radius: 6px;
  background: #edf6fa;
  color: #254e66;
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 12px 14px;
}

.auth-message[data-tone="success"] {
  border-color: #b7d5c9;
  background: #eef8f4;
  color: #1e624b;
}

.auth-message[data-tone="error"] {
  border-color: #e2c0bc;
  background: #fcf1ef;
  color: #8c332c;
}

.profile-details {
  padding: 8px 30px 30px;
}

.profile-row {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid #ddd5ca;
}

.profile-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.profile-row strong {
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.profile-actions {
  padding: 24px 0 10px;
}

.profile-actions .button {
  width: 100%;
  box-sizing: border-box;
}

.profile-logout {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid #cbc4ba;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.account-overview {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 54px 0 86px;
}

.account-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0 38px;
}

.account-intro-copy {
  min-width: 0;
}

.account-intro .eyebrow {
  margin-bottom: 8px;
  color: var(--chart-blue-soft);
}

.account-intro h1 {
  max-width: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.account-intro-copy > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.account-signout {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0 13px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-signout:hover {
  border-color: color-mix(in srgb, var(--muted) 62%, transparent);
  background: var(--control-bg);
  color: var(--text);
}

.account-signout:disabled {
  cursor: wait;
  opacity: 0.58;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.account-section {
  min-width: 0;
  padding: 42px 40px 44px 0;
}

.account-section + .account-section {
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 40px;
}

.account-kicker {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.account-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0;
}

.account-preferences {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding: 34px 0 4px;
}

.account-preferences-copy {
  min-width: 0;
}

.account-preferences h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0;
}

.account-preferences-copy > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.account-theme-settings {
  width: min(100%, 360px);
  flex: 0 0 auto;
}

.account-language-preferences {
  margin-top: 30px;
}

.account-language-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.account-language-select:focus-visible {
  outline: 2px solid var(--chart-blue);
  outline-offset: 2px;
}

.account-language-select:disabled {
  opacity: 0.62;
}

.account-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background: var(--control-bg);
  padding: 3px;
}

.account-theme-option {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 10px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.account-theme-option:hover {
  color: var(--text);
}

.account-theme-option.active {
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 13%, transparent);
}

.account-theme-option:focus-visible {
  outline: 2px solid var(--chart-blue);
  outline-offset: 1px;
}

.account-theme-option:disabled {
  cursor: wait;
  opacity: 0.62;
}

.account-theme-status {
  margin: 9px 4px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: right;
}

.account-theme-status[data-tone="success"] {
  color: var(--success-message-text);
}

.account-theme-status[data-tone="error"] {
  color: var(--error-message-text);
}

.account-data-list {
  margin: 27px 0 0;
}

.account-data-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.72fr) minmax(0, 1.28fr);
  align-items: baseline;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.account-data-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.account-data-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--control-bg);
  padding: 8px 12px;
}

.account-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--muted);
}

.account-status strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
}

.account-status[data-status="active"] {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  background: var(--green-bg);
}

.account-status[data-status="active"] .account-status-dot {
  background: var(--green);
}

.account-status[data-status="past_due"],
.account-status[data-status="canceled"],
.account-status[data-status="error"] {
  border-color: color-mix(in srgb, var(--red) 34%, var(--line));
  background: var(--red-bg);
}

.account-status[data-status="past_due"] .account-status-dot,
.account-status[data-status="canceled"] .account-status-dot,
.account-status[data-status="error"] .account-status-dot {
  background: var(--red);
}

.account-status-detail {
  max-width: 440px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.account-access-list {
  display: grid;
  gap: 0;
  margin: 27px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.account-access-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.account-access-list li > div {
  min-width: 0;
}

.account-access-list li strong,
.account-access-list li span {
  display: block;
}

.account-access-list li strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
}

.account-access-list li div span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.account-access-item-state {
  min-width: 72px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-align: right;
  text-transform: uppercase;
}

.account-access[data-access="locked"] .account-access-list li > div {
  opacity: 0.58;
}

.account-access[data-access="locked"] .account-access-item-state {
  color: var(--text);
}

.account-access[data-access="locked"] .account-access-item-state::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: 1px;
}

.account-access[data-access="open"] .account-access-item-state {
  color: var(--green);
}

.account-access[data-access="open"] .account-access-item-state::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.account-actions .button {
  min-height: 42px;
  font-size: 0.84rem;
  font-weight: 700;
}

.account-actions button {
  cursor: pointer;
}

.account-message {
  margin-top: 0;
}

@media (max-width: 760px) {
  .auth-layout,
  .profile-layout {
    width: min(100% - 28px, 520px);
    padding: 72px 0 64px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .auth-intro,
  .profile-heading {
    padding-top: 0;
  }

  .auth-intro h1,
  .profile-heading h1 {
    font-size: 3.2rem;
  }

  .auth-panel,
  .profile-details {
    padding-right: 22px;
    padding-left: 22px;
  }

  .auth-tabs {
    margin-right: -14px;
    margin-left: -14px;
  }

  .account-overview {
    padding: 30px 0 64px;
  }

  .account-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 30px;
  }

  .account-intro h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .account-signout {
    align-self: flex-start;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-section,
  .account-section + .account-section {
    border-left: 0;
    padding: 34px 0;
  }

  .account-section + .account-section {
    border-top: 1px solid var(--line);
  }

  .account-preferences {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    padding-top: 30px;
  }

  .account-theme-settings {
    width: 100%;
  }

  .account-data-list > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .account-access-list li {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .account-access-item-state {
    text-align: left;
  }

  .account-actions .button {
    width: 100%;
  }
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.home-page {
  background: var(--bg);
}

.home-shell {
  padding-bottom: 34px;
}

.home-page .site-nav {
  margin-bottom: 0;
}

.home-hero {
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 0 84px;
  text-align: center;
}

.home-hero-copy {
  width: min(900px, 100%);
  margin: 0 auto;
}

.home-hero .eyebrow {
  color: #315b75;
  letter-spacing: 0.08em;
}

.home-hero h1 {
  max-width: none;
  margin-top: 18px;
  font-size: clamp(6rem, 15vw, 11rem);
  line-height: 0.82;
}

.home-lead {
  max-width: 820px;
  margin: 42px auto 0;
  color: #1f2326;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-weight: 650;
  line-height: 1.12;
}

.home-sublead {
  max-width: 650px;
  margin: 22px auto 0;
  color: #697074;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd1d2;
  border-radius: 8px;
  color: #202326;
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  padding: 0 18px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button.primary {
  border-color: #202326;
  background: #202326;
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
}

.button:hover {
  transform: translateY(-1px);
}

.home-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(560px, 1.38fr);
  align-items: center;
  gap: 52px;
  background: #dcecf2;
  margin: 0 calc(50% - 50vw);
  padding: 76px max(24px, calc((100vw - 1160px) / 2));
}

.home-showcase-intro h2,
.home-funds h2,
.home-closing h2 {
  margin: 14px 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  font-weight: 750;
  line-height: 1.02;
}

.home-showcase-intro p:last-child,
.home-funds-heading > p:last-child {
  max-width: 460px;
  margin: 22px 0 0;
  color: #50616a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.home-dashboard {
  min-width: 0;
  border: 1px solid rgba(47, 70, 82, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(35, 66, 78, 0.14);
  overflow: hidden;
}

.home-dashboard-toolbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dce2e4;
  padding: 0 24px;
}

.home-dashboard-toolbar > div {
  display: grid;
  gap: 5px;
}

.home-dashboard-toolbar div span {
  color: #315b75;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-dashboard-toolbar strong {
  color: #202326;
  font-size: 1rem;
}

.home-dashboard-status {
  color: #697074;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-dashboard-scroll {
  min-width: 0;
  overflow-x: auto;
}

.home-dashboard-grid {
  min-width: 660px;
}

.home-dashboard-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(120px, 1.35fr) repeat(4, minmax(72px, 0.72fr)) minmax(80px, 0.7fr);
  align-items: center;
  border-bottom: 1px solid #e1e5e5;
  padding: 0 24px;
}

.home-dashboard-row:last-child {
  border-bottom: 0;
}

.home-dashboard-row.is-complete {
  background: #fbfef9;
}

.home-dashboard-head {
  min-height: 42px;
  background: #f3f6f5;
  color: #697074;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-dashboard-row > span:not(.home-dashboard-status) {
  justify-self: center;
}

.home-dashboard-row strong {
  color: #202326;
  font-size: 0.95rem;
  font-weight: 900;
}

.mini-check,
.mini-miss {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
}

.mini-check {
  background: var(--green-bg);
  color: var(--green);
}

.mini-miss {
  background: var(--red-bg);
  color: var(--red);
}

.home-dashboard-row b {
  justify-self: center;
  border-radius: 999px;
  background: #edf0ee;
  color: #252b2e;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 6px 10px;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #d9dcda;
  margin: 0;
  padding: 88px 0;
}

.home-proof article {
  min-width: 0;
  padding: 0 42px;
}

.home-proof article:first-child {
  padding-left: 0;
}

.home-proof article + article {
  border-left: 1px solid #d9dcda;
}

.home-proof span {
  color: #315b75;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-proof h2 {
  margin: 18px 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 750;
  line-height: 1.16;
}

.home-proof p,
.home-disclaimer p {
  color: #697074;
  line-height: 1.6;
}

.home-proof p {
  margin: 14px 0 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.home-funds {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  align-items: center;
  gap: 64px;
  padding: 106px 0;
}

.home-funds h2 {
  max-width: 500px;
}

.fund-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fund-card {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d8dcda;
  border-radius: 8px;
  background: #fff;
  color: #202326;
  text-decoration: none;
  padding: 28px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fund-card:hover {
  border-color: #94afbd;
  box-shadow: 0 22px 48px rgba(31, 46, 53, 0.1);
  transform: translateY(-2px);
}

.fund-card span {
  color: #315b75;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fund-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4vw, 3.65rem);
  font-weight: 500;
  line-height: 0.95;
  white-space: nowrap;
}

.fund-card small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #596267;
  font-size: 0.88rem;
  font-weight: 750;
}

.fund-card small b {
  color: #202326;
  font-size: 1.25rem;
}

.fund-card.performance {
  border-top: 5px solid #315b75;
}

.fund-card.securities {
  border-top: 5px solid #8fc8dd;
}

.home-closing {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #202326;
  color: #fff;
  margin: 0 calc(50% - 50vw);
  padding: 72px 24px;
  text-align: center;
  scroll-margin-top: 72px;
}

.home-closing .eyebrow {
  color: #9fd4e5;
}

.home-closing h2 {
  max-width: 790px;
}

.home-closing .button {
  margin-top: 32px;
}

.home-closing .button.primary {
  border-color: #fff;
  background: #fff;
  color: #202326;
}

.home-disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid #d9dcda;
  padding-top: 22px;
}

.home-disclaimer > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.home-disclaimer p {
  max-width: 720px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  text-align: right;
}

.empty-page {
  min-height: 360px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.performance-hero {
  min-height: 86px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.performance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.performance-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(47, 41, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 10px;
}

.performance-scenarios {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  margin-top: 14px;
}

.performance-scenarios button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font-weight: 850;
  cursor: pointer;
}

.performance-scenarios button:last-child {
  border-right: 0;
}

.performance-scenarios button.active {
  background: var(--text);
  color: #fffdf8;
}

.performance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 4px 0 38px;
}

.performance-summary article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 20px 22px 18px;
}

.performance-summary article + article {
  border-left: 1px solid var(--line);
}

.performance-summary span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.65vw, 1.65rem);
  line-height: 1.05;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.performance-summary span.positive,
.performance-summary span.negative,
.performance-summary span.neutral {
  background: transparent;
  color: var(--text);
}

.performance-summary p {
  margin: 0;
  color: var(--chart-blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.performance-summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.performance-section {
  margin-top: 28px;
}

.chart-heading {
  align-items: flex-end;
}

.chart-controls {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.chart-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background: var(--control-bg);
  padding: 2px;
}

.chart-mode-switch button {
  min-height: 27px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  padding: 0 10px;
}

.chart-mode-switch button:hover {
  color: var(--text);
}

.chart-mode-switch button.active {
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--text) 10%, transparent);
}

.chart-mode-switch button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--chart-blue-soft) 52%, transparent);
  outline-offset: 1px;
}

.chart-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.chart-toggle {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  padding: 0 10px;
  cursor: pointer;
}

.chart-toggle:hover {
  border-color: rgba(23, 62, 115, 0.22);
  background: rgba(238, 246, 252, 0.72);
  color: var(--text);
}

.chart-toggle.active {
  border-color: rgba(23, 62, 115, 0.28);
  background: var(--chart-blue-bg);
  color: var(--text);
}

.chart-toggle:not(.active) {
  opacity: 0.58;
}

.chart-toggle:focus-visible {
  outline: 2px solid rgba(23, 62, 115, 0.34);
  outline-offset: 2px;
}

.legend-swatch {
  width: 22px;
  height: 4px;
  display: inline-block;
  border-radius: 999px;
}

.legend-swatch.performance {
  background: var(--chart-blue-soft);
}

.legend-swatch.securities {
  background: var(--chart-blue-pale);
}

.legend-swatch.sp500 {
  background: var(--chart-blue-deep);
}

.annual-chart {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 245, 235, 0.84));
  box-shadow: 0 18px 42px rgba(65, 49, 32, 0.08);
  padding: 18px 16px 14px;
}

.annual-chart-svg {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

.chart-grid {
  stroke: rgba(117, 109, 99, 0.16);
  stroke-width: 1;
}

.chart-zero {
  stroke: rgba(47, 41, 35, 0.34);
  stroke-width: 1.5;
}

.chart-y-label,
.chart-x-label {
  fill: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.chart-year {
  cursor: pointer;
}

.chart-year:focus {
  outline: none;
}

.chart-hit {
  fill: rgba(23, 62, 115, 0.001);
  pointer-events: all;
}

.chart-hover-line {
  opacity: 0;
  pointer-events: none;
  stroke: rgba(23, 62, 115, 0.2);
  stroke-dasharray: 5 5;
  stroke-width: 1;
  transition: opacity 0.18s ease;
}

.chart-year.active .chart-hover-line,
.chart-year:hover .chart-hover-line,
.chart-year:focus .chart-hover-line {
  opacity: 1;
}

.chart-line {
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-shadow {
  opacity: 0.08;
  stroke-width: 4.4;
}

.chart-series.performance .chart-line {
  stroke: var(--chart-blue-soft);
}

.chart-series.performance .chart-line-shadow {
  stroke: var(--chart-blue-soft);
}

.chart-series.securities .chart-line {
  stroke: var(--chart-blue-pale);
}

.chart-series.securities .chart-line-shadow {
  stroke: var(--chart-blue-pale);
}

.chart-series.sp500 .chart-line {
  stroke: var(--chart-blue-deep);
}

.chart-series.sp500 .chart-line-shadow {
  stroke: var(--chart-blue-deep);
}

.chart-dot {
  fill: var(--paper);
  stroke-width: 1.8;
  transition: r 0.16s ease, fill 0.16s ease;
}

.chart-series.performance .chart-dot {
  stroke: var(--chart-blue-soft);
}

.chart-series.securities .chart-dot {
  stroke: var(--chart-blue-pale);
}

.chart-series.sp500 .chart-dot {
  stroke: var(--chart-blue-deep);
}

.chart-end-label {
  font-size: 0.78rem;
  font-weight: 850;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.chart-end-label.performance {
  fill: var(--chart-blue-soft);
}

.chart-end-label.securities {
  fill: var(--chart-blue-pale);
}

.chart-end-label.sp500 {
  fill: var(--chart-blue-deep);
}

.chart-year.active ~ .chart-series .chart-dot,
.chart-year:hover ~ .chart-series .chart-dot,
.chart-year:focus ~ .chart-series .chart-dot {
  fill: #fffdf8;
}

.annual-chart-detail {
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.annual-chart-detail strong {
  color: var(--text);
}

.detail-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
}

.chart-detail-pill.performance {
  background: rgba(95, 158, 216, 0.16);
  color: #2f6f9f;
}

.chart-detail-pill.securities {
  background: rgba(169, 207, 234, 0.2);
  color: #4f7899;
}

.chart-detail-pill.sp500 {
  background: rgba(23, 62, 115, 0.11);
  color: var(--chart-blue-deep);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
}

.section-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.performance-table table {
  min-width: 720px;
}

.setup-row {
  cursor: pointer;
}

.setup-row td {
  transition: background-color 160ms ease;
}

.setup-row:hover td,
.setup-row.expanded td {
  background: var(--panel-soft);
}

.setup-toggle {
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  padding: 0;
  cursor: pointer;
}

.setup-toggle:focus-visible {
  outline: 2px solid rgba(88, 158, 216, 0.55);
  outline-offset: 4px;
  border-radius: 3px;
}

.setup-disclosure {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.setup-toggle[aria-expanded="true"] .setup-disclosure {
  transform: rotate(-135deg);
}

.setup-detail-row > td {
  padding: 0;
  background: var(--panel-soft);
}

.setup-year-detail {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 24px 24px;
}

.performance-table .setup-year-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.setup-year-table th,
.setup-year-table td {
  position: static;
  padding: 10px 14px;
  background: transparent;
}

.setup-year-table th:first-child,
.setup-year-table td:first-child {
  text-align: left;
}

.setup-year-table th:last-child,
.setup-year-table td:last-child {
  text-align: right;
}

.setup-year-table .return-pill {
  min-width: 76px;
  height: 28px;
}

.setup-year-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .setup-year-detail {
    position: sticky;
    left: 0;
    width: calc(100vw - 22px);
    max-width: none;
    margin: 0;
    padding: 16px 12px 20px;
  }

  .setup-year-table th,
  .setup-year-table td {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .setup-row td,
  .setup-disclosure {
    transition: none;
  }
}

.return-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 30px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  padding: 0 10px;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  background: #f0ebe2;
  color: var(--ink);
  font-weight: 900;
}

.positive {
  background: var(--green-bg);
  color: var(--green);
}

.negative {
  background: var(--red-bg);
  color: var(--red);
}

.neutral {
  background: #f0ebe2;
  color: var(--ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  padding-top: 8px;
}

.count-chip,
.date-nav {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(47, 41, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  font-weight: 700;
}

.count-chip {
  padding: 0 12px;
}

.date-nav {
  position: relative;
  overflow: hidden;
}

.date-nav.calendar-open {
  overflow: visible;
}

.date-step {
  width: 38px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.date-step:disabled {
  color: rgba(117, 109, 99, 0.42);
  cursor: default;
}

.calendar-shell {
  position: relative;
}

.date-current {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(47, 41, 35, 0.14);
  border-left: 1px solid rgba(47, 41, 35, 0.14);
  border-top: 0;
  border-bottom: 0;
  background: transparent;
  padding: 0 10px;
  color: var(--text);
  cursor: pointer;
}

.date-current span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.date-current strong {
  min-width: 104px;
  color: var(--text);
  font-weight: 850;
  text-align: left;
}

.calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: -39px;
  z-index: 10;
  width: 286px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(65, 49, 32, 0.16);
  padding: 12px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.calendar-jump {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 6px;
  flex: 1;
}

.calendar-jump select {
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  outline: none;
  padding: 0 8px;
}

.calendar-jump select:focus {
  border-color: rgba(193, 95, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.14);
}

.calendar-month-label {
  display: block;
  margin: 0 0 10px;
  text-align: center;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  font-weight: 650;
}

.month-step {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  font-weight: 900;
  outline: none;
  cursor: pointer;
}

.month-step:hover {
  background: #f0e8dc;
}

.month-step:disabled {
  color: rgba(117, 109, 99, 0.38);
  cursor: default;
}

.month-step:disabled:hover {
  background: transparent;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(37, 31, 26, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-day.has-data {
  background: #fffaf0;
  border-color: rgba(193, 95, 60, 0.28);
  box-shadow: inset 0 -2px 0 rgba(193, 95, 60, 0.16);
  color: var(--text);
}

.calendar-day.has-data:hover {
  background: #f6eadc;
  border-color: rgba(193, 95, 60, 0.45);
}

.calendar-number {
  position: relative;
  z-index: 1;
}

.market-holiday-mark {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #23315f;
  color: #ffffff;
  font-size: 0.47rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.calendar-day.selected {
  background: var(--text);
  border-color: var(--text);
  box-shadow: none;
  color: #ffffff;
}

.calendar-day.no-data,
.calendar-day.out-month {
  color: rgba(117, 109, 99, 0.36);
  cursor: default;
}

.calendar-day.no-data {
  background: rgba(240, 232, 220, 0.36);
}

.calendar-day.no-data.market-holiday {
  background: #f2e3d8;
  border-color: rgba(193, 95, 60, 0.32);
  color: rgba(37, 31, 26, 0.58);
}

.calendar-day.out-month {
  background: transparent;
  border-color: transparent;
}

.calendar-day.out-month .market-holiday-mark {
  display: none;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  padding: 18px;
}

.summary span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 600;
}

.summary p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.search input {
  width: min(300px, 48vw);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.search input:focus {
  border-color: rgba(193, 95, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.13);
}

.segments {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.segments button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 18px;
  font-weight: 750;
  cursor: pointer;
}

.segments button:last-child {
  border-right: 0;
}

.segments button.active {
  background: var(--text);
  color: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(65, 49, 32, 0.08);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0e8dc;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.sort-button {
  width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}

.sort-button::after {
  content: "";
  min-width: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  line-height: 1;
}

th.sorted.asc .sort-button::after {
  content: "↑";
}

th.sorted.desc .sort-button::after {
  content: "↓";
}

.sort-button:focus-visible {
  outline: 2px solid rgba(193, 95, 60, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

td:first-child,
th:first-child {
  text-align: left;
}

th:first-child .sort-button {
  justify-content: flex-start;
}

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

tbody tr.full {
  background: #fffaf0;
}

.ticker {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.status {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
}

.status.yes {
  background: var(--green-bg);
  color: var(--green);
}

.status.no {
  background: var(--red-bg);
  color: var(--red);
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  border-radius: 999px;
  background: #f0ebe2;
  color: var(--ink);
  font-weight: 900;
}

.signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--gold-bg);
  color: var(--gold);
  font-size: 1.05rem;
}

.signal.empty {
  background: transparent;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.subscription-shell {
  padding-bottom: 28px;
}

.subscription-page .site-nav {
  margin-bottom: 0;
}

.subscription-kicker {
  margin: 0;
  color: #315b75;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-hero {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 78px 0 68px;
  text-align: center;
}

.subscription-hero h1 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.25rem;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.subscription-lead {
  max-width: 720px;
  margin: 26px auto 0;
  color: #596267;
  font-size: 1.22rem;
  font-weight: 550;
  line-height: 1.58;
}

.subscription-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd1d2;
  border-radius: 8px;
  color: #202326;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0 18px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.subscription-button:hover {
  transform: translateY(-1px);
}

.subscription-button.primary {
  border-color: #202326;
  background: #202326;
  color: #fff;
}

.subscription-button.quiet {
  background: rgba(255, 255, 255, 0.52);
}

.subscription-hero-price {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 32px;
}

.subscription-hero-price > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.subscription-hero-price strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.subscription-hero-price small {
  color: #697074;
  font-size: 0.88rem;
  font-weight: 650;
}

.subscription-proofline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 38px;
  color: #697074;
  font-size: 0.82rem;
  font-weight: 650;
}

.subscription-proofline span {
  padding: 0 22px;
}

.subscription-proofline span + span {
  border-left: 1px solid #cfd4d3;
}

.subscription-offer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: 86px;
  background: #dcecf2;
  margin: 0 calc(50% - 50vw);
  padding: 94px max(24px, calc((100vw - 1040px) / 2));
  scroll-margin-top: 70px;
}

.subscription-offer-copy h2,
.subscription-section-heading h2,
.subscription-faq h2,
.subscription-closing h2 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.35rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.subscription-offer-copy > p:not(.subscription-kicker),
.subscription-section-heading > p:last-child,
.subscription-faq-heading + p {
  color: #596267;
  line-height: 1.65;
}

.subscription-offer-copy > p:not(.subscription-kicker) {
  max-width: 510px;
  margin: 24px 0 0;
  font-size: 1rem;
  font-weight: 550;
}

.subscription-plan {
  border: 1px solid #c8d4d8;
  border-top: 5px solid #315b75;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(31, 46, 53, 0.12);
  padding: 34px;
}

.subscription-plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.subscription-plan-heading span {
  color: #315b75;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.subscription-plan-heading h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.subscription-plan-heading small {
  border: 1px solid #d7dee0;
  border-radius: 999px;
  background: #f4f7f7;
  color: #596267;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
  padding: 7px 10px;
}

.subscription-market {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #e0e5e4;
  margin-top: 28px;
  padding-top: 22px;
}

.subscription-market[hidden] {
  display: none;
}

.subscription-market label {
  color: #596267;
  font-size: 0.78rem;
  font-weight: 700;
}

.subscription-market select {
  min-height: 36px;
  border: 1px solid #d3dada;
  border-radius: 7px;
  background: #f7f9f8;
  color: #202326;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0 34px 0 11px;
}

.subscription-price {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid #e0e5e4;
  margin-top: 34px;
  padding-bottom: 28px;
}

.subscription-price strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.15rem;
  font-weight: 500;
  line-height: 0.85;
}

.subscription-price span {
  color: #697074;
  font-size: 0.9rem;
  font-weight: 650;
}

.subscription-price-details {
  display: grid;
  gap: 5px;
}

.subscription-price-details small {
  color: #315b75;
  font-size: 0.72rem;
  font-weight: 700;
}

.subscription-tax-note {
  margin: 12px 0 0;
  color: #7a8184;
  font-size: 0.72rem;
  font-weight: 550;
}

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

.subscription-inclusions li {
  position: relative;
  color: #3f4649;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  padding-left: 31px;
}

.subscription-inclusions li::before {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e7f3f5;
  color: #315b75;
  font-size: 0.78rem;
  font-weight: 900;
}

.subscription-plan-cta {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #202326;
  border-radius: 8px;
  background: #202326;
  color: #fff;
  margin-top: 32px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.subscription-plan-cta:hover {
  background: #34383a;
}

.subscription-plan-footnote {
  margin: 14px 0 0;
  color: #7a8184;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}

.subscription-payments {
  margin-top: 12px;
}

.subscription-payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.subscription-payment-logos .payment-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  min-width: 0;
  height: 24px;
}

.subscription-payment-logos img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.subscription-payment-logos .payment-brand-link {
  box-sizing: border-box;
  border: 1px solid #dedede;
  border-radius: 3px;
  background: #fff;
}

@media (max-width: 600px) {
  .subscription-payment-logos {
    max-width: 176px;
    margin-inline: auto;
  }
}

.subscription-product {
  padding: 112px 0;
  scroll-margin-top: 72px;
}

.subscription-section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.subscription-section-heading > p:last-child {
  max-width: 680px;
  margin: 24px auto 0;
  font-size: 1rem;
  font-weight: 550;
}

.subscription-portfolio-preview {
  margin-top: 54px;
}

.subscription-dashboard {
  overflow: hidden;
  border: 1px solid #d7dcda;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 78px rgba(31, 46, 53, 0.12);
  margin-top: 54px;
}

.subscription-dashboard-top {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
}

.subscription-dashboard-top span {
  display: block;
  color: #315b75;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.subscription-dashboard-top strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.subscription-dashboard-top small {
  color: #697074;
  font-size: 0.78rem;
  font-weight: 650;
}

.subscription-dashboard-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) repeat(4, minmax(80px, 1fr)) minmax(76px, 0.8fr);
  align-items: center;
  border-top: 1px solid #e0e5e4;
  padding: 0 22px;
  text-align: center;
}

.subscription-dashboard-row.header {
  min-height: 44px;
  background: #eff3f2;
  color: #697074;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-dashboard-row > :first-child {
  text-align: left;
}

.subscription-dashboard-row.full {
  background: #fbfdf9;
}

.subscription-dashboard-row > strong {
  font-size: 0.95rem;
}

.subscription-dashboard-row > b {
  justify-self: center;
  border-radius: 999px;
  background: #f0f1ed;
  font-size: 0.82rem;
  padding: 6px 9px;
}

.subscription-check {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.subscription-check.yes {
  background: #e8f4ed;
  color: #1f7a50;
}

.subscription-check.no {
  background: #f7e8e4;
  color: #a83a32;
}

.subscription-dashboard-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #dce2e1;
  background: #202326;
  color: #fff;
}

.subscription-dashboard-nav span {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}

.subscription-dashboard-nav span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.subscription-benefits {
  border-top: 1px solid #d9dcda;
  padding: 102px 0;
}

.subscription-section-heading.compact {
  max-width: 680px;
}

.subscription-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d9dcda;
  border-bottom: 1px solid #d9dcda;
  margin-top: 54px;
}

.subscription-benefit-grid article {
  min-width: 0;
  padding: 40px;
}

.subscription-benefit-grid article + article {
  border-left: 1px solid #d9dcda;
}

.subscription-benefit-grid span {
  color: #c15f3c;
  font-size: 0.74rem;
  font-weight: 850;
}

.subscription-benefit-grid h3 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
}

.subscription-benefit-grid p {
  margin: 14px 0 0;
  color: #697074;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.62;
}

.subscription-faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(480px, 1.2fr);
  gap: 86px;
  padding: 104px 0;
}

.subscription-faq-heading {
  align-self: start;
}

.subscription-faq-list {
  border-top: 1px solid #d4d9d8;
}

.subscription-faq-list details {
  border-bottom: 1px solid #d4d9d8;
}

.subscription-faq-list summary {
  position: relative;
  color: #202326;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding: 24px 46px 24px 0;
}

.subscription-faq-list summary::-webkit-details-marker {
  display: none;
}

.subscription-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 2px;
  color: #315b75;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.subscription-faq-list details[open] summary::after {
  content: "−";
}

.subscription-faq-list details p {
  max-width: 620px;
  margin: -4px 0 0;
  color: #697074;
  font-size: 0.9rem;
  line-height: 1.65;
  padding: 0 46px 24px 0;
}

.subscription-closing {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #202326;
  color: #fff;
  margin: 0 calc(50% - 50vw);
  padding: 72px 24px;
  text-align: center;
}

.subscription-closing .subscription-kicker {
  color: #9fd4e5;
}

.subscription-closing h2 {
  max-width: 760px;
}

.subscription-closing > p:not(.subscription-kicker) {
  max-width: 620px;
  margin: 22px auto 0;
  color: #c8ced0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.subscription-button.light {
  border-color: #fff;
  background: #fff;
  color: #202326;
  margin-top: 30px;
}

.subscription-disclaimer {
  margin-top: 26px;
}

.access-pending body.protected-page main.shell > :not(.site-nav) {
  visibility: hidden;
}

.access-error-panel {
  max-width: 720px;
  margin: 92px auto 0;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  text-align: center;
}

.access-error-panel h1 {
  margin: 12px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  letter-spacing: 0;
}

.access-error-panel p:not(.eyebrow) {
  margin: 0 auto 26px;
  color: var(--muted);
}

.access-error-panel .button {
  border: 0;
  cursor: pointer;
}

.subscription-access-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--text);
  font-size: 0.92rem;
}

.subscription-access-notice[hidden] {
  display: none;
}

.subscription-access-notice span {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .home-funds {
    grid-template-columns: 1fr;
  }

  .home-funds {
    gap: 42px;
  }

  .subscription-offer {
    gap: 54px;
  }
}

@media (max-width: 980px) {
  .home-showcase {
    grid-template-columns: 1fr;
  }

  .home-showcase {
    gap: 38px;
  }

  .home-showcase-intro {
    max-width: 680px;
  }

  .subscription-offer,
  .subscription-faq {
    grid-template-columns: 1fr;
  }

  .subscription-plan {
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .subscription-faq {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .site-nav {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 36px 32px;
    align-items: center;
    gap: 2px 10px;
  }

  .site-nav strong,
  .site-brand {
    flex: 0 0 auto;
    font-size: 1.55rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 5px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .nav-links a[href="index.html"] {
    display: none;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }

  .nav-login,
  .nav-subscribe {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .home-hero {
    min-height: auto;
    padding: 72px 0 66px;
  }

  .home-hero h1 {
    font-size: clamp(5rem, 28vw, 8rem);
  }

  .home-lead {
    margin-top: 34px;
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .home-sublead {
    font-size: 0.98rem;
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-showcase {
    margin: 0 -10px;
    padding: 58px 20px;
  }

  .home-dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .home-dashboard-status {
    padding-bottom: 2px;
  }

  .home-proof {
    grid-template-columns: 1fr;
    padding: 58px 0;
  }

  .home-proof article,
  .home-proof article:first-child {
    padding: 30px 0;
  }

  .home-proof article + article {
    border-top: 1px solid #d9dcda;
    border-left: 0;
  }

  .home-funds {
    padding: 72px 0;
  }

  .fund-grid {
    grid-template-columns: 1fr;
  }

  .fund-card {
    min-height: 230px;
  }

  .home-closing {
    min-height: 350px;
    margin: 0 -10px;
  }

  .home-disclaimer {
    flex-direction: column;
  }

  .home-disclaimer p {
    text-align: left;
  }

  .subscription-hero {
    min-height: auto;
    padding: 70px 0 62px;
  }

  .subscription-hero h1 {
    font-size: 3.5rem;
  }

  .subscription-lead {
    font-size: 1rem;
  }

  .subscription-hero-price strong {
    font-size: 2.6rem;
  }

  .subscription-proofline {
    width: 100%;
    display: grid;
    gap: 12px;
    margin-top: 42px;
  }

  .subscription-proofline span {
    padding: 0;
  }

  .subscription-proofline span + span {
    border-left: 0;
  }

  .subscription-offer {
    gap: 44px;
    margin: 0 -10px;
    padding: 64px 20px;
  }

  .subscription-offer-copy h2,
  .subscription-section-heading h2,
  .subscription-faq h2,
  .subscription-closing h2 {
    font-size: 2.45rem;
  }

  .subscription-plan {
    padding: 26px 22px;
  }

  .subscription-price strong {
    font-size: 3.5rem;
  }

  .subscription-product,
  .subscription-benefits,
  .subscription-faq {
    padding: 72px 0;
  }

  .subscription-dashboard {
    overflow-x: auto;
    margin-top: 40px;
  }

  .subscription-portfolio-preview {
    margin-top: 40px;
  }

  .subscription-dashboard-row {
    grid-template-columns: 72px repeat(4, minmax(42px, 1fr)) 48px;
    padding: 0 8px;
  }

  .subscription-dashboard-row.header {
    font-size: 0.58rem;
  }

  .subscription-dashboard-row > strong {
    font-size: 0.82rem;
  }

  .subscription-dashboard-row > b {
    font-size: 0.7rem;
    padding: 5px 6px;
  }

  .subscription-check {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .subscription-dashboard-top {
    min-height: 92px;
    padding: 0 18px;
  }

  .subscription-dashboard-nav span {
    min-height: 46px;
    font-size: 0.64rem;
    padding: 0 5px;
  }

  .subscription-benefit-grid {
    grid-template-columns: 1fr;
  }

  .subscription-benefit-grid article {
    padding: 32px 0;
  }

  .subscription-benefit-grid article + article {
    border-top: 1px solid #d9dcda;
    border-left: 0;
  }

  .subscription-closing {
    min-height: 350px;
    margin: 0 -10px;
  }

  .topbar,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .meta {
    justify-content: flex-start;
  }

  .date-nav {
    width: 100%;
  }

  .calendar-shell,
  .date-current {
    flex: 1;
  }

  .date-current {
    justify-content: center;
  }

  .calendar-popover {
    right: auto;
    left: 0;
    width: min(100%, 320px);
  }

  .summary {
    grid-template-columns: 1fr;
  }

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

  .performance-scenarios {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-scenarios button {
    min-width: 0;
    padding: 0 8px;
  }

  .search input {
    width: 100%;
  }

  .segments {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segments button {
    min-width: 0;
    padding: 0 8px;
    font-size: 0.82rem;
  }
}

/* Shared theme surfaces. These rules keep every page aligned with the same palette. */
.site-nav::before {
  border-bottom-color: var(--nav-line);
  background: var(--nav-glass);
}

.nav-links a:hover,
.month-step:hover {
  background: var(--hover-surface);
}

.nav-login,
.theme-button {
  border-color: var(--control-line);
  background: var(--control-bg);
}

.nav-login:hover,
.theme-button:hover,
.theme-button[aria-expanded="true"] {
  background: var(--control-hover);
}

.nav-login.active {
  border-color: var(--chart-blue-soft);
  background: var(--chart-blue-bg);
  color: var(--text);
}

.nav-subscribe,
.button.primary,
.subscription-button.primary,
.subscription-plan-cta,
.auth-submit {
  border-color: var(--primary-button);
  background: var(--primary-button);
  color: var(--primary-button-text);
}

.nav-subscribe:hover,
.subscription-plan-cta:hover {
  border-color: var(--primary-button-hover);
  background: var(--primary-button-hover);
}

.button,
.subscription-button,
.profile-logout {
  border-color: var(--control-line);
  color: var(--text);
}

.button.secondary,
.subscription-button.quiet {
  background: var(--control-bg);
}

.auth-panel,
.profile-details {
  border-color: var(--line);
  background: var(--panel-translucent);
  box-shadow: var(--strong-shadow);
}

.auth-tabs,
.profile-row {
  border-color: var(--line);
}

.auth-tabs button,
.auth-form label {
  color: var(--muted);
}

.auth-tabs button.active {
  border-bottom-color: var(--chart-blue-soft);
  color: var(--text);
}

.auth-form input {
  border-color: var(--control-line);
  background: var(--field-bg);
}

.auth-text-button {
  color: var(--chart-blue-soft);
}

.auth-message {
  border-color: var(--info-line);
  background: var(--info-bg);
  color: var(--info-text);
}

.auth-message[data-tone="success"] {
  border-color: var(--success-message-line);
  background: var(--success-message-bg);
  color: var(--success-message-text);
}

.auth-message[data-tone="error"] {
  border-color: var(--error-message-line);
  background: var(--error-message-bg);
  color: var(--error-message-text);
}

.home-hero .eyebrow,
.home-proof span,
.fund-card span,
.subscription-kicker,
.subscription-plan-heading span,
.subscription-price-details small,
.subscription-dashboard-top span,
.subscription-faq-list summary::after {
  color: var(--chart-blue-soft);
}

.home-lead,
.home-dashboard-toolbar strong,
.home-dashboard-row strong,
.fund-card,
.fund-card small b,
.subscription-faq-list summary,
.subscription-market select {
  color: var(--text);
}

.home-sublead,
.home-dashboard-status,
.home-dashboard-head,
.home-proof p,
.home-disclaimer p,
.fund-card small,
.subscription-lead,
.subscription-hero-price small,
.subscription-proofline,
.subscription-offer-copy > p:not(.subscription-kicker),
.subscription-section-heading > p:last-child,
.subscription-faq-heading + p,
.subscription-market label,
.subscription-price span,
.subscription-tax-note,
.subscription-inclusions li,
.subscription-plan-footnote,
.subscription-dashboard-top small,
.subscription-dashboard-row.header,
.subscription-benefit-grid p,
.subscription-faq-list details p {
  color: var(--muted);
}

.home-showcase,
.subscription-offer {
  background: var(--blue-band);
}

.home-showcase-intro p:last-child,
.home-funds-heading > p:last-child {
  color: var(--blue-band-text);
}

.home-dashboard,
.fund-card,
.subscription-plan,
.subscription-dashboard {
  border-color: var(--line);
  background: var(--panel-solid);
  box-shadow: var(--strong-shadow);
}

.home-dashboard-toolbar,
.home-dashboard-row,
.home-proof,
.home-proof article + article,
.home-disclaimer,
.subscription-proofline span + span,
.subscription-market,
.subscription-price,
.subscription-dashboard-row,
.subscription-benefits,
.subscription-benefit-grid,
.subscription-benefit-grid article + article,
.subscription-faq-list,
.subscription-faq-list details {
  border-color: var(--line);
}

.home-dashboard-row.is-complete,
.subscription-dashboard-row.full {
  background: var(--panel-complete);
}

.home-dashboard-head,
.subscription-dashboard-row.header {
  background: var(--panel-soft);
}

.home-dashboard-row b,
.subscription-dashboard-row > b,
.score,
.rank-pill,
.neutral {
  background: var(--score-bg);
  color: var(--score-text);
}

.home-closing,
.subscription-closing,
.subscription-dashboard-nav {
  background: var(--closing-bg);
  color: var(--closing-text);
}

.home-closing .button.primary,
.subscription-button.light {
  border-color: var(--closing-text);
  background: var(--closing-text);
  color: var(--closing-bg);
}

.performance-meta span,
.count-chip,
.date-nav,
.summary article {
  background: var(--panel-translucent);
}

.annual-chart {
  background: var(--chart-gradient);
  box-shadow: var(--subtle-shadow);
}

.chart-grid {
  stroke: color-mix(in srgb, var(--muted) 22%, transparent);
}

.chart-zero {
  stroke: color-mix(in srgb, var(--text) 36%, transparent);
}

.chart-dot,
.chart-year.active ~ .chart-series .chart-dot,
.chart-year:hover ~ .chart-series .chart-dot,
.chart-year:focus ~ .chart-series .chart-dot {
  fill: var(--paper);
}

.chart-detail-pill.performance {
  color: var(--chart-blue-soft);
}

.chart-detail-pill.securities {
  color: var(--chart-blue-pale);
}

.chart-detail-pill.sp500 {
  color: var(--chart-blue-deep);
}

.calendar-popover,
.calendar-jump select,
.search input,
.segments,
.table-wrap,
.performance-scenarios {
  background: var(--paper);
}

.calendar-popover,
.table-wrap {
  box-shadow: var(--strong-shadow);
}

.calendar-jump select {
  border-color: var(--line);
}

.calendar-day {
  color: var(--text);
}

.calendar-day.has-data,
tbody tr.full {
  background: var(--calendar-data);
}

.calendar-day.has-data:hover {
  background: var(--calendar-data-hover);
}

.calendar-day.no-data {
  background: var(--calendar-empty);
  color: var(--muted);
}

.calendar-day.no-data.market-holiday {
  background: var(--calendar-holiday);
  color: var(--muted);
}

.calendar-day.selected,
.segments button.active,
.performance-scenarios button.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

th {
  background: var(--table-head);
}

.table-wrap {
  box-shadow: var(--subtle-shadow);
}

.subscription-plan {
  border-top-color: var(--chart-blue-soft);
}

.subscription-plan-heading small,
.subscription-market select {
  border-color: var(--line);
  background: var(--panel-soft);
}

.subscription-inclusions li::before {
  background: var(--chart-blue-bg);
  color: var(--chart-blue-soft);
}

.subscription-dashboard-nav span + span {
  border-color: color-mix(in srgb, var(--closing-text) 18%, transparent);
}

.subscription-closing > p:not(.subscription-kicker) {
  color: color-mix(in srgb, var(--closing-text) 72%, transparent);
}

body,
.site-nav::before,
.theme-menu,
.auth-panel,
.profile-details,
.home-showcase,
.home-dashboard,
.fund-card,
.home-closing,
.annual-chart,
.calendar-popover,
.summary article,
.table-wrap,
.subscription-offer,
.subscription-plan,
.subscription-dashboard,
.subscription-closing {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-nav::before,
  .theme-menu,
  .auth-panel,
  .profile-details,
  .home-showcase,
  .home-dashboard,
  .fund-card,
  .home-closing,
  .annual-chart,
  .calendar-popover,
  .summary article,
  .table-wrap,
  .subscription-offer,
  .subscription-plan,
  .subscription-dashboard,
  .subscription-closing {
    transition: none;
  }
}

@media (max-width: 760px) {
  .theme-button {
    width: 30px;
    height: 30px;
  }

  .theme-menu {
    right: -106px;
  }

  .home-proof article + article,
  .subscription-benefit-grid article + article {
    border-color: var(--line);
  }
}

/* Public strategy pages */
.strategy-public-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0 28px;
}

.strategy-public-header .eyebrow {
  margin-bottom: 10px;
}

.strategy-public-header > div {
  min-width: 0;
}

.strategy-public-lead {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.42;
}

.strategy-public-updated {
  flex: 0 0 auto;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.strategy-public-header + .performance-summary {
  border-top: 0;
  margin-top: 0;
}

.strategy-public-cta {
  flex: 0 0 auto;
}

html.subscriber-active [data-hide-for-subscriber] {
  display: none;
}

html.signed-in [data-visitor-only] {
  display: none !important;
}

.subscriber-preview {
  display: none;
}

html.access-preview .subscriber-preview {
  display: block;
}

html.access-preview .subscriber-only {
  display: none !important;
}

.access-preview-page {
  padding: 72px 0 96px;
}

.access-preview-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 44px;
}

.access-preview-header h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.access-preview-header > div:first-child > p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.access-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.access-preview-dashboard {
  max-width: none;
  margin: 0;
}

.portfolio-preview-stage {
  max-width: 880px;
  margin: 0 auto;
}

.portfolio-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.portfolio-preview-toolbar > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.portfolio-preview-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-solid);
}

.portfolio-preview-switch button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

.portfolio-preview-switch button:last-child {
  border-right: 0;
}

.portfolio-preview-switch button.active {
  background: var(--chart-blue-bg);
  color: var(--chart-blue-deep);
}

.portfolio-preview-panel[hidden] {
  display: none;
}

.portfolio-preview-panel .locked-portfolio-preview {
  box-shadow: var(--subtle-shadow);
}

.portfolio-preview-panel .portfolio-preview-live,
.portfolio-preview-panel .portfolio-live-section {
  margin-top: 0;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--chart-blue-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-gate {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 72px;
  background: var(--blue-band);
  margin: 72px calc(50% - 50vw) 0;
  padding: 76px max(24px, calc((100vw - 1160px) / 2));
}

.portfolio-gate-copy h2 {
  max-width: 520px;
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 1.02;
}

.portfolio-gate-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--blue-band-text);
  font-size: 1rem;
  line-height: 1.65;
}

.portfolio-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.locked-portfolio-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--strong-shadow);
}

.locked-preview-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}

.locked-preview-head div {
  display: grid;
  gap: 4px;
}

.locked-preview-head span {
  color: var(--chart-blue-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.locked-preview-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.locked-preview-head b {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0 10px;
}

.locked-preview-columns,
.locked-preview-row {
  display: grid;
  grid-template-columns: minmax(62px, 0.65fr) minmax(110px, 1fr) minmax(110px, 1fr) minmax(82px, 0.72fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}

.locked-preview-columns {
  min-height: 42px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.locked-preview-row {
  min-height: 66px;
}

.locked-preview-row > strong {
  font-size: 0.9rem;
}

.locked-preview-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.locked-preview-row > span b {
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
}

.locked-preview-row > span small {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.locked-preview-row > em {
  justify-self: start;
  border-radius: 999px;
  background: var(--score-bg);
  color: var(--score-text);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  padding: 6px 8px;
  white-space: nowrap;
}

.locked-portfolio-preview > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 18px 22px 20px;
}

.performance-disclaimer {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Subscriber portfolios */
.portfolio-shell {
  padding-bottom: 64px;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 30px;
}

.portfolio-header h1 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
}

.portfolio-header > div > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.portfolio-generated {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.portfolio-strategies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  margin-top: 24px;
}

.portfolio-strategies button {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 20px;
}

.portfolio-strategies button:last-child {
  border-right: 0;
}

.portfolio-strategies button span {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.portfolio-strategies button small {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.portfolio-strategies button.active {
  background: var(--chart-blue-bg);
  color: var(--text);
  box-shadow: inset 0 3px 0 var(--chart-blue-soft);
}

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.portfolio-summary article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-translucent);
  padding: 16px;
}

.portfolio-summary article > span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 600;
}

.portfolio-summary article > span.positive,
.portfolio-summary article > span.negative,
.portfolio-summary article > span.neutral {
  background: transparent;
  color: var(--text);
}

.portfolio-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.portfolio-section {
  margin-top: 50px;
}

.portfolio-section-heading,
.portfolio-history-heading {
  align-items: flex-end;
}

.portfolio-table-wrap {
  box-shadow: var(--subtle-shadow);
}

.portfolio-position-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.portfolio-position-label .ticker {
  font-size: inherit;
}

.portfolio-new-badge {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid var(--info-line);
  border-radius: 4px;
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.portfolio-new-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.portfolio-table {
  min-width: 0;
  table-layout: fixed;
}

.portfolio-history-table {
  min-width: 0;
}

.portfolio-table th,
.portfolio-table td {
  padding-right: 8px;
  padding-left: 8px;
}

.portfolio-table th {
  font-size: 0.7rem;
}

.portfolio-table .sort-button {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.portfolio-table .sort-button::after {
  min-width: 8px;
}

.portfolio-table th:nth-child(1) {
  width: 10%;
}

.portfolio-table th:nth-child(2),
.portfolio-table th:nth-child(3) {
  width: 19%;
}

.portfolio-table th:nth-child(4) {
  width: 15%;
}

.portfolio-table th:nth-child(5) {
  width: 21%;
}

.portfolio-table th:nth-child(6) {
  width: 16%;
}

.portfolio-history-table th:nth-child(1) {
  width: 9%;
}

.portfolio-history-table th:nth-child(2) {
  width: 13%;
}

.portfolio-history-table th:nth-child(3) {
  width: 14%;
}

.portfolio-history-table th:nth-child(4) {
  width: 17%;
}

.portfolio-history-table th:nth-child(5) {
  width: 13%;
}

.portfolio-history-table th:nth-child(6) {
  width: 19%;
}

.portfolio-history-table th:nth-child(7) {
  width: 15%;
}

.portfolio-table td {
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.portfolio-table td small,
.portfolio-table .table-primary {
  display: block;
}

.portfolio-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.positive-text {
  color: var(--green);
  font-weight: 750;
}

.negative-text {
  color: var(--red);
  font-weight: 750;
}

.neutral-text {
  color: var(--muted);
  font-weight: 750;
}

.portfolio-year-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.portfolio-year-control select {
  min-width: 102px;
  height: 38px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  padding: 0 30px 0 11px;
}

.portfolio-audit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.portfolio-audit article {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 18px 4px 4px;
}

.portfolio-audit article span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-audit article strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  overflow-wrap: anywhere;
}

.portfolio-audit article strong.positive,
.portfolio-audit article strong.negative,
.portfolio-audit article strong.neutral {
  background: transparent;
  color: var(--text);
}

.portfolio-audit-formula {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  border: 1px solid var(--info-line);
  border-radius: 7px;
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 0.86rem;
  font-weight: 750;
  padding: 13px 15px;
}

.portfolio-accounting-note {
  max-width: 900px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .portfolio-gate {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

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

  .performance-summary article:nth-child(3) {
    border-left: 0;
  }

  .performance-summary article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .strategy-public-header,
  .portfolio-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .strategy-public-header {
    gap: 12px;
  }

  .strategy-public-updated {
    margin-bottom: 0;
    text-align: left;
    white-space: normal;
  }

  .strategy-public-cta {
    width: 100%;
  }

  .access-preview-page {
    padding: 48px 0 64px;
  }

  .access-preview-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    margin-bottom: 30px;
  }

  .access-preview-header h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  .access-preview-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .access-preview-actions .button {
    flex: 1 1 150px;
  }

  .portfolio-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-preview-switch {
    width: 100%;
  }

  .portfolio-preview-switch button {
    flex: 1;
  }

  .performance-hero {
    min-height: 0;
    padding: 20px 0;
  }

  .chart-heading,
  .portfolio-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-legend {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .chart-controls {
    width: 100%;
    align-items: flex-start;
  }

  .chart-toggle {
    min-height: 32px;
    font-size: 0.75rem;
    padding: 0 8px;
  }

  .portfolio-gate {
    margin-top: 52px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .portfolio-gate-actions .button {
    width: 100%;
  }

  .locked-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .locked-preview-columns,
  .locked-preview-row {
    grid-template-columns: minmax(44px, 0.55fr) minmax(76px, 1fr) minmax(76px, 1fr) minmax(66px, 0.72fr);
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .locked-preview-row > span b,
  .locked-preview-row > em {
    font-size: 0.72rem;
  }

  .locked-preview-row > span small {
    font-size: 0.62rem;
  }

  .portfolio-strategies {
    grid-template-columns: 1fr;
  }

  .portfolio-strategies button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-strategies button:last-child {
    border-bottom: 0;
  }

  .portfolio-audit {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-summary {
    grid-template-columns: 1fr;
  }

  .portfolio-generated {
    white-space: normal;
  }

  .portfolio-table {
    min-width: 720px;
    table-layout: auto;
  }

  .portfolio-history-table {
    min-width: 800px;
  }

  .portfolio-table th {
    width: auto;
  }

  .nav-links a {
    font-size: 0.74rem;
    padding: 0 4px;
  }
}

@media (max-width: 430px) {
  .portfolio-summary,
  .portfolio-audit {
    grid-template-columns: 1fr;
  }

  .portfolio-audit-formula {
    grid-column: 1;
  }
}

/* Homepage refinements */
.home-learn-more {
  border-color: var(--control-line);
  background: transparent;
  color: var(--text);
  padding-right: 18px;
  padding-left: 18px;
}

.home-hero .home-actions {
  align-items: center;
  gap: 16px;
}

.home-learn-more:hover {
  border-color: var(--text);
  background: transparent;
  text-decoration: none;
}

.home-learn-more:focus-visible {
  outline: 2px solid var(--chart-blue-soft);
  outline-offset: 3px;
}

.fund-card-metric {
  display: grid;
  gap: 10px;
}

.fund-card-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

@media (max-width: 760px) {
  .home-hero .home-actions {
    display: flex;
  }
}

/* Strategy portfolio snapshots */
.performance-hero {
  min-height: 0;
  justify-content: flex-end;
  border-top: 0;
  padding: 14px 0 4px;
}

.performance-meta {
  width: 100%;
  justify-content: flex-end;
  gap: 12px;
}

.performance-meta #performance-rule {
  display: none;
}

.performance-meta span {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
}

.portfolio-gate-live {
  display: block;
}

.portfolio-gate-live .portfolio-gate-copy {
  max-width: 780px;
}

.portfolio-live-preview {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--strong-shadow);
  padding: 28px;
}

.portfolio-live-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.portfolio-live-preview-header .eyebrow {
  margin: 0 0 7px;
}

.portfolio-live-preview-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.portfolio-live-preview-header > div > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-live-tabs {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  margin-top: 24px;
}

.portfolio-live-tab {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  padding: 0 20px;
}

.portfolio-live-tab + .portfolio-live-tab {
  border-left: 1px solid var(--line);
}

.portfolio-live-tab span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.portfolio-live-tab small {
  font-size: 0.76rem;
  font-weight: 800;
}

.portfolio-live-tab.active {
  background: var(--chart-blue-bg);
  color: var(--text);
  box-shadow: inset 0 3px 0 var(--chart-blue-soft);
}

.portfolio-live-summary article {
  background: var(--panel-solid);
}

.portfolio-live-section {
  margin-top: 36px;
}

.portfolio-live-section h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.portfolio-live-preview .performance-disclaimer {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .portfolio-live-preview {
    margin-top: 34px;
    padding: 20px 12px;
  }

  .portfolio-live-preview-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .portfolio-live-tabs {
    grid-template-columns: 1fr;
  }

  .portfolio-live-tab + .portfolio-live-tab {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .portfolio-live-section .portfolio-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* About page and shared FAQ/footer */
.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-top: 52px;
  gap: 20px 24px;
  padding: 24px 0;
}

.footer-content {
  display: contents;
}

.footer-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
}

.footer-language {
  position: relative;
  color: var(--muted);
}

.footer-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--control-line);
  border-radius: 9px;
  padding: 8px 12px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.footer-language-toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.footer-language-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.footer-language-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 156px;
  padding: 6px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.footer-language-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.footer-language-menu button[aria-checked="true"]::after {
  content: '✓';
}

.footer-language-menu button:hover {
  box-shadow: inset 0 0 0 1px var(--control-line);
}

.footer-language-toggle:focus-visible,
.footer-language-menu button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.footer-language-toggle:disabled {
  cursor: wait;
  opacity: 0.6;
}

.footer-language-status {
  grid-column: 1 / -1;
  display: block;
  font-size: 0.8rem;
  max-width: 100%;
  text-align: right;
}

.footer-language-status[hidden],
.footer-language-menu[hidden] {
  display: none;
}

.site-footer .footer-content p {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  text-align: left;
  font-weight: 500;
  line-height: 1.65;
}

.site-footer .footer-links .footer-link {
  margin-bottom: 0;
}

@media (max-width: 400px) {
  .site-footer { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer-links { grid-column: 1; justify-content: flex-start; }
  .footer-language-status { text-align: left; }
}

.home-disclaimer .footer-link {
  display: inline-block;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 6px;
}

.home-disclaimer .footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-faq {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

.home-faq .subscription-faq-heading > p:not(.subscription-kicker),
.about-faq .subscription-faq-heading > p:not(.subscription-kicker) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.65;
}

.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  margin-top: 26px;
}

.faq-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-more span {
  color: var(--chart-blue-soft);
  font-size: 1.15rem;
}

.about-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 64px 0 88px;
}

.about-hero h1 {
  max-width: 920px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.about-lead {
  max-width: 760px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
}

.about-story,
.about-author {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(480px, 1.28fr);
  gap: 86px;
  padding: 104px 0;
}

.about-section-heading h2,
.about-method h2 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.8vw, 4.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.about-prose {
  max-width: 720px;
}

.about-prose p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.82;
}

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

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-principles article {
  padding: 46px 34px 50px;
}

.about-principles article:first-child {
  padding-left: 0;
}

.about-principles article:last-child {
  padding-right: 0;
}

.about-principles article + article {
  border-left: 1px solid var(--line);
}

.about-principles span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.about-principles h2 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
}

.about-principles p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.7;
}

.about-method {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(500px, 1.1fr);
  align-items: start;
  gap: 86px;
  background: var(--blue-band);
  margin: 104px calc(50% - 50vw) 0;
  padding: 100px max(24px, calc((100vw - 1040px) / 2));
}

.about-method-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--blue-band-text);
  font-size: 0.96rem;
  font-weight: 550;
  line-height: 1.75;
}

.about-method-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-method-rules article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: 5px solid var(--chart-blue-soft);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--subtle-shadow);
  padding: 28px;
}

.about-method-rules article > span {
  color: var(--chart-blue-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-method-rules article > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  white-space: nowrap;
}

.about-method-rules article > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
}

.about-method-note {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--blue-band-text);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.62;
}

.about-author {
  border-bottom: 1px solid var(--line);
}

.about-author blockquote {
  margin: 34px 0 0;
  border-left: 3px solid var(--chart-blue-soft);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.45;
  padding-left: 24px;
}

.about-prose .about-location {
  color: var(--text);
  font-weight: 750;
}

.about-faq {
  padding-bottom: 88px;
}

.about-reference {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(480px, 1.68fr);
  gap: 48px;
  border: 1px solid var(--info-line);
  border-radius: 8px;
  background: var(--info-bg);
  color: var(--info-text);
  padding: 28px 30px;
}

.about-reference strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.about-reference p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.65;
}

.about-reference a {
  color: inherit;
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .about-story,
  .about-author,
  .about-method {
    grid-template-columns: 1fr;
  }

  .about-story,
  .about-author {
    gap: 46px;
  }

  .about-method {
    gap: 54px;
  }
}

@media (max-width: 760px) {
  .home-faq {
    padding: 72px 0;
  }

  .about-hero {
    min-height: auto;
    padding: 72px 0 82px;
  }

  .about-hero h1 {
    font-size: 3.35rem;
  }

  .about-lead {
    font-size: 1rem;
  }

  .about-story,
  .about-author {
    padding: 76px 0;
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  .about-principles article,
  .about-principles article:first-child,
  .about-principles article:last-child {
    padding: 34px 0;
  }

  .about-principles article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-method {
    margin-top: 76px;
    padding: 72px 20px;
  }

  .about-method-rules {
    grid-template-columns: 1fr;
  }

  .about-method-rules article {
    min-height: 205px;
  }

  .about-author blockquote {
    font-size: 1.18rem;
  }

  .about-faq {
    padding-bottom: 70px;
  }

  .about-reference {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 22px;
  }
}

/* Keep the complete navigation on one line on compact tablets and wide phones. */
@media (min-width: 621px) and (max-width: 900px) {
  .site-nav {
    min-height: 52px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 52px;
    gap: 8px;
  }

  .site-nav strong,
  .site-brand {
    font-size: 1.55rem;
  }

  .nav-links {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-self: center;
    overflow: visible;
  }

  .nav-links a {
    min-height: 32px;
    padding: 0 5px;
    font-size: 0.74rem;
  }

  .nav-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .nav-login,
  .nav-subscribe {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.72rem;
  }
}
