/* Shared extensions for Pace's tools, learning pages and navigation. */
select, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5266c9; outline-offset: 5px; }
input:focus-visible, select:focus-visible { outline-offset: 2px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 20px; color: white; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.reveal { opacity: 1; }
.desktop-nav { gap: 26px; align-items: center; }
.desktop-nav a { padding: 9px 0; }
.desktop-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--ink); }
.nav-new { margin-left: 4px; padding: 3px 5px; font-family: var(--font-mono); font-size: 8px; background: var(--lime); border-radius: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer.expanded-footer { display: block; border-top: 1px solid var(--line); padding: 46px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.expanded-footer .footer-blurb { display: block; max-width: 240px; margin: 15px 0; text-align: left; font-size: 12px; line-height: 1.8; }
.footer-column h2 { margin: 0 0 17px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.footer-column a { display: block; width: fit-content; padding: 6px 0; font-size: 12px; color: #51564e; }
.footer-column a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; color: #676c62; line-height: 1.6; }
.breadcrumb { display: flex; gap: 10px; align-items: center; margin: 27px 0 0; font-size: 11px; color: #656b60; }
.breadcrumb a:hover { text-decoration: underline; }
.tool-hero { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; padding: 65px 0 62px; }
.tool-hero h1, .article-hero h1 { margin: 0; font-size: clamp(46px, 5.5vw, 76px); letter-spacing: -.065em; line-height: 1.04; }
.tool-hero h1 em, .article-hero h1 em, .section-head h2 em { font-family: var(--font-display); font-weight: 600; }
.tool-hero .lead, .article-hero .lead { max-width: 590px; margin: 24px 0 0; font-size: 15px; line-height: 1.85; color: #555c50; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; margin: 0 0 23px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; }
.eyebrow-pill i { height: 6px; width: 6px; background: #5b7b2e; border-radius: 50%; }
.toolkit-note { padding: 28px; border-radius: 20px; color: var(--paper); background: var(--ink); transform: rotate(2deg); box-shadow: 9px 9px 0 #dfe4d1; }
.toolkit-note .note-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--lime); }
.note-top b { font-size: 29px; }
.toolkit-note h2 { font-size: 25px; letter-spacing: -.04em; max-width: 240px; margin: 22px 0; }
.toolkit-note p { display: flex; justify-content: space-between; padding: 13px 0; margin: 0; border-top: 1px solid #42473e; font-size: 11px; }
.toolkit-note p span { color: #c6ccbe; }
.trust-strip { display: flex; gap: 36px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; color: #515a47; }
.trust-strip span { display: flex; gap: 9px; align-items: center; }
.trust-strip i { font-style: normal; font-weight: 800; }
.tool-directory { padding: 45px 0 85px; }
.directory-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group button { padding: 10px 17px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 12px; font-weight: 700; }
.filter-group button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.search-field { display: flex; align-items: center; gap: 9px; min-width: 260px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 99px; background: #fffef9; font-size: 13px; }
.search-field input { width: 100%; border: 0; background: transparent; outline: none; min-width: 0; font-size: 12px; }
.search-field:focus-within { outline: 2px solid #5266c9; outline-offset: 3px; }
.directory-heading { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #61685a; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fdfcf7; transition: box-shadow .2s, transform .2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #19240b0a; }
.tool-preview { position: relative; overflow: hidden; min-height: 166px; display: flex; justify-content: space-between; align-items: center; padding: 26px; }
.tone-lime { background: #e5f3bb; }.tone-blue { background: #e2e6fb; }.tone-peach { background: #f8dfd2; }.tone-yellow { background: #f4ebbf; }.tone-purple { background: #e9e0ef; }.tone-green { background: #dceadf; }
.preview-number { z-index: 1; }
.preview-number small { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.preview-number strong { font-size: 34px; font-weight: 600; letter-spacing: -.045em; }
.preview-number p { margin: 7px 0 0; font-size: 10px; color: #5c6551; }
.preview-symbol { position: absolute; right: 24px; bottom: 28px; display: grid; place-items: center; height: 70px; width: 70px; border: 1px solid #14161433; border-radius: 50%; font-family: var(--font-display); font-size: 36px; transform: rotate(-12deg); }
.preview-symbol::after { content: ''; position: absolute; inset: -8px; border: 1px solid #14161422; border-radius: inherit; }
.tool-card-body { padding: 23px 24px; flex: 1; display: flex; flex-direction: column; }
.tool-tag { color: #626957; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.tool-card h3 { margin: 11px 0 10px; font-size: 20px; letter-spacing: -.045em; }
.tool-card p { color: #5e6358; font-size: 12px; line-height: 1.8; margin: 0 0 22px; }
.tool-card .card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.card-link span { font-size: 19px; }
.card-link:hover { color: #52651f; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 49px); letter-spacing: -.055em; line-height: 1.12; }
.section-head p { max-width: 350px; color: #626859; font-size: 13px; line-height: 1.75; }
.home-tools { padding-top: 85px; padding-bottom: 30px; }
.home-trust { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 29px; color: #5c6551; font-size: 10px; font-family: var(--font-mono); }
.demo-label { display: inline-flex; margin-top: 8px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 10px; }
.tool-detail-hero { max-width: 820px; padding: 44px 0 36px; }
.tool-detail-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 4.8vw, 62px); letter-spacing: -.06em; line-height: 1.1; }
.tool-detail-hero h1 em { font-family: var(--font-display); font-weight: 600; }
.tool-detail-hero p { max-width: 680px; color: #59604f; font-size: 14px; line-height: 1.8; }
.tool-detail-hero .page-kicker { font-size: 10px; }
.calculator-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: stretch; margin-bottom: 28px; }
.input-panel { border: 1px solid var(--line); border-radius: 20px; padding: 30px; background: #fffef9; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.panel-heading h2 { font-size: 17px; letter-spacing: -.035em; margin: 0; }
.panel-heading span { font-family: var(--font-mono); font-size: 9px; color: #646e55; }
.field { margin-bottom: 24px; min-width: 0; }
.field label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.field input, .field select, .month-select input { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #cdd1c3; border-radius: 8px; background: #fffefb; color: var(--ink); font-size: 15px; }
.field input[aria-invalid="true"], .amount-input input[aria-invalid="true"] { outline: 2px solid #b04733; }
.field small { display: block; margin-top: 7px; color: #737968; font-size: 10px; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.action-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 19px; border-radius: 8px; background: var(--ink); color: white; border: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.action-button:hover { background: #3c4432; }
.secondary-button { background: transparent; color: var(--ink); border-color: #bfc5b5; }
.secondary-button:hover { background: #e9edde; }
.quiet-button { border: none; background: transparent; padding: 10px 3px; color: #5a654b; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.result-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 36px; border: 1px solid #d3daba; border-radius: 20px; background: #e5f2bd; min-width: 0; }
.result-panel.blue-panel { background: #e2e7fb; border-color: #c6cce3; }
.result-panel.peach-panel { background: #f6dfd0; border-color: #e2c8b7; }
.result-eyebrow { margin: 0 0 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.big-result { display: block; font-size: clamp(30px, 4vw, 55px); line-height: 1.1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.result-description { max-width: 360px; margin: 18px 0 26px; color: #47533b; font-size: 12px; line-height: 1.8; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 21px 0; border-top: 1px solid #14161426; }
.result-stats span { display: block; font-size: 10px; margin-bottom: 7px; color: #4c5841; }
.result-stats strong { font-size: 19px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.meter { height: 8px; background: #14161415; border-radius: 99px; overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; background: var(--ink); border-radius: inherit; transition: width .2s; }
.meter-caption { font-size: 10px; color: #505b43; line-height: 1.6; }
.result-panel .secondary-button { margin-top: 23px; width: 100%; border-color: #818d68; }
.form-error, .plan-warning { padding: 12px 14px; background: #fff0df; border: 1px solid #e6b689; border-radius: 8px; color: #813c21; font-size: 11px; line-height: 1.75; }
.plan-warning { position: relative; }
.storage-note { display: flex; align-items: start; gap: 10px; margin: 0 0 60px; font-size: 11px; line-height: 1.75; color: #6c7462; }
.storage-note a { text-decoration: underline; text-underline-offset: 3px; }
.explain-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; padding: 36px 0 70px; border-top: 1px solid var(--line); }
.explain-grid h2 { margin: 0 0 17px; font-size: 25px; letter-spacing: -.04em; }
.explain-grid p { font-size: 12px; line-height: 1.9; color: #616854; }
.formula { padding: 15px 18px; border-radius: 9px; background: #eaece1; font-family: var(--font-mono); font-size: 11px; line-height: 1.8; }
.next-tool { padding: 26px; border: 1px solid var(--line); border-radius: 15px; align-self: start; }
.next-tool h3 { font-size: 18px; letter-spacing: -.03em; }
.next-tool a { display: inline-flex; margin-top: 13px; font-size: 12px; font-weight: 800; gap: 20px; }
.tracker-summary { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin: 0 0 26px; }
.stat-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #efefe5; min-width: 0; }
.stat-card:first-child { background: #e6f2be; }
.stat-card p { margin: 0 0 12px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.stat-card strong { font-size: clamp(20px, 2.6vw, 33px); font-weight: 600; letter-spacing: -.05em; overflow-wrap: anywhere; }
.tracker-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 25px; align-items: start; margin-bottom: 30px; }
.tracker-layout .input-panel { padding: 24px; }
.tracker-layout .field { margin-bottom: 19px; }
.tracker-layout .action-button { width: 100%; }
.tracker-records { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fffef9; }
.tracker-records .panel-heading { flex-wrap: wrap; gap: 16px; }
.month-select { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.month-select input { width: auto; font-size: 11px; padding: 7px; }
.empty-state { padding: 58px 20px; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; height: 54px; width: 54px; margin: auto; border: 1px dashed #a6b090; border-radius: 14px; font-size: 22px; }
.empty-state h3 { margin: 20px 0 9px; font-size: 18px; letter-spacing: -.04em; }
.empty-state p { max-width: 290px; margin: auto; font-size: 12px; color: #6a735d; line-height: 1.8; }
.table-scroll { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th { padding: 12px 9px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 9px; font-weight: 500; color: #667058; white-space: nowrap; }
td { padding: 15px 9px; border-bottom: 1px solid #14161412; line-height: 1.6; }
td:first-child { font-weight: 700; max-width: 170px; overflow-wrap: anywhere; }
td:not(:first-child) { white-space: nowrap; }
.delete-entry { padding: 7px 0; border: 0; background: none; color: #8c503e; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.table-actions { display: flex; align-items: center; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.category-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; font-size: 11px; margin-top: 17px; }
.category-row .meter { grid-column: 1 / -1; height: 5px; }
.category-row .meter i { background: #808e5c; }
.article-hero { max-width: 830px; padding: 65px 0 55px; }
.reading-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 60px; padding-bottom: 90px; }
.reading-nav { position: sticky; top: 24px; align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.reading-nav p { margin: 0 0 16px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.reading-nav a { display: block; padding: 11px 0; color: #5a634f; font-size: 12px; line-height: 1.5; border-top: 1px solid var(--line); }
.reading-copy { max-width: 750px; }
.reading-copy section { scroll-margin-top: 28px; margin-bottom: 52px; padding-top: 26px; border-top: 1px solid var(--line); }
.reading-copy h2 { margin: 0 0 20px; font-size: 29px; letter-spacing: -.045em; }
.reading-copy h3 { font-size: 17px; letter-spacing: -.02em; margin-top: 28px; }
.reading-copy p, .reading-copy li { font-size: 14px; color: #58604f; line-height: 1.9; }
.reading-copy li + li { margin-top: 8px; }
.reading-copy a { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.reading-copy .action-button { color: white; text-decoration: none; font-size: 12px; }
.reading-copy .secondary-button { color: var(--ink); }
.reading-copy .page-kicker { font-size: 9px; }
.example-box { padding: 21px 25px; border-radius: 12px; background: #e7eccf; margin: 24px 0; }
.example-box p { margin: 5px 0; font-size: 13px; }
.faq-list details { border-top: 1px solid var(--line); padding: 21px 0; }
.faq-list summary { cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.6; }
.faq-list details p { margin-bottom: 0; }
.guide-teaser { margin-bottom: 80px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px; padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: #e8ebdf; }
.guide-teaser h2 { font-size: 31px; letter-spacing: -.05em; margin: 0 0 13px; }
.guide-teaser p { color: #626b55; font-size: 13px; line-height: 1.8; max-width: 390px; }
.guide-teaser-links a { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.noscript-note { margin: 15px auto; padding: 14px; border: 1px solid #c5b38b; border-radius: 8px; font-size: 13px; line-height: 1.6; background: #f7eccf; }
.toast { max-width: min(540px, calc(100% - 32px)); white-space: normal; line-height: 1.6; text-align: center; z-index: 50; }
.planner-form .download-plan { display: block; width: 100%; margin-top: 12px; }
.planner-method { margin-top: 14px; font-size: 10px; color: #566147; line-height: 1.8; position: relative; }
.result-amount { flex-wrap: wrap; min-width: 0; }
.result-amount strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.allocation-head > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 950px) {
  .desktop-nav { gap: 17px; font-size: 11px; }.nav-new { display: none; }
  .tool-hero { gap: 45px; }.tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-hero h1 { font-size: 56px; }.toolkit-note { padding: 22px; }
  .tracker-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; }
  .reading-layout { gap: 35px; grid-template-columns: 185px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; width: 16px; height: 2px; background: var(--ink); }
  .mobile-nav { position: absolute; top: 74px; right: 0; display: none; width: min(280px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf3; box-shadow: 0 12px 22px #14161420; font-size: 14px; font-weight: 700; }
  .mobile-nav.open { display: grid; gap: 18px; opacity: 1; pointer-events: auto; transform: none; }
  .tool-hero { grid-template-columns: 1fr; gap: 35px; padding: 42px 0; }.tool-hero h1 { font-size: clamp(43px, 9vw, 64px); }
  .toolkit-note { transform: none; max-width: 480px; box-shadow: 5px 5px 0 #dfe4d1; }.toolkit-note h2 { max-width: none; margin: 15px 0; }.toolkit-note p { padding: 11px 0; }
  .trust-strip { gap: 15px 25px; font-size: 10px; }.tool-directory { padding-top: 32px; }
  .calculator-layout { grid-template-columns: 1fr; }.input-panel, .result-panel { padding: 25px; }
  .big-result { font-size: 45px; }.tracker-layout { grid-template-columns: 1fr; }
  .tracker-summary { gap: 10px; }.stat-card { padding: 17px; }.stat-card strong { font-size: 22px; }
  .explain-grid { grid-template-columns: 1fr; gap: 25px; }
  .reading-layout { display: block; }.reading-nav { position: static; margin-bottom: 35px; }.reading-nav a { display: inline-block; padding: 9px 0; margin-right: 15px; border: 0; }
  .guide-teaser { padding: 27px; grid-template-columns: 1fr; }.guide-teaser h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .section-head { align-items: start; flex-direction: column; gap: 20px; }
  .article-hero { padding: 45px 0; }
}
@media (max-width: 680px) {
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }.tool-preview { min-height: 155px; }.search-field { width: 100%; }
  .tool-hero .lead { font-size: 14px; }.tool-detail-hero h1 { font-size: 39px; }
  .field-row { gap: 12px; }.field-row input { padding: 12px 10px; }
  .tracker-summary { grid-template-columns: 1fr 1fr; }.tracker-summary .stat-card:first-child { grid-column: 1 / -1; }.stat-card:first-child strong { font-size: 35px; }
  .tracker-records { padding: 20px 15px; }.panel-heading span { font-size: 8px; }
  .home-tools { padding-top: 60px; }.footer-grid { gap: 32px 16px; }.footer-column a { font-size: 11px; }
  .expanded-footer .footer-blurb { font-size: 11px; }.footer-bottom { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
