/* OWL-UI-8: static text pages (about, help, legal) and system states (404, 500, maintenance).
   Look only: tokens and components come from otosorgu-ui.css. Text content is never changed here. */

/* 1. Text pages: card at the site structural width (otosorgu-ui.css, OWL-UI-11e); the text keeps a readable measure (about 72 characters),
   left aligned inside the card. Heading scale, calm rhythm. */
#Content .section_wrapper.ou-prose > :not(.ou-pagehead):not(.table-responsive):not(table) { max-width: 72ch; }
#Content .section_wrapper.ou-prose {
    padding: var(--ou-s6);
    font-size: var(--ou-fs-md);
    line-height: 1.7;
    color: var(--ou-ink);
    overflow-wrap: anywhere;
}
#Content .ou-prose h1, #Content .ou-prose h2 {
    margin: 0 0 var(--ou-s5);
    font-size: var(--ou-fs-xl);
    line-height: 1.25;
    font-weight: 500;
    color: var(--ou-ink);
}
#Content .ou-prose h3, #Content .ou-prose h5 {
    margin: var(--ou-s6) 0 var(--ou-s3);
    font-size: var(--ou-fs-lg);
    line-height: 1.3;
    font-weight: 500;
    color: var(--ou-ink);
}
#Content .ou-prose p { margin: 0 0 var(--ou-s4); }
#Content .ou-prose a { color: var(--ou-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ou-accent); text-decoration-thickness: 2px; }
#Content .ou-prose a:hover { background: var(--ou-warning-bg); }
#Content .ou-prose a:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; border-radius: 2px; }
/* The legacy text uses stacked <br> after a heading for spacing; the heading margin does that now. */
#Content .ou-prose h2 + br, #Content .ou-prose h2 + br + br,
#Content .ou-prose h5 + br, #Content .ou-prose h5 + br + br { display: none; }
#Content .ou-prose .title + br { display: none; }
#Content .ou-prose .ou-pagehead + br, #Content .ou-prose .ou-pagehead + br + br { display: none; } /* legacy <br> spacing after the old title; the header margin does that now */

#Content .ou-prose .table-responsive { margin: var(--ou-s3) 0; overflow-x: auto; }
#Content .ou-prose table { width: 100%; border-collapse: collapse; font-size: var(--ou-fs-sm); line-height: 1.5; }
#Content .ou-prose th, #Content .ou-prose td { padding: var(--ou-s3); border: 1px solid var(--ou-line-strong); text-align: left; vertical-align: top; }
#Content .ou-prose th { background: var(--ou-canvas); font-weight: 500; }

/* 1b. Legal pages (OWL-UI-18f, A9): the legacy body is bare text and <br>, so max-width cannot reach it. From 768 px the card gets a right padding that
   leaves a 72 ch text column; the page header band and wide tables reach back into that padding, so card edges stay those of the header and footer.
   --ou-prose-card is the card width in px (same definition as --ou-site-w: 1100 px from 1141 px, viewport minus 60 px from 768 px). */
@media (min-width: 768px) {
    #Content .section_wrapper.ou-prose:not(.ou-about) {
        --ou-prose-card: calc(100vw - 60px);
        --ou-prose-pr: max(var(--ou-card-px), calc(var(--ou-prose-card) - var(--ou-card-px) - 72ch));
        padding-right: var(--ou-prose-pr);
    }
    #Content .section_wrapper.ou-prose:not(.ou-about) > .ou-pagehead {
        width: calc(100% + var(--ou-card-px) + var(--ou-prose-pr));
        margin-right: calc(-1 * var(--ou-prose-pr));
    }
    /* Tables span the full card content width again (.table-responsive is width: 100 % and max-width: 100 %, so a negative margin alone does not widen it). */
    #Content .section_wrapper.ou-prose:not(.ou-about) > .table-responsive { width: calc(100% + var(--ou-prose-pr) - var(--ou-card-px)); max-width: none; margin-right: 0; }
    #Content .section_wrapper.ou-prose:not(.ou-about) > table { width: calc(100% + var(--ou-prose-pr) - var(--ou-card-px)); max-width: none; margin-right: 0; }
}
@media (min-width: 1141px) {
    #Content .section_wrapper.ou-prose:not(.ou-about) { --ou-prose-card: 1100px; }
}

