/*
 * otosorgu-ui.css: design tokens and shared components for the inner pages (OWL-UI-1).
 * Source of the look: DESIGN.md. Loaded by Views/Shared/_Layout.cshtml AFTER the legacy CSS bundle.
 *
 * Rules of this file
 * - Look only. No selector here depends on, or changes, a URL, a form field name/id or a script hook.
 * - Everything that restyles legacy markup is scoped under #Content, so the layout template
 *   (header, nav, footer, assets/css/style.css) keeps its look. New components use the .ou-* prefix.
 * - Later page groups (OWL-UI-2..8) add only their own page-group sections or files; do not edit the
 *   components below for one page.
 */

/* 1. Tokens ------------------------------------------------------------------------------ */
:root {
    /* colour */
    --ou-ink: #313131;
    --ou-ink-soft: #5c5c5c;
    --ou-muted: #6e6e6e; /* DESIGN.md draft said #8a8a8a (3.4:1 on white); #6e6e6e keeps text AA (5.1:1) */
    --ou-line: #ebebeb;
    --ou-line-strong: #d9d9d9;
    --ou-surface: #ffffff;
    --ou-canvas: #f3f3f3;
    --ou-accent: #fecc16;
    --ou-accent-hover: #f0bd00;
    --ou-accent-ink: #7a5f00;
    --ou-accent-tint: #fff9e1; /* page header band (OWL-UI-13a); ink-soft on it is 6.3:1 */
    /* state: bg / border / text */
    --ou-success-bg: #eaf6ec;
    --ou-success-line: #9fd3a8;
    --ou-success-ink: #1e5f2e;
    --ou-warning-bg: #fff6d6;
    --ou-warning-line: #f0d57a;
    --ou-warning-ink: #6b5200;
    --ou-error-bg: #fdeceb;
    --ou-error-line: #f1a9a4;
    --ou-error-ink: #8a1f17;
    --ou-info-bg: #e8f2fb;
    --ou-info-line: #a8cbe8;
    --ou-info-ink: #1b4f7a;
    /* type */
    --ou-font: 'otosorgu', Arial, Helvetica, sans-serif;
    /* Type scale 12 / 14 / 16 / 20 / 28 px (DESIGN.md). px, never rem (OWL-UI-TYPE-1): legacy style.css sets html font-size 14px below 640px,
       so rem tokens shrank 12.5% on phones (xs 10.5, sm 12.25, md 14, lg 17.5, xl 24.5). The legacy root is 14px up to 767px (style.css @media max-width 767px) and 16px from 768px, so px renders the same as before from 768px up. */
    --ou-fs-xs: 12px;
    --ou-fs-sm: 14px;
    --ou-fs-md: 16px;
    --ou-fs-lg: 20px;
    --ou-fs-xl: 28px;
    /* Form text (OWL-UI-LABEL-1): aliases of the scale. DESIGN.md form label 14px / helper and error text 12px. */
    --ou-fs-label: var(--ou-fs-sm);
    --ou-fs-help: var(--ou-fs-xs);
    /* space */
    --ou-s1: 4px;
    --ou-s2: 8px;
    --ou-s3: 12px;
    --ou-s4: 16px;
    --ou-s5: 24px;
    --ou-s6: 32px;
    --ou-s7: 48px;
    /* shape and depth */
    --ou-r-control: 8px;
    --ou-r-card: 12px;
    --ou-r-pill: 999px;
    --ou-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 12px rgb(0 0 0 / .05);
    /* motion */
    --ou-t: 150ms ease;
    --ou-control-h: 44px;
    /* Structural width (OWL-UI-11e, Okan 2026-11-10): the site header and footer container, copied from style.css and CustomStyle.css
       (`header > div`, `footer > [footer-content]`: 1100px from 1141px, `calc(100% - 60px)` to 768px, `90%` below). Every page card uses it. */
    --ou-site-w: 1100px;
    --ou-form-w: 480px; /* readable width of a form block inside a card; the card itself stays at --ou-site-w */
}
/* Breakpoints pinned to the header/footer rules: style.css `@media (min-width: 1141px)` = 1100px (so max 1140 here) and
   `@media (max-width: 1140px) and (min-width: 768px)` = calc(100% - 60px); CustomStyle.css `@media (max-width: 767px)` = 90% (so 768 and up here).
   Change them together with those rules. The two percentage values resolve against the parent: use the token only on direct children of a full-width .section. */
@media (max-width: 1140px) {
    :root { --ou-site-w: calc(100% - 60px); }
}
@media (max-width: 767px) {
    :root { --ou-site-w: 90%; }
}

@media (prefers-reduced-motion: reduce) {
    :root { --ou-t: 0ms linear; }
    #Content *, .ou-alert, .ou-btn { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    /* OWL-UI-8: explicit guard for the radio chips and button press (QA PR #67): no transition, no movement. */
    #Content .radiobox-container, #Content .button, .ou-btn { transition: none !important; }
    #Content .button:active, .ou-btn:active { transform: none; }
}

/* 2. Type -------------------------------------------------------------------------------- */
#Content h2 { font-size: var(--ou-fs-xl); line-height: 1.2; font-weight: 500; color: var(--ou-ink); text-wrap: balance; }
#Content h3 { font-size: var(--ou-fs-lg); line-height: 1.3; font-weight: 500; color: var(--ou-ink); text-wrap: balance; }
#Content p, #Content .smalltext { line-height: 1.5; }
#Content .smalltext { font-size: var(--ou-fs-sm); color: var(--ou-ink-soft); }
#Content a:focus-visible, #Content summary:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; border-radius: 2px; }

/* 3. Page frame and card ----------------------------------------------------------------- */
/* One structural width (OWL-UI-11e): every page card has the left and right edges of the site header and footer container, at every
   viewport (--ou-site-w). !important beats the inline widths some legacy views carry (500px, 800px, 600px, max-width:1200px).
   A section_wrapper nested in another one is left alone. */
/* Nested guard: a wrapper inside a wrapper (inline widths such as 850px) never exceeds its parent. --ou-site-w is a percentage below
   1141px, so use it only on direct children of a full-width .section (cards, balance notice, tile strip), never on nested elements. */
#Content .section_wrapper .section_wrapper { max-width: 100% !important; box-sizing: border-box; }
#Content .section_wrapper:not(.section_wrapper .section_wrapper) {
    box-sizing: border-box;
    width: var(--ou-site-w) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
}
/* Form blocks inside a card keep a readable width, left aligned (auth cards: centred). Tables are not form blocks: they fill the card. */
/* The cap applies only on the wide (two-column) layout, from 900px (the .ou-qgrid breakpoint); below it the form block fills the card (OWL-UI-17). */
@media (min-width: 900px) {
    #Content .backgcard:not(:has(table, .dataTables_wrapper)) :is(form, .ou-fee, .form-result, .ou-alert, .or, .smalltext, .ou-formblock) { max-width: var(--ou-form-w); }
    /* OWL-UI-18a: the result card's disclaimer text is not a form block; it uses the card width (no empty strip right of it). */
    #Content .backgcard.ou-result:not(:has(table, .dataTables_wrapper)) .smalltext { max-width: none; }
}
/* TWO-COLUMN FORM (OTS-UI-GAP-1, Okan 2026-11-19 "formun sağ tarafı boş"): a form with several fields uses the whole card from 900px
   (two columns, each as wide as a form block) instead of one 480px column with an empty right half. Below 900px it stays one column.
   Children keep their DOM order; `.ou-span` (or a block that must be wide: alert, group title, option lists) takes both columns.
   A lone button takes one column (same width as a field), two neighbouring buttons sit side by side. */
@media (min-width: 900px) {
    #Content .backgcard form.ou-form2.ou-form2 {
        max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--ou-s5); row-gap: var(--ou-s4); align-items: start;
    }
    #Content .backgcard .ou-form2 > :is(.ou-span, .ou-alert, .ou-acct__checks, .ou-acct__logo, .ou-pay__label, .ou-pay__methods, .ou-pay__amounts, .ou-bill__title, .ou-bank-list, .ou-acct__group-title, .ou-helper, .ou-acct__who, .ou-bill__who, .ou-choice, .line) { grid-column: 1 / -1; }
    #Content .backgcard .ou-form2 > .flex-vertical { display: contents; }
    #Content .backgcard form.ou-form2.ou-form2--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #Content .backgcard .ou-form2 > .ou-acct__checks.ou-form2__side { grid-column: auto; }
    #Content .backgcard .ou-form2 > .ou-acct__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--ou-s5); }
    #Content .backgcard .ou-form2 > .ou-acct__grid--2 > .ou-acct__span { grid-column: 1 / -1; } /* from 900px (the base rule starts at 1280px) */
    #Content .backgcard .ou-form2 > .button { width: 100%; margin: 0; align-self: end; }
    /* Label rows share one height (the Telefon label row carries a 24px badge): inputs of neighbouring fields line up. */
    #Content .backgcard .ou-form2 > .form-in > label { min-height: 24px; line-height: 24px; }
    /* The long submit label ("Ödeme Bildirim Formunu Gönder") must not wrap in a 3-column cell: it spans two columns. */
    #Content .backgcard form.ou-form2--3 > .button { grid-column: span 2; }
}
#Content .ou-auth-card :is(form, .ou-fee, .form-result, .ou-alert, .or, .smalltext, .ou-state, .ou-formblock) { margin-left: auto; margin-right: auto; }
/* FORM BLOCK (OWL-UI-17): wrapper of inputs + primary button + "YA DA" divider + secondary CTA. One width, one alignment (auth cards: centred; query pages: the .ou-qgrid__main column). */
#Content .ou-formblock { display: flex; flex-direction: column; gap: var(--ou-s4); min-width: 0; box-sizing: border-box; width: 100%; }
#Content .ou-formblock > .or { margin: var(--ou-s1) 0; }
#Content .ou-formblock > form, #Content .ou-formblock > .column_attr { width: 100%; max-width: none; }
#Content .backgcard,
.ou-card {
    background: var(--ou-surface);
    border-radius: var(--ou-r-card);
    box-shadow: var(--ou-shadow);
    padding: var(--ou-s5);
}
#Content .backgcard { margin-left: auto; margin-right: auto; }
/* Data screens fill the card (same width as every card); a table wider than the card scrolls inside its own wrapper (OWL-UI-11, 11c, 11d). */
#Content .section_wrapper.backgcard:has(.dataTables_wrapper),
#Content .section_wrapper.backgcard:has(table.dataTable) {
    overflow-x: auto;
}
#Content .or { border-top-width: 1px; border-top-color: var(--ou-line-strong); margin: var(--ou-s4) 0; }
#Content .or > small { font-size: var(--ou-fs-xs); font-weight: 500; letter-spacing: .04em; color: var(--ou-ink-soft); }
#Content .line { height: 1px; background: var(--ou-line); }
@media (max-width: 767px) {
    #Content .backg { padding: 0; }
    /* The card keeps its radius and shadow: it sits inside the same 5% gutters as the header (CustomStyle.css made it edge to edge). */
    #Content .backgcard { padding: var(--ou-s5) var(--ou-s4); border-bottom: 0; }
}

