/* Shared parts of every generated page: menu, skip link, index cards, text pages, datasheets. Tokens from album.css. */
.pg-skip { position: absolute; inset-inline-start: .75rem; top: -3rem; z-index: 20; padding: .5rem .9rem; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.pg-skip:focus { top: .75rem; }
.al-nav { flex-wrap: wrap; }
.pg-nav ul, .pg-menu ul { list-style: none; margin: 0; padding: 0; }
.pg-nav ul { display: flex; flex-wrap: wrap; gap: .15rem; }
.pg-nav a, .pg-menu a { display: block; padding: .45rem .7rem; border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--muted); }
.pg-nav a:hover, .pg-menu a:hover { color: var(--ink); background: rgb(18 18 18 / .05); }
.pg-nav a[aria-current="page"], .pg-menu a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.pg-menu { position: relative; display: none; }
/* the homepage's menu button (css/qala.css .menu-btn): two lines in a circle, crossed when open */
.pg-menu summary { list-style: none; cursor: pointer; position: relative; width: 2.75rem; height: 2.75rem; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; }
.pg-menu summary span { position: absolute; inset-inline: .8rem; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.pg-menu summary span:first-child { top: 1.05rem; }
.pg-menu summary span:last-child { top: 1.5rem; }
.pg-menu[open] summary span:first-child { top: 1.3rem; transform: rotate(45deg); }
.pg-menu[open] summary span:last-child { top: 1.3rem; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .pg-menu summary span { transition: none; } }
.pg-menu summary::-webkit-details-marker { display: none; }
.pg-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 15; min-width: 13rem; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: 0 12px 32px rgb(18 18 18 / .12); }
/* (eight links, the language and "Book a visit" need 1121 px to stay on one row) */
@media (max-width: 1120px) { .pg-nav { display: none; } .pg-menu { display: block; } }
.al-cta { white-space: nowrap; font-size: .9rem; padding: .45rem 1rem; }
.pg-menu-cta { display: none; }
.pg-menu .pg-menu-cta a { margin-block-start: .3rem; text-align: center; background: var(--ink); color: var(--bg); }
@media (max-width: 760px) { .al-cta { display: none; } .pg-menu-cta { display: list-item; } }

.al-btn-primary:only-child { margin: 0; }
.pg-soon { max-width: 48rem; margin: 2rem 0 0; padding: 1rem 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.pg-more { margin: 1.25rem 0 0; }
.pg-more a, .pg-text a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pg-index { margin-top: 1.5rem; }
.pg-tile { display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #fff 0%, #ece6da 100%); color: #3b372f; font-size: .98rem; line-height: 1.45; }
.pg-index a:hover .pg-tile, .pg-index a:focus-visible .pg-tile { border-color: var(--accent); }
@media (max-width: 600px) { .pg-tile { aspect-ratio: auto; min-height: 6.5rem; } }

/* text pages carried over from the current site (about, contact, privacy, guide, 404, credits) */
.pg-text { max-width: 52rem; padding-top: clamp(1.5rem, 4vw, 3rem); }
.pg-text section, .pg-text article { margin: 0 0 clamp(2rem, 5vw, 3rem); }
.pg-text h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.4rem); }
.pg-text h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-top: 1.4em; }
.pg-text h3 { font-size: 1.1rem; margin-top: 1.2em; }
.pg-text p, .pg-text li { color: #2b2925; }
.pg-text ul, .pg-text ol { padding-inline-start: 1.25rem; }
.pg-text li { margin-bottom: .35rem; }
.pg-text table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.pg-text th, .pg-text td { text-align: start; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pg-text th { font-weight: 500; color: var(--muted); }
.pg-text dl div { border-top: 1px solid var(--line); padding: .6rem 0; }
.pg-text dt { color: var(--muted); font-size: .85rem; } .pg-text dd { margin: 0; }
.pg-text img { border-radius: var(--radius); }
.pg-scroll { overflow-x: auto; }
.pg-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }

/* datasheet: two A4 sheets on screen, printable */
.ds-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; max-width: 52rem; padding-top: 1.5rem; color: var(--muted); font-size: .92rem; }
.ds-sheet { max-width: 52rem; margin: 1.25rem 0; padding: clamp(1.25rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ds-sheet .ds-kicker { margin: 0 0 .4rem; color: var(--accent-ink); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
[lang="ar"] .ds-sheet .ds-kicker { letter-spacing: 0; }
.ds-sheet .ds-grid2 { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.ds-sheet ul.ds-types { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ds-sheet ul.ds-types b { display: block; }
.ds-sheet ul.ds-types span { color: var(--muted); }
.ds-sheet .ds-swatches { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.ds-sheet .ds-swatches span { display: inline-block; width: 1rem; height: 1rem; margin-inline-end: .4rem; vertical-align: -.15rem; border-radius: 50%; border: 1px solid var(--line); background: var(--c); }
.ds-sheet .ds-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media print {
  .al-nav, .site-ft, .ds-tools, .pg-skip { display: none !important; }
  body { background: #fff; } main { padding: 0; max-width: none; }
  .ds-sheet { border: 0; margin: 0; max-width: none; break-after: page; }
}
/* blog (lane 2) */
.pg-blog { list-style: none; padding: 0; margin: 2rem 0 4rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.pg-blog a { display: grid; gap: .45rem; height: 100%; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; background: #fff; }
.pg-blog a:hover, .pg-blog a:focus-visible { border-color: var(--accent); }
.pg-blog time { font-size: .85rem; color: var(--muted); }
.pg-blog strong { font-size: 1.12rem; line-height: 1.3; }
.pg-blog span { color: #4a463f; font-size: .95rem; }
.pg-post .al-eyebrow a { color: inherit; }
.pg-post .al-intro { font-size: 1.15rem; }
.pg-post nav ul { padding-inline-start: 1.25rem; }
.pg-text a.al-btn { text-decoration: none; } .pg-text a.al-btn-primary { color: #fff; }
.pg-text a.al-btn-primary:hover { color: var(--ink); }
/* contact page (cards, map, quote + message forms) */
.pg-text .quote-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }   /* the form must not widen the page */
.pg-text .quote-section > * { min-width: 0; }
/* the lead form (js/forms.js styles it as a grid): a field never wider than the form, down to 320 px */
.pg-text .lf { grid-template-columns: minmax(0, 1fr); }
.pg-text .lf input, .pg-text .lf textarea, .pg-text .lf select { width: 100%; min-width: 0; box-sizing: border-box; }
@media (min-width: 900px) { .pg-text .quote-section { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.contact-cards { list-style: none; padding: 0 !important; margin: 0 0 1.25rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.contact-cards li { display: flex; gap: .8rem; align-items: flex-start; margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.contact-cards li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-cards svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--accent-ink); }
.contact-cards h2 { font-size: 1rem; margin: 0 0 .3rem; }
.contact-cards p { margin: 0 0 .25rem; }
.pg-text svg { max-width: 100%; }
.map-box { display: grid; justify-items: center; gap: .5rem; padding: 1.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.map-box img { width: 48px; height: auto; }
.map-box iframe { width: 100%; min-height: 18rem; border: 0; border-radius: var(--radius); }
body p.lf-hp { position: absolute !important; left: auto !important; right: auto !important; inset: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }   /* honeypot hidden without the -10000px offset that scrolls RTL pages sideways */
