/* #659 visual discovery map — opt-in exploration, not operational navigation.
   Shares approved IF Digital navy/cyan and font roles, never changes card pages. */
html:has(.ifd-map-page),body:has(.ifd-map-page){height:100dvh;overflow:hidden!important}
body:has(.ifd-map-page) .md-sidebar--primary,
body:has(.ifd-map-page) .md-sidebar--secondary{display:none!important}
body:has(.ifd-map-page) .md-banner{display:none!important}
body:has(.ifd-map-page) .md-main{height:calc(100dvh - 113px);min-height:0!important;overflow:hidden!important}
body:has(.ifd-map-page) .md-main__inner{
 height:100%;width:100%!important;max-width:none!important;min-height:0;overflow:hidden;
 padding:0 15px!important;margin:0!important;align-items:stretch}
body:has(.ifd-map-page) .md-content{flex:1;min-width:0;min-height:0;height:100%;overflow:hidden}
body:has(.ifd-map-page) .md-content__inner{height:100%!important;padding:0!important;margin:0!important;min-height:0;overflow:hidden}
body:has(.ifd-map-page) #ifd-main-content{height:100%;min-height:0;overflow:hidden}
body:has(.ifd-map-page) .md-footer{display:none!important}
.ifd-map-page{--map-navy:#0b1220;--map-blue:#185fa5;--map-cyan:#19b4d0;--map-ink:#17334a;--map-soft:#f3f8fb;
 display:flex;flex-direction:column;gap:8px;min-width:0;height:100%;
 font-family:Inter,Arial,sans-serif;color:var(--map-ink)}
