/* Generated by _build/rtl-css.mjs from assets/css/refresh-global.css for the Arabic (right-to-left) edition. Do not edit: edit the original. */
/* Design refresh 2026-11 (global): ideas from DESIGN-IDEAS-THEMEFOREST.md */

/* ======================================================================================
   Idea 12: clearer menu panels
   Markup from navHtml() in _build/lib.mjs: .nav-group > button.nav-top + .nav-mega
   (.nav-col sections with a .nav-h heading and a list, then one .nav-feat featured plant).
   Desktop: a wide panel under the menu bar, solid paper, opened by hover, click or keyboard.
   Phone (<= 980px): one clean column inside the slide-down menu.
   ====================================================================================== */
.mainnav { text-align: right; } /* the menu never inherits centring from page styles */
.nav-mega { display: none; }
.nav-mega ul { list-style: none; margin: 0; padding: 0; }
.nav-h { margin: 0; font: 600 0.832rem/1.3 var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--brass-strong); }
.mainnav .nav-mega a { display: block; position: static; padding: 6px 0; font: 400 .95rem/1.35 var(--body); text-transform: none; letter-spacing: normal; white-space: normal; color: var(--ink); text-decoration: none; border: 0; width: auto; }
.mainnav .nav-mega a::after { display: none; }
.nav-mega .nav-l { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s, color .2s; }
.mainnav .nav-mega a:hover .nav-l, .mainnav .nav-mega a:focus-visible .nav-l { color: var(--brass-strong); text-decoration-color: var(--brass); }
.mainnav .nav-mega a[aria-current] .nav-l { color: var(--brass-strong); text-decoration-color: currentColor; }
.mainnav .nav-mega a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.mainnav .nav-mega .nav-lead .nav-l { font-weight: 600; }
.nav-mega .nav-d { display: block; margin-top: 2px; font: 400 .82rem/1.4 var(--body); color: var(--muted); }

/* featured plant: engraved plate on an ivory mount, one line */
.mainnav .nav-mega .nav-feat { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 16px; align-content: start; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.nav-feat-art { grid-row: 1 / -1; align-self: start; display: block; padding: 5px; background: var(--mount); border: 1px solid var(--line-strong); box-shadow: 0 10px 20px -16px rgba(27, 48, 40, .7); }
.nav-feat-art svg { display: block; width: 100%; height: auto; }
.nav-feat-k { font: 600 0.78rem/1.3 var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--brass-strong); }
.nav-feat-t { margin-top: 4px; font: 400 1.2rem/1.15 var(--display); letter-spacing: normal; color: var(--ink); }
.nav-feat-latin { font: italic 400 .9rem/1.3 var(--latin); color: var(--muted); }
.nav-feat-d { margin-top: 6px; font: 400 .82rem/1.4 var(--body); color: var(--muted); }
.nav-feat .grade { margin-top: 10px; font-size: 0.78rem; }

.mainnav .nav-mega .nav-feat:hover .nav-feat-t, .mainnav .nav-mega .nav-feat:focus-visible .nav-feat-t { color: var(--brass-strong); }