/* 4. Form fields ------------------------------------------------------------------------- */
#Content input[type="text"], #Content input[type="password"], #Content input[type="email"],
#Content input[type="number"], #Content input[type="tel"], #Content input[type="search"],
#Content input[type="url"], #Content input[type="date"], #Content input[type="datetime-local"],
#Content select, #Content textarea,
.ou-input {
    box-sizing: border-box;
    min-height: var(--ou-control-h);
    max-width: 100%;
    padding: 0 var(--ou-s3);
    border: 1px solid var(--ou-line-strong);
    border-radius: var(--ou-r-control);
    background-color: var(--ou-surface);
    color: var(--ou-ink);
    font-size: max(16px, var(--ou-fs-md)); /* 16px stops the iOS Safari focus zoom; plain rem is 14px below 640px (legacy html size), so floor it (OWL-UI-LABEL-1) */
    line-height: 1.25;
    box-shadow: none;
    transition: border-color var(--ou-t), box-shadow var(--ou-t);
}
#Content textarea, textarea.ou-input { padding: var(--ou-s3); min-height: 96px; line-height: 1.5; }
#Content select { padding-right: var(--ou-s6); }
/* iOS Safari: date inputs keep the control width instead of overflowing it. */
/* appearance:none on iOS Safari drops the inner text to the top of the box: centre it with flex and line-height (OWL-UI-3). */
#Content input[type="date"], #Content input[type="datetime-local"] { min-width: 0; -webkit-appearance: none; appearance: none; display: flex; align-items: center; line-height: 1.25; text-align: left; }
#Content input[type="date"]::-webkit-date-and-time-value,#Content input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-height: 1.25em; margin: 0; }
#Content input[type="date"]::-webkit-datetime-edit, #Content input[type="datetime-local"]::-webkit-datetime-edit { padding: 0; }
#Content input::placeholder, #Content textarea::placeholder { color: #767676; opacity: 1; }
#Content input[type="text"]:focus, #Content input[type="password"]:focus, #Content input[type="email"]:focus,
#Content input[type="number"]:focus, #Content input[type="tel"]:focus, #Content input[type="search"]:focus,
#Content input[type="url"]:focus, #Content input[type="date"]:focus, #Content input[type="datetime-local"]:focus,
#Content select:focus, #Content textarea:focus, .ou-input:focus {
    outline: none;
    background-color: var(--ou-surface) !important;
    border-color: var(--ou-ink);
    color: var(--ou-ink);
    box-shadow: 0 0 0 2px var(--ou-accent);
}
#Content input:disabled, #Content select:disabled, #Content textarea:disabled,
#Content input[readonly] { background-color: var(--ou-canvas); color: var(--ou-ink-soft); cursor: not-allowed; }
#Content input.errorvalidation, #Content select.errorvalidation, #Content textarea.errorvalidation,
#Content [aria-invalid="true"] { border-color: var(--ou-error-ink) !important; }
#Content input.successvalidation, #Content select.successvalidation, #Content textarea.successvalidation { border-color: var(--ou-success-ink) !important; }
#Content .form-in label, #Content label.ou-label { font-size: var(--ou-fs-label); font-weight: 500; color: var(--ou-ink); line-height: 1.4; }
#Content .form-in { gap: var(--ou-s2); }
#Content .form-in > input, #Content .form-in > select, #Content .form-in > textarea, #Content .iconinputs input { width: 100%; }
.ou-helper { font-size: var(--ou-fs-help); color: var(--ou-muted); line-height: 1.4; margin: 0; }
.ou-field-error, #Content .error-message {
    display: flex; gap: var(--ou-s1); align-items: flex-start; position: static;
    font-size: var(--ou-fs-help); line-height: 1.4; color: var(--ou-error-ink); margin: 0;
}
/* Custom radio/checkbox: the native input stays focusable (visually hidden, not display:none). */
#Content .checkbox-container input[type="checkbox"], #Content .radiobox-container input[type="radio"] {
    display: block; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
#Content .checkbox-container, #Content .radiobox-container { position: relative; }
#Content .checkbox-container input[type="checkbox"]:focus-visible + label::before,
#Content .radiobox-container input[type="radio"]:focus-visible + label::before { box-shadow: 0 0 0 2px var(--ou-surface), 0 0 0 4px var(--ou-ink); }
#Content .checkbox-container input[type="checkbox"] + label::before,
#Content .radiobox-container input[type="radio"] + label::before { border-color: var(--ou-line-strong); }
#Content .checkbox-container label, #Content .radiobox-container label { line-height: 1.5; font-size: var(--ou-fs-md); }
#Content .togglePassword { color: var(--ou-ink-soft); }

/* 5. Buttons ----------------------------------------------------------------------------- */
/* Legacy markup: <a|button class="button ..."> (and the [button="x"] icon map from style.css). */
#Content .button,
.ou-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ou-s2);
    box-sizing: border-box;
    min-height: var(--ou-control-h);
    padding: 0 var(--ou-s5);
    border: 2px solid transparent;
    border-radius: var(--ou-r-control);
    background-color: var(--ou-accent);
    background-image: none;
    color: var(--ou-ink);
    font-size: var(--ou-fs-md);
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--ou-t), transform var(--ou-t), box-shadow var(--ou-t);
}
#Content a.button.button_js, #Content a.button { padding: 0; }
#Content a.button .button_label { display: inline-flex; align-items: center; justify-content: center; gap: var(--ou-s2); min-height: calc(var(--ou-control-h) - 4px); padding: 0 var(--ou-s5); }
#Content .button.button_size_1, #Content .button.button_size_3, #Content .button.button_size_4 { font-size: var(--ou-fs-md); line-height: 1.25; }
#Content .button.button_full_width { width: 100%; }
#Content .button:hover, .ou-btn:hover { background-color: var(--ou-accent-hover); color: var(--ou-ink); }
#Content .button:active, .ou-btn:active { transform: translateY(1px); }
#Content .button:focus-visible, .ou-btn:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
#Content .button:after { display: none; } /* theme hover sweep */
/* Secondary: dark. The legacy inline dark buttons (#303031) already match; the class is for new markup. */
.ou-btn--secondary { background-color: var(--ou-ink); color: #fff; }
.ou-btn--secondary:hover { background-color: #000; color: #fff; }
/* Tertiary: text link look. */
.ou-btn--tertiary { background: transparent; color: var(--ou-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 var(--ou-s3); }
.ou-btn--tertiary:hover { background: var(--ou-canvas); color: var(--ou-ink); }
/* Danger. */
.ou-btn--danger { background-color: var(--ou-error-bg); border-color: var(--ou-error-line); color: var(--ou-error-ink); }
.ou-btn--danger:hover { background-color: #fadad7; color: var(--ou-error-ink); }
/* Disabled (also replaces the legacy inline grey #777). */
#Content .button:disabled, #Content .button[disabled], #Content .button.disabled, .ou-btn:disabled, .ou-btn[disabled] {
    background: #ececec !important; border-color: transparent; color: #5c5c5c !important; cursor: not-allowed; transform: none; box-shadow: none;
}
/* Icons: 16px, left of the label; forward/next on the right (Button icons rule). */
#Content .button[button]:before, .ou-btn[button]:before {
    margin: 0 !important; font-size: 16px !important; line-height: 1; flex: none;
}
#Content .button[button="forward"]:before { order: 2; }
/* Loading: the spinner replaces the left icon. Set class is-loading on the button. */
#Content .button.is-loading:before, .ou-btn.is-loading:before {
    content: "" !important; display: inline-block; width: 16px !important; height: 16px;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: ou-spin .7s linear infinite; order: 0 !important; font-size: 0 !important;
}
@keyframes ou-spin { to { transform: rotate(360deg); } }

/* 5b. Button system, compact actions (OWL-UI-14a, Okan 2026-11-10: button colours follow the site, no white button on a white card) -----------
   Roles (DESIGN.md > Buttons): primary = accent fill + ink text (the main action of a page or form, one per form);
   secondary = ink fill + white text (every other action); danger = error tint (destructive or switch-off); link = underlined text, only for real navigation links.
   A white or ghost button is not a role. Contrast: ink on accent 8.6:1, white on ink 12.6:1, error-ink on error-bg 8:1.
   .ou-act is the compact (36 px, 44 px in the mobile cards) size of the same roles for table rows and toolbars: default secondary, --danger, --primary.
   One leading icon per action: --edit, --delete, or the data-islem / href map of otosorgu-ui-tables.css. Use only ligatures that exist in the bundled
   Material Icons Round font (an unknown name draws a blank box as wide as the name). Legacy red links in table cells get the same look from the tables sheet. */
#Content .ou-act {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--ou-s1); box-sizing: border-box;
    height: auto; min-height: 36px; margin: 2px 4px 2px 0; padding: 0 var(--ou-s3);
    border: 2px solid transparent; border-radius: var(--ou-r-control);
    background: var(--ou-ink); color: #fff; font-family: var(--ou-font); font-size: var(--ou-fs-sm); font-weight: 500; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap; vertical-align: middle;
    transition: background-color var(--ou-t), transform var(--ou-t);
}
#Content .button.ou-act { padding: 0 var(--ou-s3); font-size: var(--ou-fs-sm); line-height: 1; } /* beats .button.button_size_N */
#Content .ou-act:hover { background: #000; color: #fff; }
#Content .ou-act:active { transform: translateY(1px); }
#Content .ou-act:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
#Content .ou-act:after { display: none; } /* theme hover sweep */
#Content .ou-act:before { font-family: "Material Icons Round"; font-size: 18px; font-weight: 400; font-style: normal; line-height: 1; font-feature-settings: 'liga'; text-decoration: none; margin: 0 !important; flex: none; content: "chevron_right"; }
#Content .ou-act--edit:before { content: "edit"; }
#Content .ou-act--delete:before { content: "delete"; }
#Content .ou-act--primary { background: var(--ou-accent); color: var(--ou-ink); }
#Content .ou-act--primary:hover { background: var(--ou-accent-hover); color: var(--ou-ink); }
#Content .ou-act--danger, #Content .ou-act--delete { background: var(--ou-error-bg); border-color: var(--ou-error-line); color: var(--ou-error-ink); }
#Content .ou-act--danger:hover, #Content .ou-act--delete:hover { background: #fadad7; border-color: var(--ou-error-ink); color: var(--ou-error-ink); }
#Content .ou-act--danger:focus-visible, #Content .ou-act--delete:focus-visible { outline-color: var(--ou-error-ink); }
#Content .ou-act:disabled, #Content .ou-act[disabled] { background: #ececec; border-color: transparent; color: #5c5c5c; cursor: not-allowed; transform: none; }
@media (max-width: 639px) {
    #Content .ou-act { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    #Content .ou-act { transition: none; }
    #Content .ou-act:active { transform: none; }
}

