/* The bottom dock and its Sections menu (Round 10, Round 20 menu). Shared by the main page, /inside and the resources
   page; loaded just before home.css there so the cascade is unchanged. Page-only extras stay in their own CSS. */
.r10-dock { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 16px); opacity: 0; visibility: hidden; transition: transform 600ms cubic-bezier(.3, 1.15, .5, 1), opacity 300ms ease, visibility 0s 600ms; }
.r10-dock.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.r10-dock__bar { display: flex; gap: 6px; padding: 6px; background: #FFFFFF; border: 1px solid #E8E0D7; border-radius: 999px; }
.r10-dock .btn { min-height: 48px; min-width: 200px; }
.r10-dock__menu-btn { width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--warm-1); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.r10-dock__menu-btn:hover, .r10-dock__menu-btn[aria-expanded="true"] { background: var(--warm-3); }
.r10-dock__panel { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #FFFFFF; border: 1px solid #E8E0D7; border-radius: 20px; padding: 8px; }
.r10-dock__panel[hidden] { display: none; }
.r10-dock__panel ul { list-style: none; margin: 0; padding: 0; }
.r10-dock__panel a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font: 500 15px/1.2 "PP Neue Montreal", Arial, sans-serif; }
.r10-dock__panel a:hover, .r10-dock__panel a:focus-visible { background: var(--warm-1); }
/* Round 20 menu (build.mjs menuPanel; canvas M2 on desktop, M1 on phones). Phones: other pages first, as rows. */
.r10-dock__panel.r20-menu { padding: 14px; display: grid; gap: 14px; }
.r10-dock__panel.r20-menu[hidden] { display: none; } /* the grid above outranks .r10-dock__panel[hidden]; closed means gone */
.r20-menu__label { margin: 0 4px 6px; font: 500 12px/1.3 "PP Neue Montreal", Arial, sans-serif; color: var(--muted); }
.r20-menu__label--pages { color: var(--green-700); }
.r20-menu__here { padding-top: 12px; border-top: 1px solid #E8E0D7; }
.r20-menu__pages ul { display: grid; gap: 8px; }
.r10-dock__panel a.r20-menu__card { display: flex; flex-direction: column; min-height: 52px; box-sizing: border-box; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.r10-dock__panel a.r20-menu__card:hover, .r10-dock__panel a.r20-menu__card:focus-visible { background: var(--warm-1); border-color: var(--green-400); }
.r20-menu__thumb { display: none; }
.r20-menu__row { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.r20-menu__text { display: flex; flex-direction: column; gap: 2px; }
.r20-menu__title { font: 500 15px/1.25 "PP Neue Montreal", Arial, sans-serif; }
.r20-menu__sub { display: none; font: 400 12px/1.3 "PP Neue Montreal", Arial, sans-serif; color: var(--muted); }
.r20-menu__row svg { flex: none; width: 18px; height: 18px; }
/* Desktop: two columns, the other pages as picture cards on the right. */
@media (min-width: 761px) {
  .r10-dock__panel.r20-menu { left: 50%; right: auto; width: 620px; transform: translateX(-50%); grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .r20-menu__here { grid-column: 1; grid-row: 1; padding-top: 0; border-top: 0; }
  .r20-menu__pages { grid-column: 2; grid-row: 1; }
  .r20-menu__pages ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .r20-menu__pages li { display: flex; } /* both cards fill the row: same size (Damian 10-29) */
  .r10-dock__panel a.r20-menu__card { flex: 1; gap: 8px; padding: 8px 8px 12px; border-color: #E8E0D7; }
  .r20-menu__thumb { display: grid; place-items: center; height: 96px; border-radius: 10px; overflow: hidden; background: #F8F5F3; }
  .r20-menu__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .r20-menu__row { align-items: flex-start; padding: 0 6px; } /* titles and lines start at the same height in every card */
  .r20-menu__row svg { align-self: flex-end; }
  .r20-menu__title { min-height: 2.2em; font: 400 19px/1.1 var(--serif, Georgia, serif); } /* room for two lines in every card */
  .r20-menu__sub { display: block; }
}
html { scroll-padding-bottom: 104px; }
@media (max-width: 560px) {
  .r10-dock { left: 16px; right: 16px; transform: translateY(16px); }
  .r10-dock.is-shown { transform: none; }
  .r10-dock__bar { width: 100%; box-sizing: border-box; }
  .r10-dock .btn { flex: 1; min-width: 0; }
}
/* R16-B08: the Sections menu never runs above the window; it scrolls if the window is short. */
.r10-dock__panel { max-height: calc(100dvh - max(24px, env(safe-area-inset-bottom)) - 62px - 24px); overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .r10-dock { transition: none; } }

/* ---------- Mobile UX plan 1B (2026-11-05): a clear dock on phones ----------
   Desktop is unchanged: the page action (.r10-dock__here) and the menu's booking link (.r20-menu__book) are not shown,
   and the button's "Menu" label is screen-reader text. On phones (≤ 760px) the bar is the page action plus a labelled
   Menu button, every target at least 44 × 44, and booking sits at the end of the menu. */
.r10-dock .r10-dock__here, .r20-menu__book { display: none; }
.r10-dock__menu-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .r10-dock { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); transform: translateY(16px); }
  .r10-dock.is-shown { transform: none; }
  .r10-dock__bar { width: 100%; box-sizing: border-box; }
  .r10-dock__bar:has(.r10-dock__here) > .btn:not(.r10-dock__here) { display: none; }
  /* With enlarged text the page action wraps to two lines instead of being cut; at the default size it is one line. */
  .r10-dock .r10-dock__here { display: inline-flex; flex: 1; min-width: 0; min-height: 48px; padding: 6px 16px; white-space: normal; text-align: center; line-height: 1.15; }
  .r10-dock__menu-btn { flex: none; width: auto; min-width: 48px; gap: 8px; padding: 0 18px 0 16px; font: 500 15px/1 "PP Neue Montreal", Arial, sans-serif; white-space: nowrap; }
  .r10-dock__menu-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .r20-menu__book { display: block; padding-top: 12px; border-top: 1px solid #E8E0D7; }
  .r10-dock__panel .r20-menu__book a { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 0 20px; border-radius: 999px; background: var(--green); color: var(--ink); font: 500 16px/1.2 "PP Neue Montreal", Arial, sans-serif; }
  .r10-dock__panel .r20-menu__book a:hover, .r10-dock__panel .r20-menu__book a:focus-visible { background: var(--green-400); color: var(--ink); }
}
