/* Budget journal — the Design + Build visual language, made for reading. */
.partnership-guide {
  --guide-ink: #1c3033;
  --guide-muted: #506463;
  --guide-line: #cbd2cb;
  background: #f4f5f0;
  color: var(--guide-ink);
  font:
    1rem/1.7 Instrument,
    Arial,
    sans-serif;
  padding: 0;
}
.partnership-guide h1,
.partnership-guide h2,
.partnership-guide h3,
.partnership-guide p,
.partnership-guide figure {
  margin: 0;
}
.partnership-guide h1,
.partnership-guide h2,
.partnership-guide h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.partnership-guide em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
.guide-opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px;
  border-radius: 6px;
  background: #13282e;
  color: #fff;
  --link-hover: #a8dffc;
}
.guide-opening:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #102329e8, #1023299e 52%, #10232926),
    linear-gradient(0deg, #102329b3, transparent 60%);
}
.guide-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  z-index: -2;
  animation: guide-settle 1.5s ease-out both;
}
.guide-opening .stage-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 42px;
  min-height: 100px;
  z-index: 2;
}
.guide-opening .stage-brand {
  color: white;
  flex-shrink: 0;
}
.guide-opening .nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.guide-opening .nav-links a {
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
}
.guide-opening .stage-nav .stage-cta {
  display: inline-block;
  max-width: none;
  font-size: 0.875rem;
  padding: 0;
  border: 0;
  white-space: nowrap;
  text-underline-offset: 5px;
}
.guide-hero-copy {
  max-width: 1100px;
  padding: 70px 6vw 64px;
}
.guide-kicker {
  font:
    0.8125rem/1.6 Plex,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.guide-hero-copy > .guide-kicker {
  color: #d8e4e1;
  margin-bottom: 24px;
}
.guide-hero-copy h1 {
  font-size: clamp(3.5rem, 6.3vw, 6.8rem);
  line-height: 1.07;
  max-width: 1000px;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.guide-hero-copy h1 em {
  display: block;
}
.guide-hero-copy .guide-deck {
  font-size: 1.1875rem;
  line-height: 1.65;
  max-width: 630px;
  color: #e6eeea;
  margin-top: 28px;
}
.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 30px;
  font-size: 1rem;
}
.guide-hero-actions a {
  text-underline-offset: 6px;
  font-weight: 700;
}
.guide-hero-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 6vw;
  padding: 19px 0 24px;
  border-top: 1px solid #ffffff4a;
  color: #e3eae6;
  font-size: 0.8125rem;
}
.guide-wrap {
  width: min(1230px, calc(100% - 112px));
  margin-inline: auto;
}
.guide-breadcrumb {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 0;
  color: var(--guide-muted);
  font-size: 0.875rem;
}
.guide-breadcrumb a {
  text-underline-offset: 4px;
}
.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 800px);
  justify-content: space-between;
  gap: 70px;
  padding: 52px 0 80px;
}
.guide-sidebar {
  align-self: start;
  position: sticky;
  top: 28px;
}
.guide-sidebar .guide-kicker {
  color: #627872;
  margin-bottom: 18px;
}
.guide-toc {
  display: grid;
  border-top: 1px solid var(--guide-line);
}
.guide-toc a {
  padding: 11px 0;
  border-bottom: 1px solid var(--guide-line);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  display: flex;
  gap: 12px;
}
.guide-toc a span {
  font:
    0.75rem/1.9 Plex,
    monospace;
  color: #667d74;
}
.guide-toc a[aria-current] {
  color: #14646d;
  font-weight: 700;
}
.guide-sidebar > .guide-calculator {
  display: block;
  margin-top: 26px;
  font-size: 0.9375rem;
  text-underline-offset: 5px;
}
.guide-main {
  min-width: 0;
}
.guide-main article > section {
  padding: 46px 0;
  border-bottom: 1px solid var(--guide-line);
  scroll-margin-top: 28px;
}
.guide-main article > section:first-child {
  padding-top: 0;
}
.guide-main h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.14;
  margin: 10px 0 25px;
}
.guide-main h3 {
  font-size: 1.4375rem;
  line-height: 1.3;
  margin: 27px 0 12px;
}
.guide-main p,
.guide-main li {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.guide-main p + p {
  margin-top: 18px;
}
.guide-main li {
  padding-left: 5px;
  margin: 10px 0;
}
.guide-main ul,
.guide-main ol {
  padding-left: 23px;
  margin: 20px 0;
}
.guide-main .section-index {
  font:
    0.8125rem/1.5 Plex,
    monospace;
  color: #637971;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-main a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.source-ref {
  font:
    700 0.75rem/1 Instrument,
    Arial,
    sans-serif;
  white-space: nowrap;
  margin-left: 4px;
  vertical-align: super;
  text-decoration: none !important;
  padding: 3px;
  scroll-margin-top: 30px;
}
.guide-key {
  padding: 28px 30px;
  background: #e4ebe5;
  border-left: 3px solid #506e65;
  margin: 25px 0;
}
.guide-key strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 8px;
}
.guide-key p {
  font-size: 1rem;
}
.guide-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 26px 0;
}
.guide-compare > div {
  border-top: 2px solid #45625d;
  padding-top: 18px;
}
.guide-compare h3 {
  margin: 0 0 13px;
  font-size: 1.625rem;
}
.guide-compare p {
  font-size: 1rem;
}
.guide-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 28px 0;
  border: 1px solid var(--guide-line);
}
.guide-table-wrap:focus-visible {
  outline: 3px solid #70b0e5;
  outline-offset: 3px;
}
.guide-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
  line-height: 1.6;
}
.guide-table caption {
  text-align: left;
  padding: 16px 20px;
  background: #e3eae4;
  font-weight: 700;
}
.guide-table th,
.guide-table td {
  text-align: left;
  vertical-align: top;
  padding: 17px 20px;
  border-bottom: 1px solid var(--guide-line);
  min-width: 135px;
}
.guide-table thead {
  background: #e3eae4;
}
.guide-table tbody th {
  font-weight: 700;
  width: 24%;
}
.guide-table tr:last-child > * {
  border-bottom: 0;
}
.guide-table td + td,
.guide-table th + th {
  border-left: 1px solid var(--guide-line);
}
.guide-example {
  background: #1b363a;
  color: #f4f7ef;
  padding: 32px;
  margin: 28px 0;
  --link-hover: #a8dffc;
}
.guide-example .guide-kicker {
  color: #bacdc8;
}
.guide-example h3 {
  color: white;
  margin: 14px 0 18px;
  font-size: 1.75rem;
}
.guide-example p {
  font-size: 1rem;
  color: #dce7e0;
}
.guide-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin: 22px 0;
}
.guide-equation > div {
  display: grid;
  gap: 4px;
}
.guide-equation b {
  font:
    600 2.1rem/1.2 Fraunces,
    Georgia,
    serif;
  letter-spacing: -0.02em;
}
.guide-equation small {
  font-size: 0.8125rem;
  color: #c3d7d0;
}
.guide-example .example-result {
  border-top: 1px solid #688078;
  padding-top: 20px;
  margin-top: 20px;
}
.guide-main .guide-note {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #576d64;
}
.guide-example .guide-note {
  color: #c6d8d0;
}
.guide-checklist {
  list-style: none;
  padding: 0 !important;
}
.guide-checklist li {
  position: relative;
  padding: 16px 0 16px 30px;
  margin: 0;
  border-top: 1px solid var(--guide-line);
}
.guide-checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 17px;
  color: #466d5d;
}
.guide-faq details {
  border-top: 1px solid var(--guide-line);
}
.guide-faq details:last-child {
  border-bottom: 1px solid var(--guide-line);
}
.guide-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 23px 35px 23px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}
.guide-faq summary::-webkit-details-marker {
  display: none;
}
.guide-faq summary:after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 20px;
  font-size: 1.4rem;
  font-weight: 400;
}
.guide-faq details[open] summary:after {
  content: "−";
}
.guide-faq details > div {
  padding: 0 20px 25px 0;
}
.guide-faq details p {
  font-size: 1rem;
}
.guide-sources {
  list-style: none;
  padding: 0 !important;
  counter-reset: source;
}
.guide-sources li {
  counter-increment: source;
  border-top: 1px solid var(--guide-line);
  padding: 17px 0 17px 36px;
  position: relative;
  margin: 0;
  scroll-margin-top: 30px;
}
.guide-sources li:before {
  content: counter(source, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  color: #647a71;
  font:
    0.8125rem Plex,
    monospace;
}
.guide-sources a {
  font-size: 1rem;
  font-weight: 700;
}
.guide-sources small {
  display: block;
  color: #5a7066;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 5px;
}
.guide-related {
  background: #e1e8e2;
  padding: 65px 0;
}
.guide-related h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 30px;
}
.guide-related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.guide-related-links a {
  display: block;
  border-top: 1px solid #97aaa0;
  padding-top: 22px;
  text-decoration: none;
}
.guide-related-links small {
  font:
    0.8125rem Plex,
    monospace;
  text-transform: uppercase;
  color: #586e63;
}
.guide-related-links strong {
  display: block;
  position: relative;
  padding-right: 30px;
  font:
    600 1.8rem/1.3 Fraunces,
    Georgia,
    serif;
  margin-top: 12px;
  max-width: 360px;
}
.guide-related-links strong > span {
  position: absolute;
  right: 0;
  top: 0;
}
.guide-related-links .article-description {
  display: block;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: #405b4d;
}
.guide-related-links a[aria-current] strong:after {
  content: " · You’re here";
  font:
    0.8125rem Instrument,
    Arial,
    sans-serif;
  display: block;
  margin-top: 10px;
}
.guide-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 55px 0;
}
.guide-closing h2 {
  font-size: 2.15rem;
  line-height: 1.2;
}
.guide-closing p {
  margin-top: 12px;
  color: #50665b;
  font-size: 1rem;
  max-width: 550px;
}
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 55px;
  padding: 15px 24px;
  background: #213e3e;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}
