/* User-supplied walnut, metallic gold and champagne palette, shared site-wide. */
:root {
  --ivory: #fcfcfa;
  --ivory-deep: #f4e8cf;
  --white: #ffffff;
  --charcoal: #30211d;
  --charcoal-light: #30211d;
  --gold: #d6a544;
  --champagne: #d8c39a;
  --border: #d8c39a;
  --border-strong: #d8c39a;
  --ink: #17232a;
  --text: #17232a;
  --muted: #665a54;
  --muted-readable: #665a54;
  --placeholder: #665a54;
  --rule: #d8c39a;
  --bg: #fcfcfa;
  --bg-soft: #f4e8cf;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --accent: #30211d;
  --accent-strong: #30211d;
  --accent2: #d6a544;
  --accent3: #30211d;
  --bronze: #30211d;
  --focus: #30211d;
  --header-surface: #30211d;
  --footer-surface: #30211d;
  --brand-field: #30211d;
  --brand-field-strong: #30211d;
  --nav-gradient: #30211d;
  --isg-legacy-teal: #30211d;
  --isg-legacy-deep: #30211d;
  --isg-legacy-cyan: #d8c39a;
  --isg-legacy-light: #f4e8cf;
  --isg-legacy-silver: #f4e8cf;
  --whatsapp: #16c95d;
  --gold-surface: var(--gold);
  --dark-surface: #30211d;
  --menu-icon-gold: brightness(0) saturate(100%) invert(77%) sepia(25%) saturate(1000%) hue-rotate(355deg) brightness(90%) contrast(89%);
  --menu-icon-champagne: brightness(0) saturate(100%) invert(83%) sepia(21%) saturate(421%) hue-rotate(359deg) brightness(94%) contrast(87%);
  --menu-icon-bronze: brightness(0) saturate(100%) invert(31%) sepia(56%) saturate(741%) hue-rotate(0deg) brightness(94%) contrast(96%);
}
html, body { background: var(--ivory); }
.app-topbar, .app-topbar.is-scrolled {
  background: var(--dark-surface) !important;
  border-bottom: 0;
  box-shadow: none;
  grid-template-rows: 88px;
}
.app-topbar .ticker { display: none; }
.topbar-wordmark .board-wordmark img { width: 260px; max-width: 24vw; }
.app-topbar .topbar-nav-slot .ma-menu .glyph .nav-svg,
.app-sidebar .ma-navigation .ma-menu :is(.ma-menu-link, .ma-menu-trigger) .glyph .nav-svg,
.app-topbar .topbar-actions .ma-menu-link .glyph .nav-svg,
.app-footer .footer-acc .acc-body a .foot-menu-svg {
  filter: var(--menu-icon-gold);
  animation: none;
}
.app-topbar .topbar-nav-slot .ma-submenu .glyph .nav-svg { filter: var(--menu-icon-bronze); }
.app-topbar .topbar-nav-slot .ma-submenu .ma-menu-link[aria-current=page],
.app-topbar .topbar-nav-slot .ma-submenu .ma-menu-link:hover,
.app-topbar .topbar-nav-slot .ma-submenu .ma-menu-link:focus-visible {
  background: var(--ivory-deep);
  color: var(--text);
}
.app-topbar .topbar-actions .pill-btn .button-svg { filter: brightness(0); }
.topbar-actions .pill-btn.accent,
.btn.primary,
.home-slide .btn.primary {
  background: var(--gold-surface);
  border-color: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
}
.btn.primary:hover, .home-slide .btn.primary:hover { background: var(--champagne); color: var(--charcoal); }
.page-head, .bank-head, .data-table th, .tds-table th,
.choice-tds-table th, .choice-tds-heading, .trend-levels th {
  background: var(--ivory-deep);
  color: var(--charcoal);
  border-color: var(--border);
}
.app-content { border: 1px solid var(--border); border-radius: 12px; }
.page-head { border-radius: 11px 11px 0 0; }
.glass, .bank-card, .message-card, .kyc-form fieldset, .kyc-review { border-color: var(--border); }
.home-slider, .app-footer, .app-sidebar { background: var(--dark-surface); }
.app-footer { border-top-color: var(--gold); }
.footer-bottom { background: var(--dark-surface); }
.home-section-nav { top: 88px; }
.isg-mobile-nav { background: var(--dark-surface); }
.isg-mobile-nav a, .isg-mobile-nav button { color: var(--champagne); }
.isg-mobile-nav img { filter: var(--menu-icon-champagne); }
.isg-mobile-nav a[aria-current=page] img { filter: var(--menu-icon-gold); }
.isg-mobile-nav a[aria-current=page] { color: var(--gold); }
.isg-mobile-nav a[aria-current=page]::after { display: block; background: var(--gold); }
.isg-mobile-nav button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.isg-live-page .app-main {
  position: relative;
  isolation: isolate;
  background: var(--ivory);
}
.isg-live-page .rates-page.container {
  flex: 1 0 auto;
  max-width: 970px;
  width: calc(100% - 48px);
  margin: 20px auto 28px;
  padding: 0;
}
.isg-live-board .market-grid.row { gap: 10px; margin-bottom: 10px; }
.isg-live-board .market-card {
  min-height: 112px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: none;
  text-align: center;
}
.isg-live-board .market-content { flex: 1; width: 100%; min-width: 0; }
.isg-live-board .market-name {
  margin: 0 0 12px;
  min-height: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}
