/* ============================================================================
 * assets/css/responsive.css — v203800 "Every device"
 * ----------------------------------------------------------------------------
 * The last stylesheet on every page (after brand.css). One responsive system
 * for all layers — header, heroes, page heads, grids, cards, tables, footer —
 * tuned for five device bands:
 *
 *   XS  phones          ≤ 479px      one column, full-width actions
 *   S   large phones    480 – 767px  two-up small cards, tab-bar navigation
 *   M   tablets         768 – 1023px two/three columns, heroes stack
 *   L   laptops        1024 – 1439px the designed layout
 *   XL  large screens  ≥ 1440px      wider container, larger type, capped line length
 *
 * Plus: no hero photos anywhere, safe-area insets (notched phones), coarse-pointer
 * touch targets (≥ 44px), landscape phones, reduced motion and print.
 * ==========================================================================*/
/* ── 0. Foundations ─────────────────────────────────────────────────────── */
:root {
	--ogx-container: 1240px;
	--ogx-gutter: clamp(16px, 4.2vw, 40px);
	--oga-section-y: clamp(40px, 6vw, 80px);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.ogx { overflow-x: clip; }
body.ogx img, body.ogx video, body.ogx svg:not(.oga-icon) { max-width: 100%; }
body.ogx img { height: auto; }
body.ogx h1, body.ogx h2, body.ogx h3 { overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
body.ogx p { text-wrap: pretty; }
.ogx-wrap, body.ogx .oga-container {
	padding-left: max(var(--ogx-gutter), env(safe-area-inset-left));
	padding-right: max(var(--ogx-gutter), env(safe-area-inset-right));
}
.ogx-section { margin-block: var(--oga-section-y); }
/* ── 1. No hero photos ──────────────────────────────────────────────────── */
.oga-single__hero, .ogx-page__hero, .ogx-pagehead__media, .oga-archive__head-media,
.ogn-hero__media, .ogp-hero__media, .oga-ehead__hero, .ogcl-hero__media, .ogx-hero__media { display: none !important; }
body.ogx .ogx-pagehead--media, body.ogx .oga-archive__head--media { grid-template-columns: minmax(0, 1fr) !important; }
.ogl-hero__media--nophoto .ogl-plan { position: static; }
/* A listing's own photo, inside the content (inc/layout.php). */
.ogx-inline-photo { margin: 20px 0 28px; max-width: 780px; }
.ogx-inline-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--oga-border); background: var(--oga-mist); }
.ogx-inline-photo figcaption { margin-top: 8px; font-size: 13.5px; color: var(--oga-ink-muted); }
.oga-entity__body > .ogx-inline-photo:first-child { margin-top: 0; }
/* Business pitch head (archive-oga_business) joins the navy page-head family. */
body.ogx .oga-biz-pitch-hero {
	background-color: #fff !important; background-image: none !important;
	color: #111; border-radius: 18px; box-shadow: none;
	padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 44px) !important; margin: 22px 0 26px; text-align: left !important;
}
body.ogx .oga-biz-pitch-hero h1, body.ogx .oga-biz-pitch-hero .oga-biz-pitch-hero__heading { color: #111 !important; font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
body.ogx .oga-biz-pitch-hero__lede { color: #333 !important; }
body.ogx .oga-biz-pitch-hero .ogx-idmark { color: #111 !important; }
/* ── 2. Hero action panels (replace photos) ─────────────────────────────── */
.ogp-panel { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 28px); border-radius: 18px; background: #fff; color: var(--oga-ink); box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.ogp-panel__title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--oga-accent-ink, #111); display: inline-flex; align-items: center; }
.ogp-panel__title::before { content: ""; width: 9px; height: 9px; margin-right: 9px; transform: rotate(45deg); border-radius: 1px; background: var(--oga-diamond); }
.ogp-panel__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ogp-panel__rows li { margin: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; }
.ogp-panel__rows li > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.ogp-panel__rows strong { font-size: 15.5px; color: var(--oga-brand-deep, #111); }
.ogp-panel__rows span span { font-size: 14px; color: var(--oga-ink-muted); }
.ogp-panel__ic { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--oga-brand, #111); color: #fdfaf3; }
.ogp-panel__cta { width: 100%; box-sizing: border-box; margin-top: 4px; }
.ogp-panel__price { margin: 0; display: flex; align-items: baseline; gap: 8px; color: var(--oga-brand-deep, #111); }
.ogp-panel__price strong { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.ogp-panel__price span { font-size: 16px; color: var(--oga-ink-muted); }
.ogp-panel__ticks li { font-size: 15px; }
.ogn-ask { border-radius: 18px !important; box-shadow: 0 18px 44px rgba(0,0,0,.28) !important; padding: clamp(18px, 2.6vw, 24px) !important; }
.ogn-hero__side { justify-content: center; }
/* ── 3. Header: a four-tab bar that works on every width ─────────────── */
.ogx-header { padding-top: env(safe-area-inset-top); }
.ogx-header .oga-pages-bar .oga-nav > ul > li > a { min-height: 48px; }
@media (min-width: 768px) {
  .ogx-header .oga-pages-bar .oga-nav > ul { gap: 4px; }
  .ogx-header .oga-pages-bar .oga-nav > ul > li > a { padding-inline: 14px; font-size: 15px; }
}
/* Phones and small tablets: no hamburger — the four pages are always visible as a tab bar. */
@media (max-width: 767px) {
  .ogx-header .oga-nav-toggle { display: none !important; }
  .ogx-header .oga-pages-bar { border-top: 1px solid var(--oga-border); }
  .ogx-header .oga-pages-bar .ogx-wrap { padding-inline: 0 !important; }
  .ogx-header .oga-pages-bar .oga-nav, .oga-pages-bar .oga-nav.is-open { display: block !important; padding: 0 !important; border: 0 !important; animation: none !important; }
  .ogx-header .oga-pages-bar .oga-nav > ul { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 !important; flex-direction: row !important; margin: 0; padding: 0; }
  .ogx-header .oga-pages-bar .oga-nav > ul > li { display: block; }
  .ogx-header .oga-pages-bar .oga-nav > ul > li > a {
  	width: 100% !important; height: auto !important; min-height: 58px; padding: 8px 4px !important; margin: 0 !important;
  		display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px !important;
  		font-size: 12px !important; line-height: 1.2; text-align: center; border-radius: 0 !important; background: none !important;
  }
  .ogx-header .oga-pages-bar .oga-nav > ul > li > a::before {
  	left: 22% !important; right: 22% !important; top: auto !important; bottom: 0 !important; width: auto !important; height: 3px !important;
  		border-radius: 3px 3px 0 0 !important; transform: scaleX(0) !important; transition: transform .15s;
  }
  .ogx-header .oga-pages-bar .oga-nav > ul > li.is-current > a::before,
  	.ogx-header .oga-pages-bar .oga-nav > ul > li > a[aria-current="page"]::before { transform: scaleX(1) !important; }
  .ogx-header .oga-pages-bar .oga-pages-bar__icon { width: 20px !important; height: 20px !important; }
  .ogx-header .oga-pages-bar .oga-pages-bar__label { padding: 0 !important; margin: 0 !important; background: none !important; }
  .ogx-header__row { gap: 10px !important; padding-block: 10px !important; }
  .ogx-cmd--header { order: 3; flex: 1 1 100%; }
  .ogx-cmd--header .ogx-cmd__input { font-size: 16px; }
  /* no iOS zoom */
}
@media (max-width: 380px) {
  .ogx-header .oga-pages-bar .oga-nav > ul > li > a { font-size: 11px !important; }
  .ogx-ask .ogx-ask__txt { display: none; }
}
/* Header row: logo never larger than 40px; search drops to its own row below 1024px. */
.ogx-header .ogx-logo { min-width: 0; flex: 0 1 auto; }
.ogx-header .ogx-logo img, .ogx-header .ogx-logo > svg, .ogx-header .oga-logo__img, .ogx-header .oga-logo__mark { height: 40px !important; width: auto !important; max-width: 160px; flex: none; }
.ogx-header .ogx-logo img:not(.oga-logo__img) { max-width: 40px; }
@media (max-width: 1023px) {
  .ogx-header__row { flex-wrap: wrap; row-gap: 10px; }
  .ogx-cmd--header { order: 3; flex: 1 1 100% !important; max-width: none !important; }
  .ogx-header__actions { margin-left: auto; }
}
@media (max-width: 479px) {
  .ogx-header .oga-logo__word { font-size: 13px !important; }
}
@media (max-width: 359px) {
  .ogx-header .oga-logo__word { display: none; }
}
/* ── 4. Heroes (home, four pages, landing fallback) ─────────────────── */
.ogn-hero__inner, .ogp-hero__inner { padding-block: clamp(36px, 7vw, 96px) !important; }
@media (max-width: 1023px) {
  .ogn-hero__inner, .ogp-hero__inner--split, .ogl-hero__inner { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .ogn-hero__copy, .ogp-hero__copy { max-width: 720px; }
  .ogn-hero__side, .ogp-hero__aside { max-width: 620px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablets: the panel sits beside nothing — give it two columns inside. */
  .ogp-panel__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .ogn-hero__title.ogn-hook__title, .ogp-hero__title { font-size: clamp(30px, 8.6vw, 36px) !important; line-height: 1.08 !important; }
  .ogn-hero__ctas .ogn-btn, .ogn-biz__ctas .ogn-btn { flex: 1 1 100%; }
  .ogn-hook__price { font-size: 13.5px; }
  .ogn-values { gap: 8px 16px; }
  .ogp-panel { padding: 18px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .ogn-hero__inner, .ogp-hero__inner { padding-block: 28px !important; }
}
/* ── 5. Page heads on every archive and page ─────────────────────────── */
@media (max-width: 767px) {
  body.ogx .ogx-pagehead { border-radius: 14px !important; margin-top: 14px !important; padding: 24px 20px !important; }
  body.ogx .ogx-pagehead .ogx-pagehead__title { font-size: clamp(26px, 7vw, 32px) !important; }
  body.ogx .ogx-pagehead .ogx-pagehead__lede { font-size: 16px !important; }
}
/* ── 6. Grids — one rule set for every card grid ─────────────────────── */
.ogl-grid, .ogx-grid { gap: clamp(12px, 1.6vw, 18px) !important; }
@media (max-width: 1279px) {
  .ogl-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1023px) {
  .ogl-grid--4, .ogl-grid--5, .ogx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ogl-grid--3, .ogx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ogn-funnel, .ogp-steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ogp-steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .ogn-gp__discs, .ogn-find__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .ogn-group { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 767px) {
  .ogp-steps3 { grid-template-columns: minmax(0, 1fr) !important; }
  .ogn-dcard__cols { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 559px) {
  .ogl-grid--3, .ogl-grid--4, .ogl-grid--5, .ogx-grid--3, .ogx-grid--4, .ogx-grid--2,
  	.ogn-funnel, .ogp-steps4, .ogn-domains { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 560px) and (max-width: 767px) {
  /* Large phones: compact two-up for short cards */
  .ogn-trust .ogl-grid--3, .ogl-rules .ogl-grid--5, .ogn-chanrow { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* ── 7. Cards, steps, section heads — touch-friendly spacing ─────────── */
@media (max-width: 767px) {
  .ogx-shead { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
  .ogx-shead__title { font-size: clamp(22px, 6vw, 26px) !important; }
  .ogp-card, .ogn-path, .ogl-item, .ogl-tile, .ogn-trust__item, .ogn-disc { padding: 16px !important; }
  .ogl-phase { grid-template-columns: minmax(0, 1fr) !important; }
  .ogl-phase__rail { display: none !important; }
  .ogl-roadmap__bar { flex-direction: column; align-items: flex-start !important; }
  .ogl-filter { flex-wrap: nowrap !important; overflow-x: auto; width: 100%; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .ogl-filter__btn { flex: 0 0 auto; scroll-snap-align: start; }
  .ogp-mini-tl li { grid-template-columns: 1fr !important; gap: 2px !important; }
  .ogn-biz { padding: 22px !important; border-radius: 14px !important; }
}
/* ── 8. Tables: scroll inside their box, with a visible edge ─────────── */
.ogn-table-wrap {
	overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
	background:
		#fff;
}
@media (max-width: 767px) {
  .ogn-table { font-size: 13.5px; }
  .ogn-table th, .ogn-table td { padding: 12px !important; }
}
/* ── 9. Sticky "on this page" bars ───────────────────────────────────── */
.ogp-toc__in, .ogn-gp__toc { scrollbar-width: none; }
.ogp-toc__in::-webkit-scrollbar, .ogn-gp__toc::-webkit-scrollbar { display: none; }
.ogp-toc a, .ogn-gp__toc a { min-height: 40px; display: inline-flex; align-items: center; }
/* ── 10. Map + reviews ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ogn-find__map, .ogn-find__map iframe { min-height: 280px !important; }
}
/* ── 11. Footer ──────────────────────────────────────────────────────── */
.ogf { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 767px) {
  .ogf__plan-in, .ogf__main { grid-template-columns: minmax(0, 1fr) !important; }
  .ogf__plan-actions { width: 100%; }
  body .ogf .ogf__btn { flex: 1 1 auto; justify-content: center; }
  .ogf__bar-in { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* ── 12. Touch devices: comfortable targets ──────────────────────────── */
@media (pointer: coarse) {
  .ogx-qchip, .ogn-chanrow li, .ogl-filter__btn, .ogp-toc a, .ogn-gp__toc a, .ogx-crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .ogn-btn, .ogx-btn, .ogf__btn, .ogl-toggle { min-height: 48px; }
  .ogn-faq__item summary { padding-block: 6px; }
}
/* ── 13. Large screens ───────────────────────────────────────────────── */
@media (min-width: 1440px) {
  :root { --ogx-container: 1280px; }
  body.ogx { font-size: 17px; }
  .ogn-hero__lede, .ogp-hero__lede { font-size: 19.5px !important; }
}
@media (min-width: 1800px) {
  :root { --ogx-container: 1360px; }
}
/* ── 14. Motion and print ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .ogx-header .oga-pages-bar, .ogx-header__actions, .ogx-cmd--header, .ogf__plan, .ogn-hero__side, .ogp-hero__aside, .ogp-toc, .ogn-gp__toc, .ogn-find__map, .ogl-filter, .ogl-toggle { display: none !important; }
  .ogn-hero, .ogp-hero, .ogn-network, .ogn-join, .ogn-biz, body.ogx .ogx-pagehead { background: none !important; color: #000 !important; box-shadow: none !important; }
  .ogn-hero *, .ogp-hero *, .ogn-network *, .ogn-join *, .ogn-biz *, body.ogx .ogx-pagehead * { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 85%; }
}
