/* The Guide menu (every public page, including the home header): a list of topics; hovering or focusing a topic opens a side panel with its articles.
   The panel opens toward the page centre in both directions (inset-inline-end), so it never leaves the screen. On touch screens a tap expands the topic inline. */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .2rem; border-radius: 6px; font: inherit; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .2s; }
.menu[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + .55rem); z-index: 60; width: 17.5rem; padding: .5rem; background: #fff; border: 1px solid #dce5dd; border-radius: 16px; box-shadow: 0 20px 56px rgb(32 59 51 / .2); font-weight: 400; text-align: start; animation: menu-in .16s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.topics { list-style: none; margin: 0; padding: 0; }
.topic { position: relative; }
.topic-link { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; color: #203b33; text-decoration: none; font-size: .95rem; font-weight: 600; line-height: 1.6; }
.topic-link .ico { width: 1.2rem; height: 1.2rem; flex: none; color: var(--c, #17634b); }
.topic-link .chev { margin-inline-start: auto; width: .45rem; height: .45rem; flex: none; border: solid #8a9a92; border-width: 0 2px 2px 0; transform: rotate(135deg); }
html[dir="rtl"] .topic-link .chev { transform: rotate(-45deg); }
.topic:hover > .topic-link, .topic:focus-within > .topic-link, .topic.open > .topic-link { background: #edf5ef; color: var(--c, #17634b); }
.flyout { display: none; position: absolute; inset-inline-end: calc(100% + .4rem); top: -.5rem; width: 21rem; padding: .7rem; background: #fff; border: 1px solid #dce5dd; border-radius: 16px; box-shadow: 0 20px 56px rgb(32 59 51 / .2); }
.flyout::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -.5rem; width: .5rem; }
.flyout > strong { display: block; padding: .2rem .6rem .4rem; color: var(--c, #17634b); font-size: .8rem; letter-spacing: .02em; }
.flyout a { display: block; padding: .45rem .65rem; border-radius: 8px; color: #203b33; text-decoration: none; font-size: .92rem; line-height: 1.7; }
.flyout a:hover, .flyout a:focus-visible { background: #f3f7f4; color: var(--c, #17634b); }
.flyout .flyout-all { margin-top: .3rem; border-top: 1px solid #e6eee8; border-radius: 0 0 8px 8px; padding-top: .6rem; font-weight: 700; color: var(--c, #17634b); }
@media (hover: hover) and (min-width: 901px) { .topic:hover > .flyout, .topic:focus-within > .flyout { display: block; animation: menu-in .14s ease-out; } }
.topic.open > .flyout { display: block; }
.menu-foot { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .35rem; padding: .6rem .75rem .35rem; border-top: 1px solid #e6eee8; }
.menu-foot a { color: #61716a; text-decoration: none; font-size: .86rem; line-height: 1.9; }
.menu-foot a:hover { color: #17634b; text-decoration: underline; }
.menu-foot .all { flex-basis: 100%; color: #17634b; font-weight: 700; }
@media (max-width: 900px), (hover: none) {
  .menu-panel { position: fixed; inset-inline: .6rem; top: 4.4rem; width: auto; max-height: 78vh; overflow: auto; }
  .flyout { position: static; width: auto; padding: .1rem .4rem .5rem; padding-inline-start: 1.9rem; border: 0; box-shadow: none; background: transparent; }
  .flyout::after, .flyout > strong { display: none; }
  .topic.open > .topic-link .chev { transform: rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { .menu-panel, .flyout { animation: none !important; } }
