/* Quiet Hearth: static, local-only tools; existing public security headers apply. */
.qh-hero{background:#20352a;color:#f5ead4;padding:clamp(3rem,7vw,5rem) 0}.pathway-page main .qh-hero h1,.qh-hero .eyebrow{color:#f5ead4}.qh-hero a:not(.button){color:#f1d49b}.qh-hero .qh-lead{font-size:clamp(1.3rem,3vw,1.8rem);font-style:italic;color:#e9d8b7}.qh-hero .button.outline{color:#f5ead4;border-color:#e9d8b7}
.qh-section{padding:clamp(1.6rem,4vw,2.8rem) 0;border-bottom:1px solid var(--line);scroll-margin-top:1rem;overflow-wrap:anywhere}.qh-section h2{margin-bottom:.7rem}.qh-section h3{font-size:1.3rem}.qh-grid,.qh-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:1rem;margin:1rem 0}.qh-two{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))}.qh-card,.qh-template,.qh-tool{background:#fffaf0;border:1px solid #c9bea6;border-radius:8px;padding:clamp(1rem,2.5vw,1.5rem);min-width:0;color:#23352a}.qh-card{display:flex;flex-direction:column;gap:.6rem}.qh-card h3,.qh-card p{margin:0}.qh-card[href]{text-decoration:none;color:#23352a}.qh-card[href]:hover{border-color:#71552b;background:#f6eddb}.qh-card span,.qh-card a{color:#28553b;text-decoration:underline;text-underline-offset:.2em}.qh-template summary{font-weight:650;cursor:pointer;min-height:44px}.qh-template p{margin:.7rem 0}.qh-template button{min-height:44px}.qh-tool{max-width:760px;margin:1rem 0;display:grid;gap:.6rem}.qh-tool[hidden],.qh-template button[hidden],#qh-print[hidden]{display:none}.qh-tool label{font-weight:650;display:block}.qh-tool input,.qh-tool textarea,.qh-tool select{font:inherit;color:#23352a;background:white;border:1px solid #8a816b;border-radius:4px;padding:.7rem;width:100%;max-width:100%;min-height:44px;box-sizing:border-box}.qh-tool textarea{resize:vertical}.qh-tool button{min-height:44px;white-space:normal}.qh-tool .actions{display:flex;flex-wrap:wrap;gap:.5rem}.qh-status{min-height:1.4em;margin:0;color:#405745}.qh-quote{background:#efe6d4;border-left:4px solid #957b46;padding:1rem;font-size:1.25rem}.qh-card:focus-visible,.qh-tool :focus-visible,.qh-template :focus-visible{outline:3px solid #805c1e;outline-offset:3px}#qh-print pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}@media print{body.qh-printing> :not(main),body.qh-printing main> :not(#qh-print){display:none!important}body.qh-printing #qh-print{display:block!important;color:#000;background:#fff;padding:1cm}body.qh-printing #qh-print h2{color:#000}}
.qh-controls{border:1px solid var(--line);padding:1rem;margin-top:1rem;background:#fffaf0;border-radius:8px}.qh-controls[hidden],.qh-tool [hidden]{display:none!important}.qh-controls button{min-height:44px}.qh-tool textarea[readonly]{background:#f1eadd}.qh-hero a:focus-visible{outline-color:#f1d49b}#qh-print{display:none!important}@media print{body:not(.qh-printing) .qh-tool,body:not(.qh-printing) .qh-controls{display:none!important}body.qh-printing #qh-print{display:block!important}body.qh-printing .qh-tool,body.qh-printing .qh-controls{display:none!important}}

/* Sanctuary signposts: balanced rows, visible boundaries and readable notices.
   Screen only: leave the existing print and hidden-state rules intact. */
@media screen {
  .pathway-page main .qh-section > nav.qh-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
    margin: 1.25rem 0;
  }
  .pathway-page main .qh-section > nav.qh-grid > a.qh-card {
    grid-column: span 2;
    background: #fffaf0;
    border: 1px solid #81745c;
    border-radius: 8px;
    padding: clamp(1rem, 2vw, 1.5rem);
    color: #23352a;
    text-decoration: none;
    min-width: 0;
    gap: .65rem;
  }
  .pathway-page main .qh-section > nav.qh-grid > a.qh-card:nth-child(4) { grid-column: 2 / span 2; }
  .pathway-page main .qh-section > nav.qh-grid > a.qh-card h3 {
    color: #23352a;
    font-size: clamp(1.3rem, 2.1vw, 1.55rem);
    line-height: 1.2;
  }
  .pathway-page main .qh-section > nav.qh-grid > a.qh-card p {
    color: #354538;
    line-height: 1.55;
  }
  .pathway-page main .qh-section > nav.qh-grid > a.qh-card > span {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    min-height: 44px;
    font: 650 .95rem/1.4 var(--sans);
    color: #28553b;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  .pathway-page main .qh-section > nav.qh-grid > a.qh-card:hover {
    background: #f0e7d5;
    border-color: #71552b;
  }
  .pathway-page main .qh-section > nav.qh-grid > a.qh-card:focus-visible {
    outline: 3px solid #805c1e;
    outline-offset: 3px;
  }
  .pathway-page main .qh-section > .smallprint {
    color: #414b3d;
    font-size: .92rem;
    line-height: 1.65;
  }
  .pathway-page main .qh-section > .smallprint a { color: #28553b; }
  .pathway-page main #qh-privacy-controls:not([hidden]) {
    background: #f0eee3;
    border: 1px solid #81745c;
    border-left: 4px solid #527057;
    border-radius: 8px;
    color: #23352a;
    padding: clamp(1rem, 2.5vw, 1.5rem);
  }
  .pathway-page main #qh-privacy-controls > .button {
    margin-top: .75rem;
    max-width: 100%;
    white-space: normal;
    background: #fffaf0;
    color: #23352a;
    border-color: #81745c;
  }
  .pathway-page main #qh-privacy-controls > .button:hover { background: #e8dfce; }
  @media (max-width: 850px) {
    .pathway-page main .qh-section > nav.qh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pathway-page main .qh-section > nav.qh-grid > a.qh-card:nth-child(4) { grid-column: span 2; }
    .pathway-page main .qh-section > nav.qh-grid > a.qh-card:last-child { grid-column: 2 / span 2; }
  }
  @media (max-width: 600px) {
    .pathway-page main .qh-section > nav.qh-grid { grid-template-columns: minmax(0, 1fr); }
    .pathway-page main .qh-section > nav.qh-grid > a.qh-card,
    .pathway-page main .qh-section > nav.qh-grid > a.qh-card:nth-child(4),
    .pathway-page main .qh-section > nav.qh-grid > a.qh-card:last-child { grid-column: 1; }
  }
}
