/* Additive navigation only on TOP. Other effects require explicit opt-in. */
.gnav .program-nav { position: relative; }
.gnav .program-nav-parent { padding-right: 33px; }
.gnav .program-dropdown { position: absolute; top: 0; right: 0; width: 32px; height: 100%; z-index: 30; }
.gnav .program-dropdown > summary { display: flex; align-items: center; justify-content: center; width: 32px; height: 100%; min-height: 40px; color: #fff; background: transparent; border-radius: 0 4px 0 0; cursor: pointer; list-style: none; }
.gnav .program-dropdown > summary::-webkit-details-marker { display: none; }
.gnav .program-dropdown > summary:hover { background: rgba(255,255,255,.15); }
.gnav .program-dropdown > summary:focus-visible { outline: 3px solid var(--yellow, #f6ce55); outline-offset: -4px; }
.gnav .program-dropdown > summary span { font-size: 20px; line-height: 1; transition: transform .18s ease; }
.gnav .program-dropdown[open] > summary span { transform: rotate(180deg); }
.gnav .program-dropdown-panel { position: absolute; right: 0; top: 100%; width: min(300px, calc(100vw - 32px)); padding: 16px; background: #fffdf8; border: 1px solid #e4d8cb; border-radius: 0 0 12px 12px; box-shadow: 0 12px 24px rgba(74,49,30,.15); color: var(--brown, #69452e); }
.gnav .program-dropdown-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-align: left; }
.gnav .program-dropdown-panel ul { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 0; margin: 0; list-style: none; }
.gnav .program-dropdown-panel li { grid-column: auto; }
.gnav .program-dropdown-panel a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 6px; background: #f3ede2; color: var(--brown, #69452e); text-align: left; font-size: 14px; line-height: 1.5; }
.gnav .program-dropdown-panel a:hover, .gnav .program-dropdown-panel a:focus-visible { background: #e8efd9; color: #354b27; }
.gnav .program-dropdown-panel a:focus-visible { outline: 3px solid #637e3d; outline-offset: 1px; }
/* Mobile grid: TOP spans row 1; About is left and Program is right in row 2.
   Anchor to that right edge, leaving viewport gutters even at narrow widths. */
@media (max-width: 767px) {
  .gnav .program-dropdown-panel {
    box-sizing: border-box;
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    transform: none;
  }
}
/* Nothing is hidden while waiting for JS or intersection events. */
@keyframes gentle-reveal { from { opacity: .65; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
[data-reveal].has-revealed { animation: gentle-reveal .65s ease-out both; }
[data-card-hover] { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) {
  [data-card-hover]:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(74,49,30,.1); }
}
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--green, #768b48); transform: scaleX(0); transform-origin: left; z-index: 100; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].has-revealed { animation: none; }
  [data-card-hover], .gnav .program-dropdown > summary span { transition: none; }
  [data-card-hover]:hover { transform: none; }
  .reading-progress { display: none; }
}
@media print {
  .gnav .program-dropdown, .reading-progress { display: none; }
  [data-reveal].has-revealed { animation: none; opacity: 1; transform: none; }
}