/* 6. Alerts ------------------------------------------------------------------------------ */
/* The one notice component (_Alert partial, .ou-alert). OWL-UI-12c: same family as the balance notice (.ou-balance, OWL-UI-12):
   solid panel, card radius, round icon badge. Variants: info = ink panel, warning = accent panel (as balance ok / low),
   success = green panel, error = red panel. The icon glyph differs per variant, so colour is never the only signal.
   Contrast: white on ink 12.6:1, ink on accent 8.6:1, white on success-ink 8.2:1, white on error-ink 9.4:1. */
.ou-alert {
    --ou-alert-bg: var(--ou-ink); --ou-alert-fg: #fff; --ou-alert-badge-bg: var(--ou-accent); --ou-alert-badge-fg: var(--ou-ink);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start; /* OWL-UI-18e (G5-1): icon and close stay on the first text line of a multi-line alert */
    gap: var(--ou-s3);
    position: relative;
    margin: 0 0 var(--ou-s4);
    padding: var(--ou-s3) var(--ou-s4);
    border: 0;
    border-radius: var(--ou-r-card);
    background: var(--ou-alert-bg);
    color: var(--ou-alert-fg);
    font-size: var(--ou-fs-md);
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}
.ou-alert--warning { --ou-alert-bg: var(--ou-accent); --ou-alert-fg: var(--ou-ink); --ou-alert-badge-bg: var(--ou-ink); --ou-alert-badge-fg: var(--ou-accent); }
.ou-alert--success { --ou-alert-bg: var(--ou-success-ink); --ou-alert-fg: #fff; --ou-alert-badge-bg: #fff; --ou-alert-badge-fg: var(--ou-success-ink); }
.ou-alert--error { --ou-alert-bg: var(--ou-error-ink); --ou-alert-fg: #fff; --ou-alert-badge-bg: #fff; --ou-alert-badge-fg: var(--ou-error-ink); }
/* 6px top/bottom = (36px badge - 24px line) / 2: a one-line alert is as tall as the badge and its text is centred on it, as before. */
.ou-alert__body { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 6px 0; }
.ou-alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ou-alert__icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--ou-r-pill);
    background: var(--ou-alert-badge-bg); color: var(--ou-alert-badge-fg);
    font-family: "Material Icons Round"; font-size: 22px; line-height: 1; font-weight: normal; font-style: normal; letter-spacing: normal; text-transform: none; white-space: nowrap; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
}
.ou-alert__title { display: block; font-weight: 700; margin-bottom: 2px; }
.ou-alert__close {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin: 2px -8px 0 0; padding: 0; border: 0; border-radius: var(--ou-r-control);
    background: transparent; color: inherit; cursor: pointer; font-family: "Material Icons Round"; font-size: 20px; line-height: 1;
    font-weight: normal; font-style: normal; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: 'liga';
}
/* The theme sets its own font on every button: the glyph span carries the icon font itself. */
.ou-alert__close > span { font-family: "Material Icons Round"; font-size: 20px; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: 'liga'; }
.ou-alert__close:after { display: none; } /* theme button hover sweep */
.ou-alert__close:hover { background: rgb(255 255 255 / .16); }
.ou-alert--warning .ou-alert__close:hover { background: rgb(0 0 0 / .1); }
.ou-alert__close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
@media (max-width: 639px) {
    /* Small screens: the text stays 16px+ and the badge stays 36px; the box never leaves the card width. */
    .ou-alert { padding: var(--ou-s3); }
}
.ou-alert[hidden] { display: none; }

/* 7. Tables (DataTables 1.10) ------------------------------------------------------------- */
/* The legacy wrapper carries an inline display:inline, which ignores overflow: block makes the wide table scroll inside it. */
#Content .table-responsive { display: block !important; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#Content .dataTables_wrapper { position: relative; font-size: var(--ou-fs-sm); color: var(--ou-ink); }
#Content .dataTables_wrapper::after { content: ""; display: table; clear: both; }
#Content table.dataTable {
    width: 100% !important;
    box-sizing: border-box; /* the 1 px border no longer adds 2 px of sideways scroll (OWL-UI-11c) */
    margin: var(--ou-s4) 0 !important;
    border: 1px solid var(--ou-line);
    border-radius: var(--ou-r-control);
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--ou-fs-sm) !important;
    font-variant-numeric: tabular-nums;
    background: var(--ou-surface);
}
#Content table.dataTable thead th, #Content table.dataTable thead td {
    position: relative;
    padding: var(--ou-s3) var(--ou-s4);
    padding-right: 28px;
    background: var(--ou-canvas);
    border: 0;
    border-bottom: 1px solid var(--ou-line-strong);
    color: var(--ou-ink-soft);
    font-size: var(--ou-fs-sm);
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
}
#Content table.dataTable thead tr:first-child th:first-child { border-top-left-radius: var(--ou-r-control); }
#Content table.dataTable thead tr:first-child th:last-child { border-top-right-radius: var(--ou-r-control); }
#Content table.dataTable tbody td {
    box-sizing: border-box;
    height: 48px;
    padding: var(--ou-s3) var(--ou-s4);
    border: 0;
    border-bottom: 1px solid var(--ou-line);
    background: var(--ou-surface);
    color: var(--ou-ink);
    font-size: var(--ou-fs-sm);
    line-height: 1.4;
    text-align: left;
    vertical-align: middle;
}
#Content table.dataTable tbody tr:last-child td { border-bottom: 0; }
#Content table.dataTable tbody tr:hover td { background: #fafafa; }
#Content table.dataTable td a:not(.ou-act) { color: var(--ou-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ou-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
#Content table.dataTable td a:not(.ou-act):hover { text-decoration-color: var(--ou-ink); }
#Content table.dataTable td .icon-search { margin-right: var(--ou-s1); }
#Content table.dataTable td.dataTables_empty { padding: var(--ou-s7) var(--ou-s4); color: var(--ou-ink-soft); text-align: center; }
/* Sort arrows drawn in CSS: the legacy sort_*.png images never existed (404). */
#Content table.dataTable thead .sorting, #Content table.dataTable thead .sorting_asc, #Content table.dataTable thead .sorting_desc,
#Content table.dataTable thead .sorting_asc_disabled, #Content table.dataTable thead .sorting_desc_disabled {
    background-image: none !important;
    cursor: pointer;
}
#Content table.dataTable thead .sorting:before, #Content table.dataTable thead .sorting:after,
#Content table.dataTable thead .sorting_asc:before, #Content table.dataTable thead .sorting_asc:after,
#Content table.dataTable thead .sorting_desc:before, #Content table.dataTable thead .sorting_desc:after {
    content: ""; position: absolute; right: var(--ou-s3); width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .3;
}
#Content table.dataTable thead .sorting:before, #Content table.dataTable thead .sorting_asc:before, #Content table.dataTable thead .sorting_desc:before {
    top: calc(50% - 7px); border-bottom: 5px solid var(--ou-ink);
}
#Content table.dataTable thead .sorting:after, #Content table.dataTable thead .sorting_asc:after, #Content table.dataTable thead .sorting_desc:after {
    top: calc(50% + 2px); border-top: 5px solid var(--ou-ink);
}
#Content table.dataTable thead .sorting_asc:before, #Content table.dataTable thead .sorting_desc:after { opacity: 1; }
#Content table.dataTable thead th:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: -2px; }
/* Toolbar: length (left) and search (right) as aligned rows; info and pager in the footer. */
#Content .dataTables_length, #Content .dataTables_filter { margin: 0 0 var(--ou-s2); color: var(--ou-ink); }
#Content .dataTables_length label, #Content .dataTables_filter label {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--ou-s2); margin: 0; font-size: var(--ou-fs-sm); font-weight: 400; line-height: 1.4;
}
#Content .dataTables_length select { width: auto; min-width: 72px; margin: 0; }
#Content .dataTables_filter input { width: 240px; max-width: 100%; margin: 0 !important; }
#Content .dataTables_info { padding-top: var(--ou-s4); color: var(--ou-muted); font-size: var(--ou-fs-xs); line-height: 1.4; }
#Content .dataTables_paginate { padding-top: var(--ou-s3); font-size: var(--ou-fs-sm); }
#Content .dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box; min-width: 36px; min-height: 36px; margin: 0 2px; padding: 0 var(--ou-s3);
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ou-line-strong) !important; border-radius: var(--ou-r-control);
    background: var(--ou-surface) !important; color: var(--ou-ink) !important; font-size: var(--ou-fs-sm); line-height: 1;
}
#Content .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--ou-canvas) !important; color: var(--ou-ink) !important; }
#Content .dataTables_wrapper .dataTables_paginate .paginate_button.current,
#Content .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--ou-accent) !important; border-color: var(--ou-accent) !important; color: var(--ou-ink) !important; font-weight: 700; }
#Content .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
#Content .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover { opacity: .45; cursor: not-allowed; background: var(--ou-surface) !important; color: var(--ou-ink) !important; }
#Content .dataTables_processing {
    position: absolute; top: 56px; left: 50%; z-index: 2; width: auto; height: auto; margin: 0; padding: var(--ou-s2) var(--ou-s4);
    transform: translateX(-50%); border: 1px solid var(--ou-line-strong); border-radius: var(--ou-r-pill);
    background: var(--ou-surface); box-shadow: var(--ou-shadow); color: var(--ou-ink); font-size: var(--ou-fs-sm); text-align: center;
}
@media (max-width: 639px) {
    #Content .dataTables_length, #Content .dataTables_filter { float: none !important; text-align: left !important; }
    #Content .dataTables_filter input { width: 100%; }
    #Content .dataTables_filter label { display: flex; }
    #Content table.dataTable { min-width: 560px; } /* scrolls inside .table-responsive; card rows come with OWL-UI-6 */
}

