/* Question Resource prototype. Existing global, Way, and Freedom palettes are unchanged. */
.resource-library-page { overflow-x: clip; }
.resource-library-page #main, .resource-reader-page #main { padding-top: var(--site-header-height); }
.resource-reader-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.resource-inner { width: min(100% - var(--pad) * 2, 1280px); margin-inline: auto; }
.resource-eyebrow { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; }
.resource-eyebrow::before { content: ''; display: inline-block; width: 1.8rem; height: 3px; background: var(--brand-teal); margin: 0 .8rem .2rem 0; }
.resource-library-intro { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.resource-library-intro h1 { max-width: 24ch; margin: 1.5rem 0 1.6rem; font-size: clamp(2.3rem, 4.35vw, 4.5rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 750; }
.resource-library-intro h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.resource-proposition { margin: 0; color: var(--brand-gray); font-size: clamp(1.0625rem, 1.55vw, 1.25rem); }
.resource-library { padding: 0 0 clamp(4rem, 8vw, 7rem); scroll-margin-top: calc(var(--site-header-height) + 1rem); }
.resource-library-heading { border-top: 1px solid var(--line); padding-top: 2rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.resource-library-heading .resource-eyebrow::before { display: none; }
.resource-library-heading .resource-eyebrow span { font-weight: 400; letter-spacing: 0; color: var(--brand-gray); }
.resource-library-heading h2 { margin: .7rem 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; letter-spacing: -.04em; }
.resource-follow-link { flex-shrink: 0; display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; font-size: .75rem; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid var(--brand-gray); }
.resource-follow-link:hover { border-color: var(--brand-teal); }
.resource-collection-intro { display: flex; gap: 1.5rem; justify-content: space-between; align-items: baseline; padding: 2.8rem 0 1.2rem; }
.resource-collection-intro h3 { margin: 0; font-size: .875rem; letter-spacing: .08em; line-height: 1.5; }
.resource-collection-intro p { margin: 0; font-size: .9375rem; color: var(--brand-gray); }
.resource-entry { display: grid; grid-template-columns: minmax(10rem,.9fr) minmax(0,3fr) minmax(7rem,.6fr); align-items: center; column-gap: clamp(1.25rem, 3vw, 3rem); padding: clamp(1.8rem, 3.5vw, 3rem) 0; border-top: 1px solid var(--line); }
.resource-entry:last-child { border-bottom: 1px solid var(--line); }
.resource-entry-identity { display: grid; align-self: start; gap: .5rem; padding-top: .12rem; font-size: .75rem; letter-spacing: .05em; color: var(--brand-gray); }
.resource-entry-identity > span:last-child { font-size: .75rem; letter-spacing: 0; color: #aaa79f; }
.resource-title { margin: 0 0 .7rem; font-size: .875rem; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
.resource-entry h3 { margin: 0; font-size: clamp(1.65rem, 2.65vw, 2.6rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 600; text-wrap: pretty; }
.resource-open { justify-self: end; display: inline-flex; justify-content: space-between; gap: 1.2rem; align-items: center; padding: .75rem 1.1rem; min-height: 50px; font-weight: 700; font-size: .8125rem; color: white; background: var(--brand-teal); border-radius: 999px; text-decoration: none; }
.resource-open span { font-size: 1.3rem; }
.resource-open:hover { background: var(--ink); outline: 1px solid var(--brand-teal); }
.resource-unavailable { margin: 0; justify-self: end; color: var(--brand-gray); font-size: .75rem; letter-spacing: .07em; line-height: 1.55; }
.resource-library-page :is(.resource-open,.resource-follow-link,.qa-index-card):focus-visible { outline: 3px solid white; outline-offset: 5px; }
.resource-library-page #question-index { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--site-header-height) + 1rem); }
.resource-library-page .qa-anchor { display: block; scroll-margin-top: calc(var(--site-header-height) + 2rem); }
.resource-library-page .qa-index-heading h2 { max-width: 18ch; font-size: clamp(2.3rem, 4.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.05em; }
.resource-library-page .qa-index-card { padding-inline: 0; }
.resource-library-page .qa-index-card h3 { font-size: clamp(1.6rem, 3vw, 2.9rem); line-height: 1.12; }
.resource-library-page .qa-index-card > div { min-width: 0; }

/* Native reader: real, selectable text; the page canvas grows instead of shrinking. */
.resource-reader-page { overflow-x: clip; }
.qr-reader { --resource-accent: #B01272; --resource-ink: #111111; --resource-soft: #FBF4F9; --resource-term: #F8EDF4; padding: 2rem var(--pad) 5rem; }
.qr-pages { max-width: 820px; margin-inline: auto; }
.qr-page { display: none; scroll-margin-top: calc(var(--site-header-height) + 1rem); }
.qr-page:target, .qr-pages:not(:has(.qr-page:target)) .qr-page:first-child { display: block; }
.qr-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .07em; }
.qr-toolbar a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.qr-toolbar a:hover { text-decoration: underline; text-underline-offset: .3em; }
.qr-toolbar p { margin: 0; white-space: nowrap; }
.qr-canvas { background: #fff; color: var(--resource-ink); color-scheme: light; min-height: 1060px; padding: clamp(1.5rem, 6vw, 4rem); border-radius: 16px; display: flex; flex-direction: column; }
.qr-print-header { border-bottom: 2px solid var(--resource-accent); padding-bottom: .7rem; margin-bottom: 1rem; }
.qr-print-header p { margin: 0; font-weight: 750; letter-spacing: .025em; }
.qr-print-header p:first-child { color: var(--resource-accent); font-size: .75rem; margin-bottom: .2rem; }
.qr-print-header p:last-child { font-size: 1.0625rem; }
.qr-identity { margin: 0 0 1.5rem; font-size: .75rem; color: var(--resource-accent); font-weight: 700; letter-spacing: .04em; }
.qr-page-content { min-width: 0; overflow-wrap: anywhere; }
.qr-resource-title { margin: 0 0 2.6rem; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.14; font-weight: 800; letter-spacing: .015em; }
.qr-resource-title span { color: var(--resource-accent); }
.qr-label, .qr-section-label { color: var(--resource-accent); font-size: .75rem; font-weight: 750; letter-spacing: .025em; line-height: 1.4; margin: 0 0 .6rem; }
.qr-section-label { margin-top: 1.2rem; }
.qr-label-rule { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; color: var(--resource-ink); margin: .5rem 0 1.3rem; }
.qr-label-rule::before { content: ''; align-self: center; width: 4px; height: 1.4em; flex: 0 0 4px; background: var(--resource-accent); }
.qr-callout { margin: 1.4rem 0; padding: 1.2rem; border-radius: 14px; }
.qr-callout p:last-child { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.qr-callout-lead { background: var(--resource-soft); min-height: 150px; padding: 1.5rem; }
.qr-callout-lead p:last-child { font-size: clamp(1.65rem, 2.6vw, 2rem); }
.qr-paragraph { font-size: 1rem; line-height: 1.6; margin: 1.4rem 0 2rem; }
.qr-callout-hold { border-top: 2px solid var(--resource-accent); border-radius: 0; padding: 1.2rem 0 0; margin: 0 0 2.7rem; }
.qr-callout-hold p:last-child { font-size: 1.4rem; line-height: 1.3; }
.qr-callout-invitation, .qr-callout-dark, .qr-closing { background: var(--resource-ink); color: white; }
.qr-callout-invitation { text-align: center; padding: 1.1rem; }
.qr-callout-invitation .qr-label { color: white; font-size: .875rem; }
.qr-callout-invitation p:last-child { font-size: .875rem; font-weight: 400; }
.qr-question-group { margin: 0 0 1.5rem; }
.qr-question-group h3 { font-size: clamp(1.5rem, 2.5vw, 1.8rem); letter-spacing: -.015em; line-height: 1.24; margin: .4rem 0 1rem; }
.qr-question-group ul { margin: 0; padding-left: 1.25rem; font-size: 1rem; line-height: 1.55; }
.qr-question-group li { padding-left: .15rem; margin: .32rem 0; }
.qr-question-group li::marker { color: var(--resource-accent); }
.qr-group-rule { border-top: 1px solid #dedede; padding-top: 1rem; margin-top: 1.8rem; }
.qr-callout-soft { background: var(--resource-soft); }
.qr-reflection { border: 1px solid #d3d3d3; border-radius: 12px; margin-top: 1.4rem; padding: 1.1rem; }
.qr-reflection-large { min-height: 180px; }
.qr-reflection-medium { min-height: 120px; }
.qr-terms { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 .9rem; list-style: none; }
.qr-terms li { border-radius: 999px; background: var(--resource-term); padding: .25rem .7rem; font-size: .875rem; }
.qr-emphasis { font-size: 1.15rem; line-height: 1.35; font-weight: 700; margin: .8rem 0; }
.qr-emphasis-rule { border-top: 2px solid var(--resource-accent); padding-top: .75rem; }
.qr-relationships { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin: 1rem 0; }
.qr-relationships > div { padding: 1rem; border-radius: 12px; background: var(--resource-soft); }
.qr-relationships p:last-child { font-size: 1rem; line-height: 1.45; margin: 0; }
.qr-closing { border-radius: 12px; text-align: center; padding: 1.1rem; margin-top: 3.25rem; }
.qr-closing > p:first-child { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.qr-governing { font-size: .75rem; line-height: 1.5; text-align: center; margin: 0; }
.qr-print-footer { margin-top: auto; padding-top: 3rem; }
.qr-print-footer > .qr-governing { border-top: 1px solid #ddd; padding: .7rem .25rem; }
.qr-colophon { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #ddd; padding-top: .7rem; margin: 0; font-size: .75rem; line-height: 1.5; color: #555; }
.qr-colophon span:last-child { flex: 0 0 auto; }
.qr-page-opening .qr-print-footer { padding-top: 8rem; }
.qr-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; }
.qr-pagination a { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 52px; min-width: 0; max-width: 100%; padding: .75rem 1.5rem; font-size: .875rem; font-weight: 700; text-decoration: none; border-radius: 999px; }
.qr-next { background: var(--resource-accent); color: white; margin-left: auto; }
.qr-next:hover { background: #fff; color: var(--resource-accent); }
.qr-back { border: 1px solid var(--brand-gray); color: var(--paper); }
.qr-back:hover { border-color: white; background: #222; }
.qr-reader :is(a,h2):focus-visible { outline: 3px solid white; outline-offset: 5px; }
.qr-canvas h2:focus-visible { outline-color: var(--resource-accent); }
.qr-reader h2:focus:not(:focus-visible) { outline: none; }

@media (max-width: 800px) {
  .resource-library-page .qa-question { grid-template-columns: minmax(0,1fr); }
  .resource-library-page .qa-question > * { min-width: 0; }
  .resource-library-page .qa-question .question-copy h2 { overflow-wrap: anywhere; }
  .resource-library-page .question-panel { margin-inline: 0; min-width: 0; grid-template-columns: minmax(0,1fr); }
  .resource-library-page .question-panel > * { min-width: 0; overflow-wrap: anywhere; }
  .resource-library-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .resource-collection-intro { align-items: start; flex-direction: column; gap: .65rem; padding-top: 2rem; }
  .resource-entry { grid-template-columns: minmax(0,1fr) auto; gap: 1.25rem; }
  .resource-entry-identity { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; }
  .resource-entry h3 { font-size: clamp(1.55rem, 4.5vw, 2.1rem); }
  .qr-reader { padding: 1rem 1.25rem 3.5rem; }
  .qr-canvas { min-height: 0; padding: 2rem; }
  .qr-print-footer { padding-top: 3.5rem; }
}
@media (max-width: 560px) {
  :is(.resource-library-page,.resource-reader-page) .site-header { flex-wrap: wrap; }
  :is(.resource-library-page,.resource-reader-page) .wordmark { min-width: min(100%,8rem); }
  :is(.resource-library-page,.resource-reader-page) .footer-links { grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); }
  :is(.resource-library-page,.resource-reader-page) footer p { overflow-wrap: anywhere; }
  .resource-library-intro { padding-top: 2.5rem; }
  .resource-library-intro h1 { font-size: clamp(2rem, 7.5vw, 2.8rem); line-height: 1.12; }
  .resource-entry { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .resource-entry-identity { grid-column: 1; flex-direction: column; }
  .resource-entry h3 { font-size: 1.65rem; line-height: 1.22; }
  .resource-open,.resource-unavailable { justify-self: start; }
  .resource-unavailable br { display: none; }
  .resource-unavailable br::after { content:' '; }
  .resource-unavailable { word-spacing: .1em; }
  .resource-library-page .qa-index-card { grid-template-columns: minmax(0,1fr) 2rem; gap: 1rem; }
  .resource-library-page .qa-index-number { grid-column: 1 / -1; }
  .resource-library-page .qa-index-card > div { grid-column: 1; width: 100%; }
  .resource-library-page .qa-index-arrow { grid-column: 2; }
  .resource-library-page .qa-index-card h3 { font-size: 1.65rem; line-height: 1.18; }
  .qr-reader { padding-inline: .75rem; }
  .qr-toolbar { padding-inline: .4rem; font-size: .75rem; gap: .75rem; }
  .qr-canvas { padding: 1.5rem 1.25rem; border-radius: 12px; }
  .qr-resource-title { font-size: clamp(1.9rem, 7vw, 2.5rem); margin-bottom: 2rem; }
  .qr-question-group h3 { font-size: 1.5rem; }
  .qr-label,.qr-section-label,.qr-print-header p:first-child,.qr-identity { font-size: .8125rem; }
  .qr-label-rule { font-size: .9375rem; }
  .qr-callout-lead { min-height: 170px; padding: 1.2rem; }
  .qr-callout-lead p:last-child { font-size: 1.55rem; }
  .qr-callout-hold p:last-child { font-size: 1.3rem; }
  .qr-relationships { grid-template-columns: minmax(0,1fr); }
  .qr-callout, .qr-relationships > div { padding: 1.1rem; }
  .qr-callout-hold { padding-inline: 0; }
  .qr-reflection-large { min-height: 200px; }
  .qr-reflection-medium { min-height: 150px; }
  .qr-pagination { gap: .75rem; }
  .qr-pagination a { min-height: 52px; padding: .8rem 1.25rem; }
  .qr-pagination .qr-return { flex: 1 1 100%; justify-content: space-between; font-size: .8125rem; }
  .qr-colophon span:first-child { max-width: 28ch; }
}
@media (prefers-reduced-motion: reduce) {
  .resource-library-page, .resource-reader-page { scroll-behavior: auto; }
  .resource-library-page *, .resource-reader-page * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