@media (min-width: 981px) {
  .mainnav-in { position: relative; }
  .mainnav .nav-group { position: static; }
  .nav-mega { position: absolute; z-index: 40; top: calc(100% + 1px); right: 50%; transform: translateX(50%);
    width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 160px); overflow-y: auto;
    grid-template-columns: repeat(var(--nav-cols, 3), minmax(0, 1fr)) minmax(250px, 300px); gap: 0 clamp(20px, 2.4vw, 36px);
    padding: 26px clamp(22px, 2.6vw, 36px) 28px; background: var(--paper); border: 1px solid var(--line); border-top: 0;
    box-shadow: 0 30px 60px -36px rgba(27, 48, 40, .6); text-align: right; }
  /* invisible bridge so the pointer can travel from the button to the panel */
  .nav-mega::before { content: ""; position: absolute; right: 0; left: 0; top: -18px; height: 18px; }
  /* always laid out, shown with visibility: a short delay before hiding lets the pointer travel diagonally
     from the button into the panel. Hidden panels are not focusable or announced. */
  .nav-mega { display: grid; visibility: hidden; transition: visibility 0s .25s; }
  .nav-group.open .nav-mega { visibility: visible; transition-delay: 0s; z-index: 41; }
  .nav-group.open .nav-top svg { transform: rotate(180deg); }
  .nav-h { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .nav-col .nav-lead { margin-bottom: 4px; }
  .mainnav .nav-mega .nav-feat { align-self: start; }
}
@media (min-width: 981px) and (hover: hover) {
  .nav-group:hover .nav-mega { visibility: visible; transition-delay: 0s; z-index: 42; }
  .nav-group:hover .nav-top svg { transform: rotate(180deg); }
}
/* the old small panel rule in site.css rotates the arrow on hover at every width; keep it for touch screens only when open */
@media (hover: none) { .nav-group:hover:not(.open) .nav-top svg { transform: none; } }