.isg-live-board .market-unit { display: none; }
/* Spot numbers stay pure white, including when prices change. */
.isg-live-board .market-value {
  margin: 0;
  padding: 2px 0;
  color: #fff;
  font-size: 34px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.isg-live-board .market-image, .isg-live-board .product-image { display: none; }
.isg-live-board .rates-table-wrap.table-responsive {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.isg-live-board .rates-table.table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 9px;
  margin: -9px 0 0;
  background: transparent;
}
.isg-live-board .product-col { width: 48%; }
.isg-live-board .price-col { width: 26%; }
.isg-live-board .rates-table thead { background: var(--ivory-deep); }
.isg-live-board .rates-table.table thead th {
  height: 52px;
  padding: 0 22px;
  background: transparent;
  border: 0;
  color: var(--charcoal);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}
.isg-live-board .rates-table thead th:first-child { border-radius: 7px 0 0 7px; }
.isg-live-board .rates-table thead th:last-child { border-radius: 0 7px 7px 0; }
.isg-live-board .rates-table.table thead th.numeric { text-align: center; }
.isg-live-board .currency-symbol { display: none; }
.isg-live-board .rates-table tbody tr { background: transparent; }
.isg-live-board .rates-table.table tbody th,
.isg-live-board .rates-table.table tbody td {
  height: 82px;
  padding: 0 22px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.isg-live-board .rates-table.table tbody tr:last-child > * { border-bottom: 1px solid var(--border); }
.isg-live-board .rates-table tbody th:first-child { border-left: 1px solid var(--border); border-radius: 8px 0 0 8px; }
.isg-live-board .rates-table tbody td:last-child { border-right: 1px solid var(--border); border-radius: 0 8px 8px 0; }
.isg-live-board .rates-table tbody tr:hover > * { background: var(--white); }
.isg-live-board .product { gap: 0; }
.isg-live-board .product-name { font-size: 19px; font-weight: 800; line-height: 1.35; }
.isg-live-board .product-unit { margin-top: 3px; color: var(--muted); font-size: 10px; }
.isg-live-board .price { text-align: center; font-size: 28px; font-weight: 750; }
.isg-live-board .rates-table .price-link { justify-content: center; }
.isg-live-board .data-note { margin: 4px 2px 0; font-size: 11px; }
.isg-live-board .data-note .sample-label { color: var(--muted); }
.isg-live-page.nav-open .isg-mobile-nav { visibility: hidden; }
.login-page #loginStatus { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.login-page #loginStatus:not(:empty) { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--ivory-deep); }
.login-page #loginOtpCard { scroll-margin-top: 120px; scroll-margin-bottom: 88px; }
/* Compact desktop rate board, with comfortable 44px price targets. */
@media (min-width: 901px) {
  .isg-live-page .app-main { background: var(--ivory); }
  .isg-live-page .rates-page.container { margin: 12px auto 16px; }
  .isg-live-board .market-grid.row { margin-bottom: 8px; }
  .isg-live-board .market-card { min-height: 88px; padding: 10px 12px; }
  .isg-live-board .market-name { margin-bottom: 6px; font-size: 14px; }
  .isg-live-board .market-value { padding: 0; font-size: 28px; }
  .isg-live-board .rates-table.table { border-spacing: 0 6px; margin-top: -6px; }
  .isg-live-board .rates-table.table thead th { height: 36px; padding: 0 16px; font-size: 14px; font-weight: 700; }
  .isg-live-board .rates-table.table tbody th,
  .isg-live-board .rates-table.table tbody td { height: 54px; padding: 0 16px; }
  .isg-live-board .product-name { font-size: 16px; font-weight: 650; }
  .isg-live-board .product-unit { margin-top: 2px; }
  .isg-live-board .price { font-size: 24px; font-weight: 700; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .topbar-wordmark .board-wordmark img { width: 200px; max-width: none; }
}
@media (max-width: 900px) {
  body { padding-bottom: 0; }
  .app-topbar, .app-topbar.is-scrolled { grid-template-rows: 94px; }
  .topbar-wordmark .board-wordmark img { width: min(340px, 53vw); max-width: none; }
  .topbar-toggle { width: 40px; height: 44px; }
  .topbar-toggle span, .topbar-toggle span::before, .topbar-toggle span::after { width: 25px; height: 3px; border-radius: 2px; }
  .isg-notifications { height: 44px; }
  .isg-notifications svg { width: 28px; height: 28px; }
  .home-section-nav { top: 94px; }
  .isg-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
  }
  .isg-mobile-nav a, .isg-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 5px;
    font-size: clamp(9px, 2.7vw, 13px);
    text-decoration: none;
    line-height: 1.3;
  }
  .isg-mobile-nav > * + * { border-left: 1px solid var(--border); }
  .isg-mobile-nav img { width: 27px; height: 27px; }
}
@media (max-width: 767px) {
  .isg-live-page .app-main { background: var(--ivory); }
  .isg-live-page .rates-page.container { width: calc(100% - 20px); margin: 11px auto 20px; }
  .isg-live-board .market-grid.row { gap: 4px; margin: 0 2px 8px; }
  .isg-live-board .market-card { min-height: 68px; padding: 8px 4px; border-radius: 7px; }
  .isg-live-board .market-name { display: block; min-height: 0; margin-bottom: 7px; font-size: clamp(10px, 3.1vw, 16px); }
  .isg-live-board .market-value { font-size: clamp(19px, 5.6vw, 30px); }
  .isg-live-board .rates-table.table { border-spacing: 0 6px; margin-top: -6px; }
  .isg-live-board .rates-table.table thead th { height: 35px; padding: 0 11px; font-size: clamp(13px, 4vw, 20px); }
  .isg-live-board .rates-table.table tbody th,
  .isg-live-board .rates-table.table tbody td { height: 62px; padding: 0 8px; }
  .isg-live-board .rates-table.table tbody th { padding-left: 11px; }
  .isg-live-board .product-name { font-size: clamp(11px, 3.5vw, 17px); }
  .isg-live-board .price { font-size: clamp(16px, 4.8vw, 24px); }
  .isg-live-board .product-unit { font-size: 9px; }
  .isg-live-board .data-note { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .isg-live-board .rates-table tbody tr { transition: none; }
}

/* Shared content surfaces, including tools, account pages and announcements. */
body, body.live-rates-page, .app-main, .home-page { background: var(--ivory); color: var(--text); }
.app-content, .glass, .bank-card, .message-card, .kyc-form fieldset, .kyc-review { background: var(--white); color: var(--text); }
.page-head h1, .page-head p, .bank-head strong { color: var(--charcoal); }
.panel-title, .isg-live-board .product-name, .isg-live-board .price,
.choice-row-amount, .choice-total-grid strong, .order-rate-pill.is-neutral { color: var(--text); }
.field input, .field select, .field textarea, .tds-table input, .choice-tds-table input {
  background: var(--white); color: var(--text); border-color: var(--border);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline-color: var(--charcoal); }
.segmented, .verify-note, .feature-note, .tax-summary h2, .futures-board h2,
.choice-total-grid .choice-payable, .choice-tds-table input[readonly], .tds-table input[readonly] {
  background: var(--ivory-deep); color: var(--charcoal); border-color: var(--border);
}
.segmented button.active { background: var(--charcoal); color: var(--white); }
.data-table th, .tds-table th, .choice-tds-table th, .rate-table thead th,
.orders-table thead th:last-child, .trades-table thead th, .commodity-table thead th,
.choice-tds-heading, .trend-levels th, .bank-head {
  background: var(--ivory-deep); color: var(--charcoal); border-color: var(--border);
}
.data-table td, .tds-table td, .choice-tds-table td, .rate-table tbody td,
.orders-table td, .trades-table td, .commodity-table tbody td, .commodity-table tbody th {
  background: var(--white); color: var(--text); border-color: var(--border);
}
.orders-table .order-actions-cell, .orders-table tbody tr:nth-child(even) .order-actions-cell { background: var(--white) !important; }
.bank-rows .row, .tax-summary dl > div, .trend-toolbar, .trend-levels { border-color: var(--border); }
.bank-head small, .choice-tds-table input[readonly], .business-registration dt,
.feed-message, .data-note, .trend-chart-center span, .trend-updated, .trend-note, .trend-status {
  color: var(--muted);
}
.trend-toolbar h2, .trend-chart-center strong, .trend-message, .trend-levels td { color: var(--text); }
.trend-status[data-state=error], .feed-message.feed-error { color: var(--down, #951f24); }
.app-footer, .app-sidebar, .home-slider { background: var(--dark-surface); }
.footer-bottom { border-color: var(--border); color: var(--champagne); }
.footer-brand-col p, .footer-acc .acc-body, .footer-acc .acc-body a,
.footer-acc summary, .registration-line strong { color: var(--champagne); }
.footer-acc, .app-footer { border-color: var(--border); }
.app-footer .footer-acc .acc-body a .foot-menu-svg { filter: var(--menu-icon-champagne); }
.footer-acc .acc-body a:hover, .footer-acc .acc-body a:focus-visible { color: var(--gold); }
.topbar-nav-slot .ma-menu-link:hover, .topbar-nav-slot .ma-menu-trigger:hover,
.topbar-nav-slot .ma-menu-trigger[aria-expanded=true], .topbar-nav-slot .ma-menu-link[aria-current=page],
.topbar-nav-slot .ma-menu-trigger.is-current, .app-sidebar .ma-menu-link[aria-current=page], .app-sidebar .ma-menu-trigger.is-current {
  background: var(--ivory-deep); color: var(--charcoal);
}
.app-topbar .topbar-actions .ma-menu-link { background: var(--charcoal); color: var(--white); border-color: var(--border); }
.app-topbar .topbar-actions .ma-menu-link:hover { background: var(--ivory-deep); color: var(--charcoal); }
.app-topbar .topbar-actions .pill-btn { border-color: var(--gold); }
.isg-mobile-nav .isg-nav-icon { display: block; width: 27px; height: 27px; background: currentColor; -webkit-mask: var(--isg-icon) center / contain no-repeat; mask: var(--isg-icon) center / contain no-repeat; }
.home-page, .home-facts dd, .home-steps h3, .home-steps a, .home-service-links > a { color: var(--text); }
.home-slide h1, .home-slide h2, .home-slide-copy > p:not(.home-script) { color: var(--white); }
.home-section-nav a, .home-service-links small { color: var(--muted); }
.home-section-nav a[aria-current=true] { color: var(--charcoal); box-shadow: 0 2px var(--gold); }
.home-facts, .home-services, .home-service-links > a, .home-steps li { border-color: var(--border); }
.home-slider-controls button { background: var(--charcoal); color: var(--white); border-color: var(--champagne); }
.home-slider-controls button:hover { background: var(--ivory-deep); color: var(--charcoal); }
.isg-contact-actions { position: fixed; right: 20px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.isg-contact-actions a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.isg-call-button, .contact-row:has([data-ma-phone]) .glyph { background: var(--gold); border-color: var(--gold); }
.isg-whatsapp-button, .contact-row:has([data-ma-whatsapp]) .glyph { background: var(--whatsapp); border-color: var(--whatsapp); }
.isg-contact-actions img { width: 26px; height: 26px; }
.isg-call-button img, .contact-row:has([data-ma-phone]) .contact-svg { filter: brightness(0) invert(1); }
.isg-contact-actions a:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
@media (max-width: 900px) { .isg-contact-actions { right: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); } }

/* Larger desktop reading scale; phone and tablet type retains its own sizing. */
@media (min-width: 901px) {
  :root {
    --desktop-shell-width: 1280px;
    --desktop-shell-padding: 24px;
    --desktop-body-size: 18px;
    --desktop-ui-size: 16px;
    --desktop-label-size: 15px;
    --desktop-note-size: 14px;
  }
  body { font-size: var(--desktop-body-size); }
  .app-topbar, .app-topbar.is-scrolled { --header-gutter: max(var(--desktop-shell-padding), calc((100% - var(--desktop-shell-width)) / 2 + var(--desktop-shell-padding))); column-gap: 12px; }
  .topbar-wordmark .board-wordmark img { width: 240px; max-width: 20vw; }
  .app-topbar .topbar-nav-slot .ma-menu-link,
  .app-topbar .topbar-nav-slot .ma-menu-trigger { font-size: var(--desktop-ui-size); line-height: 1.5; gap: 6px; padding-inline: 9px; }
  .app-topbar .topbar-actions .ma-menu-link,
  .app-topbar .topbar-actions .pill-btn { font-size: var(--desktop-label-size); line-height: 1.5; padding: 9px 12px; }
  .app-topbar .ma-submenu { min-width: 240px; }
  .app-topbar .ma-submenu .ma-menu-link { white-space: normal; }
  .app-content { line-height: 1.65; }
  .page-head h1, .copy h1 { font-size: 32px; line-height: 1.3; }
  .page-head p { font-size: var(--desktop-ui-size); line-height: 1.65; }
  .panel-title, .kyc-form legend, .kyc-review h2 { font-size: 22px; line-height: 1.4; }
  .copy h2 { margin: 30px 0 12px; font-size: 24px; line-height: 1.4; }
  .copy p, .copy li { font-size: var(--desktop-body-size); line-height: 1.8; }
  .copy p, .copy ul, .copy ol { max-width: 68ch; }
  .copy li + li { margin-top: 8px; }
  .copy p { margin-bottom: 20px; }
  .field span, .contact-row strong, .business-registration dt,
  .readout .lbl, .content-toolbar-label { font-size: var(--desktop-label-size); line-height: 1.5; }
  .field input, .field select, .field textarea, .tds-table input, .choice-tds-table input, .kyc-form .field span,
  .kyc-form input[type=file], .btn, .segmented button,
  .contact-row a, .contact-row p, .business-registration dd,
  .bank-rows .row, .review-details dd, .toolbar p, .action-status {
    font-size: var(--desktop-ui-size); line-height: 1.6;
  }
  .field-help, .field small, .review-details dt, .consent, .calculation-help {
    font-size: var(--desktop-label-size); line-height: 1.65;
  }
  .content-toolbar .btn, .orders-table .btn { font-size: var(--desktop-label-size); }
  .empty-state, .feed-status, .feature-note, .verify-note,
  .message-card p, .message-card .message-body { font-size: var(--desktop-ui-size); line-height: 1.75; }
  .message-card .meta, .message-card .message-date, .message-card .message-body small { font-size: var(--desktop-note-size); }
  .bank-card .bank-head strong { font-size: 20px; }
  .bank-card .bank-head small { font-size: var(--desktop-note-size); }
  .data-table th, .tds-table th, .choice-tds-table th, .rate-table thead th,
  .orders-table th, .trades-table th, .commodity-table th { font-size: var(--desktop-ui-size); line-height: 1.5; }
  .data-table td, .tds-table td, .choice-tds-table td, .rate-table tbody td,
  .orders-table td, .trades-table td, .commodity-table td { font-size: var(--desktop-ui-size); line-height: 1.6; }
  .data-table small, .tds-table small, .choice-tds-table small, .orders-table small,
  .trades-table small, .commodity-table small { font-size: var(--desktop-note-size); }
  .choice-tds-heading h2 { font-size: 26px; }
  .choice-formula, .choice-total-grid span, .calculation-help, .manual-row-controls .field span { font-size: var(--desktop-label-size); }
  .choice-total-grid strong { font-size: 24px; }
  .choice-total-grid .choice-payable strong { font-size: 28px; }
  .isg-live-board .market-name { font-size: var(--desktop-body-size); }
  .isg-live-board .market-value { font-size: 32px; }
  .isg-live-board .rates-table.table thead th { height: 42px; font-size: var(--desktop-ui-size); }
  .isg-live-board .product-name { font-size: var(--desktop-body-size); }
  .isg-live-board .price { font-size: 28px; }
  .isg-live-board .product-unit { font-size: var(--desktop-note-size); }
  .isg-live-board .data-note, .isg-live-board .data-note .sample-label,
  .feed-message, .isg-live-board .isg-retry, .isg-motion-toggle { font-size: var(--desktop-note-size); line-height: 1.65; }
  .isg-live-page .market-marquee-label, .isg-live-page .market-marquee-pause { font-size: var(--desktop-note-size); }
  .isg-live-page .market-marquee-item { font-size: var(--desktop-ui-size); }
  .isg-live-page .market-message-content { font-size: var(--desktop-body-size); line-height: 1.75; }
  .isg-live-page .market-message-dismiss { font-size: var(--desktop-ui-size); }
  .trend-toolbar h2 { font-size: 22px; }
  .trend-toolbar .btn, .trend-message, .trend-result, .trend-levels { font-size: var(--desktop-ui-size); }
  .trend-levels th { font-size: var(--desktop-ui-size); }
  .trend-levels td:last-child { font-size: 22px; }
  .trend-chart-center span, .trend-updated, .trend-status, .trend-note { font-size: var(--desktop-note-size); line-height: 1.6; }
  .home-section p { font-size: var(--desktop-body-size); }
  .home-slide-copy > p:not(.home-script) { font-size: 20px; }
  .home-section-nav a, .home-text-link, .home-facts dd, .home-steps a,
  .home-service-links small, .home-slider-controls, .home-actions .btn { font-size: var(--desktop-ui-size); }
  .home-facts dt { font-size: var(--desktop-label-size); }
  .footer-grid { max-width: var(--desktop-shell-width); padding: 32px var(--desktop-shell-padding); gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .app-footer .footer-brand-col p, .app-footer .registration-line strong { font-size: var(--desktop-label-size); line-height: 1.8; }
  .app-footer .footer-acc summary { font-size: var(--desktop-body-size); line-height: 1.5; }
  .app-footer .footer-acc .acc-body { grid-template-columns: 1fr; gap: 8px; }
  .app-footer .footer-acc .acc-body, .app-footer .footer-acc .acc-body a { font-size: var(--desktop-ui-size); line-height: 1.6; }
  .app-footer .footer-acc .acc-body a .foot-menu-svg { width: 16px; height: 16px; margin-right: 7px; }
  .app-footer .footer-bottom { padding-block: 14px; font-size: var(--desktop-note-size); line-height: 1.6; }
  .login-page #loginStatus { font-size: var(--desktop-ui-size); }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .app-topbar, .app-topbar.is-scrolled {
    grid-template-areas: 'brand actions' 'navigation navigation';
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 68px 48px;
  }
  .topbar-wordmark .board-wordmark img { width: 220px; max-width: none; }
  .topbar-nav-slot { justify-self: center; }
  .home-section-nav { top: 116px; }
  .footer-grid { gap: 24px; }
}

/* Website footer: visible link groups in normal document flow at every size. */
.app-footer .footer-grid { display: grid; align-items: start; }
.app-footer .footer-grid > * { min-width: 0; }
.app-footer .footer-acc { padding: 0; border: 0; }
.app-footer .footer-heading {
  margin: 0 0 12px;
  padding: 0;
  color: var(--champagne);
  font: 700 18px/1.5 var(--font-ui);
}
.app-footer .footer-acc .acc-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.app-footer .footer-acc .acc-body a { overflow-wrap: anywhere; transform: none; }
.app-footer .footer-acc .acc-body a .foot-menu-svg { display: none; }
.app-footer .footer-brand-col p { max-width: 42ch; overflow-wrap: anywhere; }
.app-footer .footer-bottom { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  .app-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 32px 24px 24px;
  }
  .app-footer .footer-brand-col { grid-column: 1 / -1; margin: 0; }
  .app-footer .footer-brand-col p { font-size: 14px; line-height: 1.7; }
  .app-footer .footer-acc .acc-body { gap: 0; padding: 0; }
  .app-footer .footer-acc .acc-body a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.5;
  }
  .app-footer .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 16px 24px max(16px, env(safe-area-inset-bottom));
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
  }
}
@media (max-width: 600px) {
  .app-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 28px 20px 24px; }
  .app-footer .footer-brand-col .mark-row .board-wordmark img { width: 230px; }
  .app-footer .footer-heading { margin-bottom: 8px; font-size: 18px; }
  .app-footer .footer-acc:last-child { grid-column: 1 / -1; }
  .app-footer .footer-acc:last-child .acc-body { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .app-footer .footer-acc .acc-body a { font-size: 15px; }
  .app-footer .footer-bottom { flex-direction: column; padding-inline: 20px; }
}
