/* blog area — owned by the blog agent (29 Nov). Loaded after polish.css on every page.
   B1–B9: articles (E-series posts, MVNO guide; every page with .rs-body). B10–B14: blog index (/blog/). */

/* ───────────── ARTICLES ───────────── */

/* B1. One white reading surface (the live alepo.com posts read on white). The grey page only showed
       through as a band between the white hero and the article, which made every white table / answer
       box sit on it as a block. A hairline now separates the hero from the article. */
main:has(> .rs-body) { background: #fff; }
main:has(> .rs-body) > .rs-body { border-top: 1px solid var(--rule); }
main:has(> .rs-body) > .rs-hero { padding-bottom: clamp(2.5rem, 1.5rem + 2.5vw, 4rem) !important; }

/* B2. Rhythm: one gap between article sections (was ~150px; FAQ → closing block ~170px),
       one gap from a heading to its text, one between paragraphs, one before a component. */
main:has(> .rs-body) .rs-main > .section.d-sec.d-sec.d-sec.d-sec { padding-block: clamp(1.75rem, 1rem + 2vw, 2.5rem) !important; }
main:has(> .rs-body) .rs-main > .section.d-sec.d-sec.d-sec.d-sec:first-child { padding-top: clamp(2.5rem, 1.5rem + 2.5vw, 4rem) !important; }
main:has(> .rs-body) .rs-main > .section.d-sec.d-sec.d-sec.d-sec:last-child { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem) !important; }
body main .rs-main .d-top { gap: 1.25rem !important; margin-bottom: 0 !important; }
body main .rs-main .d-top h2 { margin: 0 !important; max-width: 24ch; text-wrap: balance; }
body main .rs-main .d-top__lede--more { gap: 1.25rem !important; }
body main .rs-main .d-flow { gap: 2rem !important; margin-top: 2rem !important; }
body main .rs-main .d-top + .d-flow:has(> :is(.d-p, .d-leadin):first-child) { margin-top: 1.25rem !important; }
body main .rs-main .d-inner > :is(.d-flow:first-child, .visually-hidden:first-child + .d-flow) { margin-top: 0 !important; }
body main .rs-main .d-flow > .d-p + .d-p { margin-top: -0.75rem; }
body main .rs-main .d-flow > .d-leadin + * { margin-top: -0.75rem; }
/* paragraphs after a component used to be pushed into a right-hand column on some articles */
body main .rs-main .d-flow > .d-p { margin-left: 0 !important; }

/* one measure for all running text, so every paragraph ends on the same right edge */
body main .rs-main :is(.d-p, .d-top__lede, .d-top__note, .d-top__lede p, .d-flow > p, .d-leadin) { max-width: 44rem !important; }
body main .rs-main .d-top__lede, body main .rs-main .d-top__lede--more > p:first-child { font-size: 1.1875rem !important; line-height: 1.65 !important; color: var(--graphite) !important; }

/* B3. "At a glance" answer: was a white box on grey. Now an open definition — turquoise rule on the left. */
body main .rs-main .d-answer {
  width: auto !important; max-width: 44rem !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important;
  border-left: 3px solid var(--turquoise) !important; padding: 0.25rem 0 0.25rem 1.5rem !important;
  font-size: 1.25rem !important; line-height: 1.6 !important; color: var(--graphite) !important;
}
@media (max-width: 48rem) { body main .rs-main .d-answer { font-size: 1.125rem !important; padding-left: 1.125rem !important; } }

/* B4. Tables: open, ruled table instead of a white box with a solid indigo bar. Row labels no longer
       break mid-word ("Communica / tion", "at- / tributes"). */