/* 8. Empty and error states -------------------------------------------------------------- */
.ou-state { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ou-s3); max-width: 480px; padding: var(--ou-s6) 0; }
.ou-state__icon { font-family: "Material Icons Round"; font-size: 32px; line-height: 1; color: var(--ou-ink-soft); font-feature-settings: 'liga'; }
.ou-state--error .ou-state__icon { color: var(--ou-error-ink); }
.ou-state__title { margin: 0; font-size: var(--ou-fs-lg); font-weight: 500; line-height: 1.3; color: var(--ou-ink); }
.ou-state__text { margin: 0; font-size: var(--ou-fs-md); line-height: 1.5; color: var(--ou-ink-soft); }
.ou-state--warning .ou-state__icon { color: var(--ou-warning-ink); }

/* ============================================================================================
 * PAGE GROUP OWL-UI-3: query entry forms (Sorgu/*Sorgula, YolYardim/Index, BakiyeDurum, SorguTanitimTablo)
 * Own section at the end of the file; do not edit above for these pages.
 * ============================================================================================ */
.ou-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ou-ico { font-family: "Material Icons Round"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; }

/* Balance box: restyled in the OWL-UI-12 block at the end of this file. */

/* Form card pieces. */
#Content .backgcard .flex-vertical { display: flex; flex-direction: column; gap: var(--ou-s4); }
#Content .backgcard .smalltext b { color: var(--ou-ink); }
#Content .ou-fee { box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: var(--ou-s3); margin: 0; padding: var(--ou-s3) var(--ou-s4); background: var(--ou-canvas); border-radius: var(--ou-r-control); font-size: var(--ou-fs-sm); color: var(--ou-ink-soft); }
#Content .ou-fee b { font-size: var(--ou-fs-md); color: var(--ou-ink); font-variant-numeric: tabular-nums; }
/* Plate / chassis radios: two option chips; the native radio stays focusable (section 4). */
#Content .backgcard form > div[style*="flex-wrap"], #Content .ou-choice { display: flex; flex-wrap: wrap; gap: var(--ou-s2) !important; }
#Content .backgcard form > div[style*="flex-wrap"] .radiobox-container, #Content .ou-choice .radiobox-container {
    flex: 1 1 140px; min-height: var(--ou-control-h); display: flex; align-items: center; padding: 0 var(--ou-s3);
    border: 1px solid var(--ou-line-strong); border-radius: var(--ou-r-control); background: var(--ou-surface); transition: border-color var(--ou-t), background-color var(--ou-t);
}
#Content .radiobox-container:has(input:checked) { border-color: var(--ou-ink); background: var(--ou-warning-bg); }
#Content .radiobox-container:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--ou-accent); }
#Content .radiobox-container label { flex: 1; cursor: pointer; margin: 0; display: block; line-height: calc(var(--ou-control-h) - 2px); }
#Content .radiobox-container label::before { top: 50% !important; transform: translateY(-50%); }
/* OWL-UI-18a: tiles with long labels ("Şasi Numarası ile Sorgula"). Phones: one tile per row, so the label stays on one line.
   If a label still wraps (very narrow screens) the tile grows with its text and the dot and the check mark both centre on it. */
#Content .ou-choice--long .radiobox-container label { line-height: 1.35; padding-top: 10px; padding-bottom: 10px; }
#Content .ou-choice--long .radiobox-container label::after { top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) {
    #Content .backgcard form > div.ou-choice--long .radiobox-container { flex-basis: 100%; }
}
#Content .form-in { display: flex; flex-direction: column; }
#Content .ou-field-error[style*="inline"], #Content #plakaUyari, #Content #plakaUyari2 { color: var(--ou-error-ink) !important; font-size: var(--ou-fs-help); line-height: 1.4; margin: 0; font-weight: 400; }
#Content #plakaUyari b, #Content #plakaUyari2 b { font-weight: 400; }
#Content #plakaUyari:before, #Content #plakaUyari2:before { content: 'error'; font-family: "Material Icons Round"; font-size: 16px; vertical-align: -3px; margin-right: 4px; font-feature-settings: 'liga'; }
/* Submit buttons: legacy <button id="sorgulaButon"> and .sorguInputSubmit look like the primary button. */
#Content button#sorgulaButon, #Content button.sorguInputSubmit, #Content button.ou-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--ou-s2); box-sizing: border-box; width: 100%; min-height: var(--ou-control-h); height: auto;
    padding: 0 var(--ou-s5); border: 2px solid transparent; border-radius: var(--ou-r-control); background: var(--ou-accent); color: var(--ou-ink); font-size: var(--ou-fs-md); font-weight: 500; cursor: pointer; margin: 0;
}
#Content button#sorgulaButon:hover:not(:disabled), #Content button.sorguInputSubmit:hover:not(:disabled) { background: var(--ou-accent-hover); }
#Content button#sorgulaButon:focus-visible, #Content button.sorguInputSubmit:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
#Content button#sorgulaButon:disabled, #Content button.sorguInputSubmit:disabled { background: #ececec !important; color: #5c5c5c !important; cursor: not-allowed; }
#Content button#sorgulaButon[button]:before { margin: 0 !important; font-size: 16px !important; line-height: 1; }
/* Secondary dark button ("Ucretsiz Test Et", "Hayir") and result links. */
#Content .button.ou-btn--secondary, #Content a.button[button="no"], #Content a.button[button="view"], #Content button.button[data-link][style*="303031"] { background: var(--ou-ink) !important; color: #fff !important; }
#Content .button.ou-btn--secondary:hover, #Content a.button[button="no"]:hover, #Content a.button[button="view"]:hover { background: #000 !important; color: #fff !important; }
#Content a.button[button="yes"] { background: var(--ou-accent) !important; color: var(--ou-ink) !important; }
/* OWL-UI-18b: the follow-up links of the result pages are secondary (ink) buttons; DESIGN.md allows no white button. */
#Content a.button[button="forward"] { background: var(--ou-ink) !important; color: #fff !important; border-color: transparent; }
#Content a.button[button="forward"]:hover { background: #000 !important; color: #fff !important; }
#Content a.button[button] { padding: 0 var(--ou-s5); }
#Content a.button[button] .button_label { padding: 0; min-height: 0; display: inline; }
#Content a.button[button="view"]:before { content: 'visibility'; }
#Content a.button[button="yes"]:before { content: 'check'; }
#Content a.button[button="no"]:before { content: 'close'; }
#Content a.button[button="view"]:before, #Content a.button[button="yes"]:before, #Content a.button[button="no"]:before, #Content a.button[button="forward"]:before {
    font-family: "Material Icons Round"; font-size: 16px; line-height: 1; margin: 0; font-feature-settings: 'liga'; position: relative; width: auto; background: none;
}
#Content a.button[button="forward"]:before { content: 'arrow_forward'; order: 2; }
#Content .row > a.button { margin-bottom: var(--ou-s2); }
/* Result links row (inside the query pages). */
#Content #result[style*="justify-content"] { gap: var(--ou-s2); }
/* OWL-UI-18b: result page, follow-up links row (own class instead of an inline width/flex style). Left aligned like the card; stacked full width below 640 px. */
#Content .ou-result-links { margin-top: var(--ou-s5) !important; }
#Content .ou-result-links > .ou-result-links__row { display: flex; flex-wrap: wrap; gap: var(--ou-s2); justify-content: flex-start; }
#Content .ou-result-links a.button { width: auto; margin: 0; }
@media (max-width: 639px) {
    #Content .ou-result-links > .ou-result-links__row > div { flex: 1 1 100%; }
    #Content .ou-result-links a.button { width: 100%; }
}