/* 2. About page: story left, company facts as cards right (two columns from 1024 px) ---------- */
#Content .section_wrapper.ou-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ou-s6);
}
@media (min-width: 1024px) {
    #Content .section_wrapper.ou-about { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}
#Content .ou-about > .column { float: none; width: auto !important; margin: 0 !important; max-width: 72ch; }
#Content .ou-about .title h2 { margin: 0 0 var(--ou-s4); }
#Content .ou-about .text p { margin: 0 0 var(--ou-s4); line-height: 1.7; }
#Content .ou-about .text .title { margin-top: var(--ou-s6); }
#Content .ou-about .text > br, #Content .ou-about > .column > br, #Content .ou-about .iconbox + br { display: none; }
#Content .ou-about .iconbox {
    margin: 0 0 var(--ou-s3);
    padding: var(--ou-s4);
    border: 1px solid var(--ou-line);
    border-left: 4px solid var(--ou-accent);
    border-radius: var(--ou-r-control);
    background: var(--ou-canvas);
}
#Content .ou-about .iconbox .title h5 { margin: 0 0 var(--ou-s2); font-size: var(--ou-fs-md); font-weight: 700; color: var(--ou-ink); }
#Content .ou-about .iconbox .text p { margin: 0; font-size: var(--ou-fs-sm); line-height: 1.6; color: var(--ou-ink-soft); }

/* 3. Help page: FAQ accordion keeps its markup and script, only width and scale change --------- */
#Content .section_wrapper.ou-faq-page { --ou-card-px: var(--ou-s6); --ou-card-py: var(--ou-s6); padding: var(--ou-s6); }
#Content .ou-faq-page > :not(.ou-pagehead) { max-width: 80ch; }
/* OWL-UI-18f (A8): CustomStyle.css makes .mobile-width 90 % wide, centred, with 2rem padding on small screens; that doubled the card inset to about 31 px. */
#Content .ou-faq-page > .mobile-width { width: 100% !important; margin: 0; padding: 0 !important; }
#Content .ou-faq-page h2 { margin: var(--ou-s6) 0 var(--ou-s3); font-size: var(--ou-fs-xl); line-height: 1.25; font-weight: 500; }
#Content .ou-faq-page > div > h2:first-child, #Content .ou-faq-page > h2:first-child { margin-top: 0; }
#Content .ou-faq-page .faq .question .title { line-height: 1.5; min-height: 44px; cursor: pointer; }
#Content .ou-faq-page .faq .question .title:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: -2px; }
#Content .ou-faq-page .faq .answer { line-height: 1.7; }
#Content .ou-faq-page .faq .answer p { margin: 0 0 var(--ou-s3); }
@media (max-width: 767px) {
    #Content .section_wrapper.ou-prose { padding: var(--ou-s4); }
    #Content .section_wrapper.ou-faq-page { --ou-card-px: var(--ou-s4); --ou-card-py: var(--ou-s4); padding: var(--ou-s4); }
}