body main .rs-main .d-table { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; overflow-x: auto; border-bottom: 1px solid var(--rule); }
body main .rs-main .d-table :is(th, td) { overflow-wrap: normal !important; word-break: normal !important; hyphens: manual !important; padding: 0.9375rem 1.25rem 0.9375rem 0 !important; font-size: 1rem; line-height: 1.55; color: var(--graphite); }
body main .rs-main .d-table thead th {
  background: transparent !important; color: var(--indigo) !important; font-size: 0.8125rem !important; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 2px solid var(--indigo) !important; padding-block: 0.75rem !important; vertical-align: bottom;
}
body main .rs-main .d-table tbody th { color: var(--indigo) !important; font-weight: 600; width: 11rem; }
body main .rs-main .d-table tbody tr:last-child :is(th, td) { border-bottom: 0 !important; }
@media (max-width: 48rem) {
  body main .rs-main .d-table { border-top: 2px solid var(--indigo); }
  body main .rs-main .d-table tr { padding: 1rem 0 !important; }
  body main .rs-main .d-table :is(th, td) { padding: 0.25rem 0 !important; width: auto; }
  body main .rs-main .d-table tbody th { font-size: 1.0625rem !important; }
}

/* B5. Checklists ("Hardening checklist", "When to move", "The Diameter protocol in LTE"): the heading sat
       alone on the left with the list squeezed into a narrow right column. Heading above, list below
       in two columns on desktop. */
body main .rs-main .d-units--one .d-unit:has(.d-plist) { display: block !important; }
body main .rs-main .d-units--one .d-unit:has(.d-plist) .d-unit__head { margin-bottom: 1.25rem !important; }
body main .rs-main .d-unit .d-plist--check { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem 2.5rem !important; }
body main .rs-main .d-units:not(.d-units--one) .d-unit .d-plist--check { grid-template-columns: minmax(0, 1fr) !important; }
@media (max-width: 48rem) { body main .rs-main .d-unit .d-plist--check { grid-template-columns: minmax(0, 1fr) !important; } }

/* B6. Definition boxes (pale cyan "What is ePDG?", lavender "How long it takes…", "Policy and charging
       together"): heading was centred on the left with the text in a thin right column, leaving a big empty
       block. In the reading column: heading on top, text below at reading width. Colour and pattern kept. */
body main .rs-main .d-define {
  grid-template-columns: minmax(0, 1fr) !important; align-items: start !important; gap: 1.25rem !important;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) !important;
}
body main .rs-main .d-define h2 { max-width: 24ch !important; margin: 0 !important; }
body main .rs-main .d-define__text { gap: 1rem !important; }
body main .rs-main .d-define__text p { max-width: 40rem !important; font-size: 1.1875rem !important; line-height: 1.6 !important; color: var(--graphite) !important; }
body main .rs-main .d-define__pattern { width: 45% !important; opacity: .35 !important; }
body main .rs-main .d-tiles--one .d-tile {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 1.25rem !important; align-items: start !important;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) !important;
}
body main .rs-main .d-tiles--one .d-tile > * { grid-column: 1 !important; grid-row: auto !important; }
body main .rs-main .d-tiles--one .d-tile h2 { max-width: 24ch; }
body main .rs-main .d-tiles--one .d-tile > p:not(.label) { max-width: 40rem !important; font-size: 1.125rem !important; line-height: 1.65 !important; color: var(--graphite) !important; }

/* B7. White cards inside the article become open forms on the white page. */
/* push/pull panels: two open columns under a rule */
body main .rs-main .d-panels > .d-panel { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border-top: 1px solid var(--rule) !important; padding: 1.5rem 0 0 !important; }
/* numbered checklist (Cisco ACS "Migration checklist"): four narrow white cards → one ruled, numbered list.
   The decorative filler photo (aria-hidden) only existed to fill the 8th card slot. */
body main .rs-main .d-stepcards { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; border-top: 1px solid var(--rule); }
body main .rs-main .d-stepcards > .d-fill { display: none !important; }
body main .rs-main .d-stepcards > .d-feat {
  display: grid !important; grid-template-columns: 2.25rem minmax(0, 1fr) !important; column-gap: 1.25rem !important; align-items: start !important;
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border-bottom: 1px solid var(--rule) !important; padding: 1.125rem 0 !important;
}
body main .rs-main .d-stepcards > .d-feat p { margin: 0 !important; max-width: 40rem !important; padding-top: 0.25rem; }
body main .rs-main .d-stepcards .d-rail__n { width: 2.25rem !important; height: 2.25rem !important; font-size: 0.875rem; }
/* any other white cell left inside the reading column: no box */
body main .rs-main .d-unit.cell:not(.d-unit--wide), body main .rs-main .d-railcard { background: transparent !important; box-shadow: none !important; }