/* Popups: prettyPhoto dialogs that hold .popup-inner (sasi check, maintenance). Library kept; skin replaced. */
div.pp_overlay { background: #000 !important; }
div.pp_pic_holder:has(.popup-inner) { border-radius: var(--ou-r-card); box-shadow: 0 8px 32px rgb(0 0 0 / .25); overflow: hidden; background: var(--ou-surface); }
div.pp_pic_holder:has(.popup-inner) .pp_top, div.pp_pic_holder:has(.popup-inner) .pp_bottom { display: none; }
div.pp_pic_holder:has(.popup-inner) .pp_content_container .pp_left, div.pp_pic_holder:has(.popup-inner) .pp_content_container .pp_right { padding: 0; background: none; }
div.pp_pic_holder:has(.popup-inner) .pp_content { background: var(--ou-surface) !important; border-radius: var(--ou-r-card); padding: var(--ou-s2); }
div.pp_pic_holder .popup-inner { padding: var(--ou-s5) !important; }
div.pp_pic_holder .popup-inner h5 { font-size: var(--ou-fs-md); line-height: 1.5; font-weight: 400; color: var(--ou-ink); margin: 0; }
div.pp_pic_holder .popup-inner br { display: none; }
div.pp_pic_holder .popup-inner h5 + h5 { margin-top: var(--ou-s3); }
div.pp_pic_holder .popup-inner .row { display: flex; gap: var(--ou-s2); flex-wrap: wrap; margin-top: var(--ou-s5); }
div.pp_pic_holder .popup-inner .row > a { flex: 1 1 120px; }
div.pp_pic_holder:has(.popup-inner) a.pp_close { top: 12px; right: 12px; }

/* Comparison cards (SorguTanitimTablo): one card scale, accent only on the featured plan. */
#Content .sorgutanitim { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ou-s4); width: var(--ou-site-w); max-width: none; box-sizing: border-box; padding: 0; margin: var(--ou-s7) auto 0; }
#Content .sorgutanitim-in { border-radius: var(--ou-r-card); box-shadow: var(--ou-shadow); border: 1px solid var(--ou-line); display: flex; flex-direction: column; }
#Content .sorgutanitim-in.is-featured { border-color: var(--ou-accent); box-shadow: 0 0 0 2px var(--ou-accent), var(--ou-shadow); }
#Content .sorgutanitim-header { background: var(--ou-ink) !important; color: #fff !important; padding: var(--ou-s4); font-size: var(--ou-fs-md); font-weight: 700; text-align: left; }
#Content .sorgutanitim-in.is-featured .sorgutanitim-header { background: var(--ou-accent) !important; color: var(--ou-ink) !important; }
#Content .sorgutanitim-content { display: flex; flex-direction: column; flex: 1; }
#Content .sorgutanitim-content .strow { padding: var(--ou-s3) var(--ou-s4); min-height: 48px; gap: var(--ou-s3); font-size: var(--ou-fs-sm); border-bottom: 1px solid var(--ou-line); background: var(--ou-surface) !important; }
#Content .sorgutanitim-content .strowa { margin-top: auto; min-height: var(--ou-control-h); padding: var(--ou-s3) var(--ou-s4); background: var(--ou-surface); color: var(--ou-ink); border-top: 1px solid var(--ou-line-strong); font-size: var(--ou-fs-md); font-weight: 500; justify-content: space-between; text-decoration: none; }
#Content .sorgutanitim-content .strowa:hover { background: var(--ou-accent); }
#Content .sorgutanitim-content .strowa:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: -2px; }
#Content .stcheck { color: var(--ou-success-ink); }
#Content .stcross { color: #8a8a8a; }

/* Legacy-structure pages (YolYardim/Index): erp cards become the form card. */
/* Nested in a .section_wrapper (already at --ou-site-w), so 100%: the percentage token would resolve against the wrapper. */
#Content .erp-shadow.erp-border { width: 100% !important; max-width: none; box-sizing: border-box; margin: 0 auto var(--ou-s4) auto; background: var(--ou-surface) !important; border: 0; border-radius: var(--ou-r-card); box-shadow: var(--ou-shadow); }
#Content .erp-shadow .column_attr.align_center { text-align: left; padding: var(--ou-s5) !important; font-size: var(--ou-fs-md) !important; }
#Content .erp-shadow .sorguInput { margin-bottom: var(--ou-s3); }
#Content .erp-shadow .sorguInput input { width: 100%; }
#Content .erp-shadow form p { text-align: left !important; font-size: var(--ou-fs-sm); font-weight: 500 !important; }
#Content .erp-shadow form input[type="radio"] { margin: 0 var(--ou-s1) 0 var(--ou-s2); accent-color: var(--ou-ink); }
#Content .section[style*="erp_details_bg"] { background-image: none !important; }

/* OWL-UI-3b: group label (radio set), disabled/hover for every .ou-btn on the query pages. */
#Content .form-in > .ou-label { font-size: var(--ou-fs-label); font-weight: 500; color: var(--ou-ink); line-height: 1.4; }
#Content button.ou-btn:hover:not(:disabled) { background: var(--ou-accent-hover); }
#Content button.ou-btn:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
#Content button.ou-btn:disabled { background: #ececec !important; color: #5c5c5c !important; cursor: not-allowed; }
#Content .ou-choice .radiobox-container { flex-basis: 100px; }

@media (max-width: 639px) {
    #Content .backgcard .radiobox-container { flex-basis: 100%; }
    #Content .sorgutanitim { grid-template-columns: 1fr; }
}
/* OWL-UI-GAP-1: the views put an empty <div style="padding: 50px 0 0 0"> between the query card and the comparison tiles
   (Hasar, Tramer360, Değişen Parça, Araç Detay). Together with the tiles' own margin-top (--ou-s7) the gap was 98 px (123 px
   from the info panel). Up to 768 px the spacer collapses, so the gap is the section spacing --ou-s7 alone; desktop keeps 98 px. */
@media (max-width: 768px) {
    #Content .section > div[style*="padding: 50px 0 0 0"]:empty { padding-top: 0 !important; }
}

/* ============================================================================================
 * OWL-UI-12: balance notice (Views/Sorgu/BakiyeDurum.cshtml, shared by every query page)
 * Site palette: ink panel with accent value (enough balance), accent panel with ink text (low balance).
 * Contrast: white on ink 12.6:1, accent on ink 8.6:1, ink on accent 8.6:1. Own block; do not mix with other groups.
 * ============================================================================================ */
#Content [balancebox].ou-balance {
    box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--ou-s3);
    width: var(--ou-site-w) !important; max-width: none; margin: 0 auto var(--ou-s4) auto; padding: var(--ou-s4) var(--ou-s5); /* same edges as the card below (OWL-UI-11e) */
    background: var(--ou-ink); color: #fff; border: 0; border-radius: var(--ou-r-card);
    box-shadow: var(--ou-shadow); font-size: var(--ou-fs-md); font-weight: 500; line-height: 1.4; text-align: left;
}
#Content [balancebox].ou-balance > span { color: var(--ou-accent); font-weight: 700; font-size: var(--ou-fs-lg); font-variant-numeric: tabular-nums; }
#Content [balancebox].ou-balance > .ou-balance__icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--ou-r-pill);
    background: var(--ou-accent); color: var(--ou-ink); font-family: "Material Icons Round"; font-weight: normal; font-size: 24px; line-height: 1; font-feature-settings: 'liga';
}
#Content [balancebox].ou-balance--low { background: var(--ou-accent); color: var(--ou-ink); }
#Content [balancebox].ou-balance--low > .ou-balance__icon { background: var(--ou-ink); color: var(--ou-accent); }
#Content [balancebox].ou-balance--low > span { color: var(--ou-ink); }
#Content [balancebox] [button="buy-balancebox"] {
    margin: 0 0 0 auto !important; height: auto !important; min-height: 44px; padding: 0 var(--ou-s5) !important; border-radius: var(--ou-r-control) !important;
    background-color: var(--ou-ink) !important; color: #fff !important; font-weight: 500; border: 2px solid var(--ou-ink) !important;
}
#Content [balancebox] [button="buy-balancebox"]:before { font-family: "Material Icons Round"; content: 'add_shopping_cart'; font-size: 20px; margin-right: 8px; vertical-align: middle; }
#Content [balancebox] [button="buy-balancebox"]:hover { background-color: #000 !important; }
#Content [balancebox] [button="buy-balancebox"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--ou-ink); }
@media (max-width: 639px) {
    /* Small screens: same gutters as the card below (OWL-UI-11e), compact padding. */
    #Content [balancebox].ou-balance { padding: var(--ou-s4); font-size: 18px; }
    #Content [balancebox] [button="buy-balancebox"] { flex: 1 0 100%; margin: var(--ou-s1) 0 0 0 !important; justify-content: center; }
}

