/* TisztaBeszéd reading rhythm v0.2 · 2026-11-04.
 * Load after the existing article and newsroom styles. Scope: editorial pages.
 * Rem-based hierarchy follows browser text enlargement; no text or status is hidden.
 */
.tb-main,
.essay-main,
.of-news-reader,
.edition,
.page-journal .magazine-main {
  --tb-reading-ink:var(--navy,#072a5a);
  --tb-reading-muted:var(--muted,var(--graphite,#59636e));
  --tb-reading-border:var(--line,#c7cec7);
  --tb-reading-sans:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --tb-reading-serif:Georgia,"Times New Roman",serif;
}

/* Keep the existing compact / spacious preference, rather than flattening it. */
:root:not([data-of-rhythm="relaxed"]) :is(.tb-main,.essay-main,.of-news-reader,.edition) {
  --of-reading-line:1.56;
  --of-reading-paragraph:.7em;
  --of-reading-heading:.4em;
  --of-reading-list:.4em;
}
:root[data-of-rhythm="relaxed"] :is(.tb-main,.essay-main,.of-news-reader,.edition) {
  --of-reading-line:1.65;
  --of-reading-paragraph:.95em;
  --of-reading-heading:.55em;
  --of-reading-list:.55em;
}

.tb-main,
.essay-main,
.of-news-reader,
.edition .stories {
  min-width:0;
}
.tb-article,
.essay-main .essay-body,
.of-news-reader,
.edition .stories>article {
  color:var(--tb-reading-ink,#072a5a);
  font:400 1.125rem/var(--of-reading-line,1.56) var(--tb-reading-sans);
  overflow-wrap:break-word;
  word-break:normal;
}
.tb-article :is(p,ul,ol),
.essay-main .essay-body :is(p,ul,ol),
.of-news-reader>p,
.edition .stories>article>p {
  max-width:68ch;
  margin-block:0 var(--of-reading-paragraph,.7em);
  font-size:inherit;
  line-height:var(--of-reading-line,1.56);
}
.tb-article :is(ul,ol),
.essay-main .essay-body :is(ul,ol),
.of-news-reader :is(ul,ol) {
  padding-inline-start:1.35em;
}
.tb-article li+li,
.essay-main .essay-body li+li {
  margin-block-start:var(--of-reading-list,.4em);
}
.tb-article :is(h1,h2,h3,h4),
.essay-main :is(h1,h2,h3),
.of-news-reader :is(h3,h4),
.edition .stories>article :is(h2,h3) {
  overflow-wrap:break-word;
  hyphens:auto;
  text-wrap:balance;
}

/* One headline, recognisable section entries, then modest utility labels. */
.tb-article>h1,
.essay-main .essay-intro h1,
.of-news-reader>h3,
.edition>.article-hero h1 {
  color:var(--tb-reading-ink,#072a5a);
  font:700 clamp(2rem,4.3vw,3.5rem)/1.1 var(--tb-reading-serif);
  letter-spacing:-.028em;
  max-width:24ch;
  margin-block:.3em .55em;
}
.tb-article>:is(h2,h3),
.tb-article .tb-prose-section>h2,
.essay-main .essay-body>h2,
.of-news-reader>h4,
.edition .stories>article>h2 {
  color:var(--tb-reading-ink,#072a5a);
  font:700 clamp(1.5rem,2.1vw,1.875rem)/1.24 var(--tb-reading-serif);
  letter-spacing:-.014em;
  max-width:36ch;
  margin-block:1.65em var(--of-reading-heading,.4em);
  padding-block-start:.65em;
  border-block-start:1px solid var(--tb-reading-border,#c7cec7);
  scroll-margin-top:6rem;
}
.tb-article .tb-prose-section>h3,
.essay-main .essay-body h3,
.edition .stories .values-reading h3 {
  font:650 1.0625rem/1.4 var(--tb-reading-sans);
  letter-spacing:0;
  margin-block:1.1em .35em;
}
.tb-prose-section+.tb-prose-section {
  margin-block-start:1.4rem;
}
.tb-prose-section>:first-child {
  margin-block-start:0;
}
.tb-article .tb-kicker,
.essay-main .essay-kicker {
  color:var(--tb-reading-muted,#59636e);
  font:650 .8125rem/1.4 var(--tb-reading-sans);
  letter-spacing:.07em;
  margin-block:0 .65rem;
}
.essay-main .essay-breadcrumb {
  font-size:.8125rem;
  margin-block-end:.9rem;
}
.essay-main .essay-deck,
.of-news-reader>.of-news-lead,
.edition>.article-hero .lead {
  max-width:65ch;
  font:400 1.1875rem/1.5 var(--tb-reading-sans);
  margin-block:0 1rem;
}
.tb-article>p:has(>em:only-child),
.essay-main .essay-meta,
.of-news-reader .of-news-dates,
.tb-article .note,
.tb-article>p[id^="source-"],
.tb-article .tb-publication {
  color:var(--tb-reading-muted,#59636e);
  font:400 .8125rem/1.45 var(--tb-reading-sans);
  max-width:80ch;
}
.tb-article>p:has(>em:only-child) em {
  font-style:normal;
}
.essay-main .essay-meta {
  margin-block-end:1.25rem;
}

/* The summary is an entrance to the text, not a second headline. */
.tb-article .tb-summary,
.essay-main .essay-summary,
.of-news-reader .tb-summary {
  box-sizing:border-box;
  max-width:68ch;
  clear:both;
  margin:1.2rem 0 1.6rem;
  padding:.9rem 1rem .7rem;
  border:1px solid var(--tb-reading-border,#c7cec7);
  border-inline-start:3px solid var(--tb-reading-ink,#072a5a);
  background:transparent;
  color:var(--tb-reading-ink,#072a5a);
  font:400 1rem/var(--of-reading-line,1.56) var(--tb-reading-sans);
}
.tb-article .tb-summary-label,
.essay-main .tb-summary-label,
.of-news-reader .tb-summary-label,
.essay-main .essay-summary>strong {
  display:block;
  max-width:none;
  margin:0 0 .6rem;
  padding:0;
  border:0;
  font:700 .8125rem/1.35 var(--tb-reading-sans);
  letter-spacing:.045em;
  text-transform:none;
  text-wrap:normal;
}
.tb-summary :is(p,ul,ol),
.essay-main .essay-summary p {
  max-width:none;
  margin-block:0 .5em;
  font-size:inherit;
}
.tb-summary :last-child,
.essay-main .essay-summary p:last-child {
  margin-block-end:0;
}

/* Preserve the image's complete composition and reserve its native ratio via
 * authored width/height attributes. No fixed-height object-fit:cover cropping. */
.tb-article .tb-cover {
  float:none;
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:34rem;
  clear:both;
  margin:1.25rem auto 1.5rem;
}
.essay-main .essay-cover {
  box-sizing:border-box;
  width:100%;
  max-width:64rem;
  margin:1.25rem auto 1.7rem;
  padding-inline:1rem;
}
.tb-article .tb-cover img,
.essay-main .essay-cover img,
.tb-media img,
.of-news-reader>.of-news-image img {
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:none;
  aspect-ratio:auto;
  object-fit:contain;
  border-radius:2px;
}
.tb-media {
  box-sizing:border-box;
  clear:both;
  width:100%;
  max-width:54rem;
  min-width:0;
  margin:1.8rem auto 2rem;
  padding:0;
  break-inside:avoid;
}
.tb-media--hero {
  max-width:64rem;
  margin-block:1.25rem 1.8rem;
}
.tb-media--inline {
  max-width:48rem;
}
.tb-media:has(img[width="500"]) {
  max-width:500px;
}
.tb-media:has(img[width="612"]) {
  max-width:612px;
}
.tb-media+ :is(h2,h3,h4) {
  margin-block-start:1.1em;
}
.tb-media figcaption,
.tb-media-caption,
.tb-article .tb-cover figcaption,
.essay-main .essay-cover figcaption,
.of-news-reader .of-news-image figcaption {
  color:var(--tb-reading-muted,#59636e);
  font:400 .8125rem/1.4 var(--tb-reading-sans);
  max-width:84ch;
  margin-block:.45rem 0;
  overflow-wrap:anywhere;
}
.tb-media figcaption p,
.tb-media .tb-media-caption,
.of-news-reader .of-news-image-caption {
  font-size:.8125rem!important;
  line-height:1.4!important;
  margin-block:0 .25rem!important;
}
.tb-media .tb-media-credit,
.tb-media .tb-media-changes,
.of-news-reader .of-news-image-credits {
  color:var(--tb-reading-muted,#59636e);
  font:400 .75rem/1.4 var(--tb-reading-sans);
  margin-block:.25rem 0;
  max-width:90ch;
  overflow-wrap:anywhere;
}
.tb-media-credit a,
.tb-media-caption a,
.tb-media-changes a {
  color:inherit;
  text-underline-offset:.18em;
}
.tb-media-caption>span {
  display:block;
}

/* Explicitly authored methodology / assessment blocks remain visible and
 * legible, but no longer read like an uninterrupted main-text screen. */
.of-news-reader>p.of-news-method,
.of-news-reader>p.of-news-analysis-note,
.tb-reading-note {
  max-width:76ch;
  margin-block:1rem;
  padding-inline-start:.85rem;
  border-inline-start:2px solid var(--tb-reading-border,#c7cec7);
  color:var(--tb-reading-muted,#59636e);
  font:400 .9375rem/1.5 var(--tb-reading-sans);
}
.tb-reading-note-label {
  display:block;
  margin-block-end:.3rem;
  font:650 .8125rem/1.4 var(--tb-reading-sans);
  color:var(--tb-reading-ink,#072a5a);
}
.tb-article .table-scroll {
  box-sizing:border-box;
  max-width:100%;
  overflow-x:auto;
}

/* Recommendation titles keep their own scale, separate from article titles. */
.page-journal .tb-feature h2 {
  font:700 clamp(1.45rem,2.3vw,2rem)/1.18 var(--tb-reading-serif);
  letter-spacing:-.015em;
  margin-block:.25rem .45rem;
}
.page-journal .of-news-card--lead h3 {
  font-size:clamp(1.65rem,2.5vw,2.3rem);
  line-height:1.16;
}
.page-journal .of-news-card--brief h3 {
  font-size:1.1875rem;
  line-height:1.22;
}
.page-journal .of-news-card--column h3,
.page-journal .news-card h3 {
  font-size:1.375rem;
  line-height:1.22;
}
.tb-main :is(a,button,summary):focus-visible,
.essay-main :is(a,button,summary):focus-visible,
.tb-media a:focus-visible {
  outline:3px solid var(--orangeink,#b8430f);
  outline-offset:4px;
}

@media(max-width:600px) {
  .tb-main {
    padding-inline:1rem;
    padding-block-start:1.1rem;
  }
  .tb-article,
  .essay-main .essay-body,
  .of-news-reader,
  .edition .stories>article {
    font-size:1.0625rem;
  }
  .tb-article>h1,
  .essay-main .essay-intro h1,
  .of-news-reader>h3,
  .edition>.article-hero h1 {
    max-width:100%;
    font-size:clamp(2rem,5.4vw,2.25rem);
    line-height:1.12;
    letter-spacing:-.024em;
    margin-block:.3em .6em;
  }
  .tb-article>:is(h2,h3),
  .tb-article .tb-prose-section>h2,
  .essay-main .essay-body>h2,
  .of-news-reader>h4,
  .edition .stories>article>h2 {
    max-width:100%;
    font-size:1.5rem;
    line-height:1.25;
    margin-block-start:1.45em;
    padding-block-start:.6em;
  }
  .tb-article .tb-summary-label,
  .essay-main .tb-summary-label,
  .of-news-reader .tb-summary-label {
    margin-block:0 .55rem;
    padding:0;
    font-size:.8125rem;
    line-height:1.35;
  }
  .tb-article .tb-summary,
  .essay-main .essay-summary,
  .of-news-reader .tb-summary {
    padding:.8rem .85rem;
    margin-block:1rem 1.35rem;
    font-size:1rem;
  }
  .essay-main .essay-deck,
  .of-news-reader>.of-news-lead,
  .edition>.article-hero .lead {
    font-size:1.125rem;
  }
  .tb-article .tb-cover,
  .tb-media,
  .tb-media--hero,
  .tb-media--inline {
    float:none;
    width:100%;
    max-width:100%;
    margin-inline:0;
  }
  .tb-article .tb-cover,
  .tb-media--hero {
    margin-block:1.05rem 1.35rem;
  }
  .tb-media--inline {
    margin-block:1.5rem 1.65rem;
  }
  .page-journal .tb-feature h2 {
    font-size:1.45rem;
  }
}
@media(forced-colors:active) {
  .tb-summary,
  .essay-main .essay-summary,
  .tb-reading-note,
  .of-news-reader>p.of-news-method,
  .of-news-reader>p.of-news-analysis-note {
    border-color:CanvasText;
  }
  .tb-media a:focus-visible {
    outline-color:Highlight;
  }
}
@media print {
  .tb-article,
  .essay-main .essay-body,
  .of-news-reader,
  .edition .stories>article {
    font-size:11pt;
  }
  .tb-article .tb-cover {
    max-width:15rem;
  }
  .tb-media {
    max-width:34rem;
    margin-block:1rem;
  }
  .tb-media img {
    max-height:20rem;
    object-fit:contain;
  }
}


/* Compact credits, full-width mobile photographs and optional reflection. */
.tb-media figcaption,
.of-news-reader .of-news-image figcaption { font:400 .75rem/1.4 var(--tb-reading-sans); color:var(--muted,#59636e); }
.tb-media figcaption :is(p,.tb-media-caption,.tb-media-credit,.tb-media-changes),
.of-news-reader .of-news-image :is(.of-news-image-caption,.of-news-image-credits) {
  font-size:.75rem!important; font-weight:400; line-height:1.4!important; margin-block:.2rem;
}
.tb-media-info { margin-top:.2rem; font-size:.75rem; }
.tb-media-info summary { cursor:pointer; padding-block:.3rem; }
.of-question-option {
  display:block; width:100%; text-align:left; min-height:44px; padding:.55rem .7rem;
  border:1px solid #c7cec7; border-radius:6px; background:transparent; color:inherit;
  font:inherit; cursor:pointer; margin:.35rem 0;
}
.of-question-option[aria-pressed="true"] { background:#edf3e8; border-color:#214c3c; box-shadow:inset 4px 0 #214c3c; font-weight:650; }
.of-question-option[aria-pressed="true"]::before { content:"✓ "; }
.of-news-questions ul { list-style:none; padding-inline-start:0; }
.of-question-explore { display:inline-block; margin-block:.5rem; font-size:.85rem; }
.of-emotion-panel { border-block:1px solid #c7cec7; margin-block:1.5rem; padding-block:.65rem; }
.of-emotion-panel>summary { cursor:pointer; min-height:44px; font-weight:650; padding-block:.45rem; }
.of-emotion-frame { display:block; width:100%; border:0; background:#f8f4ec; }
:is(.of-question-option,.of-question-explore,.of-emotion-panel>summary):focus-visible { outline:3px solid #b8430f; outline-offset:3px; }
@media(max-width:640px) {
  .of-news-reader>.of-news-image,
  .of-news-reader>.tb-media,
  .tb-article>.tb-cover,
  .tb-article>.tb-media,
  .tb-article .tb-prose-section>.tb-media,
  .essay-main .essay-cover,
  .essay-main .essay-body>.tb-media {
    width:calc(100% + 2rem); max-width:none; margin-inline:-1rem; padding-inline:0;
  }
  .of-news-reader>.of-news-image img,
  .of-news-reader>.tb-media img,
  .tb-article :is(.tb-cover,.tb-media) img,
  .essay-main :is(.essay-cover,.tb-media) img { border-radius:0; }
  .of-news-reader :is(.of-news-image,.tb-media)>figcaption,
  .tb-article :is(.tb-cover,.tb-media)>figcaption,
  .essay-main :is(.essay-cover,.tb-media)>figcaption { padding-inline:1rem; }
}

/* OpenFocus image metadata v1: image roles only; body/legal/UI small are excluded. */
:root{--of-image-caption-size:11px;--of-image-caption-leading:1.28;--of-image-detail-size:10.5px;--of-image-detail-leading:1.28;--of-image-summary-size:11px}
@media screen {
html:root:root body :is(figure:not(.wage-graphic)>figcaption,.diagram-caption,.hero-media .sample-caption,.of-media-info-visible){font-size:var(--of-image-caption-size)!important;line-height:var(--of-image-caption-leading)!important;margin-block-start:4px!important;margin-block-end:0!important;padding-block:0!important}
html:root:root body :is(figure:not(.wage-graphic)>figcaption,.diagram-caption,.hero-media .sample-caption,.of-media-info-visible) :is(p,a,span,small,em,strong,b,cite,dt,dd){font-size:inherit!important;line-height:inherit!important;margin-block:2px!important}
html:root:root body :is(figure:not(.wage-graphic)>figcaption,.of-media-info-visible) :is(.tb-media-credit,.tb-media-changes,.of-news-image-credits,.of-article-credit,.mfi-credit,.of-media-info-credit){font-size:10px!important;line-height:1.28!important}
html:root:root body :is(.rs-photo>details,.water-photo>details,.analysis-cover>details,.memi-photo>details,.launch-cover>details,.ai-photo>details,.ai-lesson-card>details,.essay-cover>details,.photo-details,.tb-media-info,.of-news-image-credit,.of-recommendation-media-info,.of-media-info-details,.mfi-image-info){font-size:var(--of-image-detail-size)!important;line-height:var(--of-image-detail-leading)!important;margin-block:3px 0!important;padding-block:0!important}
html:root:root body :is(.rs-photo>details,.water-photo>details,.analysis-cover>details,.memi-photo>details,.launch-cover>details,.ai-photo>details,.ai-lesson-card>details,.essay-cover>details,.photo-details,.tb-media-info,.of-news-image-credit,.of-recommendation-media-info,.of-media-info-details,.mfi-image-info) :is(p,a,span,small,em,strong,b,cite,dt,dd,li){font-size:inherit!important;line-height:inherit!important;margin-block:3px!important}
html:root:root body :is(.rs-photo>details,.water-photo>details,.analysis-cover>details,.memi-photo>details,.launch-cover>details,.ai-photo>details,.ai-lesson-card>details,.essay-cover>details,.photo-details,.tb-media-info,.of-news-image-credit,.of-recommendation-media-info,.of-media-info-details,.mfi-image-info)>summary{font-size:var(--of-image-summary-size)!important;line-height:1.25!important;font-weight:500!important;min-height:24px!important;box-sizing:border-box;display:list-item;padding-block:3px!important;margin-block:0!important;cursor:pointer}
html:root:root body :is(.of-media-info-list){gap:3px 10px!important;margin-block:4px!important}
html:root:root body :is(.mfi-image-info,.of-news-image-credit){--of-image-detail-size:10px;--of-image-summary-size:10px}
}

/* Optional article blocks: reused from the self-control essay's reading rhythm. */
.memi-prose .tb-prose-section+.tb-prose-section{margin-block-start:2.4rem}
.memi-prose .tb-prose-section>h2{padding-block-start:.65rem;border-top:1px solid #d2d8d0;text-wrap:balance}
.memi-prose .tb-article-tasks{padding-inline-start:1.3em;margin-block:1rem 1.5rem}
.memi-prose .tb-article-tasks>li{padding-inline-start:.2em;margin-block:.65em}
.tb-pullquote{box-sizing:border-box;margin:1.8rem 0;padding:1.25rem 1.3rem;border-left:5px solid #12645a;background:#e7eee8;color:#123d3a;font:600 clamp(1.16rem,2.5vw,1.6rem)/1.4 "Segoe UI",Arial,sans-serif;overflow-wrap:break-word}
.memi-prose .tb-pullquote>p{margin:0;font:inherit}
@media(max-width:600px){.memi-prose .tb-prose-section .memi-table caption{display:block;width:100%;box-sizing:border-box}.tb-pullquote{padding:1.05rem 1rem}.memi-prose .tb-prose-section+.tb-prose-section{margin-block-start:2rem}}