/* B8. Step rails with long sentences (blog.js marks them .bl-rail--v): six narrow columns of 9-word
       lines became hard to read. They run down the page instead, same numbered dots and connector. */
@media (min-width: 62.01rem) {
  body main .rs-main .d-rail.bl-rail--v { grid-template-columns: minmax(0, 1fr) !important; gap: 1.25rem !important; }
  body main .rs-main .d-rail.bl-rail--v .d-rail__step { grid-template-columns: 2.5rem minmax(0, 1fr) !important; column-gap: 1.25rem !important; align-items: start; }
  body main .rs-main .d-rail.bl-rail--v .d-rail__step:not(:last-child)::after { top: 3rem !important; bottom: -1rem !important; left: calc(1.25rem - 1px) !important; right: auto !important; width: 2px !important; height: auto !important; background: var(--mist) !important; }
  body main .rs-main .d-rail.bl-rail--v .d-rail__step p { padding-top: 0.45rem; max-width: 40rem; }
}
body main .rs-main .d-rail__step p { color: var(--graphite) !important; }

/* B9. Closing block (product line + "Read about …" + "Request a Demo"): it floated after the FAQ with no
       form of its own. One indigo band closes the article (the site's final-CTA colour), white text. */
body main .rs-main > .section:last-child:has(.d-actions) > .d-inner {
  background: var(--indigo); color: #fff; border-radius: var(--r-tile);
  padding: clamp(2rem, 1.25rem + 2.5vw, 3.25rem) clamp(1.5rem, 1rem + 3vw, 3.5rem) !important;
  --fg: #fff; --fg-2: var(--indigo-20); --head: #fff; --link: #fff; --link-fg: var(--indigo); --badge: var(--turquoise); --badge-fg: var(--indigo);
}
body main .rs-main > .section:last-child:has(.d-actions) .d-flow { gap: 1.5rem !important; }
body main .rs-main > .section:last-child:has(.d-actions) .d-p { color: #fff !important; font-size: 1.1875rem !important; line-height: 1.6 !important; max-width: 40rem !important; }
body main .rs-main > .section:last-child:has(.d-actions) .d-p a { color: #fff !important; }
body main .rs-main > .section:last-child:has(.d-actions) .d-actions { margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
body main .rs-main > .section:last-child:has(.d-actions) .btn { --btn-bg: #fff; --btn-fg: var(--indigo); --btn-hover: var(--mist); color: var(--indigo) !important; background: var(--btn-bg) !important; }
body main .rs-main > .section:last-child:has(.d-actions) .btn .ico { background: var(--indigo) !important; color: #fff !important; }
body main .rs-main > .section:last-child:has(.d-actions) .btn:hover { background: var(--mist) !important; color: var(--indigo) !important; }
body main .rs-main > .section:last-child:has(.d-actions) .arrow-link { color: #fff !important; }
body main .rs-main > .section:last-child:has(.d-actions) .arrow-link .ico { background: var(--turquoise) !important; color: var(--indigo) !important; }
body main .rs-main > .section:last-child:has(.d-actions) .arrow-link:hover .ico { background: #fff !important; color: var(--indigo) !important; }
body main .rs-main > .section:last-child:has(.d-actions) :focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
@media (max-width: 36rem) { body main .rs-main > .section:last-child:has(.d-actions) .btn { width: 100%; justify-content: space-between; text-align: left; } }

/* FAQ heading needs the same gap to its first rule on every article */
body main .rs-main .d-sec--faq .d-top + .d-flow { margin-top: 1.75rem !important; }

/* Contents list: fixed-width numbers so every title starts on one line (01 was narrower than 02). */
.rs-toc .rs-toc__a > span:first-child { flex: none; width: 1.375rem; }
.rs-toc .rs-toc__a { padding-right: 0.5rem !important; }
@media (min-width: 62.01rem) { .rs-body > .rs-toc { margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 4rem) !important; } }
@media (max-width: 62rem) { .rs-body > .rs-toc { margin-top: 2rem !important; } }

/* Related reading on articles: same white surface, closed off by a rule above. */
main:has(> .rs-body) > .rl-sec > .wrap { border-top: 1px solid var(--rule); padding-top: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); }
main:has(> .rs-body) > .rl-sec.section.section.section.section.section { padding-top: 0 !important; }

/* Phone: the breadcrumb wrapped with a stray dot at the start of line two. One line; the current page
   title is truncated with an ellipsis (still read in full by screen readers). */
@media (max-width: 48rem) {
  main:has(> .rs-body) .rs-hero .crumbs ol { flex-wrap: nowrap !important; min-width: 0; }
  main:has(> .rs-body) .rs-hero .crumbs li { flex: none; }
  main:has(> .rs-body) .rs-hero .crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  main:has(> .rs-body) .rs-hero .crumbs li:last-child > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ───────────── BLOG INDEX ───────────── */

/* B10. Start here: label sits close to its list; numbers and arrows line up with each title. */
.bl-index .bl-start { gap: 0 !important; }
.bl-index .bl-start .bl-start__h { margin: 0 0 1rem !important; padding: 0 !important; }
.bl-index .bl-start__list { margin: 0 !important; }
body main .bl-index .bl-start__a.rc.rc.rc.rc.rc { align-items: start !important; padding: 1.375rem 0 !important; }
.bl-index .bl-start__a .bl-start__n { line-height: 1.6rem !important; }
.bl-index .bl-start__a .bl-start__body { display: grid; gap: 0.25rem; }
.bl-index .bl-start__a .bl-start__t { line-height: 1.6rem !important; }
.bl-index .bl-start__a::after { margin-top: -0.3rem; }
@media (max-width: 36rem) { body main .bl-index .bl-start__a.rc.rc.rc.rc.rc { grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem !important; column-gap: 0.875rem !important; } }

/* B11. Filter bar: two clean rows. Topic tabs on a rule (the active underline sits on that rule),
        then sort on the left and search on the right. Was: tabs, then sort + search wrapped under them,
        with the rule under the tools and the active underline floating above it. */
.bl-index .bl-bar { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 1.25rem !important; border-bottom: 0 !important; margin-bottom: 2.5rem !important; }
.bl-index .bl-tabs { border-bottom: 1px solid var(--rule) !important; gap: 0 1.75rem !important; }
.bl-index .bl-tabs .bl-tab { position: relative; }
.bl-index .bl-tools { justify-content: space-between !important; padding: 0 !important; }
/* sort: a filled two-way switch; the stray tab underline under "Newest" is gone */
.bl-index .bl-sort .bl-tab::after, .bl-index .bl-sort .bl-tab::before { display: none !important; content: none !important; }
.bl-index .bl-sort .bl-tab { min-height: 2.25rem; padding: 0.375rem 1rem !important; font-weight: 600; }
.bl-index .bl-sort .bl-tab:hover { color: var(--indigo) !important; }
/* search: a filled field (no outlined pill), indigo ring on focus */
.bl-index .bl-search { height: 2.75rem !important; min-width: 18rem; background: var(--paper-2, #f4f4f5) !important; border: 1px solid transparent !important; color: var(--ink-2); transition: background-color .2s linear, border-color .2s linear; }
.bl-index .bl-search:hover { background: var(--indigo-10) !important; }
.bl-index .bl-search:focus-within { background: #fff !important; border-color: var(--indigo) !important; box-shadow: 0 0 0 3px var(--indigo-10); }
.bl-index .bl-search input { color: var(--graphite); }
.bl-index .bl-search input::placeholder { color: var(--ink-2); opacity: 1; }
@media (max-width: 48rem) {
  /* phone: topics scroll sideways in one row instead of wrapping into three */
  .bl-index .bl-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter, 1rem)) !important; padding-inline: var(--gutter, 1rem); scroll-padding-inline: var(--gutter, 1rem); }
  .bl-index .bl-tabs::-webkit-scrollbar { display: none; }
  .bl-index .bl-tabs .bl-tab { flex: none; white-space: nowrap; }
  .bl-index .bl-tools { flex-wrap: wrap; justify-content: flex-start !important; gap: 0.75rem !important; }
  .bl-index .bl-search { min-width: 0; flex: 1 1 12rem; }
}

/* B12. Article cards: one height rhythm, cover zooms gently on hover, title turns indigo. */
.bl-index .bl-row__a .cv { overflow: hidden; }
.bl-index .bl-row__a .cv img { transition: transform .6s var(--ease-out); }
.bl-index .bl-row__a:hover .cv img { transform: scale(1.04); }
.bl-index .bl-row__a .bl-row__date { color: var(--ink-2) !important; font-size: 0.8125rem !important; }
.bl-index .bl-row__a .bl-row__topic { color: var(--indigo) !important; align-self: center; }
.bl-index .bl-row__a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: var(--r-tile); }
.bl-index .bl-none { padding: 2rem 0; color: var(--ink-2); }

/* B13. Newsletter strip: a filled field and a filled button (was an underlined field + text button). */
.bl-foot .bl-nl__row { display: flex !important; gap: 0.75rem !important; align-items: center; border: 0 !important; padding: 0 !important; max-width: 36rem; }
.bl-foot .bl-nl__input {
  flex: 1 1 auto; min-width: 0; height: 3rem !important; padding: 0 1.25rem !important; border: 1px solid transparent !important; border-radius: var(--pill) !important;
  background: var(--paper-2, #f4f4f5) !important; color: var(--graphite); font-size: 1rem; box-shadow: none !important;
}
.bl-foot .bl-nl__input::placeholder { color: var(--ink-2); opacity: 1; }
.bl-foot .bl-nl__input:focus { outline: 0; background: #fff !important; border-color: var(--indigo) !important; box-shadow: 0 0 0 3px var(--indigo-10) !important; }
.bl-foot .bl-nl__btn {
  flex: none; height: 3rem !important; padding: 0 0.5rem 0 1.375rem !important; gap: 0.75rem; border: 0 !important; border-radius: var(--pill) !important;
  background: var(--indigo) !important; color: #fff !important; font-weight: 600; cursor: pointer; transition: background-color .2s linear;
}
.bl-foot .bl-nl__btn .ico, body main .bl-foot .bl-nl__btn svg { width: 2rem !important; height: 2rem !important; padding: 0.45rem; border-radius: 50%; background: #fff; color: var(--indigo); transition: transform .3s var(--ease-out); }
.bl-foot .bl-nl__btn:hover { background: var(--graphite) !important; }
.bl-foot .bl-nl__btn:hover svg { transform: translateX(2px) !important; }
.bl-foot .bl-nl__btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.bl-foot .bl-nl__note { margin-top: 1rem !important; }
@media (max-width: 30rem) { .bl-foot .bl-nl__row { flex-wrap: wrap; } .bl-foot .bl-nl__btn { width: 100%; justify-content: space-between; } }

/* B14. Load more: count and button read as one group. */
.bl-index .bl-more { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.bl-index .bl-more .bl-more__count { margin: 0 !important; }

/* Follow-ups after the first pass (measured on TR-069, push-based access control). */
/* a table followed by a ruled block (e.g. "When to move") drew two rules 30px apart: keep the table's own */
body main .rs-main .d-flow > .d-table + :is(.d-unit--wide, .d-units) { border-top: 0 !important; padding-top: 0.5rem !important; }
body main .rs-main .d-flow > .d-table + .d-units > .d-unit:first-child { border-top: 0 !important; }
/* two panels side by side: titles of one and two lines pushed the lists out of line */
@media (min-width: 48.01rem) {
  body main .rs-main .d-panels:not(.d-panels--one) > .d-panel :is(h3, .d-panel__t) { min-height: 2.6em; align-items: flex-start !important; }
  body main .rs-main .d-panels:not(.d-panels--one) > .d-panel :is(h3, .d-panel__t)::before { margin-top: 0.05em; }
}
@media (max-width: 48rem) {
  .bl-index .bl-tools { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; }
  .bl-index .bl-search { flex: 1 1 10rem !important; height: 2.75rem !important; width: auto !important; }
  main:has(> .rs-body) .rs-hero .crumbs li:last-child::before { flex: none; }
}