/* PAGE HEADER (OWL-UI-13a, "Warm editorial" OWL-UI-13q) -------------------------------------------- */
/* Partial Views/Shared/_PageHeader.cshtml, first child of the card. The band lives INSIDE the card, so it is always exactly card width
   (the structural width --ou-site-w) with no px value of its own. Never use the <header> tag: style.css styles every bare header.
   Light warm gradient, concentric gold rings, ringed icon tile, gold title rule, optional facts as white cards under the text. */
#Content .backgcard { --ou-card-px: var(--ou-s5); --ou-card-py: var(--ou-s5); }
#Content .section_wrapper.ou-prose { --ou-card-px: var(--ou-s6); --ou-card-py: var(--ou-s6); }
#Content .erp-shadow .column_attr.align_center { --ou-card-px: var(--ou-s5); --ou-card-py: var(--ou-s5); } /* legacy erp card (OWL-UI-13e): same 24 px padding as .backgcard */
@media (max-width: 767px) {
    #Content .backgcard { --ou-card-px: var(--ou-s4); }
    #Content .section_wrapper.ou-prose { --ou-card-px: var(--ou-s4); --ou-card-py: var(--ou-s4); }
}
.ou-pagehead {
    position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; flex: 0 0 auto;
    width: calc(100% + 2 * var(--ou-card-px, 24px));
    margin: calc(-1 * var(--ou-card-py, 24px)) calc(-1 * var(--ou-card-px, 24px)) var(--ou-s6);
    padding: var(--ou-s5) var(--ou-card-px, 24px) var(--ou-s5);
    background:
        radial-gradient(circle at 92% 18%, rgb(254 204 22 / .30) 0, rgb(254 204 22 / 0) 38%),
        linear-gradient(115deg, var(--ou-accent-tint) 0%, #fffdf3 60%, #ffffff 100%);
    border-bottom: 1px solid var(--ou-warning-line);
    border-radius: var(--ou-r-card) var(--ou-r-card) 0 0;
}
.ou-pagehead::before, .ou-pagehead::after { /* concentric rings, decoration only */
    content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgb(254 204 22 / .45); pointer-events: none;
}
.ou-pagehead::before { width: 340px; height: 340px; right: -90px; top: -150px; }
.ou-pagehead::after { width: 520px; height: 520px; right: -180px; top: -240px; border-color: rgb(254 204 22 / .25); }
.ou-pagehead .ou-crumbs { margin: 0 0 var(--ou-s5); font-size: var(--ou-fs-xs); line-height: 1.5; color: var(--ou-ink-soft); }
.ou-pagehead .ou-crumbs ol { display: inline-flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 2px var(--ou-s3); list-style: none; background: rgb(255 255 255 / .8); border: 1px solid var(--ou-warning-line); border-radius: var(--ou-r-pill); }
.ou-pagehead .ou-crumbs li { margin: 0; padding: 0; list-style: none; display: inline-flex; align-items: center; }
.ou-pagehead .ou-crumbs li + li::before { /* chevron drawn with borders (no glyph, no text) */
    content: ""; width: 5px; height: 5px; margin: 0 var(--ou-s3) 0 var(--ou-s2);
    border-top: 1.5px solid #8a7a3a; border-right: 1.5px solid #8a7a3a; transform: rotate(45deg);
}
.ou-pagehead .ou-crumbs li:first-child a::before {
    content: "home"; content: "home" / ""; font-family: "Material Icons Round"; font-size: 16px; line-height: 1; margin-right: 6px; vertical-align: -3px;
    display: inline-block; text-decoration: none; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga';
}
.ou-pagehead .ou-crumbs a { display: inline-block; padding: 13px 2px; margin: -13px 0; color: var(--ou-ink); text-decoration: none; font-weight: 500; }
.ou-pagehead .ou-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ou-pagehead .ou-crumbs a:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 1px; border-radius: 2px; }
.ou-pagehead .ou-crumbs [aria-current="page"] { color: var(--ou-ink-soft); }
.ou-pagehead__row { display: flex; align-items: center; gap: var(--ou-s5); padding-left: 7px; /* room for the icon ring */ }
.ou-pagehead__icon {
    flex: none; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(150deg, #ffe27a 0%, var(--ou-accent) 55%, #eab500 100%); color: var(--ou-ink);
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--ou-warning-line), inset 0 2px 0 rgb(255 255 255 / .75), inset 0 -4px 0 rgb(0 0 0 / .1), 0 16px 28px -10px rgb(122 95 0 / .55);
    font-family: "Material Icons Round"; font-weight: normal; font-style: normal;
    font-size: 40px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga';
}
.ou-pagehead__text { flex: 1 1 auto; min-width: 0; }
#Content .ou-pagehead__title { position: relative; margin: 0; padding: 0 0 var(--ou-s4); font-family: var(--ou-font); font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; color: var(--ou-ink); text-transform: none; text-wrap: balance; }
#Content .ou-pagehead__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--ou-accent); transform-origin: left; }
#Content .ou-pagehead__intro { margin: var(--ou-s4) 0 0; padding: 0; max-width: 62ch; font-size: var(--ou-fs-md); line-height: 1.6; color: var(--ou-ink-soft); }
.ou-pagehead__action { flex: none; }
.ou-pagehead__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 260px)); gap: var(--ou-s3); margin: var(--ou-s5) 0 0; padding: 0; }
.ou-pagehead__facts > div {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    padding: var(--ou-s3) var(--ou-s4); background: #fff; border: 1px solid var(--ou-warning-line); border-radius: var(--ou-r-control);
    box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 14px -8px rgb(122 95 0 / .35);
}
.ou-pagehead__facts dt { order: 0; display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--ou-fs-xs); line-height: 1.4; color: var(--ou-ink-soft); text-transform: none; }
.ou-pagehead__facts dt span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--ou-accent-tint); color: var(--ou-accent-ink);
    font-family: "Material Icons Round"; font-size: 16px; line-height: 1; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; }
