/* The Long Return Institute — v0.5.99 · Phase 1 physical readability.
   Presentational only. This file must remain last among authored stylesheets.
   Readability is improved without altering source text, statuses, artwork, scripts,
   underlying documents, or the site's scope-of-use restrictions. */

/* Long-standing information notes and action/checklist prose are reading text,
   not decorative fine print. Keep their size comfortable throughout the site. */
body:not(.government-guide) .note{font-size:1rem;line-height:1.6}
body:not(.government-guide) .note p{font-size:1rem;line-height:1.6}
body:not(.government-guide) .plain-checks li,
body:not(.government-guide) .plain-limits li{font-size:1rem;line-height:1.6}
body:not(.government-guide) .route-trust-meta p,
body:not(.government-guide) .route-orientation p,
body:not(.government-guide) .route-orientation-you,
body:not(.government-guide) .route-orientation-leads,
body:not(.government-guide) .route-orientation-change{font-size:1rem;line-height:1.6}
body:not(.government-guide) .source-role-card p,
body:not(.government-guide) .source-role-card li{font-size:1rem;line-height:1.6}

/* Source tables contain factual provenance: dates and status are not microcopy.
   Tables remain inside their existing horizontally scrollable wrappers. */
body[data-subject="education"] .edu-table td,
body[data-subject="education"] .edu-table th,
body[data-subject="education"] .table-wrap table td,
body[data-subject="education"] .table-wrap table th{font-size:16px;line-height:1.55}
body[data-subject="education"] .edu-table td,
body[data-subject="education"] .table-wrap table td{padding-block:12px}
body[data-subject="education"] .route-orientation p,
body[data-subject="education"] .field-help,
body[data-subject="education"] .edu-intake-privacy,
body[data-subject="education"] .route-orientation p{font-size:1rem!important;line-height:1.6}
body[data-subject="education"] .edu-quick-reference-card p:not(.edu-quick-boundary),
body[data-subject="education"] .edu-bottom-small,
body[data-subject="education"] .edu-afterword-close{font-size:15.5px;line-height:1.55}
body[data-subject="education"] .edu-quick-reference-card .edu-quick-boundary{font-size:14px!important;line-height:1.55}
body[data-subject="education"] .source-date{font-size:14px;line-height:1.5}

/* Expandable source-status records need an operable, discernible hit area. */
body[data-subject="education"] table details>summary,
body[data-subject="children"] .card details>summary,
body[data-subject="about"] .source-role-card details>summary,
body[data-subject="about"] .station details>summary,
body[data-subject="education"] .station details:not(.option-decision)>summary,
body.government-guide details:not(.template)>summary,
body.publishing-guide details>summary{
 min-height:44px;display:flex;align-items:center;box-sizing:border-box;
 padding:9px 10px;cursor:pointer;line-height:1.45;
}
body[data-subject="education"] table details>summary,
body[data-subject="children"] .card details>summary{font-size:14px}

/* The full Pit River government reference is intentionally detailed.
   Its record identifiers, limitations, and supporting sources must remain legible. */
body.government-guide .record-date,
body.government-guide .record-control,
body.government-guide .source-kind,
body.government-guide .record-body .scope,
body.government-guide .record-body .citation-limit,
body.government-guide .record-body .review-note{
 font:400 15px/1.65 var(--ui,Arial,sans-serif)!important;
 overflow-wrap:anywhere;
}
body.government-guide .record-body h4{font-size:15px;line-height:1.5}
body.government-guide .record-body .material-limit,
body.government-guide .topic-body .topic-open,
body.government-guide .collection-help,
body.government-guide .source-details p,
body.government-guide .research-scope p,
body.government-guide .templates-intro .small,
body.government-guide .template-inside .next{font-size:15px!important;line-height:1.6}
body.government-guide .evidence-links,
body.government-guide .evidence-links li,
body.government-guide .topic-sources,
body.government-guide .topic-sources li{font-size:15px;line-height:1.6}
body.government-guide .reference-code{font-size:14px}
body.government-guide .record-fields dt,
body.government-guide .record-fields dd{overflow-wrap:anywhere}
body.government-guide table.roles th,
body.government-guide table.roles td,
body.government-guide table.log th,
body.government-guide table.log td{font-size:15px;line-height:1.5}

/* The document library's explainer paragraphs carry meaning, not merely metadata. */
body[data-release] .doc-links,
body[data-release] .document-card p,
body[data-release] .resource-card p{font-size:max(15px,.95rem);line-height:1.6}

/* The local newsletter workspace's form guidance is part of completing a task. */
body .nw-hint,body .nw-small{font-size:15.5px!important;line-height:1.55}

/* Footer identity, document dates and route links stay decipherable. */
body .site-footer-v81 .footer-bottom p{font-size:14px;line-height:1.55}
body .site-footer-v81 .footer-inner p:not(.footer-title){font-size:16px;line-height:1.6}

/* The home destination title must keep enough room when text size is enlarged.
   On phones, the approved artwork is retained but its fixed pixel width is
   capped; decorative arrows are secondary to full-word destination labels. */