.guide-button:hover {
  background: #d6ecf3;
}
.guide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  border-top: 1px solid var(--guide-line);
  padding: 28px 0 38px;
  font-size: 0.875rem;
}
.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.guide-footer a {
  text-underline-offset: 5px;
}
.partnership-guide :focus-visible {
  outline: 3px solid #70b0e5;
  outline-offset: 5px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes guide-settle {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1);
  }
}
@media (max-width: 1200px) {
  .guide-opening .stage-nav {
    padding: 25px 28px;
    gap: 20px;
  }
  .guide-opening .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 24px;
  }
  .guide-hero-copy {
    padding-top: 55px;
  }
  .guide-wrap {
    width: calc(100% - 64px);
  }
  .guide-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
  }
}
@media (max-width: 800px) {
  .guide-layout {
    display: block;
    padding-top: 35px;
  }
  .guide-sidebar {
    position: static;
    margin-bottom: 45px;
  }
  .guide-toc {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
  .guide-sidebar > .guide-calculator {
    margin-top: 18px;
  }
  .guide-hero-copy {
    padding: 48px 6vw 48px;
  }
  .guide-hero-copy h1 {
    font-size: clamp(3.1rem, 8vw, 5rem);
  }
  .guide-hero-meta {
    font-size: 0.8125rem;
  }
  .guide-related-links {
    gap: 20px;
  }
  .guide-related-links strong {
    font-size: 1.55rem;
  }
  .guide-closing {
    align-items: start;
    flex-direction: column;
  }
  .guide-opening .stage-brand > span:last-child {
    font-size: 0.75rem;
  }
}
@media (max-width: 550px) {
  .guide-opening {
    margin: 0;
    border-radius: 0;
  }
  .guide-opening .stage-nav {
    padding: 23px 22px;
    gap: 22px 12px;
    justify-content: space-between;
  }
  .guide-opening .stage-brand {
    gap: 12px;
  }
  .guide-opening .stage-brand > span:last-child {
    font-size: 0.625rem;
    max-width: 83px;
    white-space: normal;
  }
  .guide-opening .brand-lockup {
    gap: 8px;
  }
  .guide-opening .stage-brand .realist-mark {
    width: 66px;
  }
  .guide-opening .stage-brand .office-symbol {
    width: 30px;
    height: 30px;
  }
  .guide-opening .stage-nav .stage-cta {
    font-size: 0.875rem;
    flex-basis: 100%;
    padding: 0;
    text-align: left;
    order: 4;
  }
  .guide-opening .nav-links {
    justify-content: start;
    gap: 12px 22px;
    flex-wrap: wrap;
    order: 3;
    border-block: 1px solid #ffffff3a;
    padding: 15px 0;
    width: 100%;
  }
  .guide-opening .nav-links a {
    font-size: 0.875rem;
    min-height: 26px;
  }
  .guide-hero-copy {
    padding: 32px 24px 42px;
  }
  .guide-hero-copy h1 {
    font-size: clamp(2.65rem, 10.8vw, 3.8rem);
    line-height: 1.12;
    overflow-wrap: normal;
  }
  .guide-hero-copy > .guide-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
  }
  .guide-hero-copy .guide-deck {
    font-size: 1.0625rem;
    margin-top: 24px;
  }
  .guide-hero-actions {
    gap: 20px;
    font-size: 0.9375rem;
  }
  .guide-hero-meta {
    margin-inline: 24px;
    padding: 18px 0 22px;
    flex-direction: column;
    gap: 6px;
  }
  .guide-hero-image {
    object-position: 62% center;
  }
  .guide-wrap {
    width: calc(100% - 44px);
  }
  .guide-breadcrumb {
    font-size: 0.8125rem;
    gap: 8px;
  }
  .guide-toc {
    column-gap: 16px;
  }
  .guide-toc a {
    font-size: 0.875rem;
    gap: 8px;
  }
  .guide-toc a span {
    font-size: 0.75rem;
  }
  .guide-main article > section {
    padding: 35px 0;
  }
  .guide-main h2 {
    font-size: 2rem;
  }
  .guide-main h3 {
    font-size: 1.4rem;
  }
  .guide-main p,
  .guide-main li {
    font-size: 1rem;
  }
  .guide-compare {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .guide-key,
  .guide-example {
    padding: 23px;
  }
  .guide-equation {
    gap: 15px;
  }
  .guide-equation b {
    font-size: 1.8rem;
  }
  .guide-table th,
  .guide-table td {
    padding: 14px;
    font-size: 0.9375rem;
    min-width: 130px;
  }
  .guide-related {
    padding: 45px 0;
  }
  .guide-related-links {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .guide-related-links strong {
    font-size: 1.7rem;
    max-width: none;
  }
  .guide-closing {
    padding: 42px 0;
  }
  .guide-closing h2 {
    font-size: 2rem;
  }
  .guide-faq summary {
    font-size: 1rem;
  }
  .guide-footer {
    align-items: start;
    flex-direction: column;
  }
  .guide-button {
    white-space: normal;
    font-size: 1rem;
  }
  .guide-layout {
    padding-bottom: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .guide-hero-image {
    animation: none;
  }
}
@media print {
  .guide-opening {
    background: white;
    color: black;
    margin: 0;
  }
  .guide-opening:after,
  .guide-hero-image,
  .stage-nav,
  .guide-hero-actions,
  .guide-sidebar,
  .guide-related,
  .guide-closing,
  .guide-footer {
    display: none !important;
  }
  .guide-hero-copy {
    padding: 20px 0;
  }
  .guide-hero-copy .guide-deck,
  .guide-hero-copy > .guide-kicker,
  .guide-hero-meta {
    color: black;
  }
  .guide-hero-copy h1 {
    font-size: 36pt;
  }
  .guide-wrap {
    width: 100%;
  }
  .guide-layout {
    display: block;
  }
  .guide-main article > section {
    break-inside: avoid;
  }
  .guide-example {
    background: #eee;
    color: black;
  }
  .guide-example p,
  .guide-example h3,
  .guide-example .guide-kicker,
  .guide-example small {
    color: black;
  }
  .guide-faq details > div {
    display: block !important;
  }
  .guide-table-wrap {
    overflow: visible;
  }
}