.ou-pagehead__facts dd { order: 1; margin: 0; font-size: var(--ou-fs-lg); line-height: 1.2; font-weight: 700; color: var(--ou-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ou-pagehead--center { text-align: center; }
.ou-pagehead--center .ou-crumbs ol { justify-content: center; }
.ou-pagehead--center .ou-pagehead__row { flex-direction: column; gap: var(--ou-s4); padding-left: 0; }
.ou-pagehead--center .ou-pagehead__text { flex: none; }
#Content .ou-pagehead--center .ou-pagehead__title::after { left: 50%; margin-left: -28px; }
.ou-pagehead--center .ou-pagehead__intro { margin-left: auto; margin-right: auto; }
.ou-pagehead--center .ou-pagehead__facts { justify-content: center; }
.ou-about > .ou-pagehead { grid-column: 1 / -1; width: auto; }
/* calm entrance: rise, icon settles, gold rule draws in. No loop. Switched off for reduced motion. */
@keyframes ou-ph-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ou-ph-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ou-ph-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ou-pagehead .ou-crumbs { animation: ou-ph-rise .4s ease-out both; }
.ou-pagehead__icon { animation: ou-ph-pop .5s cubic-bezier(.2, .8, .2, 1) .05s both; }
.ou-pagehead__text { animation: ou-ph-rise .5s ease-out .1s both; }
#Content .ou-pagehead__title::after { animation: ou-ph-rule .6s cubic-bezier(.2, .8, .2, 1) .35s both; }
.ou-pagehead__facts > div { animation: ou-ph-rise .5s ease-out .25s both; }
.ou-pagehead__facts > div:nth-child(2) { animation-delay: .32s; }
.ou-pagehead__facts > div:nth-child(3) { animation-delay: .39s; }
@media (prefers-reduced-motion: reduce) {
    .ou-pagehead .ou-crumbs, .ou-pagehead__icon, .ou-pagehead__text, .ou-pagehead__facts > div, #Content .ou-pagehead__title::after { animation: none; }
}
@media (max-width: 639px) {
    .ou-pagehead { padding-top: var(--ou-s4); padding-bottom: var(--ou-s4); margin-bottom: var(--ou-s5); }
    .ou-pagehead::before { width: 220px; height: 220px; right: -90px; top: -110px; }
    .ou-pagehead::after { display: none; }
    .ou-pagehead .ou-crumbs { margin-bottom: var(--ou-s4); }
    .ou-pagehead__row { flex-wrap: wrap; gap: var(--ou-s4); }
    .ou-pagehead__icon { width: 56px; height: 56px; font-size: 30px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--ou-warning-line), inset 0 2px 0 rgb(255 255 255 / .75), inset 0 -3px 0 rgb(0 0 0 / .1), 0 10px 18px -8px rgb(122 95 0 / .55); }
    #Content .ou-pagehead__title { font-size: var(--ou-fs-xl); }
    #Content .ou-pagehead__intro { font-size: var(--ou-fs-sm); }
    .ou-pagehead__text { flex: 1 0 100%; }
    .ou-pagehead__action { flex: 1 0 100%; }
    .ou-pagehead__facts { grid-template-columns: 1fr; gap: var(--ou-s2); margin-top: var(--ou-s4); }
}

/* QUERY INFO PANEL (OWL-UI-13q): partial Views/Shared/_QueryInfo.cshtml. White card, warm border, tint top, white stat cards, tint check badges. Sits right of the form (--ou-form-w). */
.ou-qgrid { display: grid; grid-template-columns: minmax(0, var(--ou-form-w, 480px)) minmax(0, 1fr); column-gap: var(--ou-s7); row-gap: var(--ou-s5); align-items: start; }
.ou-qgrid__main { min-width: 0; display: flex; flex-direction: column; gap: var(--ou-s4); }
.ou-qinfo { box-sizing: border-box; min-width: 0; padding: var(--ou-s5); background: linear-gradient(180deg, var(--ou-accent-tint) 0, #fff 170px); border: 1px solid var(--ou-warning-line); border-radius: var(--ou-r-card); box-shadow: 0 8px 24px -14px rgb(122 95 0 / .45); display: flex; flex-direction: column; gap: var(--ou-s4); animation: ou-ph-rise .5s ease-out .3s both; }
.ou-qinfo__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--ou-s3); margin: 0; padding: 0; }
.ou-qinfo__facts > div { display: flex; flex-direction: column; gap: 2px; padding: var(--ou-s3) var(--ou-s4); background: #fff; border: 1px solid var(--ou-warning-line); border-radius: var(--ou-r-control); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.ou-qinfo__facts dt { order: 0; display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--ou-fs-xs); line-height: 1.4; color: var(--ou-ink-soft); }
.ou-qinfo__facts dt span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--ou-accent-tint); color: var(--ou-accent-ink); font-family: "Material Icons Round"; font-size: 16px; line-height: 1; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; }
.ou-qinfo__facts dd { order: 1; margin: 0; font-size: clamp(var(--ou-fs-lg), 5vw, var(--ou-fs-xl)); line-height: 1.15; font-weight: 700; color: var(--ou-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ou-qinfo__facts .ou-qinfo__duration dd { font-size: var(--ou-fs-lg, 20px); line-height: 1.25; }
#Content .ou-qinfo__title { margin: var(--ou-s1) 0 0; padding: 0; font-family: var(--ou-font); font-size: var(--ou-fs-md); line-height: 1.3; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ou-ink); }
.ou-qinfo__list { display: flex; flex-direction: column; gap: var(--ou-s3); margin: 0; padding: 0; list-style: none; }
.ou-qinfo__list li { display: flex; align-items: flex-start; gap: var(--ou-s3); margin: 0; padding: 0; list-style: none; font-size: var(--ou-fs-sm); line-height: 1.5; color: var(--ou-ink); }
.ou-qinfo__list li span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; background: var(--ou-accent-tint); border: 1px solid var(--ou-warning-line); color: var(--ou-accent-ink); font-family: "Material Icons Round"; font-size: 15px; line-height: 1; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; }
#Content .ou-qinfo__note { margin: 0; padding-top: var(--ou-s3); border-top: 1px dashed var(--ou-warning-line); font-size: var(--ou-fs-xs); line-height: 1.5; color: var(--ou-ink-soft); }
@media (prefers-reduced-motion: reduce) { .ou-qinfo { animation: none; } }
@media (max-width: 899px) {
    .ou-qgrid { grid-template-columns: minmax(0, 1fr); }
    .ou-qinfo { padding: var(--ou-s4); }
}
/* Result card title line of the query pages (OWL-UI-13b): an h2 now; the plate or chassis is ink, not yellow (the old #ffcc00 on white was 1.6:1). */
#Content .ou-result-line { margin: 0; text-align: center; font-size: var(--ou-fs-lg); line-height: 1.4; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ou-ink); }
#Content .ou-result-plate { font-weight: 700; color: var(--ou-ink); overflow-wrap: anywhere; }
/* Phones (OWL-UI-BG2-24). The cookie bar stays fixed; while it shows, body gets its height (--ou-cookiebar-h, set in customs.js) as bottom space so the last content scrolls clear of it. Safe-area padding for the iOS home bar. Desktop unchanged. */
@media (max-width: 640px) {
    [footer-cookies] { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: env(safe-area-inset-bottom); }
    .ou-has-cookiebar { padding-bottom: var(--ou-cookiebar-h, 0px); }
    /* Signed-in only (the Tawk bubble loads only then, ~60 px round at bottom right): space inside the white copyright bar, so no dark band; the cookie bar text stays clear of the bubble. */
    .ou-has-chat footer > [footer-copyright] { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .ou-has-chat [footer-cookies] { padding-right: max(88px, env(safe-area-inset-right)); }
}
/* Analytics choice (OTS-CS-6a): "Kabul et" and "Reddet" are two equal buttons (same style, same size), each with its icon (check / close). They sit after the text on wide screens, on their own row on phones. */
[footer-cookies] .ou-consent-actions { display: inline-flex; gap: var(--ou-s2); margin-left: var(--ou-s4); vertical-align: middle; }
/* Visual height 32 px (--ou-s6) keeps the bar inside its size limits; the ::after hit area grows the tap target to --ou-control-h (44 px) without growing the bar. */
[footer-cookies] .ou-consent-actions [button="gotit"] { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--ou-s1); width: calc(var(--ou-s7) * 2 + var(--ou-s4)); height: var(--ou-s6); margin: 0 !important; font-size: var(--ou-fs-sm); line-height: 1; cursor: pointer; }
[footer-cookies] .ou-consent-actions [button="gotit"]::after { content: ""; position: absolute; left: 0; right: 0; top: calc((var(--ou-control-h) - var(--ou-s6)) / -2); bottom: calc((var(--ou-control-h) - var(--ou-s6)) / -2); }
/* Icon glyphs are decoration: the "/ ''" alternative text keeps the ligature name out of the accessibility tree. */
[footer-cookies] .ou-consent-actions [button="gotit"]::before { font-family: "Material Icons Round"; font-size: var(--ou-fs-md); line-height: 1; content: 'check'; content: 'check' / ""; }
[footer-cookies] .ou-consent-actions [data-consent="0"]::before { content: 'close'; content: 'close' / ""; }
@media (max-width: 640px) {
    [footer-cookies] .ou-consent-actions { display: flex; margin-left: 0; margin-top: var(--ou-s1); margin-bottom: var(--ou-s1); }
    [footer-cookies] .ou-consent-actions [button="gotit"] { flex: 1 1 0; width: auto; }
}

/* Keyboard focus, whole site (OWL-UI-FOCUS-1). Legacy style.css has `:focus { outline: 0 }` and `a:hover { outline: 0 }`;
   this baseline (:where() adds nothing, so specificity 0,1,1; it ties with the legacy `a:hover` and wins by loading last) puts a visible ring back for every link, button, field and tab stop, also in the header,
   footer and cookie bar, which #Content rules do not reach. Component rules above and in the page files (id or two-class
   selectors) are more specific and keep their own ring. :focus-visible = keyboard only; a mouse click shows no ring. */
html :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
html :is(a, button, [tabindex]):focus:not(:focus-visible) { outline: 0; }
/* Dark surfaces: ring is white (12.6:1 on #313131, DESIGN.md ink). Footer link columns and the cookie bar. */
[footer-content] :is(a, button):focus-visible, [footer-cookies] :is(a, button):focus-visible { outline-color: #fff; }
/* Header "Diğer Sorgular" menu: the legacy rule hides the list with display:none, so its three links could not take focus.
   Keep it rendered but transparent; it shows on hover and on focus-within. */
header [button="othermenu"] > div { display: block !important; opacity: 0; pointer-events: none; }
header [button="othermenu"]:hover > div, header [button="othermenu"]:focus-within > div { opacity: 1; pointer-events: auto; z-index: 3; }

/* Mobile menu toggle (OWL-UI-FOCUS-2). _Layout.cshtml: the open/close controls are real <button>s (they were <span>s, so no keyboard).
   style.css styles them as `header > div nav > span` and `nav > div > span`; these rules repeat that look for the buttons (same values, same breakpoints) and reset the button defaults.
   The ring comes from the baseline above (:focus-visible); the open button keeps it inside its own 1px border box. */
header > div nav > button[nav-button], header > div nav > div > button[nav-button] {
    margin: 0; background: transparent; color: inherit; font-weight: normal; font-style: normal; letter-spacing: normal; text-transform: none; line-height: inherit; -webkit-appearance: none; appearance: none; cursor: pointer;
    font-family: "Material Icons Round" !important; /* style.css forces the text font on every <button> with !important */
    transition: none !important; /* style.css: button { transition: all .4s !important } would animate the border and ring */
}
@media only screen and (min-width: 1141px) {
    header > div nav > button[nav-button], header > div nav > div > button[nav-button] { display: none; }
}
@media only screen and (max-width: 1140px) {
    header > div nav > button[nav-button] {
        display: inline-flex; align-items: center; justify-content: center; height: 36px; font-family: "Material Icons Round"; font-size: 1.875rem; text-align: center; padding: 0 .375rem;
        border: 1px solid rgba(172, 172, 172, 0.9); border-radius: 3px;
    }
    header > div nav > div > button[nav-button] { position: absolute; right: 1.875rem; padding: 0; border: 0; font-family: "Material Icons Round"; font-size: 1.875rem; }
}
@media only screen and (max-width: 767px) {
    header > div nav > button[nav-button] { padding: 0 .5rem; }
}

/* Legacy shell type on phones (OWL-UI-TYPE-1). style.css sizes header, home hero, footer and cookie bar text in rem and sets html font-size 14px up to 767px
   (16px from 768px), so on phones all of it rendered 12.5% below its desktop size (footer links 12.25px, cookie text 12.25px, menu links 15.75px).
   Same selectors as style.css (this file loads later, so equal specificity wins), px = the rem value x 16, i.e. the 768px size. Hero h1 = DESIGN.md phone page title (xl 28);
   section h3 = xl as well (legacy 30px, off the scale). Icon glyph rules (:before, nav buttons, social links) are not text and stay. Spacing (rem, em) is untouched. */
@media only screen and (max-width: 767px) {
    header > div nav > div > [nav-membership] > ul > li > a { font-size: 16px; }
    header > div nav > div > [nav-login] > ul > li > a { font-size: 18px; }
    header > div nav > div > [nav-list] > li > a { font-size: 18px; }
    header > div nav > div > [nav-content] > a { font-size: 18px; }
    header > div nav > div > [nav-content] > span { font-size: 16px; }
    header > div nav > div > [nav-content] > span > a { font-size: 16px; }
    main [slider][slider="home"] > div > div h1 { font-size: var(--ou-fs-xl); }
    main [slider][slider="home"] > div > div > span { font-size: var(--ou-fs-lg); }
    [button][button="slider"] { font-size: var(--ou-fs-lg); }
    main [otosorgubox] > h3 { font-size: var(--ou-fs-xl); }
    main [otosorgubox] > h4 { font-size: var(--ou-fs-lg); }
    main [otosorgubox] > ul > li > div > h2 { font-size: var(--ou-fs-lg); }
    footer > [footer-content] > [footer-links] > div > a:not([data-icon]) { font-size: var(--ou-fs-md); }
    footer > [footer-content] > [footer-links] > div > ul > li > a { font-size: var(--ou-fs-sm); }
    footer > [footer-content] > [footer-links] > div > span { font-size: var(--ou-fs-sm); }
    footer > [footer-copyright] > div { font-size: var(--ou-fs-sm); }
    /* CustomStyle.css sets these links to 10pt (13.33px) up to 767px: off the scale, next to 14px text. */
    footer > [footer-copyright] > div > div:last-child > a, footer > [footer-copyright] > div > div:first-child > a { font-size: var(--ou-fs-sm); }
    [button="othermenu"] { font-size: 18px; }
    [footer-cookies] > div { font-size: var(--ou-fs-sm); }
    [footer-cookies] > div > [button] { font-size: var(--ou-fs-sm); }
    /* Keep the bar at or under 15% of a 375x667 phone: only the vertical padding of the text area is trimmed (7px to 3px). */
    [footer-cookies] > div { padding-top: 3px; padding-bottom: 3px; }
}

/* HOME (OWL-SEO-1e). Semantic home markup: static h1 + decorative typed line, real <a> cards, FAQ with details/summary.
   style.css targets the old li > div / h3 / h4 markup, so the same look is restated here for li > a > div / h2 / h3. */
main [slider][slider="home"] { height: auto; min-height: 350px; }
@media only screen and (min-width: 768px) { main [slider][slider="home"] { min-height: 400px; } }
@media only screen and (min-width: 1141px) { main [slider][slider="home"] { min-height: 530px; } }
main [slider][slider="home"] > div { min-height: inherit; padding-top: var(--ou-s5); padding-bottom: var(--ou-s5); }
main [slider][slider="home"] > div > div > h1 { text-wrap: balance; }
main [slider][slider="home"] > div > div > .ou-home-typed { margin: var(--ou-s2) 0 0; font-size: var(--ou-fs-lg); line-height: 1.4; color: var(--ou-ink-soft); }
main [slider][slider="home"] > div > div > .ou-home-typed .ityped-cursor { display: none; }
main [slider][slider="home"] > div > div > span { margin-top: var(--ou-s3); margin-bottom: var(--ou-s5); }
a[button="slider"] { display: inline-block; text-decoration: none; cursor: pointer; line-height: 1.4; }
a[button="slider"]:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }

main [otosorgubox] > h2 { font-size: var(--ou-fs-xl); font-weight: 500; margin: 0; }
main [otosorgubox] > p { font-size: var(--ou-fs-lg); color: var(--ou-muted); margin: var(--ou-s2) 0 0; }
main [otosorgubox] > .ou-home-promo { display: block; margin-top: var(--ou-s5); }
main [otosorgubox] > .ou-home-promo:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 4px; }
main [otosorgubox] > .ou-home-promo img { display: block; margin: 0 auto; }
main [otosorgubox] > ul > li > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; text-decoration: none; }
main [otosorgubox] > ul > li > a:focus-visible { outline: 3px solid var(--ou-ink); outline-offset: -5px; border-radius: var(--ou-r-card); }
main [otosorgubox] > ul > li:focus-within { box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.2); border-color: transparent; }
main [otosorgubox] > ul > li:focus-within:before { bottom: 0; }
main [otosorgubox] > ul > li > a > div { line-height: 1 !important; padding: 0 3rem; }
@media only screen and (max-width: 767px) { main [otosorgubox] > ul > li > a > div { padding: 2rem; } }
main [otosorgubox] > ul > li > a > div > img { width: 150px; height: 150px; }
main [otosorgubox] > ul > li > a > div > h3 { display: block; font-size: var(--ou-fs-lg); font-weight: 500; line-height: 1 !important; margin: 1.5rem 0 0 !important; }
main [otosorgubox] > ul > li > a > div > h3:after {
    position: relative !important; width: auto !important; font-family: "Material Icons Round"; content: 'arrow_forward'; font-size: 18px !important;
    vertical-align: middle !important; background: none !important; margin-left: 0.5rem !important;
}
main [otosorgubox] > ul > li > a > div > span { display: block; color: rgba(172, 172, 172, 0.9); font-weight: 500; margin-top: .5rem; }

