/* MindMap.css - topic mind map pages (generated by tests/galles/mindmap_pages.py) and the MindMaps.html hub */
.mm-page { max-width: 1200px; margin: 0 auto; padding: 0 16px; line-height: 1.45; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; }
.mm-page .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
.mm-page .bar button { font: inherit; padding: 6px 14px; border: 1px solid #006633; border-radius: 16px; background: #f3f8f5; color: #006633; cursor: pointer; }
.mm-page .bar button:hover:not(:disabled) { background: #006633; color: #ffCC33; }
.mm-page .bar button:disabled { opacity: .45; cursor: default; }
.mm-page .bar .divider { width: 1px; align-self: stretch; background: #b7d3c4; }
.mm-page .bar .status { color: #555; }
.mm-page .bar .hint { color: #666; font-size: 13px; }
#map { width: 100%; overflow-x: auto; }
/* the map */
svg.mm { display: block; width: 100%; height: auto; font-family: Verdana, Arial, Helvetica, sans-serif; }
svg.mm-narrow { width: auto; }
.mm-center rect { fill: #006633; stroke: #004d26; stroke-width: 2; }
.mm-center-name { fill: #ffCC33; font-size: 20px; font-weight: bold; }
.mm-center-cue { fill: #fff; font-size: 12px; }
.mm-branch { cursor: pointer; }
.mm-branch rect { stroke-width: 2; }
.mm-branch-name { fill: #fff; font-size: 15px; font-weight: bold; }
.mm-branch-cue { fill: #fff; font-size: 12px; }
.mm-branch:hover rect { stroke: #ffCC33 !important; stroke-width: 3; }
.mm-leaf { cursor: pointer; text-decoration: none; }
.mm-leaf-name { fill: #1a4d8f; font-size: 14px; }
.mm-leaf:hover .mm-leaf-name, .mm-leaf:focus .mm-leaf-name { text-decoration: underline; fill: #006633; }
.mm-leaf-cue { fill: #666; font-size: 11.5px; }
.mm-leaf-hidden { display: none; fill: #999; font-size: 14px; font-weight: bold; letter-spacing: 1px; }
.mm-recall .mm-leaf:not(.revealed) .mm-leaf-name { display: none; }
.mm-recall .mm-leaf:not(.revealed) .mm-leaf-hidden { display: inline; }
.mm-recall .mm-leaf.revealed .mm-leaf-name { fill: #006633; font-weight: bold; }
.mm-branch-group { transition: opacity .25s; animation: mm-in .5s ease-out both; }
.mm-focusing .mm-branch-group:not(.mm-focus) { opacity: .15; }
@keyframes mm-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mm-branch-group { animation: none; } }
.mm-page #theory h2 { font-size: 18px; margin: 22px 0 6px; }
.mm-page #theory table { border-collapse: collapse; margin: 6px 0 10px; }
.mm-page #theory th, #theory td { border: 1px solid #c9d6ce; padding: 4px 10px; text-align: left; }
.mm-page #theory th { background: #eef5f0; }
@media (max-width: 600px) { .mm-page #theory table { font-size: 12px; } .mm-page #theory th, #theory td { padding: 3px 5px; } }
/* hub page */
.mm-page h2.group { margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #006633; font-size: 20px; }
.mm-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mm-cards a { display: block; height: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d0d7de; border-radius: 8px; background: #f6f8fa; text-decoration: none; color: #333; }
.mm-cards a:hover, .mm-cards a:focus-visible { border-color: #006633; background: #fff; box-shadow: 0 0 0 2px #ffCC33; outline: none; }
.mm-cards b { display: block; color: #1a4d8f; font-size: 15px; }
.mm-cards span { display: block; color: #555; margin: 2px 0 4px; }
.mm-cards small { color: #777; font-size: 12px; line-height: 1.35; display: block; }
/* the overview picture in the theory section */
.mm-page .mm-figure { margin: 10px 0 14px; }
.mm-page .mm-figure img { display: block; max-width: 100%; height: auto; border: 1px solid #e1e4e8; border-radius: 6px; }
.mm-page .mm-figure figcaption { color: #555; font-size: 13px; margin-top: 4px; }
/* header: title left, home link right (like the visualization pages) */
.container > .header:has(.home-link) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.container > .header .home-link { color: #ffCC33; text-decoration: none; font-size: 18px; padding: 10px 0; }
.container > .header .home-link:hover, .container > .footer a:hover { text-decoration: underline; }
.container > .footer { margin-top: 24px; padding: 4px 20px; }
.container > .footer a { text-decoration: none; }
@media (max-width: 600px) { .container > .header .home-link { font-size: 15px; } }
