/* =====================================================================
   Lexisera, second design: the assistant-style app shell.

   A dark, corporate surface built around the AI assistant: a side menu
   on the right, the logo and information links top left, the account
   controls top right, the assistant in the middle of the home page. Deep navy ground, ivory
   type and a muted brass accent (a law office's palette), plain flat
   surfaces with no haze or blur, IBM Plex Mono throughout.

   Loaded after gobel-theme.css and gobel-theme-bridge.css. It re-points
   the theme's tokens (--paper, --ink, --accent, --ts-*) at this palette,
   so the page stylesheets follow, and styles the new chrome (gm-*) and
   the assistant (aia-*).
   ===================================================================== */

/* html:root outranks the admin colour settings' plain :root, so pages that
   read --primary directly take the brass too. */
html:root {
    color-scheme: dark;
    --gm-bg: #0c1219;
    --gm-side: #0f1720;
    --gm-surface: #141d27;
    --gm-surface-2: #19242f;
    --gm-surface-3: #213040;
    --gm-text: #ede7da;
    --gm-text-2: #bdb6a8;
    --gm-text-3: #8f897d;
    --gm-outline: #3b4756;
    --gm-outline-soft: #253241;
    --gm-primary: #c4a062;
    --gm-primary-hover: #d5b479;
    --gm-on-primary: #17120a;
    --gm-tonal: #2c2a21;
    --gm-on-tonal: #e8d4a8;
    --gm-tonal-2: #2c2a21;
    --gm-on-tonal-2: #e8d4a8;
    --gm-hover: rgba(237, 231, 218, .06);
    --gm-press: rgba(237, 231, 218, .1);
    --gm-error: #ef9a92;
    --gm-error-soft: #3a1d1c;
    --gm-success: #7fbf8e;
    --gm-star: #d9ae5c;
    /* The top bar's links and sign-in button. */
    --gm-brand: var(--gm-text);
    --gm-brand-hover: var(--gm-primary-hover);
    --gm-brand-soft: var(--gm-tonal);
    --gm-on-brand-soft: var(--gm-on-tonal);
    --gm-shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --gm-shadow-2: 0 4px 14px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .3);
    --gm-shadow-3: 0 16px 44px rgba(0, 0, 0, .5);
    /* One face for text and headings (loaded from Google Fonts in front.blade.php). */
    --font: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --gm-serif: var(--font);
    --primary: var(--gm-primary);
    --primary-hover: var(--gm-primary-hover);
    --gm-side-w: 280px;
    --gm-rail-w: 72px;
    --gm-offset: var(--gm-side-w);
    --gm-ease: cubic-bezier(.2, 0, 0, 1);

    /* The theme's own tokens, moved onto this palette. */
    --paper: var(--gm-bg);
    --paper-2: var(--gm-surface-2);
    --surface: var(--gm-surface);
    --ink: var(--gm-text);
    --ink-2: var(--gm-text);
    --muted: var(--gm-text-2);
    --line: var(--gm-outline-soft);
    --line-soft: var(--gm-outline-soft);
    --line-light: rgba(237, 231, 218, .14);
    --accent: var(--gm-primary);
    --accent-soft: var(--gm-tonal);
    --metal: var(--gm-text-3);
    --white: var(--gm-surface);
    --header-h: 64px;
    --shell: min(1200px, calc(100vw - var(--gm-offset) - 64px));
    --gutter: 32px;

    /* The page stylesheets' palette. Their corners go back to their own
       (rounded) values: an unset token makes each var() use its fallback. */
    --ts-ink: var(--gm-text);
    --ts-body: var(--gm-text-2);
    --ts-muted: var(--gm-text-3);
    --ts-faint: var(--gm-text-3);
    --ts-brand: var(--gm-primary);
    --ts-brand-dark: var(--gm-primary-hover);
    --ts-body-strong: var(--gm-text);
    --ts-blue: var(--gm-primary);
    --ts-blue-dark: var(--gm-primary-hover);
    --ts-violet: var(--gm-primary);
    --ts-surface: var(--gm-surface);
    --ts-surface-2: var(--gm-surface-2);
    --ts-radius: initial;
    --ts-line-soft: var(--gm-outline-soft);
    --ts-line: var(--gm-outline-soft);
    --ts-line-10: var(--gm-outline-soft);
    --ts-line-strong: var(--gm-outline);
}

html.gm-folded { --gm-offset: var(--gm-rail-w); }

/* =====================================================================
   Base
   ===================================================================== */
html { background: var(--gm-bg); scroll-padding-top: calc(var(--header-h) + 16px); }
body.gm-app { min-height: 100vh; padding-top: 0; padding-right: var(--gm-offset); background: var(--gm-bg); color: var(--gm-text-2); font-size: 15px; transition: padding-right .25s var(--gm-ease); }
body.gm-app ::selection { background: var(--gm-tonal); color: var(--gm-on-tonal); }
body.menu-open, body.gm-side-open { overflow: hidden; }

.skip-link { border-radius: 999px; background: var(--gm-primary); }
.section-shell { width: var(--shell); }

.gt { color: var(--gm-text); }
.gt :where(h1, h2, h3) { font-family: var(--gm-serif); font-weight: 400; letter-spacing: 0; }

.eyebrow { gap: 6px; width: fit-content; padding: 5px 12px; border-radius: 999px; background: var(--gm-tonal); color: var(--gm-on-tonal); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.eyebrow::before { display: none; }

.page-progress, .cursor-light, .thread-field { display: none !important; }

@media (min-width: 1024px) {
    /* The floating buttons at the bottom right sit beside the side menu, not over it. */
    #chatbot-widget, #floating-message-bubble, .back-to-top-icon { margin-right: var(--gm-offset); transition: margin-right .25s var(--gm-ease); }
    /* Page containers measure from the space beside the side menu. */
    body.gm-app main .container { max-width: min(1320px, calc(100vw - var(--gm-offset) - 48px)); }
}

/* =====================================================================
   Pills and icon buttons
   ===================================================================== */
.gm-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--gm-primary); cursor: pointer; font: 500 14px/1.2 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease; }
.gm-pill i { font-size: 18px; }
.gm-pill-primary { background: var(--gm-primary); color: var(--gm-on-primary); }
.gm-pill-primary:hover, .gm-pill-primary:focus-visible { background: var(--gm-primary-hover); box-shadow: var(--gm-shadow-1); color: var(--gm-on-primary); }
.gm-pill-tonal { background: var(--gm-tonal-2); color: var(--gm-on-tonal-2); }
.gm-pill-tonal:hover, .gm-pill-tonal:focus-visible { background: var(--gm-surface-3); box-shadow: var(--gm-shadow-1); color: var(--gm-on-tonal-2); }
.gm-pill-soft { background: var(--gm-surface-3); color: var(--gm-text); }
.gm-pill-soft:hover, .gm-pill-soft:focus-visible { background: var(--gm-outline-soft); color: var(--gm-text); }
.gm-pill-outline { border-color: var(--gm-outline); color: var(--gm-primary); }
.gm-pill-outline:hover, .gm-pill-outline:focus-visible { background: rgba(196, 160, 98, .1); color: var(--gm-primary); }
.gm-pill:focus-visible, .gm-icon-btn:focus-visible { outline: 2px solid var(--gm-primary); outline-offset: 2px; }