@media (max-width: 980px) {
  /* solid menu sheet; scrolls inside itself when taller than the screen */
  .mainnav.open { background: var(--bg); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-group.open .nav-mega { display: block; padding: 2px 0 16px; border-bottom: 1px solid var(--line); }
  .nav-col + .nav-col { margin-top: 14px; }
  .nav-h { padding: 12px 0 4px; }
  .mainnav .nav-mega a { padding: 10px 2px 10px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .mainnav .nav-mega li:last-child a { border-bottom: 0; }
  .nav-mega .nav-d { display: none; }
  .mainnav .nav-mega .nav-lead .nav-l { font-weight: 600; }
  .mainnav .nav-mega .nav-feat { display: none; }
}

/* ======================================================================================
   Idea 4: kicker, serif heading, small engraved divider at every section start.
   CSS only: .sec-head (eyebrow + h2) and page heads (eyebrow + h1) get a tiny sprig after the
   heading, drawn as a mask in the accent color so it follows light and dark mode.
   Centered heads: set --sprig: var(--sprig-c) and --sprig-mx: auto on the head.
   ====================================================================================== */
:root {
  --sprig-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cg fill='black' fill-opacity='.28' stroke='black' stroke-width='.8' stroke-linejoin='round'%3E%3Cpath d='M4 8C6 3 11 2 14 2C12 5 9 7 4 8ZM4 8C6 13 11 14 14 14C12 11 9 9 4 8ZM12 8C14 4 18 3 21 3C19 6 16 7.5 12 8ZM12 8C14 12 18 13 21 13C19 10 16 8.5 12 8ZM20 8C21.5 5 24.5 4.5 27 4.5C25.5 6.5 23 7.7 20 8ZM20 8C21.5 11 24.5 11.5 27 11.5C25.5 9.5 23 8.3 20 8Z'/%3E%3C/g%3E%3Cpath d='M1 8H31' stroke='black' stroke-width='.9' stroke-linecap='round'/%3E%3Ccircle cx='33.5' cy='8' r='1.8'/%3E%3Cpath d='M39 8H119' stroke='black' stroke-width='.6' stroke-opacity='.7'/%3E%3C/svg%3E");
  --sprig-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 16'%3E%3Cg id='s'%3E%3Cg fill='black' fill-opacity='.28' stroke='black' stroke-width='.8' stroke-linejoin='round'%3E%3Cpath d='M75 8C77 3 82 2 85 2C83 5 80 7 75 8ZM75 8C77 13 82 14 85 14C83 11 80 9 75 8ZM83 8C85 4 89 3 92 3C90 6 87 7.5 83 8ZM83 8C85 12 89 13 92 13C90 10 87 8.5 83 8Z'/%3E%3C/g%3E%3Cpath d='M72 8H95' stroke='black' stroke-width='.9' stroke-linecap='round'/%3E%3Cpath d='M101 8H138' stroke='black' stroke-width='.6' stroke-opacity='.7'/%3E%3C/g%3E%3Cuse href='%23s' transform='translate(-140 0) scale(-1 1)'/%3E%3Ccircle cx='70' cy='8' r='2'/%3E%3C/svg%3E");
}
.sec-head .eyebrow { margin-bottom: .85em; }
.sec-head h2::after,
.page-head .eyebrow + h1::after {
  content: ""; display: block; width: 140px; max-width: 60%; height: 19px; margin: 16px var(--sprig-mx, 0) 0;
  background-color: var(--brass); opacity: .85;
  -webkit-mask: var(--sprig, var(--sprig-l)) no-repeat center / contain; mask: var(--sprig, var(--sprig-l)) no-repeat center / contain;
}
.page-head .eyebrow + h1::after { margin-top: .32em; margin-bottom: .1em; }
/* on the dark green bands the divider uses the light accent */
:is(.band, .band-forest, .feature-copy, .apo-hero, .mono-band) :is(.sec-head h2, .eyebrow + h1)::after { background-color: var(--on-dark-accent, #E8C693); opacity: .7; }
:is(.band-blush) .sec-head h2::after { background-color: var(--brass-strong); }
/* centered heads */
:is(.center, .text-center, .sec-head-c, .masthead-c) { --sprig: var(--sprig-c); --sprig-mx: auto; }
@media (forced-colors: active) { .sec-head h2::after, .page-head .eyebrow + h1::after { background-color: CanvasText; } }
@media print { .sec-head h2::after, .page-head .eyebrow + h1::after { display: none; } }

/* ======================================================================================
   "What not to adopt" fixes (audit 2026-11-23)
   ====================================================================================== */
/* Entrance animation: content faded in from invisible on load. Keep a small rise but never hide the content. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation-name: hb-rise-visible; }
  @keyframes hb-rise-visible { from { transform: translateY(10px); } to { transform: none; } }
}

/* ---------- The logo (26 Nov 2026, owner's design) ----------
   Symbols in assets/brand/logo.svg; the letters take color, the flower --logo-flower. In the site's colors:
   sage letters and a brass flower on ivory, the light sage and brass of dark mode, ivory and light brass on forest.
   Header: the horizontal logo from 761 px up, sized by .brand-word's font-size (so the compact header shrinks it);
   on phones the stacked logo, which fits the 68 px bar. Footer: the stacked logo. */
.logo { display: block; flex: none; width: auto; color: var(--sage); --logo-flower: var(--brass); }
.brand-word .logo-h { height: .9em; aspect-ratio: 681.454 / 70.439; }
@media (min-width: 981px) and (max-width: 1199px) { .brand-word .logo-h { height: min(.9em, calc((100vw - 788px) * .1034)); } } /* keeps a 24 px gap from the language buttons */
@media (min-width: 1200px) { .brand-word .logo-h { height: 1.15em; } } /* a bit larger on computers (owner request, 26 Nov 2026); the bar keeps its 84 / 60 px. Below 1200 px it would touch the language buttons */
.brand-word .logo-s { display: none; height: 46px; aspect-ratio: 330.94 / 126.488; } /* phones: 46 px in the 68 px bar (was 40, owner request 26 Nov 2026) */
.masthead.compact .brand-word .logo-s { height: 40px; }
@media (max-width: 760px) { .brand-word .logo-h { display: none; } .brand-word .logo-s { display: block; } }
@media (max-width: 360px) { .brand-word .logo-s { height: 42px; } .masthead.compact .brand-word .logo-s { height: 38px; } }
.brand-line .logo-s { height: clamp(78px, 7vw, 100px); aspect-ratio: 330.94 / 126.488; color: var(--on-forest); --logo-flower: #E8C693; }
