/* Fieldnote: one clear next step, with room for the idea itself. */
.masthead,.subject-mode .masthead{height:auto;min-height:68px;padding:12px 24px;gap:16px;box-shadow:none;overflow:visible}
.subject-mode .masthead{grid-template-columns:auto auto minmax(180px,1fr) auto}
.subject-mode .masthead>.brand,.subject-mode .masthead>.subject-header,.subject-mode .masthead>#subject-search-slot,.subject-mode .masthead>.fn-appearance{grid-row:1;grid-column:auto}
.subject-mode .masthead>.fn-appearance{justify-self:end}
.subject-header{gap:12px;justify-content:flex-start}.subject-header select{max-width:195px;font-size:14px;min-height:44px}.header-divider{display:none}
#subject-search-slot{max-width:520px;justify-self:end;width:100%;gap:8px}
#subject-search-slot .fn-search-launch{min-height:44px;font-size:14px;padding:10px 14px;white-space:nowrap}
#subject-search-slot .fn-search-launch>span{overflow:hidden;text-overflow:ellipsis}
.fn-header-tips{font-size:14px;min-height:44px}.fn-header-tips:before{display:none}
.fn-appearance{display:block;position:relative;flex:none;align-self:center}
.fn-appearance>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 12px;border:1px solid var(--fn-line);border-radius:9px;background:var(--fn-surface);color:var(--fn-ink);font-size:14px;line-height:1.4;cursor:pointer;list-style:none;white-space:nowrap}
.fn-appearance>summary::-webkit-details-marker{display:none}
.fn-appearance summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.fn-appearance[open]>summary{background:var(--fn-soft);border-color:var(--fn-accent)}
.fn-display-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:120;width:250px;max-width:calc(100vw - 24px);padding:16px;display:grid;gap:12px;border:1px solid var(--fn-line);border-radius:14px;background:var(--fn-surface);color:var(--fn-ink);box-shadow:0 14px 38px #10263f26}
.fn-appearance:not([open]) .fn-display-panel{display:none}
.fn-display-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.fn-display-row label{font-size:14px}.fn-display-row select{max-width:135px;min-height:44px;font-size:14px}
.fn-display-panel button{min-height:44px;font-size:14px;width:100%;text-align:center}
.fn-display-panel .fn-focus-button{display:flex!important;gap:10px;justify-content:center;width:100%;padding:10px;min-height:44px;font-size:14px;grid-row:auto;grid-column:auto}
.fn-display-panel .fn-focus-button[hidden]{display:none!important}.fn-display-panel .fn-focus-button span{display:inline}
.fn-prefs-status{position:static;padding:0;font-size:13px;border:0}
.fn-display-panel .fn-language-note{margin:0;padding:10px 0 0;border:0;border-top:1px solid var(--fn-line);background:none;font-size:13px;line-height:1.7}
.fn-appearance-direct{position:fixed;z-index:140;width:auto;padding:0;bottom:18px;right:18px;left:auto;border:0;background:none}.fn-appearance-direct .fn-display-panel{top:auto;bottom:calc(100% + 8px)}
summary:focus-visible{outline:3px solid #5488d0;outline-offset:3px}
/* A compact welcome + useful search; the six subjects carry the colour. */
#home{max-width:1250px;padding:32px 36px 28px}
.home-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);align-items:center;gap:32px;margin-bottom:24px}
#home .intro{margin:0!important;display:block}#home .intro .eyebrow{font-size:12px;margin-bottom:8px}#home .intro h1{font-size:clamp(32px,3.2vw,42px);letter-spacing:-1.3px}#home .intro-note{font-size:16px;margin:10px 0 0}
#home .intro-index{display:none}
#home .home-finder{display:block;margin:0;padding:0;border:0;border-radius:0;background:none!important}
#home .home-finder h2{font-size:14px;font-weight:600;color:var(--fn-muted);margin:0 0 8px}
#home .home-finder p{display:none}#home .home-finder .fn-search-launch{width:100%;min-height:52px;font-size:15px;background:var(--fn-surface);color:var(--fn-ink);border-color:var(--fn-line);box-shadow:none}
#home .resume-panel{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:18px 22px;border-radius:14px;margin-bottom:28px;background:var(--fn-surface)!important;color:var(--fn-ink);border:1px solid var(--fn-line)!important;border-left:4px solid var(--tone,#547ca3)!important;box-shadow:none}
#home .resume-context{align-items:center;gap:14px;flex:1}
#home .resume-mark{flex-basis:42px;height:42px;margin:0;border-color:var(--fn-line);background:var(--fn-soft);color:var(--fn-ink);font-size:29px;border-radius:10px}
#home .resume-copy{display:grid;grid-template-columns:minmax(100px,1fr) auto;gap:3px 24px;align-items:center;flex:1}
#home .resume-label{grid-column:1;margin:0!important;font-size:12px!important;letter-spacing:.07em!important;color:var(--fn-muted)!important}
#home .resume-name{display:inline;margin-left:9px;font-size:12px;color:var(--fn-ink);letter-spacing:0}#home .resume-name:before{display:none}#home .resume-panel h2{grid-column:1;margin:0;font-size:20px;max-width:32ch;line-height:1.35;letter-spacing:-.5px;color:var(--fn-ink)}
#home .resume-detail{grid-column:1;margin:0!important;font-size:13px!important;color:var(--fn-muted)!important}
#home .continue-button{grid-column:2;grid-row:1/4;min-height:44px;font-size:14px;color:var(--fn-ink);background:var(--fn-soft);border:1px solid var(--fn-line);white-space:nowrap}
#home .quick-study{border:0;padding:0;flex:none}.quick-heading{display:none}#home .quick-actions{display:flex;flex-wrap:wrap;gap:8px}
#home .quick-action{display:flex;flex-direction:row;align-items:center;gap:7px;min-height:44px;padding:9px 12px;border:1px solid var(--fn-line);background:var(--fn-surface);color:var(--fn-ink);border-radius:8px}
#home .quick-icon{width:18px;height:18px;color:var(--fn-muted)}#home .quick-label{font-size:14px;white-space:normal}
#home .section-label{margin:0 0 16px}#home .section-label h2{font-size:21px}#home .section-label>span{font-size:13px}
#home .subjects{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
html[data-fn-theme] #home .subjects .subject{display:flex;grid-column:auto;min-height:198px;padding:22px 24px 0;border-radius:15px;border-left-width:1px;border-top:3px solid var(--tone);background:var(--fn-surface)!important;box-shadow:none;overflow:hidden}
#home .subject .card-top{min-height:24px;flex-direction:row;align-items:center;padding-right:0;gap:10px}
#home .subject-number{display:none}#home .subject .course-code{font-size:12px;color:var(--fn-muted)!important;letter-spacing:.05em}
#home .subject .subject-symbol{position:absolute;right:22px;top:19px;width:38px;height:38px;border-radius:10px;border:0;background:color-mix(in srgb,var(--tone) 12%,var(--fn-surface));opacity:1;font-size:24px;display:grid;place-items:center}
#home .subject-symbol .fn-brand-icon{width:25px;height:25px}
#home .subject .card-copy{margin:16px 0 0;padding:0 0 16px;flex:1}
#home .subject .card-copy h3{font-size:23px;color:var(--fn-ink)!important;margin:0 0 8px;padding:0;line-height:1.3}
#home .subject .card-copy p{font-size:15px;color:var(--fn-muted)!important;line-height:1.65;max-width:34ch;padding:0;margin:0}
#home .subject .tool-tags{display:none}
#home .subject .card-bottom{display:flex;flex-direction:row;align-items:center;padding:12px 0 16px;gap:12px;font-size:12px;border-color:var(--fn-line);color:var(--fn-muted)!important}
#home .subject .card-bottom>span:first-child{max-width:60%}
#home .subject .open-label{width:auto;margin-left:auto;padding:0;background:none;color:var(--tone)!important;font-size:14px;min-height:32px;white-space:nowrap}
#home .subject:hover{border-color:var(--tone);box-shadow:0 8px 22px #1938540d;transform:translateY(-2px)}
#home .paper-entry{padding:20px 24px;min-height:0;grid-template-columns:minmax(0,1fr) auto;display:grid;gap:14px;border-radius:14px;background:var(--fn-soft);border:1px solid var(--fn-line)}
#home .paper-entry .card-top{display:none}#home .paper-entry .card-copy{padding:0;margin:0}#home .paper-entry .card-copy h3{font-size:20px;margin:0 0 5px}#home .paper-entry .card-copy p{font-size:15px;line-height:1.6;color:var(--fn-muted)}#home .paper-entry .card-bottom{padding:0}#home .paper-entry .open-label{color:var(--fn-ink);background:var(--fn-surface);border-color:var(--fn-line);min-height:44px}
#home .science-papers{margin-top:36px;padding:28px}.science-heading h2{font-size:28px!important}.science-route-note{gap:12px}.science-filters{gap:16px}
/* Subject pages: quiet heading, clear primary action, deeper content below. */
html[data-fieldnote] :is(.page-heading,.page-header){background:none!important;border:0!important;border-bottom:1px solid var(--fn-line)!important;border-radius:0!important;padding:0 0 20px!important;margin-bottom:24px;box-shadow:none}
html[data-fieldnote] :is(.page-heading,.page-header) h1{font-size:clamp(28px,2.8vw,36px);line-height:1.25;margin-bottom:10px;letter-spacing:-.03em}
html[data-fieldnote] :is(.page-heading,.page-header) p{max-width:65ch;line-height:1.7}
html[data-fieldnote] :is(.topic-grid,.unit-grid,.grid.cols-3){gap:22px}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){border-left-width:1px;border-top:2px solid var(--fn-soft);border-radius:14px;box-shadow:none;min-width:0;padding:24px}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card) h3{font-size:21px;line-height:1.4}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card) p{line-height:1.8}
html[data-fieldnote] :is(.lesson-paper,.reading-panel,.source-paper,.practice-card){box-shadow:none;border-radius:14px}
html[data-fieldnote] :is(.lesson-section,.notes-section){padding-block:30px}
html[data-fieldnote] :is(.chem-topbar,.topbar,.studio-topbar){min-height:54px;padding-block:10px}
html.fn-embedded[data-fieldnote=physics] .search-box,html.fn-embedded[data-fieldnote=arc] .studio-topbar>.ml-auto{display:none}
html.fn-embedded[data-fieldnote] .mobile-tools,html.fn-embedded[data-fieldnote=physics] .mobile-course-nav{display:none!important}
html.fn-embedded[data-fieldnote=physics] .topbar .utility-tabs{display:none}
html[data-fieldnote] .course-mode-desk{padding:14px 18px;border-radius:12px;font-size:14px;background:var(--fn-surface);margin-bottom:24px}
html[data-fieldnote] .course-mode-top{gap:12px}.course-mode-top .eyebrow,.course-mode-top .overline{display:none}
html[data-fieldnote] .course-mode-top strong{font-size:14px}.course-mode-top>a{font-size:14px}
html[data-fieldnote] .tier-selection-status{display:none!important}
html[data-fieldnote] .course-mode-desk p{font-size:14px}.fn-course-details{margin-top:8px}.fn-course-details>summary{padding-top:4px!important;font-size:14px;color:var(--fn-muted)}
html[data-fn-theme=dark][data-fieldnote] :is(.chem-topbar .menu,.sim-tabs a,.ghost-tool-button){background:var(--fn-soft)!important;color:var(--fn-ink)!important;border-color:var(--fn-line)!important}
html[data-fn-theme=dark][data-fieldnote=physics] .ghost-tool-button>span{color:var(--fn-ink)!important}
html[data-fn-theme=dark][data-fieldnote=chemistry] .sim-tabs a.active{background:#a97b2b!important;color:#fff!important}
.fn-course-details:not([open])>*:not(summary){display:none}
html[data-fieldnote] .discovery-banner{display:flex;justify-content:flex-end;background:none!important;padding:0;margin:0 0 24px;border:0;border-radius:0}
html[data-fieldnote] .discovery-banner>div{display:none}.discovery-banner .ss-button{background:var(--fn-surface);color:var(--fn-ink);border:1px solid var(--fn-line);font-size:14px;min-height:44px}
html[data-fieldnote=physics] .physics-discovery{display:none!important}
html[data-fieldnote] .course-overview{margin-bottom:24px;box-shadow:none;border-radius:14px}
html[data-fieldnote] .course-overview .continue{min-height:160px;padding:24px}.course-overview .continue h2{font-size:24px}.course-overview .continue .subject-art{opacity:.14}
html[data-fieldnote] .course-stat{padding:20px}.course-overview .quick-tools{padding:16px 22px}.course-overview .quick-tools a{background:none;border:0;border-radius:0}
html[data-fieldnote=biology] .dashboard-grid{gap:24px}.study-card h2{font-size:clamp(26px,3vw,34px)!important;line-height:1.25!important}.study-card .specimen{max-width:190px}
html[data-fieldnote=biology] .dashboard-side .card{padding:24px}.stats-grid .stat{padding:20px}
html[data-fn-theme=dark][data-fieldnote=biology] :is(.card,.toolbar,.table-wrap){background:var(--fn-surface)!important;color:var(--fn-ink)!important;border-color:var(--fn-line)!important}
html[data-fn-theme=dark][data-fieldnote=biology] :is(.flashcard .prompt,.count-label,.stat strong,.mini-link,.section-space a,.top-actions a,.mobile-dock a.active){color:var(--fn-ink)!important}
html[data-fn-theme=dark][data-fieldnote=biology] .btn:not(.secondary){background:#aee7cb!important;color:#123f31!important;border-color:#aee7cb!important}
html[data-fieldnote=business] .hero{padding:24px 36px;color:var(--fn-ink)}
html[data-fieldnote=business] .hero h1{font-size:32px;line-height:1.25;margin-bottom:12px}html[data-fieldnote=business] .hero h1 br{display:none}html[data-fieldnote=business] .hero h1 em{color:var(--fn-ink)!important;margin-left:.2em}
html[data-fieldnote=business] .hero-actions .button-ghost{background:var(--fn-surface)!important;color:var(--fn-ink)!important;border-color:var(--fn-line)!important}
html[data-fieldnote=business] .hero-note{font-size:13px}.business-lens-strip{display:none!important}
html[data-fieldnote=business] .coral-chip{color:#91392c}html[data-fieldnote=business] .yellow-chip{color:#6c520c}html[data-fieldnote=business] .blue-chip{color:#285c78}
html[data-fieldnote=business] .hero:before,html[data-fieldnote=business] .hero:after{display:none}
html[data-fn-theme=dark][data-fieldnote=business] :is(.desk-card,.business-method,.syllabus-selector,.copy-link-button){background:var(--fn-surface)!important;color:var(--fn-ink)!important;border-color:var(--fn-line)!important}
html[data-fn-theme=dark][data-fieldnote=business] :is(.desk-card h3,.desk-card .inline-button,.desk-card .flip-hint,.business-method strong,.syllabus-selector){color:var(--fn-ink)!important}
html[data-fn-theme=dark][data-fieldnote=business] :is(.business-method p,.business-method .method-label,.desk-card .time){color:var(--fn-muted)!important}
html[data-fn-theme=dark][data-fieldnote=business] .deep-link-button{color:var(--fn-ink)!important;border-color:var(--fn-line)!important}
html[data-fieldnote=business] .study-route-strip{background:var(--fn-surface);line-height:1.7;flex-wrap:wrap;gap:16px;padding:18px 22px}
html[data-fieldnote=arc] .studio-header{margin-bottom:24px;padding-bottom:0}.studio-header h1{font-size:clamp(28px,2.8vw,36px);line-height:1.3}
html[data-fieldnote=arc] .studio-page{max-width:1350px;padding-top:24px}.studio-panel{box-shadow:none!important}.studio-metrics{gap:18px}.axis-route{margin-top:28px}.axis-route-steps{gap:18px}
html[data-fn-theme=dark][data-fieldnote=arc] .studio-kicker{color:#bad2f5!important}
html[data-fn-theme=dark][data-fieldnote=arc] .studio-header{background:none!important}
/* Native disclosures retain every route without an endless course rail. */
.fn-nav-group{border-top:1px solid #ffffff26;margin:16px 0 0;padding-top:8px;color:#d3e1ee}
.fn-nav-group>summary{cursor:pointer;font-size:14px;padding:12px 13px;min-height:44px;border-radius:8px;list-style-position:inside;color:#d3e1ee;line-height:1.4}
.fn-nav-group>summary:hover{background:#29445f}.fn-nav-group[open]>summary{color:white}
html[data-fieldnote] .fn-nav-group nav{margin-top:6px}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail){scrollbar-width:thin}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav{gap:5px}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav a{min-height:44px;padding:11px 13px}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) .fn-tips-link{color:#d3e1ee!important;margin-top:4px;min-height:44px}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) .fn-tips-link:hover{color:white!important}
html[data-fieldnote] .tips-hero{padding:0 0 24px;border:0;border-bottom:1px solid var(--fn-line);background:none}.tips-hero h1{font-size:clamp(28px,3vw,38px)}.tips-grid{gap:24px}.tips-card{box-shadow:none;padding:24px}
.tips-course a{display:block;min-height:44px;padding:9px 0;line-height:1.6}
@media(max-width:1100px){.subject-mode .brand>span:last-child{display:none}.subject-mode .masthead{gap:12px;padding-inline:18px}.subject-header select{max-width:180px}.fn-search-launch kbd{display:none}#home .resume-panel{gap:18px}#home .quick-actions{max-width:200px}#home .quick-action{padding:8px 10px}#home .quick-icon{display:none}#home .resume-copy{gap:3px 16px}}
@media(max-width:820px){#home{padding:28px 24px}.home-welcome{grid-template-columns:1fr;gap:20px}#home .subjects{grid-template-columns:repeat(2,minmax(0,1fr))}#home .resume-panel{display:block;padding:18px}#home .resume-copy{grid-template-columns:minmax(0,1fr) auto}#home .quick-study{margin:14px 0 0 56px}#home .quick-actions{max-width:none}.subject-mode .masthead{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:10px 16px}.subject-mode .masthead>.brand{display:none}.subject-mode .masthead>.subject-header{grid-row:1;grid-column:1;min-width:0}.subject-mode .masthead>.fn-appearance{grid-row:1;grid-column:2;margin:0}.subject-mode .masthead>#subject-search-slot{grid-row:2;grid-column:1/-1;max-width:none}.subject-header select{max-width:220px;min-width:0;flex:1;width:100%}.subject-mode .masthead>.fn-appearance>summary{padding:10px;width:44px}.subject-mode [data-fn-display]{display:none}.subject-header .picker-button{min-height:44px;font-size:14px;padding:9px 12px}#subject-search-slot .fn-search-launch{min-height:44px}html.fn-embedded[data-fieldnote=physics] .topbar{min-height:54px}.fn-appearance-direct{bottom:74px}html[data-fieldnote] :is(.page-heading,.page-header){padding-bottom:18px!important}html[data-fieldnote] :is(.topic-grid,.unit-grid){gap:18px}.tips-side{position:static!important}}
@media(max-width:580px){body:not(.subject-mode) .masthead{min-height:68px;height:auto;padding:12px 18px}.home-header{display:none}body:not(.subject-mode) .brand-caption{display:none}#home{padding:24px 18px}#home .intro h1{font-size:34px}#home .home-finder h2{display:none}#home .resume-mark{display:none}#home .resume-copy{gap:4px 12px}#home .resume-panel h2{font-size:18px}#home .resume-detail{font-size:12px!important}#home .continue-button{padding:10px 12px}#home .quick-study{margin-left:0}#home .quick-actions{gap:8px}#home .quick-action{flex:1;justify-content:center}.quick-label{font-size:14px}#home .subjects{grid-template-columns:1fr;gap:16px}html[data-fn-theme] #home .subjects .subject{min-height:178px;padding:20px 22px 0}#home .subject .card-copy{margin-top:12px}#home .subject .card-copy h3{font-size:23px}#home .subject .card-copy p{font-size:15px}#home .subject .card-bottom{padding-bottom:14px}#home .section-label>span{display:none}#home .paper-entry{display:block;padding:22px}#home .paper-entry .card-bottom{margin-top:16px;justify-content:flex-start}#home .science-papers{padding:22px 18px}.science-heading h2{font-size:26px!important}.subject-header select{max-width:190px}.fn-header-tips{padding:9px 12px}html[data-fieldnote] .course-mode-top>div{flex-basis:100%}html[data-fieldnote] .course-mode-desk{padding:14px}html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){padding:22px}.course-overview .continue{padding:22px!important}html[data-fieldnote=business] .hero{padding:22px 20px}.study-card .specimen{display:none}.fn-nav-group{margin-top:14px}}
@media(max-width:360px){.subject-mode .masthead{padding-inline:12px}.subject-header{gap:8px}.subject-header select{font-size:13px;max-width:160px}.subject-header .picker-button{padding:9px;font-size:13px}#home .resume-copy{grid-template-columns:1fr}#home .continue-button{grid-column:1;grid-row:auto;margin-top:10px;justify-self:start}#home .quick-action{font-size:13px;padding-inline:8px}}
@media(prefers-reduced-motion:reduce){#home .subject:hover{transform:none}.fn-display-panel{animation:none}}
@media print{.fn-appearance,.fn-nav-group{display:none}}
/* The C7 notebook has the shared topic-return action already. Keep its Thai
   header and example grids inside a phone width without clipping content. */
html[data-fieldnote=chemistry] .app-shell .teaching-pair>*{min-width:0}
@media(max-width:760px){
 html[data-fieldnote=chemistry] .app-shell .teaching-pair{grid-template-columns:minmax(0,1fr)!important}
 html[data-fieldnote=chemistry] .app-shell .topbar:has(.fn-study-header-actions)>.c7-course-home{display:none}
 html[data-fieldnote=chemistry] .app-shell .fn-study-header-actions{flex-shrink:0}
 html[data-fieldnote=chemistry] .app-shell .equation strong{overflow-wrap:anywhere}
}