/* 4. System states: icon, one-line cause, one next action ----------------------------------- */
/* OWL-UI-18f (A10): the card and page header are those of every other page (backgcard + _PageHeader); the body holds the code and the button. */
/* OTS-UI-ERR-1: plain sentence, then the actions, the support contact and a small code line (a column, never a bare code next to a button). */
.ou-system .ou-state { flex-direction: column; align-items: flex-start; max-width: none; padding: var(--ou-s4) 0 var(--ou-s2); gap: var(--ou-s4); }
.ou-system .ou-state__text { max-width: 60ch; font-size: var(--ou-fs-lg); line-height: 1.5; color: var(--ou-ink); }
.ou-system .ou-state__actions { display: flex; flex-wrap: wrap; gap: var(--ou-s3); }
.ou-system .ou-state__help { margin: 0; max-width: 60ch; font-size: var(--ou-fs-md); line-height: 1.6; color: var(--ou-ink-soft); overflow-wrap: anywhere; }
.ou-system .ou-state__help a { color: var(--ou-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) {
    .ou-system .ou-state__actions { flex-direction: column; align-self: stretch; }
    .ou-system .ou-state__actions .ou-btn { justify-content: center; }
    /* phone and mail on their own lines, no dangling separator */
    .ou-system .ou-state__help a { display: block; width: fit-content; }
    .ou-system .ou-state__sep { display: none; }
}
/* OWL-UI-POLISH-1: the card inset equals the text pages (32 px from 768 px, 16 px below), not the 24 px of a plain .backgcard. */
#Content .section_wrapper.ou-system { --ou-card-px: var(--ou-s6); --ou-card-py: var(--ou-s6); padding: var(--ou-s6); }
@media (max-width: 767px) {
    #Content .section_wrapper.ou-system { --ou-card-px: var(--ou-s4); --ou-card-py: var(--ou-s4); padding: var(--ou-s4); }
}
.ou-system .ou-state__code { margin: 0; font-size: var(--ou-fs-sm); font-weight: 500; letter-spacing: .04em; color: var(--ou-muted); }
#Content .ou-system .ou-state__title { margin: 0; font-size: var(--ou-fs-xl); line-height: 1.25; font-weight: 500; color: var(--ou-ink); }
.ou-system .ou-btn[data-icon]:before {
    content: attr(data-icon);
    font-family: "Material Icons Round";
    font-size: 16px;
    line-height: 1;
    font-feature-settings: 'liga';
}
.ou-system .ou-btn { text-decoration: none; padding: 0 var(--ou-s5); }

/* 5. Maintenance page (standalone, no layout) ------------------------------------------------ */
@font-face { font-family: 'otosorgu'; font-weight: 400; font-style: normal; font-display: swap; src: url('_fonts/universaldoomsday-regular.woff2') format('woff2'), url('_fonts/universaldoomsday-regular.woff') format('woff'); }
@font-face { font-family: 'otosorgu'; font-weight: 500; font-style: normal; font-display: swap; src: url('_fonts/universaldoomsday-medium.woff2') format('woff2'), url('_fonts/universaldoomsday-medium.woff') format('woff'); }
@font-face { font-family: 'Material Icons Round'; font-weight: 400; font-style: normal; font-display: swap; src: url('_fonts/MaterialIconsRound-Regular.woff2') format('woff2'), url('_fonts/MaterialIconsRound-Regular.woff') format('woff'); }
body.ou-bakim {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ou-s5) var(--ou-s4);
    box-sizing: border-box;
    background: var(--ou-canvas);
    color: var(--ou-ink);
    font-family: var(--ou-font);
    font-size: var(--ou-fs-md);
    line-height: 1.5;
    text-align: center;
}
body.ou-bakim main { display: flex; flex-direction: column; align-items: center; gap: var(--ou-s4); width: 100%; }
body.ou-bakim img { display: block; width: 100%; max-width: 480px; height: auto; }
body.ou-bakim h1 { margin: 0; font-size: var(--ou-fs-xl); line-height: 1.25; font-weight: 500; }
body.ou-bakim p { margin: 0; max-width: 46ch; color: var(--ou-ink-soft); }
body.ou-bakim .ou-btn[data-icon]:before { content: attr(data-icon); font-family: "Material Icons Round"; font-size: 16px; line-height: 1; font-feature-settings: 'liga'; }
body.ou-bakim .ou-btn { text-decoration: none; padding: 0 var(--ou-s5); margin-top: var(--ou-s2); }

@media (prefers-reduced-motion: reduce) {
    .ou-system .ou-btn, body.ou-bakim .ou-btn { transition: none; }
}

/* 6. Price page /fiyatlar (OTS-CS-9) ---------------------------------------------------------
   One card per query kind: icon tile, name, price (tabular), "KDV dahil", one secondary button. Cards sit in the card at the site structural width. */
#Content .ou-prices__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--ou-s4); }
#Content .ou-prices__card { display: grid; grid-row: span 5; grid-template-rows: subgrid; justify-items: start; row-gap: var(--ou-s2); margin: 0; padding: var(--ou-s5); background: var(--ou-surface); border: 1px solid var(--ou-line); border-radius: var(--ou-r-card); box-shadow: var(--ou-shadow); }
#Content .ou-prices__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--ou-accent-tint); color: var(--ou-ink); font-family: "Material Icons Round"; font-size: 24px; line-height: 1; font-feature-settings: 'liga'; }
#Content .ou-prices__name { margin: var(--ou-s2) 0 0; font-size: var(--ou-fs-lg); line-height: 1.3; font-weight: 500; color: var(--ou-ink); }
#Content .ou-prices__price { margin: 0; font-size: var(--ou-fs-xl); line-height: 1.2; font-weight: 700; color: var(--ou-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#Content .ou-prices__vat { margin: 0 0 var(--ou-s3); font-size: var(--ou-fs-sm); color: var(--ou-muted); }
#Content .ou-prices__card .button { align-self: end; }
@media (max-width: 639px) {
    #Content .ou-prices__grid { grid-template-columns: 1fr; }
    #Content .ou-prices__card .button { width: 100%; }
}