.gm-icon-btn { display: inline-grid; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--gm-text-2); cursor: pointer; font-size: 20px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.gm-icon-btn:hover { background: var(--gm-hover); color: var(--gm-text); }
.gm-icon-btn:active { background: var(--gm-press); }

/* The theme's own buttons and links, as pills. */
.button { min-width: 0; min-height: 44px; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .005em; text-transform: none; }
.button::before { display: none; }
.button i { font-size: 16px; }
.button-dark, .button-dark:hover { border-color: transparent; background: var(--gm-primary); color: var(--gm-on-primary); }
.button-dark:hover, .button-dark:focus-visible { background: var(--gm-primary-hover); box-shadow: var(--gm-shadow-1); }
.button-outline { border-color: var(--gm-outline); color: var(--gm-primary); }
.button-outline:hover { border-color: var(--gm-outline); background: rgba(196, 160, 98, .1); color: var(--gm-primary); }
.button-light, .button-light:hover { border-color: transparent; background: var(--gm-surface); color: var(--gm-primary); }
.text-link { gap: 6px; padding: 0; border: 0; color: var(--gm-primary); font-size: 14px; font-weight: 500; }
.text-link:hover { color: var(--gm-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   Side menu
   ===================================================================== */
.gm-sidebar { position: fixed; z-index: 1035; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: var(--gm-side-w); background: var(--gm-side); color: var(--gm-text); transition: width .25s var(--gm-ease), transform .25s var(--gm-ease), box-shadow .25s ease; }
.gm-sidebar a { text-decoration: none; }

.gm-side-head { display: flex; flex: 0 0 var(--header-h); align-items: center; gap: 8px; padding: 0 12px 0 20px; }
/* The uploaded logo is drawn for a light ground: shown in ivory here. */
.gm-topbar-brand img, .gm-footer-logo img { filter: brightness(0) invert(.92) sepia(.12); }
.gm-side-toggle { order: 2; margin-left: auto; }
.gm-toggle-unfold, .gm-toggle-close { display: none; }
html.gm-folded .gm-toggle-fold { display: none; }
html.gm-folded .gm-toggle-unfold { display: inline; }
/* A guest's sign-in button; the top bar shows its own while the menu is folded. */
html.gm-folded .gm-side-head-signin { display: none; }

.gm-side-scroll { flex: 1 1 auto; min-height: 0; padding: 4px 12px 12px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.gm-side-scroll:hover { scrollbar-color: var(--gm-outline) transparent; }
.gm-side-group { display: flex; flex-direction: column; gap: 2px; }
.gm-side-group + .gm-side-group { margin-top: 18px; }

.gm-side-item { display: flex; align-items: center; gap: 14px; min-height: 40px; padding: 0 14px; overflow: hidden; border-radius: 999px; color: var(--gm-text); font-size: 14px; font-weight: 400; line-height: 1.25; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.gm-side-item[hidden] { display: none; }
.gm-side-item > i { flex: 0 0 20px; width: 20px; color: var(--gm-text-2); font-size: 20px; text-align: center; }
.gm-side-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gm-side-item:hover { background: var(--gm-hover); color: var(--gm-text); }
.gm-side-item:focus-visible { outline: 2px solid var(--gm-primary); outline-offset: -2px; }
.gm-side-item.is-current { background: var(--gm-tonal); color: var(--gm-on-tonal); font-weight: 500; }
.gm-side-item.is-current > i { color: var(--gm-on-tonal); }
.gm-side-item.is-sub { min-height: 36px; color: var(--gm-text-2); }
.gm-side-item.is-sub.is-current { color: var(--gm-on-tonal); }
.gm-side-item.is-more { color: var(--gm-primary); font-weight: 500; }
.gm-side-label { margin: 0; padding: 6px 14px 6px; color: var(--gm-text); font-size: 14px; font-weight: 500; white-space: nowrap; }

.gm-side-note { display: flex; gap: 10px; margin: 18px 0 0; padding: 4px 14px; color: var(--gm-text); font-size: 13.5px; line-height: 1.45; }
.gm-side-note > i { flex: 0 0 auto; color: var(--gm-text-2); font-size: 18px; line-height: 1.1; }
.gm-side-note a { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.gm-side-note a:hover { color: var(--gm-primary); }

.gm-side-compact { display: none; }
.gm-side-languages { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; }
.gm-side-languages a { display: inline-grid; min-width: 36px; height: 32px; padding: 0 8px; place-items: center; border: 1px solid var(--gm-outline); border-radius: 999px; color: var(--gm-text-2); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.gm-side-languages a.active { border-color: transparent; background: var(--gm-tonal); color: var(--gm-on-tonal); }

.gm-side-foot { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 16px 16px; }
.gm-side-signin { min-height: 44px; padding: 0 18px; }
.gm-side-signin i { display: none; }
.gm-side-user { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 12px 4px 4px; border-radius: 999px; color: var(--gm-text); font-size: 14px; font-weight: 500; transition: background-color .2s ease; }
.gm-side-user:hover { background: var(--gm-hover); color: var(--gm-text); }
.gm-side-user img { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gm-side-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Folded into a rail of icons (wide screens). */
html.gm-folded .gm-sidebar { width: var(--gm-rail-w); }
html.gm-folded .gm-side-head { justify-content: center; padding: 0; }
html.gm-folded .gm-side-toggle { margin: 0; }
html.gm-folded .gm-side-scroll { padding-inline: 12px; }
html.gm-folded .gm-side-item { justify-content: center; width: 48px; padding: 0; }
html.gm-folded .gm-side-item > span, html.gm-folded .gm-side-list, html.gm-folded .gm-side-note { display: none; }
html.gm-folded .gm-side-foot { flex-direction: column; padding: 12px 0 16px; }
html.gm-folded .gm-side-signin { width: 48px; min-height: 48px; padding: 0; }
html.gm-folded .gm-side-signin span { display: none; }
html.gm-folded .gm-side-signin i { display: inline; }
html.gm-folded .gm-side-user { padding: 4px; }
html.gm-folded .gm-side-user span { display: none; }

.gm-scrim { position: fixed; z-index: 1034; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s ease; }
.gm-scrim[hidden] { display: none; }
body.gm-side-open .gm-scrim { opacity: 1; }

/* =====================================================================
   Top bar
   ===================================================================== */
.gm-topbar { position: sticky; z-index: 1020; top: 0; display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 16px 0 20px; background: transparent; transition: background-color .25s ease, box-shadow .25s ease; }
.gm-topbar.is-scrolled { background: var(--gm-bg); box-shadow: 0 1px 0 var(--gm-outline-soft); }
.gm-topbar a { text-decoration: none; }
.gm-topbar-start { display: flex; align-items: center; gap: 4px; min-width: 0; }
.gm-menu-btn { display: none; }
.gm-topbar-brand { display: inline-flex; align-items: center; padding: 4px 8px; }
.gm-topbar-brand img { display: block; width: auto; height: 28px; max-width: 140px; object-fit: contain; }

.gm-topnav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.gm-topnav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--gm-brand); cursor: pointer; font: 500 14px/1.2 var(--font); white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.gm-topnav-link:hover, .gm-topnav-link:focus-visible { background: var(--gm-hover); color: var(--gm-brand-hover); outline: 0; }
.gm-topnav-link:focus-visible { box-shadow: inset 0 0 0 2px var(--gm-brand); }
.gm-topnav-link.is-active { background: var(--gm-brand-soft); color: var(--gm-on-brand-soft); }
.gm-topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-left: auto; }
.gm-topbar-actions > .gm-pill { margin-left: 4px; }
.gm-topbar-actions > .gm-pill-tonal { background: var(--gm-primary); color: var(--gm-on-primary); }
.gm-topbar-actions > .gm-pill-tonal:hover, .gm-topbar-actions > .gm-pill-tonal:focus-visible { background: var(--gm-primary-hover); box-shadow: var(--gm-shadow-1); color: var(--gm-on-primary); }
.gm-topbar-actions > .gm-pill-tonal:focus-visible { outline-color: var(--gm-brand); }
.gm-topbar-new { display: none; }
/* Wide screens: the side menu's head carries sign-in, unless it is folded. */
.gm-topbar-signin { display: none; }
html.gm-folded .gm-topbar-signin { display: inline-flex; }

/* Language switcher (only when more than one language is active). */
.gm-topbar .language-switcher { position: relative; }
.gm-topbar .language-switcher > button { text-transform: uppercase; }
.gm-topbar .language-menu { position: absolute; z-index: 1030; top: calc(100% + 6px); right: 0; display: none; min-width: 180px; padding: 6px 0; border-radius: 16px; background: var(--gm-surface); box-shadow: var(--gm-shadow-2); }
.gm-topbar .language-menu.is-open { display: block; }
.gm-topbar .language-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; color: var(--gm-text); font-size: 14px; }
.gm-topbar .language-menu a:hover { background: var(--gm-hover); }
.gm-topbar .language-menu a span { color: var(--gm-text-3); text-transform: uppercase; }

/* Signed-in controls: wishlist, notification bell and the account menu. */
.header-icon { position: relative; display: inline-grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--gm-text-2); font-size: 20px; transition: background-color .2s ease, color .2s ease; }
.header-icon:hover, .header-icon.show { border: 0; background: var(--gm-hover); color: var(--gm-text); }
.gm-topbar .hn-wrap, .gm-topbar .hp-wrap { position: relative; }
.gm-topbar .bellcount .notification-dot { top: 7px; left: 76%; border-radius: 50% !important; background: var(--gm-error) !important; }
.header-avatar { display: block; width: 40px; height: 40px; padding: 4px; overflow: hidden; border: 0; border-radius: 50%; transition: background-color .2s ease; }
.header-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.header-avatar:hover, .header-avatar.show { background: var(--gm-hover); }
/* gobel-core pins the panels to the right edge without Popper's transform;
   Popper's inline inset would otherwise put them over the bar. */
.gm-topbar .hn-panel.dropdown-menu, .gm-topbar .hp-panel.dropdown-menu { top: calc(100% + 14px) !important; right: 0 !important; bottom: auto !important; margin: 0; }

/* =====================================================================
   Footer (inner pages)
   ===================================================================== */
.gm-footer { margin: 48px 24px 24px; padding: 40px 40px 20px; border-radius: 28px; background: var(--gm-surface-2); color: var(--gm-text-2); font-size: 14px; }
.gm-footer a { color: var(--gm-text-2); text-decoration: none; }
.gm-footer a:hover { color: var(--gm-primary); }
.gm-footer-grid { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 40px; padding-bottom: 32px; }
.gm-footer-logo img { display: block; width: auto; height: 30px; max-width: 160px; object-fit: contain; }
.gm-footer-brand p { max-width: 40ch; margin: 14px 0 18px; color: var(--gm-text-2); line-height: 1.55; }
.gm-subscribe { max-width: 380px; }
.gm-subscribe-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; border-radius: 999px; background: var(--gm-surface); box-shadow: var(--gm-shadow-1); }
.gm-subscribe-row > i { color: var(--gm-text-3); font-size: 18px; }
.gm-subscribe-row input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--gm-text); font: 400 14px/1.4 var(--font); }
.gm-subscribe-row button { flex: 0 0 auto; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--gm-primary); color: var(--gm-on-primary); cursor: pointer; font: 500 14px/1 var(--font); transition: background-color .2s ease; }
.gm-subscribe-row button:hover { background: var(--gm-primary-hover); }
.gm-subscribe .error-text { display: block; margin: 8px 0 0 16px; font-size: 12.5px; }
.gm-footer-social { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.gm-footer-social a { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--gm-text-2); font-size: 15px; transition: background-color .2s ease; }
.gm-footer-social a:hover { background: var(--gm-hover); color: var(--gm-text); }
.gm-footer-column h2 { margin: 6px 0 14px; color: var(--gm-text); font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.gm-footer-column :where(ul) { display: flex; margin: 0; padding: 0; flex-direction: column; gap: 10px; list-style: none; }
.gm-footer-column :where(li, p) { margin: 0; padding: 0; }
.gm-footer-column :where(a, span, p, li) { color: var(--gm-text-2); font-size: 14px; }
.gm-footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; border-top: 1px solid var(--gm-outline-soft); color: var(--gm-text-3); font-size: 13px; }
.gm-footer-base :where(p) { margin: 0; }
.gm-footer-copy :where(a) { color: inherit; }
.gm-footer-base nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* =====================================================================
   Home: the assistant
   ===================================================================== */