@media(max-width:640px){
 .site-header-v81 .top-in{flex-wrap:wrap;row-gap:8px}
 .site-header-v81 .brand{flex:1 1 180px;min-width:0}
 .site-header-v81 .menu-btn{flex:0 0 auto;min-width:44px}
 .site-header-v81 .wordmark{overflow-wrap:anywhere}
 .topic-page .home-topics .topic-card.tlri-symbol-link{
  grid-template-columns:80px minmax(0,1fr)!important;
  gap:12px!important;padding:18px 14px!important;min-height:132px;
 }
 .topic-page .home-topics .topic-card.tlri-symbol-link .tlri-symbol{width:80px!important;max-width:100%}
 .topic-page .home-topics .topic-card.tlri-symbol-link .topic-arrow{display:none!important}
 .topic-page .home-topics .topic-card.tlri-symbol-link>div{min-width:0;overflow-wrap:anywhere}
 .site-footer-v81 .footer-inner{grid-template-columns:minmax(0,1fr);padding:28px clamp(12px,3vw,20px)!important;gap:18px}
 .site-footer-v81 .footer-inner>div,.site-footer-v81 .footer-inner nav{min-width:0;overflow-wrap:anywhere}
 .site-footer-v81 .footer-inner nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 .site-footer-v81 .footer-bottom{margin-inline:clamp(12px,3vw,20px)}
}

/* Keep increased text legible in print, rather than forcing a new print design. */
@media print{
 body.government-guide .record-body .review-note,
 body.government-guide .record-body .citation-limit,
 body.government-guide .record-body .scope{color:#222!important}
}

/* Between narrow laptop and wide phone widths, a two-column card layout
   leaves almost no width for 200% text. Use a single column on small tablets. */
@media(min-width:641px) and (max-width:900px){
 .topic-page .home-topics .topic-grid{grid-template-columns:minmax(0,1fr)!important}
 .topic-page .home-topics .topic-card.tlri-symbol-link{grid-template-columns:100px minmax(0,1fr) auto!important;gap:16px}
}
@media print{
 body.government-guide .template>summary{box-sizing:border-box;width:100%;max-width:100%}
 body.government-guide .templates-grid,body.government-guide .templates-grid>div{min-width:0;max-width:100%}
 body.government-guide .task-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important}
 body.government-guide .task-grid>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
@media print{body.government-guide .templates-grid{max-width:calc(100% - 4px)!important}}

/* Preserve the Education Navigator’s specially designed two-row optional-step
   grid on narrow phones; a generic disclosure flex override would crush it. */
.education-rc .option-decision>summary{display:grid!important;width:100%;box-sizing:border-box}
body.publishing-guide .station details>summary,body.publishing-guide .nw-alternatives>summary{min-height:44px!important;box-sizing:border-box}
body[data-subject="education"] .edu-actions button.secondary{min-width:64px;align-self:flex-start}

/* Critical inherited breakpoint collision: the later navigator landing CSS
   reinstated its 250px desktop sidebar on phones after the rc6 mobile rule.
   The form was squeezed to 0–80px instead of remaining readable. */
@media(max-width:900px){
 .education-rc .edu-intake-layout{grid-template-columns:minmax(0,1fr)!important;gap:1.35rem!important}
 .education-rc .edu-intake-layout>*{min-width:0;max-width:100%}
 .education-rc .navigator-form,
 .education-rc #navigator-controls{width:100%;min-width:0;box-sizing:border-box}
}

/* The 91-row Education source registers require a minimum readable column
   measure. The inherited five-column tables collapsed into 0–57px columns
   at 320px despite technically passing page-overflow scans. Restrict horizontal
   scrolling to their labeled, keyboard-accessible table regions. */
body[data-subject="education"] .table-scroll,
body[data-subject="education"] .table-wrap{
  display:block;
  width:100%;max-width:100%;min-width:0;
  box-sizing:border-box;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
body[data-subject="education"] .table-scroll>table,
body[data-subject="education"] .table-wrap>table{
  width:100%;min-width:800px;
  table-layout:auto;
}
body[data-subject="education"] .table-scroll:focus-visible,
body[data-subject="education"] .table-wrap:focus-visible{
  outline:3px solid #174d77;outline-offset:3px;
}
/* Identifiers and check dates should not be character-by-character columns. */
body[data-subject="education"] .table-wrap>table{min-width:920px}
body[data-subject="education"] .table-wrap>table tr>:first-child{min-width:80px}
body[data-subject="education"] .table-wrap>table tr>:last-child{min-width:90px}

/* Government decision prompts, source limitations and source notices are
   action-guiding reading copy, not decorative all-caps section identifiers. */
body.government-guide .source-note,
body.government-guide .standing,
body.government-guide .conversation p,
body.government-guide .sheet dt,
body.government-guide .resource-status{
 font-size:15.5px!important;line-height:1.6!important;
}
/* Important aid and eligibility cautions are not microcopy. */
body[data-subject="education"] .edu-quick-reference-card .edu-quick-boundary{font-size:15.5px!important;line-height:1.6}
body[data-subject="education"] .edu-actions button{font-size:15px!important}
/* Visible non-client attribution is not a decorative eyebrow. */
body .as-kicker,body .as-tag{font-size:14px!important;line-height:1.5}