/* 7. Landing pages /hasar-sorgulama, /tramer-sorgulama (OWL-SEO-1g) -----------------------------
   Text card (ou-prose): covered list with tick icons, numbered steps, one primary CTA, native <details> FAQ. Tokens only. */
#Content .ou-landing__list { list-style: none; margin: 0 0 var(--ou-s4); padding: 0; display: grid; gap: var(--ou-s2); }
#Content .ou-landing__list li { display: flex; align-items: flex-start; gap: var(--ou-s3); margin: 0; }
#Content .ou-landing__tick { flex: none; font-family: "Material Icons Round"; font-size: 24px; line-height: 1.4; color: var(--ou-accent-ink); font-feature-settings: 'liga'; }
#Content .ou-landing__note { color: var(--ou-ink-soft); font-size: var(--ou-fs-sm); }
#Content .ou-landing__steps { list-style: none; margin: 0 0 var(--ou-s6); padding: 0; display: grid; gap: var(--ou-s4); counter-reset: ou-step; }
#Content .ou-landing__steps li { display: flex; align-items: flex-start; gap: var(--ou-s4); margin: 0; counter-increment: ou-step; }
#Content .ou-landing__stepno { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--ou-accent); color: var(--ou-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
#Content .ou-landing__stepno::before { content: counter(ou-step); }
#Content .ou-landing__steps h3 { margin: 0 0 var(--ou-s1); }
#Content .ou-landing__steps p { margin: 0; }
#Content .ou-landing__cta { margin: 0 0 var(--ou-s6); padding: var(--ou-s5); background: var(--ou-accent-tint); border: 1px solid var(--ou-warning-line); border-radius: var(--ou-r-card); }
#Content .ou-landing__cta p { margin: var(--ou-s3) 0 0; font-size: var(--ou-fs-sm); color: var(--ou-ink-soft); }
#Content .ou-landing__cta a.button, #Content .ou-landing__cta a.button:hover { text-decoration: none; background-image: none; }
#Content .ou-landing__faq { display: grid; gap: var(--ou-s2); }
#Content .ou-landing__faq details { border: 1px solid var(--ou-line); border-radius: var(--ou-r-card); background: var(--ou-surface); }
#Content .ou-landing__faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--ou-s3); min-height: 44px; padding: var(--ou-s2) var(--ou-s4); font-weight: 500; cursor: pointer; list-style: none; }
#Content .ou-landing__faq summary::-webkit-details-marker { display: none; }
#Content .ou-landing__faq summary::after { content: "expand_more"; content: "expand_more" / ""; flex: none; font-family: "Material Icons Round"; font-size: 24px; line-height: 1; font-feature-settings: 'liga'; transition: transform 150ms ease; }
#Content .ou-landing__faq details[open] summary::after { transform: rotate(180deg); }
#Content .ou-landing__faq summary:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: -2px; border-radius: var(--ou-r-card); }
#Content .ou-landing__faq details p { margin: 0; padding: 0 var(--ou-s4) var(--ou-s4); }
@media (prefers-reduced-motion: reduce) {
    #Content .ou-landing__faq summary::after { transition: none; }
}
@media (max-width: 639px) {
    #Content .ou-landing__cta a.button { width: 100%; }
}
#Content .ou-landing > h2 { margin-top: var(--ou-s7); }
#Content .ou-landing > .ou-pagehead + h2 { margin-top: var(--ou-s6); }
/* OWL-SEO-1h: links to the other landing pages; 44px tap rows */
#Content .ou-landing__related { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ou-s1); }
#Content .ou-landing__related li { margin: 0; }
#Content .ou-landing__related a { display: inline-flex; align-items: center; min-height: 44px; }

/* 8. Blog /blog and /blog/<slug> (OTS-VIS-14b) -----------------------------------------------------
   List: calm cards (optional cover, category, date, title, description, one link with an arrow). Post: facts row, readable body (72ch), the landing CTA box
   (reuses .ou-landing__cta) and two other posts. Tokens only; 44px tap targets; no motion. */