body.gm-home { overflow: hidden; }
body.gm-home main { position: relative; }
body.gm-home .back-to-top, body.gm-home #chatbot-container, body.gm-home #chatbot-widget, body.gm-home #floating-message-bubble { display: none !important; }

.aia { position: relative; isolation: isolate; display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow: hidden; color: var(--gm-text); font-family: var(--font); }

.aia-body { position: relative; flex: 1 1 auto; min-height: 0; padding: 8px 24px 16px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.aia.is-landing .aia-body { flex: 0 0 auto; margin-top: auto; padding-bottom: 0; overflow: visible; }

.aia-hero { max-width: 760px; margin: 0 auto 34px; text-align: center; animation: aia-rise .5s var(--gm-ease) both; }
.aia:not(.is-landing) .aia-hero { display: none; }
.aia-hello { margin: 0 0 6px; color: var(--gm-primary); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
/* Wide enough for the heading to break into two lines. */
.aia-hero h1 { max-width: 36ch; margin: 0 auto; color: var(--gm-text); font-family: var(--gm-serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.015em; line-height: 1.24; text-wrap: balance; }

.aia-messages { display: flex; flex-direction: column; gap: 28px; max-width: 760px; margin: 0 auto; padding: 16px 0 8px; }
.aia.is-landing .aia-messages { display: none; }
.aia-msg { display: flex; gap: 16px; max-width: 100%; animation: aia-rise .3s var(--gm-ease) both; }
.aia-msg.is-user { justify-content: flex-end; }
.aia-avatar { display: inline-grid; flex: 0 0 32px; width: 32px; height: 32px; margin-top: 2px; place-items: center; border-radius: 50%; border: 1px solid var(--gm-outline); background: var(--gm-surface-2); color: var(--gm-primary); font-size: 18px; }
.aia-bubble { min-width: 0; max-width: min(640px, 100%); font-size: 16px; line-height: 1.7; }
.aia-msg.is-user .aia-bubble { max-width: min(560px, 85%); padding: 12px 18px; border-radius: 24px 6px 24px 24px; background: var(--gm-surface-3); color: var(--gm-text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.aia-msg.is-assistant .aia-bubble { flex: 1 1 auto; max-width: 100%; padding-top: 3px; }
.aia-text { color: var(--gm-text); }
.aia-text p { margin: 0 0 12px; }
.aia-text p:last-child, .aia-text ul:last-child { margin-bottom: 0; }
.aia-text ul { margin: 0 0 12px; padding-left: 22px; }
.aia-text li { margin: 4px 0; list-style: disc; }
.aia-text li::marker { color: var(--gm-text-3); }
.aia-text strong { font-weight: 600; }
.aia-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aia-msg.is-user .aia-files { justify-content: flex-end; }
.aia-file { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 6px 12px; border-radius: 999px; background: var(--gm-surface); color: var(--gm-text-2); font-size: 12.5px; white-space: nowrap; }
.aia-file span { overflow: hidden; text-overflow: ellipsis; }
.aia-urgent { display: flex; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--gm-error-soft); color: var(--gm-error); font-size: 14px; line-height: 1.5; }
.aia-urgent i { color: var(--gm-error); font-size: 19px; }

.aia-suggestions, .aia-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.aia-suggestions { margin-top: 16px; }
.aia-chip, .aia-starter { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--gm-outline-soft); border-radius: 999px; background: var(--gm-surface); color: var(--gm-text); cursor: pointer; font: 400 14px/1.3 var(--font); text-align: left; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.aia-chip:hover, .aia-chip:focus-visible, .aia-starter:hover, .aia-starter:focus-visible { border-color: transparent; background: var(--gm-surface); box-shadow: var(--gm-shadow-1); outline: 0; }
.aia-starter i { color: var(--gm-primary); font-size: 18px; }
.aia-starters { justify-content: center; margin-top: 18px; }
.aia-starters:empty { display: none; }
.aia:not(.is-landing) .aia-starters { display: none; }

.aia-typing { display: inline-flex; align-items: center; gap: 10px; padding-top: 6px; color: var(--gm-text-2); font-size: 14px; }
.aia-typing i { display: inline-flex; gap: 4px; }
.aia-typing i b { width: 7px; height: 7px; border-radius: 50%; background: var(--gm-primary); animation: aia-dot 1.2s infinite ease-in-out; }
.aia-typing i b:nth-child(2) { animation-delay: .15s; }
.aia-typing i b:nth-child(3) { animation-delay: .3s; }
.aia-error { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 6px; color: var(--gm-error); font-size: 14px; }
.aia-error button { min-height: 32px; padding: 0 14px; border: 1px solid var(--gm-outline); border-radius: 999px; background: var(--gm-surface); color: var(--gm-primary); cursor: pointer; font: 500 13px/1 var(--font); }

/* Suggested services and lawyers under an answer. */
.aia-recs { margin-top: 18px; padding: 18px; border: 1px solid var(--gm-outline-soft); border-radius: 24px; background: var(--gm-surface); }
.aia-recs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.aia-recs-head > span { padding: 3px 10px; border-radius: 999px; background: var(--gm-tonal); color: var(--gm-on-tonal); font-size: 12px; font-weight: 500; }
.aia-recs-head strong { color: var(--gm-text); font-size: 17px; font-weight: 500; }
/* The "all services" link above the live help button, both on the right. */
.aia-recs-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.aia-recs-head a { color: var(--gm-primary); font-size: 14px; font-weight: 500; }
.aia-recs-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Live help ("Canlı Yardım"): top right of the area card. With nobody online
   it stays visible but inactive, and says why on hover (or tap). */
.aia-live { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 14px; border: 1px solid var(--gm-primary); border-radius: 999px; background: var(--gm-primary); color: var(--gm-on-primary); cursor: pointer; font: 500 13.5px/1 var(--font); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.aia-live:hover, .aia-live:focus-visible { border-color: var(--gm-primary-hover); background: var(--gm-primary-hover); outline: 0; }
.aia-live-pulse { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; animation: aia-live-pulse 1.8s ease-out infinite; }
.aia-live.is-off, .aia-live.is-off:hover { border-color: var(--gm-outline); background: transparent; color: var(--gm-text-3); cursor: not-allowed; }
.aia-live.is-off .aia-live-pulse { background: var(--gm-text-3); animation: none; }
.aia-live::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: max-content; max-width: 240px; padding: 8px 12px; border: 1px solid var(--gm-outline-soft); border-radius: 12px; background: var(--gm-surface-3); color: var(--gm-text); box-shadow: var(--gm-shadow-2); font: 400 12.5px/1.45 var(--font); text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease; }
.aia-live[data-tip=""]::after { display: none; }
.aia-live:hover::after, .aia-live:focus-visible::after, .aia-live.show-tip::after { opacity: 1; transform: none; }
@keyframes aia-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, .6); } 70% { box-shadow: 0 0 0 7px rgba(47, 158, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); } }

/* Live help dialog: searching, the lawyer accepted, ended. */
html.lh-open { overflow: hidden; }
.lh-overlay { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 16px; background: rgba(5, 9, 14, .74); }
.lh-overlay[hidden] { display: none; }
.lh-dialog { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px 24px 22px; border: 1px solid var(--gm-outline-soft); border-radius: 24px; background: var(--gm-surface); color: var(--gm-text); box-shadow: var(--gm-shadow-3); font-family: var(--font); text-align: center; outline: 0; }
.lh-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--gm-text-2); cursor: pointer; font-size: 18px; }
.lh-close:hover, .lh-close:focus-visible { background: var(--gm-hover); color: var(--gm-text); outline: 0; }
.lh-spinner { width: 52px; height: 52px; margin: 4px auto 18px; border: 3px solid var(--gm-outline-soft); border-top-color: var(--gm-primary); border-radius: 50%; animation: lh-spin 1s linear infinite; }
.lh-icon { margin: 0 auto 10px; color: var(--gm-primary); font-size: 42px; line-height: 1; }
.lh-title { margin: 0 0 8px; color: var(--gm-text); font-family: var(--font); font-size: 19px; font-weight: 500; }
.lh-text { margin: 0 0 18px; color: var(--gm-text-2); font-size: 14px; line-height: 1.6; }
.lh-lawyer { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--gm-surface-2); text-align: left; }
.lh-avatar { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--gm-tonal); color: var(--gm-on-tonal); font-weight: 600; }
.lh-who { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.lh-who strong { color: var(--gm-text); font-size: 15px; font-weight: 600; }
.lh-who small { color: var(--gm-text-2); font-size: 12.5px; }
.lh-rating i { color: var(--gm-star); }
.lh-rows { margin: 0 0 18px; padding: 0; list-style: none; text-align: left; font-size: 14px; }
.lh-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 2px; border-bottom: 1px solid var(--gm-outline-soft); }
.lh-rows li:last-child { border-bottom: 0; }
.lh-rows span { color: var(--gm-text-2); }
.lh-rows strong { color: var(--gm-text); font-weight: 500; text-align: right; }
.lh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lh-btn { min-height: 44px; padding: 10px 22px; border: 1px solid var(--gm-outline); border-radius: 999px; background: transparent; color: var(--gm-text); cursor: pointer; font: 500 14px/1.2 var(--font); transition: background-color .2s ease, border-color .2s ease; }
.lh-btn:hover, .lh-btn:focus-visible { background: var(--gm-hover); outline: 0; }
.lh-btn.is-primary { border-color: var(--gm-primary); background: var(--gm-primary); color: var(--gm-on-primary); }
.lh-btn.is-primary:hover, .lh-btn.is-primary:focus-visible { border-color: var(--gm-primary-hover); background: var(--gm-primary-hover); }
.lh-btn:disabled { opacity: .55; cursor: default; }
.lh-count { margin: -6px 0 16px; color: var(--gm-text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes lh-spin { to { transform: rotate(360deg); } }

/* Live help payment page (/canli-yardim/{uuid}). */
.lh-page { display: grid; min-height: calc(100dvh - var(--header-h)); place-items: center; padding: 32px 16px 48px; }
.lh-pay { width: min(480px, 100%); max-height: none; overflow: visible; }
.lh-rows .lh-total { margin-top: 2px; border-top: 1px solid var(--gm-outline); }
.lh-rows .lh-total span, .lh-rows .lh-total strong { color: var(--gm-text); font-size: 16px; font-weight: 600; }
.lh-methods { margin: 0 0 10px; padding: 0; border: 0; text-align: left; }
.lh-methods legend { margin: 0 0 8px; color: var(--gm-text-2); font-size: 13px; font-weight: 500; }
.lh-method { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--gm-outline-soft); border-radius: 14px; cursor: pointer; color: var(--gm-text); font-size: 14px; }
.lh-method:has(input:checked) { border-color: var(--gm-primary); background: var(--gm-tonal); }
.lh-method input { accent-color: var(--gm-primary); }
.lh-note { margin: 0 0 14px; color: var(--gm-text-3); font-size: 12.5px; line-height: 1.5; text-align: left; }
.lh-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--gm-error-soft); color: var(--gm-error); font-size: 13.5px; text-align: left; }
.lh-error[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .aia-live-pulse { animation: none; } .lh-spinner { animation-duration: 3s; } }
.aia-recs-title { margin: 16px 0 6px; color: var(--gm-text-2); font-size: 13px; font-weight: 500; }
.aia-recs-head + .aia-recs-title { margin-top: 4px; }
.aia-services { margin: 0; padding: 0; list-style: none; }
.aia-service { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gm-outline-soft); }
.aia-service:last-child { border-bottom: 0; }
.aia-service-main { flex: 1 1 auto; min-width: 0; }
.aia-service-name { display: block; color: var(--gm-text); font-size: 15px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.aia-service-name:hover { color: var(--gm-primary); }
.aia-service-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; color: var(--gm-text-3); font-size: 13px; }
.aia-service-meta span { display: inline-flex; align-items: center; gap: 5px; }
.aia-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gm-success); }
.aia-service-price { flex: 0 0 auto; color: var(--gm-text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.aia-service-price small { color: var(--gm-text-3); font-weight: 400; }
.aia-recs .qs-providers { gap: 8px; }
.aia-recs .qs-provider { border-color: var(--gm-outline-soft); border-radius: 18px; }
.aia-recs .qs-provider.is-open { box-shadow: var(--gm-shadow-1); }
.aia-recs .qs-btn { min-height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 500; }
.aia-recs .qs-btn.is-primary { background: var(--gm-primary); color: var(--gm-on-primary); }
.aia-recs .qs-btn.is-primary:hover { background: var(--gm-primary-hover); }
.aia-recs .qs-btn.is-ghost { border-color: var(--gm-outline); color: var(--gm-primary); }
.aia-recs .qs-btn.is-live { background: var(--gm-success); }
.aia-recs .qs-star { color: var(--gm-star); }

/* The message box and what sits around it. */
.aia-dock { position: relative; flex: 0 0 auto; width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.aia.is-landing .aia-dock { margin-bottom: auto; }
.aia:not(.is-landing) .aia-dock { padding-top: 6px; }

.aia-composer { margin: 0; }
.aia-composer[hidden] { display: none; }
.aia-box { border-radius: 32px; background: var(--gm-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 4px 16px rgba(0, 0, 0, .35); transition: box-shadow .2s ease; }
.aia-box:focus-within { box-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 24px rgba(0, 0, 0, .35); }
.aia-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.aia-chips:not(:empty) { padding-top: 12px; }
.aia-attachment { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--gm-surface-2); color: var(--gm-text); font-size: 13px; }
.aia-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-attachment button { display: inline-grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--gm-text-2); cursor: pointer; }
.aia-attachment button:hover { background: var(--gm-hover); }
.aia-input-row { display: flex; align-items: flex-end; gap: 2px; min-height: 64px; padding: 12px 12px 12px 12px; }
.aia-input-row textarea { flex: 1 1 auto; min-width: 0; max-height: 200px; min-height: 40px; padding: 9px 8px; overflow-y: hidden; border: 0; background: transparent; color: var(--gm-text); font: 400 16px/1.4 var(--font); resize: none; outline: 0; }
.aia-input-row textarea::placeholder { overflow: hidden; color: var(--gm-text-3); text-overflow: ellipsis; white-space: nowrap; }
.aia-tool, .aia-send { display: inline-grid; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--gm-text-2); cursor: pointer; font-size: 22px; transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease; }
.aia-tool:hover, .aia-tool:focus-visible { background: var(--gm-hover); color: var(--gm-text); outline: 0; }
.aia-tool.is-recording { background: var(--gm-error-soft); color: var(--gm-error); animation: aia-pulse-bg 1.2s infinite; }
.aia-mode { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--gm-text); cursor: pointer; font: 500 14px/1 var(--font); white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.aia-mode i { color: var(--gm-text-2); font-size: 19px; }
.aia-mode:hover, .aia-mode:focus-visible { background: var(--gm-hover); outline: 0; }
.aia-mode[aria-pressed="true"] { background: var(--gm-tonal); color: var(--gm-on-tonal); }
.aia-mode[aria-pressed="true"] i { color: var(--gm-on-tonal); }
.aia-send { background: var(--gm-primary); color: var(--gm-on-primary); font-size: 20px; }
.aia-send:hover, .aia-send:focus-visible { background: var(--gm-primary-hover); color: var(--gm-on-primary); outline: 0; }
/* Like the mic in a search box: the send button shows up once there is something to send. */
.aia:not(.has-draft) .aia-send { display: none; }
.aia-send:disabled, .aia-tool:disabled, .aia-mode:disabled { opacity: .4; cursor: not-allowed; }
.aia-status { margin: 10px 0 0; color: var(--gm-text-2); font-size: 13px; text-align: center; }

.aia-consent { margin-top: 16px; padding: 20px 24px 22px; border: 1px solid var(--gm-outline-soft); border-radius: 24px; background: var(--gm-surface); }
.aia-consent[hidden] { display: none; }
.aia:not(.is-landing) .aia-consent { display: none; }
.aia-consent h2 { margin: 0 0 10px; color: var(--gm-text); font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.aia-consent ul { margin: 0 0 16px; padding-left: 20px; color: var(--gm-text-2); font-size: 13.5px; line-height: 1.55; }
.aia-consent li { margin: 4px 0; list-style: disc; }
.aia-consent.is-attention { animation: aia-attention .6s ease; border-color: var(--gm-primary); }
.aia-consent:not([hidden]) + .aia-starters { display: none; }

.aia-foot { flex: 0 0 auto; margin: 0; padding: 14px 24px 16px; color: var(--gm-text-2); font-size: 12px; line-height: 1.5; text-align: center; }
.aia-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.aia-foot a:hover { color: var(--gm-primary); }
.aia:not(.is-landing) .aia-foot { padding-top: 10px; }

.aia-notice { max-width: 520px; margin: 0 auto; padding: 8px 24px 0; text-align: center; }
.aia-notice[hidden] { display: none; }
.aia-notice i { color: var(--gm-text-3); font-size: 34px; }
.aia-notice p { margin: 10px 0 18px; color: var(--gm-text-2); font-size: 15px; }

/* Voice chat. */
.aia-voicebar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--gm-surface); box-shadow: var(--gm-shadow-1); color: var(--gm-text); }
.aia-voicebar[hidden] { display: none; }
.aia-voice-orb { position: relative; flex: 0 0 36px; width: 36px; height: 36px; }
.aia-voice-orb i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8d4a8, #9c7a3f 70%); transform: scale(calc(.55 + var(--level, 0) * .45)); transition: transform .08s linear; }
.aia-voicebar.is-thinking .aia-voice-orb i, .aia-voicebar.is-speaking .aia-voice-orb i { animation: aia-pulse 1.1s infinite ease-in-out; }
.aia-voicebar.is-speaking .aia-voice-orb i { background: radial-gradient(circle at 35% 30%, #ede7da, #6f7d8c 70%); }
.aia-voice-state { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; }
.aia-voicebar .gm-pill { min-height: 36px; padding: 0 16px; font-size: 13px; }

.aia-drop { position: absolute; z-index: 5; inset: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--gm-primary); border-radius: 28px; background: rgba(12, 18, 25, .94); color: var(--gm-primary); font-size: 16px; font-weight: 500; pointer-events: none; }
.aia-drop[hidden] { display: none; }
.aia-drop i { font-size: 36px; }

@keyframes aia-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes aia-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes aia-pulse { 50% { transform: scale(.92); } }
@keyframes aia-pulse-bg { 50% { opacity: .7; } }
@keyframes aia-attention { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* =====================================================================
   Inner pages: title bands, about, legal copy, contact, areas of law
   ===================================================================== */
.inner-hero, .contact-hero { padding: 40px 0 28px; border: 0; background: transparent; color: var(--gm-text); }
.inner-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; }
.inner-hero h1, .contact-hero h1 { max-width: 22ch; margin: 18px 0 0; font-size: clamp(32px, 3.8vw, 48px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.inner-hero-grid > p { max-width: 520px; margin-bottom: 6px; color: var(--gm-text-2); font-size: 16px; line-height: 1.6; }
.inner-hero-dark { background: transparent; color: var(--gm-text); }
.inner-hero-dark .eyebrow { color: var(--gm-on-tonal); }
.inner-hero-dark .inner-hero-grid > p { color: var(--gm-text-2); }
.contact-hero .eyebrow { color: var(--gm-on-tonal); }
.contact-hero .crumbs, .contact-hero .inner-hero-grid > p { color: var(--gm-text-2); }
.contact-hero .crumbs a:hover { color: var(--gm-primary); }
.crumbs { gap: 6px; margin: 0 0 18px; color: var(--gm-text-3); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.crumbs a { color: var(--gm-text-2); }
.crumbs a:hover { color: var(--gm-primary); }

.story-section { padding: 16px 0 56px; background: transparent; }
.story-grid { gap: 48px; }
.story-image { border-radius: 28px; }
.story-image img { border-radius: 28px; filter: none; }
.story-image > span { border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.story-body { color: var(--gm-text-2); font-size: 16px; line-height: 1.7; }
.story-body p { margin-bottom: 18px; }
/* Text pasted into the admin editor keeps its light-theme inline colours
   and fonts; on this dark ground it follows the page instead. */
:is(.story-body, .rich-content, .legal-copy, .blog-content) [style*="color"] { color: inherit !important; }
:is(.story-body, .rich-content, .legal-copy, .blog-content) [style*="font-family"] { font-family: inherit !important; }
:is(.story-body, .rich-content, .legal-copy, .blog-content) [style*="background"] { background: transparent !important; }
.story-body li { padding: 12px 0; border-color: var(--gm-outline-soft); color: var(--gm-text); font-size: 15px; font-weight: 400; letter-spacing: 0; }

.legal-hero { padding-bottom: 24px; }
.legal-section { padding: 0 0 56px; background: transparent; }
.legal-copy { width: min(860px, 100%); padding: 40px 48px; border: 1px solid var(--gm-outline-soft); border-radius: 28px; background: var(--gm-surface); color: var(--gm-text-2); font-size: 16px; line-height: 1.75; }
.legal-copy p { margin-bottom: 18px; }
.rich-content :where(h1, h2, h3, h4, h5, h6) { color: var(--gm-text); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.rich-content :where(h1, h2) { font-size: clamp(24px, 2.2vw, 30px); }
.rich-content :where(h3, h4) { font-size: 20px; }
.rich-content :where(h5, h6) { font-size: 17px; letter-spacing: 0; }
.rich-content blockquote { border-left: 3px solid var(--gm-tonal); border-radius: 0 12px 12px 0; background: var(--gm-surface-2); padding: 12px 20px; }

.contact-section { padding: 8px 0 56px; background: transparent; }
.contact-grid { gap: 48px; }
.contact-grid aside { top: calc(var(--header-h) + 24px); }
.contact-big-link { border: 0; color: var(--gm-primary); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: 0; }
.contact-big-link:hover { color: var(--gm-primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.contact-response { border-color: var(--gm-outline-soft); color: var(--gm-text-3); font-size: 13px; }
.contact-cards .card { border-top-color: var(--gm-outline-soft); }
.contact-cards .card-body span.rounded-circle { border: 0; background: var(--gm-tonal); }
.contact-cards .card-body span.rounded-circle i { color: var(--gm-on-tonal) !important; }
.contact-cards h6 { color: var(--gm-text-3); font-size: 12px !important; font-weight: 500; letter-spacing: 0; text-transform: none; }
.contact-cards p { color: var(--gm-text); font-size: 16px !important; font-weight: 500; letter-spacing: 0; }
.inquiry-panel { padding: 36px; border: 1px solid var(--gm-outline-soft); border-radius: 28px; background: var(--gm-surface); box-shadow: none; }
.form-head { margin-bottom: 28px; }
.form-head h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; }
.form-head span { color: var(--gm-text-3); font-size: 13px; }
.form-grid { gap: 18px 16px; }
.form-grid label > span { color: var(--gm-text-2); font-size: 13px; font-weight: 500; }
.form-grid :where(input, select, textarea) { padding: 12px 16px; border: 1px solid var(--gm-outline); border-radius: 12px; background: var(--gm-surface); }
.form-grid :where(input, select, textarea):focus { border-color: var(--gm-primary); box-shadow: inset 0 0 0 1px var(--gm-primary); }

.error-section { min-height: calc(100vh - var(--header-h) - 120px); padding: 48px 0; }
.error-section .eyebrow { font-size: 12px; letter-spacing: 0; }
.error-section h1 { margin: 22px 0 16px; font-size: clamp(36px, 5vw, 64px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.error-section p { color: var(--gm-text-2); font-size: 16px; }
.error-section .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }

/* Areas of law (and any card collection the page builder places). */
.collection-section { padding: 8px 0 56px; }
.collection-section.is-surface { border: 0; background: transparent; }
.collection-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.collection-card { border-radius: 24px; background: var(--gm-surface); box-shadow: 0 0 0 1px var(--gm-outline-soft); transition: box-shadow .25s ease, transform .25s ease; }
.collection-card:hover { box-shadow: var(--gm-shadow-2); transform: translateY(-2px); }
.collection-image { margin: 8px 8px 0; border-radius: 18px; }
.collection-grid .collection-image { aspect-ratio: 4 / 3; }
.collection-image::after { display: none; }
.collection-image img { filter: none; }
.collection-card:hover .collection-image img { filter: none; transform: scale(1.03); }
.collection-image > span { border-radius: 999px; background: rgba(12, 18, 25, .82); color: var(--gm-text); font-size: 12px; font-weight: 500; }
.collection-image > em { border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.collection-meta { gap: 12px; padding: 14px 18px 18px; }
.collection-meta h3, .collection-grid .collection-meta h3 { margin-bottom: 4px; color: var(--gm-text); font-size: 17px; font-weight: 500; letter-spacing: -.005em; }
.collection-meta p { color: var(--gm-text-2); font-size: 13.5px; }
.collection-meta > i { color: var(--gm-primary); }
.collection-facts { color: var(--gm-text-3); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.collection-facts b { font-size: 13px; font-weight: 500; }
.card-save { background: rgba(12, 18, 25, .82); color: var(--gm-text); }
.section-head h2, .process-intro h2, .network-copy h2 { font-weight: 400; letter-spacing: -.02em; }
.catalog-empty { color: var(--gm-text-2); }

/* Page frames sit on the app's ground; cards inside take the surface tone. */
body.gm-app .page-wrapper.bg-white, body.gm-app main > section.bg-white, body.gm-app main > .bg-white { background-color: transparent !important; }

/* Page stylesheets that paint their main action in ink take the accent. */
.sv-book-btn { background: var(--gm-primary) !important; color: var(--gm-on-primary) !important; }
.sv-book-btn:hover { background: var(--gm-primary-hover) !important; }
.sv-pager-page.is-active { border-color: transparent !important; background: var(--gm-tonal) !important; color: var(--gm-on-tonal) !important; }

/* =====================================================================
   Pagination

   One look for every paginator the pages use: the shared Blade one
   (.ts-pagination: bookings, wallet, wishlist, transactions, tickets,
   requirements), the quotes list (.qr-*, built in JS), services
   (.sv-pager), the blog (.paginations) and Bootstrap / DataTables ones.
   Round 40px buttons, the current page in the tonal blue, arrows as
   icon buttons. Prefixed with body.gm-app because some page stylesheets
   load after this file.
   ===================================================================== */
body.gm-app :is(.ts-pagination, .qr-pagination) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; gap: 12px 16px; margin-top: 8px; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.gm-app :is(.ts-pg-count, .qr-pg-count) { color: var(--gm-text-3); font-size: 13px; }
body.gm-app :is(.ts-pg-count, .qr-pg-count) strong { color: var(--gm-text); font-weight: 500; }
body.gm-app :is(.ts-pg-controls, .qr-pg-controls, .sv-pager-pages) { display: flex; align-items: center; gap: 4px; }

body.gm-app :is(.ts-pg-btn, .qr-pg-btn, .sv-pager-page, .sv-pager-arrow, .paginations .page-item > a, .paginations .page-item > span, .pagination .page-link, .dataTables_paginate .paginate_button) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; min-width: 40px; height: 40px; margin: 0; padding: 0 12px;
    border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important;
    color: var(--gm-text-2) !important; font: 500 14px/1 var(--font); font-variant-numeric: tabular-nums;
    text-decoration: none; transform: none !important; cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
body.gm-app :is(.ts-pg-btn, .qr-pg-btn, .sv-pager-page, .sv-pager-arrow, .paginations .page-item > a, .pagination .page-link, .dataTables_paginate .paginate_button):hover {
    background: var(--gm-hover) !important; color: var(--gm-text) !important;
}
body.gm-app :is(.ts-pg-btn, .qr-pg-btn, .sv-pager-page, .sv-pager-arrow, .paginations .page-item > a, .pagination .page-link):focus-visible { outline: 2px solid var(--gm-primary); outline-offset: 1px; }
body.gm-app :is(.ts-pg-btn.is-current, .qr-pg-btn.is-current, .sv-pager-page.is-active, .paginations .page-link-1.active, .pagination .page-item.active .page-link, .dataTables_paginate .paginate_button.current),
body.gm-app :is(.ts-pg-btn.is-current, .qr-pg-btn.is-current, .sv-pager-page.is-active, .paginations .page-link-1.active, .pagination .page-item.active .page-link, .dataTables_paginate .paginate_button.current):hover {
    background: var(--gm-tonal) !important; color: var(--gm-on-tonal) !important; cursor: default;
}
body.gm-app :is(.ts-pg-btn.is-arrow, .qr-pg-btn.is-arrow, .sv-pager-arrow) { width: 40px; padding: 0; }
body.gm-app :is(.ts-pg-btn, .qr-pg-btn, .sv-pager-arrow, .paginations .page-item > a, .paginations .page-item > span) i { margin: 0 !important; font-size: 20px; }
body.gm-app :is(.ts-pg-btn.is-disabled, .qr-pg-btn[disabled], .sv-pager-arrow.is-disabled, .paginations .page-item.disabled > span, .pagination .page-item.disabled .page-link, .dataTables_paginate .paginate_button.disabled) {
    background: transparent !important; opacity: .38; cursor: default; pointer-events: none;
}
body.gm-app :is(.ts-pg-gap, .qr-pg-gap, .sv-pager-gap) { min-width: 24px; padding: 0; color: var(--gm-text-3); font-size: 14px; text-align: center; }

/* Services: centred, with "Page x / y" beside it. */
body.gm-app .sv-pager { gap: 4px; margin: 28px 0 8px; padding: 0; }
body.gm-app .sv-pager-status { margin-left: 12px; color: var(--gm-text-3); font-size: 13px; }

/* Blog: numbers between "Previous" and "Next", which read as text buttons. */
body.gm-app .paginations { gap: 4px; margin: 32px 0 8px; padding: 0; color: var(--gm-text-2) !important; list-style: none; }
body.gm-app .paginations .page-item { margin: 0 !important; }
body.gm-app .paginations .page-item > :not(.page-link-1) { padding: 0 16px; color: var(--gm-primary) !important; }
body.gm-app .paginations .page-item.disabled > span { color: var(--gm-text-2) !important; }

/* Bootstrap lists (requirement matches and the like). */
body.gm-app .pagination { gap: 4px; margin: 0; }
body.gm-app .pagination .page-item { margin: 0; }
body.gm-app .pagination .page-item:first-child .page-link, body.gm-app .pagination .page-item:last-child .page-link { padding: 0 16px; color: var(--gm-primary) !important; }
body.gm-app .dataTables_wrapper .dataTables_paginate { display: flex; flex-wrap: wrap; gap: 4px; }

@media (max-width: 575.98px) {
    body.gm-app :is(.ts-pagination, .qr-pagination) { justify-content: center; }
    body.gm-app :is(.ts-pg-count, .qr-pg-count) { width: 100%; text-align: center; }
    body.gm-app .sv-pager-status { flex-basis: 100%; margin: 6px 0 0; text-align: center; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1279.98px) {
    .gm-topnav-link { padding: 0 10px; }
}

/* Tablet and phone: the side menu slides in over the page. */
@media (max-width: 1023.98px) {
    html:root, html.gm-folded { --gm-offset: 0px; }
    html.gm-folded .gm-sidebar { width: var(--gm-side-w); }
    html.gm-folded .gm-side-head { justify-content: flex-start; padding: 0 12px 0 20px; }
    html.gm-folded .gm-side-toggle { margin-left: auto; }
    html.gm-folded .gm-side-head-signin { display: inline-flex; }
    html.gm-folded .gm-side-item { justify-content: flex-start; width: auto; padding: 0 14px; }
    html.gm-folded .gm-side-item > span { display: inline; }
    html.gm-folded .gm-side-list { display: flex; }
    html.gm-folded .gm-side-note { display: flex; }
    html.gm-folded .gm-side-foot { flex-direction: row; padding: 12px 12px 16px 16px; }
    html.gm-folded .gm-side-signin { width: auto; min-height: 44px; padding: 0 18px; }
    html.gm-folded .gm-side-signin span { display: inline; }
    html.gm-folded .gm-side-signin i { display: none; }
    html.gm-folded .gm-side-user span { display: inline; }

    .gm-sidebar { z-index: 1045; width: min(var(--gm-side-w), 86vw); box-shadow: none; transform: translateX(100%); visibility: hidden; transition: transform .25s var(--gm-ease), visibility 0s linear .25s; }
    body.gm-side-open .gm-sidebar { box-shadow: var(--gm-shadow-3); transform: none; visibility: visible; transition: transform .25s var(--gm-ease), visibility 0s; }
    .gm-scrim { z-index: 1044; }
    .gm-side-toggle .gm-toggle-fold, html.gm-folded .gm-side-toggle .gm-toggle-unfold { display: none; }
    .gm-side-toggle .gm-toggle-close { display: inline; }
    .gm-side-compact { display: flex; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gm-outline-soft); }

    .gm-topbar { padding: 0 12px 0 8px; }
    .gm-menu-btn, .gm-topbar-new, .gm-topbar-signin { display: inline-flex; }
    .gm-topbar-start { display: contents; }
    .gm-topbar-brand { order: -1; }
    .gm-menu-btn { order: 10; }
    .gm-topnav { display: none; }
    .gm-footer { margin: 32px 12px 12px; padding: 32px 22px 18px; border-radius: 24px; }
}

@media (max-width: 860px) {
    :root { --shell: calc(100vw - 32px); --gutter: 16px; }
    .inner-hero-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .inner-hero, .contact-hero { padding: 24px 0 20px; }
    .inner-hero h1, .contact-hero h1 { font-size: clamp(28px, 8vw, 40px); }
    .legal-copy { padding: 26px 22px; border-radius: 24px; }
    .inquiry-panel { padding: 24px 20px; border-radius: 24px; }
}

@media (max-width: 640px) {
    .aia-body { padding: 4px 16px 12px; }
    .aia-dock { width: calc(100% - 24px); }
    .aia-hero { margin-bottom: 24px; }
    .aia-hero h1 { font-size: clamp(15px, 4.8vw, 26px); }
    .aia-input-row { min-height: 56px; padding: 8px; }
    .aia-mode span { display: none; }
    .aia-mode { width: 40px; padding: 0; justify-content: center; }
    .aia-msg { gap: 10px; }
    .aia-avatar { display: none; }
    .aia-msg.is-user .aia-bubble { max-width: 88%; }
    .aia-starters { justify-content: flex-start; flex-wrap: nowrap; margin-inline: -12px; padding: 0 12px 4px; overflow-x: auto; scrollbar-width: none; }
    .aia-starters::-webkit-scrollbar { display: none; }
    .aia-starter { flex: 0 0 auto; }
    .aia-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); font-size: 11.5px; }
    .aia-service { flex-wrap: wrap; }
    .aia-service-main { flex-basis: 100%; }
    .aia-service .qs-btn { margin-left: auto; }
    .aia-recs { padding: 14px; border-radius: 20px; }
    .aia-recs-head a { margin-left: 0; flex-basis: 100%; }
    .gm-topbar-actions > .gm-pill { min-height: 36px; padding: 0 16px; }
    .gm-footer-grid { grid-template-columns: 1fr; }
    .gm-footer-base { align-items: flex-start; flex-direction: column; }
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .collection-meta { padding: 12px 12px 14px; }
}

@media (max-width: 400px) {
    .collection-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    body.gm-app, .gm-sidebar, .gm-scrim { transition: none !important; }
    .aia-hero, .aia-msg, .aia-consent.is-attention { animation: none !important; }
}