/* OWL-SEO-1m: short text block under the query cards */
.ou-home-about { width: var(--ou-site-w); max-width: 800px; margin: var(--ou-s7) auto 0; }
.ou-home-about > h2 { font-size: var(--ou-fs-xl); font-weight: 500; line-height: 1.25; margin: 0 0 var(--ou-s4); text-align: center; text-wrap: balance; }
.ou-home-about > p { margin: 0 0 var(--ou-s3); font-size: var(--ou-fs-md); line-height: 1.7; color: var(--ou-ink-soft); max-width: 80ch; }
.ou-home-faq { width: var(--ou-site-w); max-width: 800px; margin: var(--ou-s7) auto; }
.ou-home-faq > h2 { font-size: var(--ou-fs-xl); font-weight: 500; line-height: 1.25; margin: 0 0 var(--ou-s5); text-align: center; }
.ou-home-faq__list { display: grid; gap: var(--ou-s2); }
.ou-home-faq details { background: var(--ou-surface); border: 1px solid var(--ou-line-strong); border-radius: var(--ou-r-control); }
.ou-home-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ou-s3); min-height: var(--ou-control-h); padding: var(--ou-s2) var(--ou-s4);
    font-size: var(--ou-fs-md); font-weight: 500; line-height: 1.5; color: var(--ou-ink); cursor: pointer; list-style: none;
}
.ou-home-faq summary::-webkit-details-marker { display: none; }
.ou-home-faq summary:after { flex: none; font-family: "Material Icons Round"; font-size: 20px; line-height: 1; content: 'add'; font-feature-settings: 'liga'; }
.ou-home-faq details[open] summary:after { content: 'remove'; }
.ou-home-faq summary:hover { background: var(--ou-line); border-radius: var(--ou-r-control); }
.ou-home-faq details[open] summary:hover { border-radius: var(--ou-r-control) var(--ou-r-control) 0 0; }
.ou-home-faq summary:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; border-radius: var(--ou-r-control); }
.ou-home-faq details[open] summary { border-bottom: 1px solid var(--ou-line); }
.ou-home-faq details > p { margin: 0; padding: var(--ou-s3) var(--ou-s4) var(--ou-s4); font-size: var(--ou-fs-md); line-height: 1.7; color: var(--ou-ink-soft); }
.ou-home-faq details > p a.link { color: var(--ou-ink); text-decoration: underline; }
.ou-home-faq__all { display: inline-flex; align-items: center; gap: var(--ou-s2); min-height: var(--ou-control-h); margin-top: var(--ou-s4); font-size: var(--ou-fs-md); font-weight: 500; color: var(--ou-ink); text-decoration: underline; }
.ou-home-faq__all:after { font-family: "Material Icons Round"; font-size: 18px; line-height: 1; content: 'arrow_forward'; font-feature-settings: 'liga'; text-decoration: none; }
.ou-home-faq__all:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
@media only screen and (max-width: 767px) {
    /* keep the text above the 184 px tall hero artwork (it is anchored to the bottom at full width) */
    main [slider][slider="home"] { min-height: 470px; }
    main [slider][slider="home"] > div { padding-bottom: 190px; }
    main [slider][slider="home"] > div > div { padding-bottom: 0; }
}
@media only screen and (min-width: 768px) and (max-width: 1140px) {
    main [slider][slider="home"] > div > img { height: auto; }
    /* hero artwork is full container width (1100:540) at the bottom; reserve its lower 48% (the car; the upper half is empty sky) so text and button stay above the car */
    main [slider][slider="home"] { min-height: calc((100vw - 60px) * 0.236 + 250px); }
    main [slider][slider="home"] > div { padding-bottom: calc((100vw - 60px) * 0.236); }
    main [slider][slider="home"] > div > div { padding-bottom: 0; }
}

/* OWL-SEO-1h: text link row to the landing pages, below the home query cards */
.ou-home-guides { margin: var(--ou-s6) auto 0; text-align: center; }
.ou-home-guides p { margin: 0 0 var(--ou-s2); font-size: var(--ou-fs-sm); color: var(--ou-ink-soft); }
.ou-home-guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--ou-s5); }
.ou-home-guides li { margin: 0; }
.ou-home-guides a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--ou-fs-sm); color: var(--ou-ink); text-decoration: underline; }
.ou-home-guides a:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
