/* V130-R4. Local reading-flow candidate; load after tr-open-flow-v130.css.
   Only body.k130-open pages are in scope. The protected home is excluded.
   k130-simple-flow may be added only after duplicate-aside content proof. */
body.k130-open:not(.home) #page main#main .k125-read {
  min-width: 0;
  width: 100%;
  max-width: none !important;
}

/* A wide composition may retain a useful CTA sidebar. Prose remains readable. */
body.k130-open:not(.home) #page main#main .k125-read :is(p, li) {
  max-width: 76ch;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
body.k130-open:not(.home) #page main#main .k125-read p {
  margin-block: 0 18px;
}
body.k130-open:not(.home) #page main#main .k125-read h2 {
  max-width: 48ch;
  margin-block: 0 18px;
  font-size: clamp(26px, 2.2vw, 34px) !important;
  line-height: 1.3 !important;
}
body.k130-open:not(.home) #page main#main .k125-read h3 {
  max-width: 56ch;
  margin-block: 26px 14px;
  font-size: clamp(21px, 1.8vw, 25px) !important;
  line-height: 1.4 !important;
}

/* Reading sections, not catalogue/service-choice cards, form one open flow. */
body.k130-open:not(.home) #page main#main:is(.k125-service, .k125-information) .k125-read .k-info-grid,
body.k130-open:not(.home) #page main#main .k125-read .publication-body .k-info-grid {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  margin-block: 32px !important;
}
body.k130-open:not(.home) #page main#main:is(.k125-service, .k125-information) .k125-read .k-info-card,
body.k130-open:not(.home) #page main#main .k125-read .publication-body .k-info-card,
body.k130-open:not(.home) #page main#main.k125-information .k125-read .k-faq-item {
  display: block !important;
  box-sizing: border-box;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-block: 0 40px !important;
  min-height: 0 !important;
  width: 100%;
}
body.k130-open:not(.home) #page main#main.k125-information .k125-read .k-faq-list {
  display: block !important;
}

/* İş Hukuku's old V121 inline parent grid also divided long narrative sections. */
body.k130-open:not(.home) #page main#main.k125-service .k125-read .entry-content.k-info-page {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
}

/* Do not reserve a desktop column for a proven duplicate navigation-only aside.
   The existing native, closed top TOC remains reachable at every width. */
body.k130-open.k130-simple-flow:not(.home) #page main#main :is(.k125-layout, .k125-frame) {
  display: block !important;
  grid-template-columns: none !important;
}
body.k130-open.k130-simple-flow:not(.home) #page main#main .k125-aside {
  display: none !important;
}
body.k130-open.k130-simple-flow:not(.home) #page main#main > .k125-toc-mobile {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  margin-block: 0 28px !important;
}
body.k130-open.k130-simple-flow:not(.home) #page main#main .k125-read {
  max-width: none !important;
}

/* Existing section IDs, tables, citations, buttons and source boxes are kept. */
body.k130-open:not(.home) #page main#main .k125-read :is(section, h2, h3)[id] {
  scroll-margin-top: 112px;
}
body.k130-open:not(.home) #page main#main .k125-read blockquote {
  max-width: 76ch;
  margin-block: 28px;
  padding-block: 8px;
}

@media (max-width: 760px) {
  body.k130-open:not(.home) #page main#main .k125-read :is(p, li) {
    font-size: 17px;
    line-height: 1.75;
  }
  body.k130-open:not(.home) #page main#main:is(.k125-service, .k125-information) .k125-read .k-info-card,
  body.k130-open:not(.home) #page main#main .k125-read .publication-body .k-info-card,
  body.k130-open:not(.home) #page main#main.k125-information .k125-read .k-faq-item {
    margin-block-end: 30px !important;
  }
}

/* R4-R1: the publication wrapper also retained an 850px centered cap.
   Keep prose line length, while section and source headings share the wide lane. */
body.k130-open:not(.home) #page main#main .k125-read .publication-body {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}
body.k130-open:not(.home) #page main#main .k125-read .publication-body > :is(.k-info-grid, section) {
  margin-inline: 0 !important;
}
/* Related links in a 300px CTA sidebar must not inherit a two-column body list. */
body.k130-open:not(.home) #page main#main .k125-aside-board .k-service-context :is(h2, h3) {
  font-size: 20px !important;
  line-height: 1.4 !important;
}
body.k130-open:not(.home) #page main#main .k125-aside-board .k-service-context ul {
  display: block !important;
  grid-template-columns: none !important;
  margin-block: 0 !important;
}
body.k130-open:not(.home) #page main#main .k125-aside-board .k-service-context li {
  margin-block: 0 10px !important;
}
body.k130-open:not(.home) #page main#main .k125-aside-board .k-service-context a {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* R4-R2: site.js creates a legacy CSS caret in ::after while the retained HTML
   already contains a real SVG caret. Keep the ::before progress ring intact. */
body.k130-open:not(.home) #page footer.site-footer .sm-up-container.back-to-top:has(> svg)::after {
  content: none !important;
  display: none !important;
}
body.k130-open:not(.home) #page footer.site-footer .sm-up-container.back-to-top > svg {
  display: block !important;
  grid-area: 1 / 1 !important;
  align-self: center !important;
  justify-self: center !important;
  flex: none !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  color: #f8f2e8 !important;
  fill: none !important;
  stroke: currentColor !important;
}
/* R4-R4: only a step with two existing topic links needs sentence flow.
   Direct children of the retained flex-column card are otherwise blockified. */
body.k130-open.district-info-page:not(.home) #page #content.k125-district .district-v3__steps .district-v3__step:has(> a[href^="#"] ~ a[href^="#"]) {
  display: block !important;
}
body.k130-open.district-info-page:not(.home) #page #content.k125-district .district-v3__steps .district-v3__step:has(> a[href^="#"] ~ a[href^="#"]) > a[href^="#"] {
  display: inline !important;
  margin-top: 0 !important;
}

/* V130 R4-R5: one special decision keeps its existing meaning and metadata; remove only its old centred article cap. */
body.k130-open.k-case-summary-v102:not(.home) #page #main.k125-decision article.k-case-summary {
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
}