.ifd-map-page *{box-sizing:border-box}
.ifd-map-page .ifd-map-header{display:flex;align-items:center;justify-content:space-between;flex:none;
 background:linear-gradient(112deg,#091629,#0b3544);border-radius:12px;padding:15px 22px;gap:17px;color:white;margin-top:8px}
.ifd-map-page .ifd-map-eyebrow{color:#82d5e7;font:800 10px/1.4 Inter,Arial,sans-serif;letter-spacing:.09em}
.md-typeset .ifd-map-page .ifd-map-header h1{color:#fff!important;margin:4px 0 2px!important;font:800 clamp(21px,2.5vw,31px)/1.17 Inter,Arial,sans-serif;letter-spacing:-.035em}
.md-typeset .ifd-map-page .ifd-map-header p{color:#d2e7ee;font:500 12px/1.4 Inter,Arial,sans-serif;margin:0!important}
.ifd-map-page .ifd-map-shortcuts{display:flex;gap:7px;flex:none;align-items:center}
.ifd-map-page .ifd-map-shortcuts a{white-space:nowrap;color:#e6f4fa!important;text-decoration:none!important;
 font:700 11px Inter,Arial,sans-serif;border:1px solid #3e667b;padding:9px 11px;border-radius:8px}
.ifd-map-page .ifd-map-shortcuts a:hover{background:#214f61}
.ifd-map-page .ifd-map-path{display:flex;align-items:center;gap:10px;flex:none;min-height:36px;
 color:#667e8c;font:600 12px Inter,Arial,sans-serif;overflow:hidden}
.ifd-map-page .ifd-map-path button{border:0;background:none;color:#185fa5;font:750 12px Inter,Arial,sans-serif;
 cursor:pointer;padding:8px;white-space:nowrap}
.ifd-map-page [data-map-crumbs]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ifd-map-page .ifd-map-view{
 background:#fcfeff;flex:1;min-height:0;min-width:0;position:relative;
 overflow:auto;overscroll-behavior:contain;border:1px solid #d5e5ef;border-radius:13px;
 background-image:radial-gradient(#dbe9f1 .75px,transparent .75px);background-size:21px 21px;
 scrollbar-width:thin}
.ifd-map-page .ifd-map-columns{display:grid;grid-template-columns:170px 206px 172px minmax(225px,1fr);
 min-width:875px;column-gap:28px;min-height:100%;padding:12px;position:relative;z-index:1;align-items:start}
.ifd-map-page .ifd-map-column{min-width:0;height:auto;max-height:100%;position:relative;padding:0 2px}
.ifd-map-page .ifd-map-column.is-empty{opacity:.6}
.ifd-map-page .ifd-map-col-title{font:800 10px/1.3 Inter,Arial,sans-serif;letter-spacing:.08em;color:#5e8195;
 text-transform:uppercase;position:sticky;top:0;margin:0 0 14px;min-height:20px;background:#fcfeff;padding:7px 4px;z-index:4}
.ifd-map-page .ifd-map-node-list{display:grid;gap:10px;align-content:start;position:relative}
.ifd-map-page .ifd-map-node{
 background:white;border:1px solid #ccdfeb;box-shadow:0 2px 6px rgba(20,49,74,.045);
 display:flex;align-items:center;gap:8px;width:100%;min-height:48px;
 padding:9px 9px 9px 6px;text-align:left;border-radius:9px;cursor:pointer;color:#254d66;
 font:600 12px/1.27 Inter,Arial,sans-serif;overflow-wrap:anywhere;position:relative}
.ifd-map-page .ifd-map-node:hover{border-color:#3093bb;background:#f0f9fc}
.ifd-map-page .ifd-map-node.is-selected{border-color:#0e8bb4;background:#e6f6fb;box-shadow:inset 3px 0 #19b4d0}
.ifd-map-page .ifd-map-node-marker{width:14px;height:14px;flex:none;border:2px solid #8bbcd3;background:white;border-radius:50%;
 box-shadow:0 0 0 3px #edf8fd}
.ifd-map-page .ifd-map-node.is-selected .ifd-map-node-marker{background:#19b4d0;border-color:#176998}
.ifd-map-page .ifd-map-node-copy{min-width:0;display:grid;gap:4px}
.ifd-map-page .ifd-map-node strong{font:750 12px/1.3 Inter,Arial,sans-serif;color:#183e58}
.ifd-map-page .ifd-map-node small{font:500 10px/1.32 Inter,Arial,sans-serif;color:#70889b}
.ifd-map-page .ifd-map-lines{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:visible}
.ifd-map-page .ifd-map-empty{position:absolute;z-index:0;top:36%;left:29%;max-width:50%;
 color:#7591a3;font:500 16px/1.5 "Source Serif 4",Georgia,serif}
.ifd-map-page .ifd-map-filter{display:block;width:100%;padding:10px;border:1px solid #bad5e4;border-radius:8px;
 background:white;color:#18394c;font:600 12px Inter,Arial,sans-serif;margin-bottom:10px}
.ifd-map-page .ifd-map-result-count{font:600 11px Inter,Arial,sans-serif;color:#7690a0;margin:7px 0}
.ifd-map-page .ifd-map-detail{position:fixed;right:26px;bottom:30px;z-index:100;
 max-width:355px;min-width:280px;max-height:calc(100dvh - 185px);overflow-y:auto;padding:20px;border:1px solid #93c9dc;
 background:#fff;box-shadow:0 11px 36px rgba(15,50,75,.19);border-radius:14px}
.ifd-map-page .ifd-map-detail[hidden]{display:none}
.ifd-map-page .ifd-map-detail-header{display:flex;align-items:center;justify-content:space-between}
.ifd-map-page .ifd-map-detail-label{font:800 10px Inter,Arial,sans-serif;letter-spacing:.075em;color:#1686a9}
.ifd-map-page .ifd-map-close{border:0;border-radius:7px;background:#eff7fb;color:#275a70;cursor:pointer;
 width:30px;height:30px;font:700 21px/1 Inter,Arial,sans-serif}
.md-typeset .ifd-map-page .ifd-map-detail h2{font:800 18px/1.22 Inter,Arial,sans-serif;margin:8px 0 10px;color:#12374d}
.md-typeset .ifd-map-page .ifd-map-detail p{font:16px/1.48 "Source Serif 4",Georgia,serif;color:#405e70;margin:0 0 14px}
.ifd-map-page .ifd-map-open{display:block;background:#185fa5;color:white!important;text-decoration:none!important;
 border-radius:9px;padding:12px 14px;text-align:center;font:800 12px Inter,Arial,sans-serif}
.md-typeset .ifd-map-page .ifd-map-related-heading{font:800 12px Inter,Arial,sans-serif;color:#25445b;margin:15px 0 7px}
.ifd-map-page .ifd-map-related{display:flex;flex-wrap:wrap;gap:6px}
.ifd-map-page .ifd-map-related button{border:1px solid #c9e1ec;color:#185f85;background:#f0f8fc;
 cursor:pointer;border-radius:7px;padding:7px 8px;font:700 10px/1.2 Inter,Arial,sans-serif}
.ifd-map-page .ifd-map-back-choice{border:0;background:none;color:#627a8b;text-decoration:underline;
 font:700 11px Inter,Arial,sans-serif;cursor:pointer;margin:13px 0 0}
.ifd-map-page .ifd-map-foot{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;
 color:#6e8798;font:500 11px Inter,Arial,sans-serif;padding:1px 2px 7px}
.ifd-map-page .ifd-map-foot a{font-weight:750;color:#185fa5}
.ifd-map-page button:focus-visible,.ifd-map-page a:focus-visible,.ifd-map-page input:focus-visible,
.ifd-map-page [tabindex]:focus-visible{outline:3px solid #19b4d0;outline-offset:2px}
@media(max-width:76.234375em){body:has(.ifd-map-page) .md-main{height:calc(100dvh - 48px)}}
@media(max-width:1120px){
 .ifd-map-page .ifd-map-shortcuts a{padding:7px;font-size:10px}
 .ifd-map-page .ifd-map-columns{grid-template-columns:151px 184px 165px minmax(220px,1fr);min-width:842px;gap:20px}
 .ifd-map-page .ifd-map-header p{max-width:650px}
}
@media(max-width:740px){
 body:has(.ifd-map-page) .md-main__inner{padding:0 7px!important}
 .ifd-map-page{gap:5px}
 .ifd-map-page .ifd-map-header{padding:12px;display:block;margin-top:2px}
 .md-typeset .ifd-map-page .ifd-map-header h1{font-size:21px}
 .ifd-map-page .ifd-map-header p{font-size:11px}
 .ifd-map-page .ifd-map-shortcuts{display:none}
 .ifd-map-page .ifd-map-path{min-height:30px;font-size:10px;gap:5px}
 .ifd-map-page .ifd-map-columns{grid-template-columns:170px 185px 160px 232px;min-width:820px;gap:18px;padding:12px 10px}
 .ifd-map-page .ifd-map-node{min-height:47px}
 .ifd-map-page .ifd-map-detail{position:fixed;right:12px;bottom:12px;min-width:0;width:calc(100vw - 24px);
 max-width:350px;max-height:calc(100dvh - 150px);padding:15px}
 .ifd-map-page .ifd-map-foot span{display:none}
}
@media(prefers-reduced-motion:reduce){.ifd-map-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* #659: single root → twelve areas → investigative angles → actual guidance.
   Keep every topic reachable without expanding intermediate groups or pages. */
.ifd-map-page .ifd-map-column[data-map-column="group"]{
 display:flex;flex-direction:column;min-height:100%;align-self:stretch
}
.ifd-map-page .ifd-map-column[data-map-column="group"] .ifd-map-node-list{
 flex:1;display:flex;align-items:center;min-height:270px
}
.ifd-map-page .ifd-map-column[data-map-column="group"] .ifd-map-node{
 min-height:68px;padding:13px 10px;border-color:#8bbbd1;background:#edf8fc
}
.ifd-map-page .ifd-map-column[data-map-column="topic"]{
 display:flex;flex-direction:column;max-height:calc(100dvh - 265px);
 overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain
}
.ifd-map-page .ifd-map-column[data-map-column="topic"] .ifd-map-col-title{
 flex:none;z-index:5
}
.ifd-map-page .ifd-map-column[data-map-column="topic"] .ifd-map-node-list{
 gap:4px;padding-bottom:6px
}
.ifd-map-page .ifd-map-column[data-map-column="topic"] .ifd-map-node{
 min-height:31px;padding:5px 6px;gap:7px
}
.ifd-map-page .ifd-map-column[data-map-column="topic"] .ifd-map-node strong{
 font-size:11px;line-height:1.22
}
@media(max-width:740px){
 .ifd-map-page .ifd-map-column[data-map-column="topic"]{
  max-height:calc(100dvh - 240px)
 }
 .ifd-map-page .ifd-map-column[data-map-column="group"] .ifd-map-node-list{
  min-height:220px
 }
}
@media(max-height:620px){
 .ifd-map-page .ifd-map-column[data-map-column="topic"]{
  max-height:calc(100dvh - 210px)
 }
}

/* Fit all twelve choices on an ordinary laptop when space allows. */
.ifd-map-page .ifd-map-column[data-map-column="topic"] .ifd-map-node-list{gap:2px;padding-bottom:2px}
/* Issue #659 / Messaging question pilot: topic-specific map subbranches and
   accessible navigation controls. Does not apply to articles or Moodle. */
.ifd-map-page .ifd-map-tools{
 flex:none;display:flex;align-items:center;gap:7px;flex-wrap:wrap;
 min-height:37px;font:650 11px Inter,Arial,sans-serif;color:#456579
}
.ifd-map-page .ifd-map-tools button{
 border:1px solid #b9d3e2;background:#f4fafc;border-radius:7px;
 min-height:31px;padding:5px 9px;color:#155e85;cursor:pointer;
 font:750 11px Inter,Arial,sans-serif
}
.ifd-map-page .ifd-map-tools button:hover{border-color:#298fb8;background:#e6f5fb}
.ifd-map-page .ifd-map-tools button[aria-pressed=true]{border-color:#1884af;background:#d9f1fa}
.ifd-map-page .ifd-map-tools button[hidden]{display:none}
.ifd-map-page [data-map-zoom-readout]{min-width:40px;text-align:center;font-variant-numeric:tabular-nums}
.ifd-map-page .ifd-map-tools-hint{font-size:10px;color:#6a8595;margin-left:auto}
.ifd-map-page .ifd-map-view{cursor:grab}
.ifd-map-page .ifd-map-view.is-panning{cursor:grabbing}
.ifd-map-page .ifd-map-columns{zoom:1}
.ifd-map-page [data-map-column="subcategory"]{display:none}
.ifd-map-page[data-question-grouping="grouped"] .ifd-map-columns{
 grid-template-columns:145px 178px 150px 192px minmax(230px,1fr);
 min-width:1110px;column-gap:21px
}
.ifd-map-page[data-question-grouping="grouped"] [data-map-column="subcategory"]{
 display:block;min-width:0;max-height:100%;overflow-y:auto;scrollbar-width:thin
}
.ifd-map-page[data-question-grouping="grouped"] [data-map-column="subcategory"] .ifd-map-node{
 padding:6px 7px;min-height:38px
}
.ifd-map-page[data-question-grouping="grouped"] [data-map-column="subcategory"] .ifd-map-node strong{font-size:11px}
.ifd-map-page[data-question-grouping="grouped"] [data-map-column="subcategory"] .ifd-map-node small{font-size:9px}
.ifd-map-page[data-question-grouping="grouped"] [data-map-column="resource"] .ifd-map-node strong{font-size:11px}
.ifd-map-page .ifd-map-prompt,.ifd-map-page .ifd-map-loading{
 padding:12px;border-radius:10px;background:#edf6fb;
 color:#396178;font:600 12px/1.5 Inter,Arial,sans-serif
}
.ifd-map-page .ifd-map-inline-section{
 font:800 11px/1.3 Inter,Arial,sans-serif;
 color:#166b91;padding:10px 0 5px;border-bottom:1px solid #d6e7f0;
 margin:5px 0!important
}
.ifd-map-page .ifd-map-filter{min-height:38px}
.ifd-map-page .ifd-map-node[data-section]{min-height:31px}
.ifd-map-page [data-map-expand-groups][aria-pressed="true"]{background:#dbf3fa}
/* Full-page mode deliberately restores native vertical page scrolling. */
html:has(.ifd-map-page.is-full-page),
body:has(.ifd-map-page.is-full-page){height:auto!important;overflow-y:auto!important}
body:has(.ifd-map-page.is-full-page) .md-main,
body:has(.ifd-map-page.is-full-page) .md-main__inner,
body:has(.ifd-map-page.is-full-page) .md-content,
body:has(.ifd-map-page.is-full-page) .md-content__inner,
body:has(.ifd-map-page.is-full-page) #ifd-main-content{
 height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important
}
body:has(.ifd-map-page.is-full-page) .md-footer{display:none!important}
.ifd-map-page.is-full-page{height:auto!important;min-height:calc(100dvh - 50px);overflow:visible!important}
.ifd-map-page.is-full-page .ifd-map-view{
 height:auto!important;min-height:600px;max-height:none;overflow:visible!important
}
.ifd-map-page.is-full-page .ifd-map-columns{height:auto;min-height:610px}
.ifd-map-page.is-full-page .ifd-map-column{
 height:auto!important;max-height:none!important;overflow:visible!important
}
.ifd-map-page.is-full-page [data-map-column="subcategory"]{overflow:visible}
.ifd-map-page.is-full-page .ifd-map-detail{position:fixed}
@media(max-width:900px){
 .ifd-map-page .ifd-map-tools-hint{display:none}
}
@media(max-width:740px){
 .ifd-map-page .ifd-map-tools{gap:4px}
 .ifd-map-page .ifd-map-tools button{padding:5px 7px;font-size:10px}
 .ifd-map-page[data-question-grouping="grouped"] .ifd-map-columns{
  grid-template-columns:150px 175px 155px 195px 225px;
  min-width:1030px;gap:18px
 }
}

/* #659: the diagram is the page. Keep ordinary site navigation, remove the
   second hero/header and duplicate shortcuts on visual Explore routes only. */
body:has(.ifd-map-page) .md-typeset p:has(>link[href*="ifd-visual-map.css"]){
 display:none!important;margin:0!important;padding:0!important
}
body:has(.ifd-map-page) .md-content__inner > div:has(> .ifd-map-page){
 height:100%!important;margin:0!important;padding:0!important
}
body:has(.ifd-map-page) .md-main{
 height:calc(100dvh - 125px)!important
}
.ifd-map-page{gap:4px!important;min-height:0;overflow:hidden}
.ifd-map-page .ifd-map-commandbar{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 flex:none;min-width:0;min-height:44px;background:#f3f8fb;
 border:1px solid #d7e8f0;border-radius:9px;
 padding:5px 11px;margin-top:3px
}
.ifd-map-page .ifd-map-inline-title{
 margin:0!important;color:#133c56!important;
 font:800 14px/1.2 Inter,Arial,sans-serif!important;white-space:nowrap
}
.ifd-map-page .ifd-map-path{
 flex:1;min-width:0;display:flex;align-items:center;gap:10px;
 margin:0;min-height:31px;padding:0
}
.ifd-map-page .ifd-map-path [data-map-crumbs]{
 font:600 11px/1.35 Inter,Arial,sans-serif;color:#517489;
 flex:1;min-width:45px;order:1
}
.ifd-map-page .ifd-map-path [data-map-back]{order:2}
.ifd-map-page .ifd-map-path [data-map-restart]{order:3}
.ifd-map-page .ifd-map-path button{
 padding:5px 7px;border-radius:6px;border:1px solid transparent;
 font:700 11px Inter,Arial,sans-serif;color:#205f88;min-height:29px
}
.ifd-map-page .ifd-map-path button:hover{background:#e3f2f9;border-color:#c6dfed}
.ifd-map-page .ifd-map-tools{flex:none;min-height:31px;margin:0;gap:5px}
.ifd-map-page .ifd-map-tools button{min-height:29px;padding:4px 8px}
.ifd-map-page .ifd-map-view{min-height:0;flex:1;margin:0!important}
@media(max-width:76.234375em){
 body:has(.ifd-map-page) .md-main{height:calc(100dvh - 49px)!important}
 .ifd-map-page .ifd-map-commandbar{flex-wrap:wrap;gap:2px 9px;padding:5px 8px}
 .ifd-map-page .ifd-map-path{flex-basis:100%;min-height:29px}
 .ifd-map-page .ifd-map-tools{flex:1;justify-content:flex-start}
}
@media(max-width:740px){
 .ifd-map-page .ifd-map-commandbar{gap:2px;padding:4px 6px}
 .ifd-map-page .ifd-map-inline-title{font-size:12px!important}
 .ifd-map-page .ifd-map-path{gap:4px}
 .ifd-map-page .ifd-map-path [data-map-crumbs]{font-size:10px}
 .ifd-map-page .ifd-map-path button{font-size:10px;padding:4px}
 .ifd-map-page .ifd-map-tools{gap:3px;flex-wrap:wrap}
 .ifd-map-page .ifd-map-tools button{font-size:10px;padding:4px 6px}
}
/* Remove the anonymous 9px line box inserted by MkDocs hook output whitespace. */
body:has(.ifd-map-page) .md-content__inner > div:has(> .ifd-map-page){
 display:flex!important;flex-direction:column!important
}
.ifd-map-page{flex:1;min-height:0}
/* Prevent generated whitespace before the Markdown wrapper consuming a line. */
body:has(.ifd-map-page) .md-content__inner{display:flex!important;flex-direction:column!important;min-height:0!important}
body:has(.ifd-map-page) .md-content__inner > div:has(> .ifd-map-page){flex:1;min-height:0}

/* #714: reveal all results of a long subject branch without forcing a search. */
.ifd-map-page .ifd-map-load-more{display:block;width:100%;min-height:40px;margin:9px 0 4px;padding:9px 12px;border:1px solid #a5cbdd;border-radius:8px;background:#e9f6fc;color:#15536f;font:700 12px Inter,Arial,sans-serif;text-align:center;cursor:pointer}
.ifd-map-page .ifd-map-load-more:hover,.ifd-map-page .ifd-map-load-more:focus-visible{border-color:#278bb4;background:#d8f0fa}
.ifd-map-page .ifd-map-load-more[hidden]{display:none}


/* #659: useful subject links even when browser scripts fail. */
.ifd-map-page .ifd-map-fallback{
 position:absolute;inset:0;z-index:6;overflow-y:auto;
 padding:clamp(20px,3vw,42px);background:#fcfeff;
 color:#17334a;font-family:Inter,Arial,sans-serif
}
.ifd-map-page .ifd-map-fallback[hidden]{display:none}
.md-typeset .ifd-map-page .ifd-map-fallback h2{
 margin:0 0 7px;color:#133c56;font:800 clamp(19px,2vw,26px)/1.25 Inter,Arial,sans-serif
}
.md-typeset .ifd-map-page .ifd-map-fallback p{
 margin:0 0 23px;color:#4b6d82;font:500 14px/1.5 Inter,Arial,sans-serif
}
.ifd-map-page .ifd-map-fallback-links{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));
 gap:12px;max-width:1050px
}
.ifd-map-page .ifd-map-fallback-links a{
 display:flex;align-items:center;min-height:60px;padding:13px 17px;
 border:1px solid #c9dfeb;border-radius:9px;background:white;
 color:#18516d!important;text-decoration:none!important;
 font:700 13px/1.35 Inter,Arial,sans-serif
}
.ifd-map-page .ifd-map-fallback-links a:hover,
.ifd-map-page .ifd-map-fallback-links a:focus-visible{
 border-color:#299ec1;background:#e7f7fc
}

/* #659: library directory is a secondary route, not the default entrance. */
.ifd-map-page .ifd-map-directory-link{white-space:nowrap;color:#185fa5;text-decoration:underline;text-underline-offset:3px;font:700 12px/1.4 Inter,Arial,sans-serif;padding:8px}
.ifd-map-page .ifd-map-directory-link:hover{color:#10436b}
@media(max-width:650px){.ifd-map-page .ifd-map-directory-link{font-size:11px;white-space:normal}}


/* #659 home navigation stays available on map pages at phone widths. */
.ifd-map-page .ifd-map-foot{justify-content:flex-start;gap:10px;flex-wrap:wrap}
.ifd-map-page .ifd-map-home-link{display:inline-flex;align-items:center;min-height:32px;font:750 12px/1.3 Inter,Arial,sans-serif;color:#185fa5;text-decoration:underline;text-underline-offset:3px}
.ifd-map-page .ifd-map-home-link:focus-visible{outline:3px solid #19b4d0;outline-offset:2px}