#Content .ou-blog__list { list-style: none; margin: var(--ou-s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--ou-s5); }
#Content .ou-blog__card { display: flex; flex-direction: column; margin: 0; overflow: hidden; background: var(--ou-surface); border: 1px solid var(--ou-line); border-radius: var(--ou-r-card); box-shadow: var(--ou-shadow); }
#Content .ou-blog__thumb { display: block; aspect-ratio: 16 / 9; background: var(--ou-canvas); }
#Content .ou-blog__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
#Content .ou-blog__text { display: flex; flex: 1; flex-direction: column; gap: var(--ou-s2); padding: var(--ou-s5); }
#Content .ou-blog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ou-s2) var(--ou-s3); margin: 0; font-size: var(--ou-fs-sm); color: var(--ou-ink-soft); }
#Content .ou-blog__cat { display: inline-flex; align-items: center; padding: 2px var(--ou-s3); border: 1px solid var(--ou-warning-line); border-radius: var(--ou-r-pill); background: var(--ou-accent-tint); font-size: var(--ou-fs-xs); font-weight: 500; line-height: 1.5; color: var(--ou-ink); }
#Content .ou-blog__title { margin: 0; font-size: var(--ou-fs-lg); line-height: 1.3; }
#Content .ou-blog__title a { color: var(--ou-ink); text-decoration: none; }
#Content .ou-blog__title a:hover { text-decoration: underline; }
#Content .ou-blog__desc { margin: 0; color: var(--ou-ink-soft); }
#Content .ou-blog__more { display: inline-flex; align-items: center; gap: var(--ou-s2); align-self: flex-start; min-height: 44px; margin-top: auto; font-weight: 500; color: var(--ou-ink); text-decoration: underline; }
#Content .ou-blog__icon { display: inline-block; font-family: "Material Icons Round"; font-size: 20px; line-height: 1; font-feature-settings: 'liga'; text-decoration: none; }
#Content .ou-blog__more:focus-visible, #Content .ou-blog__title a:focus-visible, #Content .ou-blog__pagelink:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; border-radius: var(--ou-r-control); }
#Content .ou-blog__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ou-s3); margin-top: var(--ou-s6); }
#Content .ou-blog__pageno { font-size: var(--ou-fs-sm); color: var(--ou-ink-soft); font-variant-numeric: tabular-nums; }
#Content .ou-blog__pagelink { display: inline-flex; align-items: center; justify-content: center; gap: var(--ou-s2); min-height: 44px; padding: 0 var(--ou-s4); border-radius: var(--ou-r-control); background: var(--ou-ink); color: #fff; font-size: var(--ou-fs-md); font-weight: 500; text-decoration: none; }
#Content .ou-blog__pagelink:hover { background: #000; color: #fff; }
#Content .ou-blog__facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--ou-s1) var(--ou-s5); margin: var(--ou-s5) 0; padding: 0; font-size: var(--ou-fs-sm); color: var(--ou-ink-soft); }
#Content .ou-blog__facts li { margin: 0; }
#Content .ou-blog__cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 420px; margin: 0 0 var(--ou-s5); border-radius: var(--ou-r-card); object-fit: cover; }
#Content .ou-blog__body { max-width: 72ch; line-height: 1.7; overflow-wrap: anywhere; }
#Content .ou-blog__body p { margin: 0 0 var(--ou-s4); }
#Content .ou-blog__body h2 { margin: var(--ou-s6) 0 var(--ou-s3); }
#Content .ou-blog__body h3 { margin: var(--ou-s5) 0 var(--ou-s2); }
#Content .ou-blog__body ul, #Content .ou-blog__body ol { margin: 0 0 var(--ou-s4); padding-left: var(--ou-s5); }
#Content .ou-blog__body li { margin: 0 0 var(--ou-s1); }
#Content .ou-blog__body blockquote { margin: 0 0 var(--ou-s4); padding: var(--ou-s2) var(--ou-s4); border-left: 4px solid var(--ou-accent); background: var(--ou-canvas); color: var(--ou-ink-soft); }
#Content .ou-blog__body a { color: var(--ou-ink); text-decoration: underline; }
#Content .ou-blog__cta { max-width: 72ch; margin-top: var(--ou-s6); }
#Content .ou-blog__cta h2 { margin: 0 0 var(--ou-s2); font-size: var(--ou-fs-lg); }
#Content .ou-blog__cta p { margin: 0 0 var(--ou-s3); font-size: var(--ou-fs-md); color: var(--ou-ink); }
#Content .ou-blog__others li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ou-s1) var(--ou-s4); }
#Content .ou-blog__others time { font-size: var(--ou-fs-sm); color: var(--ou-muted); }
@media (max-width: 639px) {
    #Content .ou-blog__list { grid-template-columns: 1fr; }
    #Content .ou-blog__text { padding: var(--ou-s4); }
    #Content .ou-blog__pagelink { flex: 1 1 100%; }
    #Content .ou-blog__pageno { order: -1; flex: 1 1 100%; text-align: center; }
}
