:root {
  color-scheme: light;
  font: 100%/1.5 "Inter", system-ui, sans-serif;
  color: #183936;
  background: #fafbf9;
}
* { box-sizing: border-box; }
body, h1, p, fieldset { margin: 0; }
.portal { display: grid; grid-template-columns: 42% 1fr; min-height: 100vh; min-height: 100svh; }
.brand { position: relative; isolation: isolate; overflow: hidden; background: #103f42; color: #fff; padding: clamp(2rem, 5vw, 5rem); }
.wordmark { font: 2rem/1.1 "Instrument Serif", Georgia, serif; letter-spacing: -.05em; }
.tide {
  position: absolute;
  inset: 22% -45% -45% -70%;
  z-index: -1;
  transform: rotate(-17deg);
  background: repeating-radial-gradient(ellipse at 75% 100%, transparent 0 1.6rem, #6fa89c88 1.64rem 1.7rem, transparent 1.74rem 2.1rem);
}
.access { display: grid; place-items: center; padding: 3rem 1.5rem; }
.panel { width: min(100%, 23rem); }
.context { font-size: .875rem; font-weight: 650; color: #315e57; }
h1 { margin: .5rem 0; font: 3.5rem/1.08 "Instrument Serif", Georgia, serif; letter-spacing: -.055em; }
.error { color: #96342c; }
form { margin-top: 2rem; }
label { display: block; margin-bottom: .4rem; font-size: .9375rem; font-weight: 600; }
input, button { width: 100%; min-height: 3rem; border-radius: .45rem; font: inherit; }
input { padding: .6rem .8rem; border: 1px solid #b7c5bf; background: white; margin-bottom: 1.15rem; }
button { margin-top: .45rem; border: 0; color: white; background: #365c55; font-weight: 650; }
button { cursor: pointer; }
button:hover { background: #284a44; }
:focus-visible { outline: 3px solid #39766b; outline-offset: 3px; }
.workspace { --gutter: clamp(1rem, 5vw, 4rem); }
.workspace-bar { background: #103f42; color: white; }
.bar-inner, .primary-nav, .workspace-main { max-width: 72rem; margin: auto; padding-inline: var(--gutter); }
.bar-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar-inner form, .bar-inner button { margin: 0; }
.bar-inner button { min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid #7faca4; background: transparent; }
.bar-inner button:hover { background: #285954; }
.primary-nav, .research-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.primary-nav a, .research-nav a { display: inline-block; padding: .8rem .125rem; color: #405c56; text-decoration: none; border-bottom: .18rem solid transparent; }
.workspace nav a:hover { color: #173c36; text-decoration: underline; }
.workspace nav a[aria-current] { color: #173c36; border-color: #317569; font-weight: 650; }
.workspace-main { padding-block: clamp(2rem, 6vw, 4rem); }
.workspace-main h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 1rem; }
.research-nav { margin-top: 1.5rem; border-bottom: 1px solid #c9d6d0; }
.research-content { margin-top: 1.5rem; border: 1px solid #c9d6d0; background: white; border-radius: .65rem; padding: clamp(1rem, 3vw, 2rem); }
.research-content h2 { font: 1.875rem/1.2 "Instrument Serif", Georgia, serif; margin: 0 0 .6rem; }
.research-content p { color: #526661; }
.research-content .research-scope { color: #315e57; font-size: .875rem; font-weight: 650; margin: 0 0 .4rem; }
.research-content h3 { font-size: 1.24rem; line-height: 1.3; margin: 1.6rem 0 .4rem; }
.research-content p { max-width: 78ch; }
.research-content p + p { margin-top: .55rem; }
.research-content a { color: #185b50; text-underline-offset: .15em; }
.research-content .sources { font-size: .9rem; }
.sourcing-filters { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.sourcing-filters label { flex: 1 1 10rem; margin: 0; }
.sourcing-filters input, .sourcing-filters select { display: block; width: 100%; margin: .25rem 0 0; min-height: 2.9rem; padding: .5rem; border: 1px solid #b7c5bf; border-radius: .45rem; background: white; font: inherit; }
.sourcing-filters button { width: auto; padding: .5rem 1.4rem; margin: 0; }
.sourcing-count { margin: 1.5rem 0 .6rem; }
.sourcing-record { background: white; border-top: 1px solid #cad7d0; padding: 1rem; overflow-wrap: anywhere; }
.sourcing-record summary { cursor: pointer; }
.sourcing-record summary span { display: block; padding-left: 1.2rem; font-size: .875rem; color: #49645c; }
.sourcing-record p, .sourcing-record li { margin-block: .85rem; max-width: 80ch; }
.sourcing-record h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.sourcing-record dl { margin: 0; }
.sourcing-record dt { font-weight: 600; }
.sourcing-record dd { margin: 0 0 .65rem; max-width: 80ch; }
.workspace-main a { color: #185b50; }
@media (max-width: 44rem) {
  .portal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand { padding: 1.5rem; }
  .tide { inset: -110% -15% -100% 40%; }
  .access { align-items: start; padding-top: clamp(3rem, 10vh, 6rem); }
}

.decision-markets { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.decision-markets a { padding: .45rem .85rem; border: 1px solid #a6bdb4; border-radius: 2rem; text-decoration: none; }
.workspace .decision-markets a[aria-current] { background: #194e49; color: white; }
.research-content .decision-note { margin-block: .8rem; font-size: .94rem; }
.checkout-options, .cash-compare { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: .9rem; margin-block: 1rem; }
.checkout-options article, .cash-compare article { padding: 1rem; border: 1px solid #c4d6cf; border-radius: .55rem; }
.research-content h4 { font-size: 1.16rem; line-height: 1.3; margin: 0 0 .5rem; }
.checkout-options .rate { color: #164d46; font-size: 1.42rem; font-weight: 650; }
.checkout-options dt { font-weight: 650; }
.checkout-options dd { margin: .15rem 0 .85rem; }
.method-row { display: grid; grid-template-columns: 1fr 1.35fr 1.35fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #c4d6cf; }
.cash-path { display: grid; grid-template-columns: repeat(4,1fr); padding: 0; gap: .45rem; list-style: none; }
.cash-path li { background: #edf4f0; border-top: 3px solid #448476; padding: .8rem; }
.cash-path span { display: block; margin-top: .3rem; }
.flow-inputs { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.flow-inputs div { flex: 1 1 10rem; }
.flow-inputs input { margin: 0; }
.flow-inputs button { width: auto; padding-inline: 1rem; }
.flow-inputs .errorlist { color: #96342c; margin: 0; padding-left: 1rem; }
.cash-lines { display: grid; grid-template-columns: 1fr auto; margin: 0; font-variant-numeric: tabular-nums; }
.cash-lines dt, .cash-lines dd { margin: 0; padding-block: .32rem; }
.cash-lines dd { text-align: end; }
.cash-total { border-top: 1px solid #a6bdb4; font-weight: 650; color: #174a43; }
.fee-chart { max-width: 38rem; margin: 1.4rem 0; }
.fee-chart figcaption { font-weight: 650; margin-bottom: .4rem; }
.fee-chart div { display: grid; grid-template-columns: 8.3rem minmax(2rem, 1fr) auto; gap: .5rem; align-items: center; }
.fee-chart meter { width: 100%; height: 1.45rem; }
@media (max-width: 44rem) {
  .method-row { grid-template-columns: 1fr; gap: .4rem; }
  .cash-path { grid-template-columns: 1fr 1fr; }
}
