/* The Academy resource library shares the existing editorial palette and type. */
.resources-page { --resource-gold: #c8a76a; --resource-purple: #655172; }
.resources-page .eyebrow { font-size: .75rem; letter-spacing: .13em; }
.resources-page .primary-nav { gap: clamp(.8rem, 1.7vw, 1.65rem); }
.resources-page .primary-nav > a[aria-current="page"] { color: var(--ink); }
.resources-page .primary-nav > a[aria-current="page"]::after { width: 100%; }
.resources-page .button { font-size: .9375rem; min-height: 48px; font-weight: 500; }
.resources-page .button:disabled { cursor: progress; transform: none; opacity: .65; }
.resources-page input, .resources-page select { font: inherit; }
.resources-page input:focus-visible, .resources-page select:focus-visible { outline: 2px solid #865398; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.resource-intro { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 4rem; padding-block: clamp(3rem, 5.8vw, 5.8rem) clamp(2.5rem, 5vw, 4rem); }
.resource-intro .eyebrow { color: var(--resource-purple); }
.resource-intro h1 { font-size: clamp(3.25rem, 6.8vw, 6.5rem); line-height: .99; letter-spacing: -.065em; margin-top: 1.3rem; }
.resource-intro-copy { padding-bottom: .25rem; }
.resource-intro-copy > p { font-size: 1.0625rem; line-height: 1.7; max-width: 25rem; color: #57534e; }
.resource-intro-copy .inline-link { font-size: .9375rem; margin-top: 1.65rem; }
.featured-resource { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid #d1cdc2; border-radius: 6px; overflow: hidden; background: #f8f6ef; }
.book-stage { min-width: 0; background: #181c1d; color: #d4c29e; padding: 1.5rem 1.75rem 1.3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; isolation: isolate; }
.book-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 49.6%, #c8a76a0e 50%, transparent 50.4%), linear-gradient(0deg, transparent 49.6%, #c8a76a0e 50%, transparent 50.4%), radial-gradient(ellipse at 50% 55%, #b99b5930, transparent 68%); background-size: 72px 72px, 72px 72px, 100% 100%; }
.book-stage-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .75rem; }
.book-stage-top .eyebrow { font-size: .625rem; color: #d4c29e; }
.book-stage-art { padding: 2.5rem 1rem; display: grid; place-items: center; }
.ebook-cover { display: block; width: min(72%, 255px); height: auto; transform: rotate(-5deg); box-shadow: -6px 5px 0 #d6d0b655, -9px 8px 0 #736c5844, 12px 22px 28px #0008; border-radius: 2px; }
.book-stage-bottom { color: #d0c6b3; font-size: .6875rem; text-align: center; padding-top: 1rem; border-top: 1px solid #d1b37530; letter-spacing: .025em; }
.featured-resource-copy { padding: clamp(2rem, 4.2vw, 4rem); }
.resource-kicker { color: #6e5d3d; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.resource-kicker > span { font-size: .625rem; border: 1px solid #bdb297; padding: .22rem .5rem; border-radius: 3px; }
.featured-resource-copy h2 { font-size: clamp(2.8rem, 4.5vw, 4.5rem); line-height: 1; letter-spacing: -.055em; margin-top: 1.1rem; max-width: 8em; }
.featured-description { font-size: 1rem; line-height: 1.7; margin-top: 1.4rem; max-width: 35rem; }
.ebook-facts { display: flex; gap: clamp(2.2rem, 4vw, 3.8rem); margin-top: 1.7rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ebook-facts strong { font-size: 1.65rem; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; display: block; }
.ebook-facts span { display: block; font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.ebook-includes { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; }
.ebook-includes li { display: flex; gap: .6rem; align-items: start; font-size: .875rem; line-height: 1.55; margin-top: .45rem; }
.ebook-includes svg { width: 18px; height: 18px; margin-top: .1rem; color: #776541; flex-shrink: 0; }
.resource-download { min-width: 245px; }
.download-detail { font-size: .75rem; line-height: 1.55; margin-top: .8rem; color: #6b665d; }
.resource-library { padding-block: clamp(4rem, 7vw, 6.7rem); scroll-margin-top: 7rem; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 2.5rem; margin-bottom: 2.5rem; }
.library-heading .eyebrow { color: var(--resource-purple); margin-bottom: 1rem; }
.library-heading h2 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
.library-heading > p { max-width: 20rem; font-size: 1rem; padding-bottom: .3rem; }
.library-controls { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; border-block: 1px solid var(--line); padding-block: 1rem; }
.resource-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.resource-filters button { font-size: .875rem; background: transparent; color: #625e56; border-radius: 4px; padding: .6rem .9rem; min-height: 44px; }
.resource-filters button[aria-pressed="true"] { color: #f8f6f0; background: #292623; }
.resource-filters button:not([aria-pressed="true"]):hover { background: #e4e0d6; }
.resource-search { display: flex; align-items: center; gap: .55rem; min-width: 0; background: #f9f7f0; border: 1px solid #cfcac0; padding: .55rem .75rem; border-radius: 4px; }
.resource-search svg { width: 19px; height: 19px; color: #746d61; flex-shrink: 0; }
.resource-search input { border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .875rem; width: 185px; min-width: 0; min-height: 24px; }
.resource-count { font-size: .75rem; margin-block: 1rem; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.resource-card { padding: clamp(1.3rem, 2.3vw, 2rem); background: #f8f6ef; border: 1px solid #d4cfc3; border-radius: 5px; display: flex; flex-direction: column; min-width: 0; transition: border-color .2s, background .2s; }
.resource-card:hover { border-color: #9e9384; }
.card-meta { display: flex; justify-content: space-between; gap: .75rem; font-size: .625rem; letter-spacing: .09em; text-transform: uppercase; color: #756b59; }
.card-meta > span:last-child { color: #8b8272; }
.resource-card h3 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); letter-spacing: -.04em; line-height: 1.12; margin-top: 1.35rem; }
.resource-card > p:not(.guide-prompt) { font-size: .875rem; line-height: 1.7; margin-top: .75rem; margin-bottom: 1.5rem; }
.resource-card-action { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; background: transparent; border-top: 1px solid #d5cfc2; padding: 1rem 0 0; margin-top: auto; font-size: .875rem; min-height: 44px; text-align: left; }
.resource-card-action svg { width: 19px; height: 19px; flex-shrink: 0; transition: transform .2s; }
.resource-card-action:hover svg { transform: translate(2px,-2px); }
.resource-card-tool { background: #e5dbea; border-color: #cfc0d7; }
.resource-card-tool .card-meta { color: #62506c; }
.resource-card-tool .resource-card-action { border-color: #bfb1c8; }
.risk-visual { height: 112px; margin-top: 1.4rem; padding: .8rem 0; }
.risk-visual-label { display: block; font: italic 1.3rem/1 Georgia, serif; color: #55435f; margin-bottom: 1.2rem; }
.risk-visual > div { display: flex; align-items: center; gap: .75rem; margin-top: .45rem; font-size: .625rem; line-height: 1; color: #5d4f65; }
.risk-visual i { display: block; flex: 1; height: 1px; background: #96829e; }
.risk-visual > div:first-of-type i { background: #577e70; }
.risk-visual > div:last-of-type i { background: #a07073; }
.template-visual { min-height: 112px; margin-top: 1.4rem; padding: 1.2rem 1rem; background: #eeeadf; border: 1px solid #d6d0bf; border-radius: 3px; }
.journal-visual { display: grid; grid-template-columns: .8fr 1fr 1fr 1fr; gap: .85rem .5rem; align-content: start; }
.journal-visual span { font-size: .625rem; color: #77705e; }
.journal-visual i { height: 1px; background: #c9c1ad; display: block; }
.planner-visual { display: grid; gap: .5rem; align-content: center; font-size: .6875rem; line-height: 1; color: #746b58; }
.planner-visual > span { display: flex; align-items: center; gap: .55rem; }
.planner-visual i { width: 10px; height: 10px; border: 1px solid #afa48b; border-radius: 2px; }
.guide-prompt { font: 1.65rem/1.16 Georgia, serif; color: #6a6254; letter-spacing: -.035em; padding: 1.7rem 0 1.4rem; min-height: 139px; border-bottom: 1px solid #ded8cb; }
.guide-prompt em { color: #8a7657; }
.resource-empty { border: 1px dashed #bfb6a5; text-align: center; padding: 3rem 1.5rem; border-radius: 5px; }
.resource-empty h3 { font-size: 1.8rem; letter-spacing: -.03em; }
.resource-empty p { margin-top: .75rem; }
.resource-empty .inline-link { background: transparent; margin-top: 1.5rem; }
.risk-tool-section { background: #222027; color: var(--paper); padding-block: clamp(3.2rem, 6.5vw, 6rem); scroll-margin-top: 6rem; }
.risk-tool-heading { display: flex; justify-content: space-between; align-items: end; gap: 2.5rem; margin-bottom: 3rem; }
.risk-tool-heading .eyebrow { color: #c8b9d2; margin-bottom: 1rem; }
.risk-tool-heading h2 { font-size: clamp(2.7rem, 4.6vw, 4.4rem); }
.risk-tool-heading h2 .serif-word { color: #d8c7e4; }
.risk-tool-heading > p { max-width: 24rem; font-size: .9375rem; color: #d1c9d6; line-height: 1.75; }
.risk-locked-teaser .risk-tool-heading { margin-bottom: 0; }
.risk-teaser-copy { max-width: 27rem; }
.risk-teaser-copy > p { color: #d1c9d6; font-size: .9375rem; line-height: 1.75; }
.resources-page .risk-unlock-button { margin-top: 1.5rem; background: #dccae7; border-color: #dccae7; color: #2e2334; }
.resources-page .risk-unlock-button:hover { background: #ede0f3; }
.risk-teaser-copy > .risk-access-note { margin-top: .8rem; font-size: .75rem; color: #bfb0c9; }
.private-resource-header .header-inner { gap: 1rem; }
.private-resource-back { font-size: .875rem; white-space: nowrap; padding-block: .65rem; }
.private-resource-back:hover { text-decoration: underline; text-underline-offset: .2em; }
.private-risk-page .risk-tool-heading h1 { font-size: clamp(2.7rem, 4.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.055em; }
.private-risk-page .risk-tool-heading h1 .serif-word { color: #d8c7e4; }
.risk-tool-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.risk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
.risk-field { display: flex; flex-direction: column; justify-content: end; gap: .5rem; min-width: 0; }
.risk-field label { font-size: .8125rem; color: #e8e0ed; }
.risk-field input, .risk-field select { width: 100%; height: 48px; border: 1px solid #62586a; padding: .65rem .75rem; border-radius: 4px; background: #302b35; color: #f5eef8; font-size: 1rem; }
.risk-field select { color-scheme: dark; }
.risk-field-wide { grid-column: 1 / -1; }
.risk-help { grid-column: 1 / -1; color: #b9adbf; font-size: .75rem; line-height: 1.65; }
.resources-page .calculate-button { grid-column: 1 / -1; background: #dccae7; border-color: #dccae7; color: #2e2334; justify-content: center; }
.resources-page .calculate-button:hover { background: #ede0f3; }
.risk-results { background: #2e2933; border: 1px solid #615369; border-radius: 5px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.risk-results > .eyebrow { color: #c7b4d2; }
.risk-primary-result { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.risk-primary-result output { display: block; color: #f0e4f7; font-size: clamp(3.5rem, 5.7vw, 5.5rem); line-height: 1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.risk-primary-result > span { font-size: .9375rem; color: #c7bacf; }
.risk-result-explanation { font-size: .8125rem; color: #c8bccf; margin-top: .7rem; }
.risk-result-list { margin: 1.75rem 0 0; }
.risk-result-list > div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #54485c; padding-block: .75rem; font-size: .9375rem; }
.risk-result-list dt { color: #c8bccf; }
.risk-result-list dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.risk-result-message { color: #d3c1df; font-size: .8125rem; margin-top: 1rem; }
.risk-result-message[data-error="true"] { color: #ffc0af; }
.risk-limit { color: #afa1b8; font-size: .6875rem; line-height: 1.7; margin-top: 1.3rem; }
.risk-math { border-top: 1px solid #514657; margin-top: 2rem; padding-top: 1rem; }
.risk-math summary { font-size: .8125rem; color: #d7c9df; cursor: pointer; min-height: 40px; }
.risk-math p { max-width: 65rem; font-size: .8125rem; color: #bfb0c9; margin: .5rem 0; }
.resources-next { padding-block: clamp(3.5rem, 6.5vw, 6rem); display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; border-bottom: 1px solid var(--line); }
.resources-next .eyebrow { color: var(--resource-purple); margin-bottom: 1.2rem; }
.resources-next h2 { font-size: clamp(2.4rem, 3.7vw, 3.6rem); }
.resources-next p:not(.eyebrow) { margin-top: 1.3rem; max-width: 34rem; }
.resources-next .button { flex-shrink: 0; }
.resources-noscript { padding-block: 2rem; }
.download-dialog { border: 1px solid #d8cfbf; border-radius: 7px; background: #f7f4ed; color: var(--ink); width: min(560px, calc(100vw - 2rem)); margin: auto; padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem; max-height: calc(100dvh - 2rem); overflow-y: auto; box-shadow: 0 24px 90px #0003; }
.download-dialog::backdrop { background: #151219b8; backdrop-filter: blur(3px); }
body:has(.download-dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dialog-top .eyebrow { color: #746653; font-size: .625rem; }
.dialog-close { width: 44px; height: 44px; font-size: 1.9rem; line-height: 1; background: transparent; color: #645b4e; border-radius: 4px; margin-right: -.65rem; }
.dialog-close:hover { background: #e9e3d7; }
.download-format { color: #796744; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.download-dialog h2 { font-size: clamp(2.05rem, 4.2vw, 2.8rem); line-height: 1.04; letter-spacing: -.055em; }
#download-description { margin-top: 1rem; font-size: .9375rem; line-height: 1.6; }
#resource-form { margin-top: 1.6rem; }
.download-name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.download-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; margin-bottom: 1rem; }
.download-field label { font-size: .8125rem; font-weight: 500; }
.download-field input { width: 100%; min-width: 0; border: 1px solid #c4bcae; padding: .65rem .8rem; height: 48px; border-radius: 4px; background: #fffdf8; font-size: 1rem; color: var(--ink); }
.download-field input:disabled { opacity: .7; }
.download-consent { display: flex; gap: .7rem; align-items: start; font-size: .75rem; line-height: 1.6; color: #60594d; margin-top: .2rem; cursor: pointer; }
.download-consent input { flex: 0 0 17px; height: 17px; accent-color: #6c557b; margin: .2rem 0 0; }
.consent-optional { color: #85775e; }
.download-privacy { font-size: .6875rem; line-height: 1.7; color: #736a5b; margin-top: 1rem; }
.download-privacy a { text-decoration: underline; text-underline-offset: .18em; }
.download-submit { width: 100%; justify-content: space-between; margin-top: 1.3rem; }
.download-error { color: #8a372b; background: #f6e5df; border: 1px solid #dbb4a9; padding: .7rem .85rem; border-radius: 4px; font-size: .8125rem; margin-top: 1rem; }
.lead-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.download-success { padding: .5rem 0 0; }
.download-success-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e0e8db; color: #416a4c; margin-bottom: 1.5rem; }
.download-success > .eyebrow { color: #676d57; margin-bottom: 1rem; }
.download-success > p:not(.eyebrow):not(.download-detail) { margin-top: 1rem; font-size: .9375rem; }
.download-success > .button { margin-top: 1.6rem; width: 100%; }
.download-back { display: block; background: transparent; font-size: .8125rem; padding: .65rem 0; margin-top: 1rem; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 1150px) and (min-width: 901px) {
  .resources-page .site-header .primary-nav > a:not(.button) { font-size: .75rem; }
  .resources-page .site-header .primary-nav { gap: .85rem; }
  .resources-page .site-header .primary-nav .button { margin-left: 0; font-size: .8125rem; padding-inline: .8rem; }
}
@media (max-width: 900px) {
  .resources-page .primary-nav.is-open { gap: 0; }
  .resource-intro { gap: 2.5rem; grid-template-columns: 1.2fr 1fr; }
  .resource-intro h1 { font-size: clamp(3.4rem, 7.7vw, 4.9rem); }
  .featured-resource { grid-template-columns: .9fr 1.1fr; }
  .featured-resource-copy { padding: 2rem 1.5rem; }
  .book-stage { padding-inline: 1.1rem; }
  .ebook-cover { width: min(84%, 255px); }
  .ebook-facts { gap: 1.8rem; }
  .resource-download { min-width: 0; width: 100%; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .library-controls { flex-direction: column; align-items: stretch; }
  .resource-search { max-width: 100%; }
  .resource-search input { width: 100%; }
  .risk-tool-layout { gap: 2rem; }
  .risk-tool-heading > p { max-width: 20rem; }
  .resources-next { flex-direction: column; align-items: start; }
}
@media (max-width: 650px) {
  .resource-intro { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; }
  .resource-intro h1 { font-size: clamp(3.2rem, 13vw, 4.5rem); }
  .resource-intro-copy > p { font-size: 1rem; max-width: 100%; }
  .resource-intro-copy .inline-link { margin-top: 1rem; }
  .featured-resource { grid-template-columns: 1fr; }
  .book-stage { padding: 1.2rem 1.4rem 1.1rem; }
  .book-stage-art { padding: 2rem 1rem; }
  .ebook-cover { width: 178px; }
  .featured-resource-copy { padding: 1.75rem 1.4rem 2rem; }
  .featured-resource-copy h2 { font-size: 3rem; }
  .ebook-facts { gap: 2.5rem; }
  .ebook-includes li { font-size: .8125rem; }
  .library-heading { flex-direction: column; align-items: start; gap: 1rem; margin-bottom: 1.7rem; }
  .library-heading > p { max-width: 100%; }
  .resource-filters { gap: .15rem; justify-content: space-between; }
  .resource-filters button { font-size: .75rem; padding-inline: .65rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { padding: 1.5rem; }
  .resource-card h3 { font-size: 1.65rem; }
  .resource-card-guide .guide-prompt { min-height: 0; padding-block: 1.5rem 1.3rem; font-size: 1.7rem; }
  .resource-card > p:not(.guide-prompt) { font-size: .9375rem; }
  .resource-card-action { font-size: .9375rem; }
  .risk-tool-heading { flex-direction: column; align-items: start; gap: 1.5rem; margin-bottom: 2rem; }
  .risk-tool-heading > p { max-width: 100%; }
  .risk-tool-layout { grid-template-columns: 1fr; gap: 2rem; }
  .risk-field label { font-size: .75rem; }
  .risk-primary-result output { font-size: 4.5rem; }
  .resources-next h2 { font-size: 2.5rem; }
  .download-dialog { padding-top: 1rem; }
  .dialog-top { margin-bottom: .85rem; }
}
@media (max-width: 359px) {
  .resource-filters button { font-size: .6875rem; padding-inline: .5rem; }
  .download-name-fields { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .resources-page *, .resources-page *::before, .resources-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
