/* Tamiyouz Phase 24: editorial reading refinements. Article scope only. */
#tyz-premium-article {
  --tyz24-readable-width: 790px;
  --tyz24-font-size: 18px;
  --tyz24-border: rgba(158,117,55,.23);
}
html[data-tyz-theme="dark"] #tyz-premium-article {
  --tyz24-border: rgba(226,189,126,.24);
}
#tyz-premium-article .tyz-pa-hero h1 {
  text-wrap: balance;
  letter-spacing: -.025em;
}
#tyz-premium-article .tyz-pa-hero__excerpt,
#tyz-premium-article .tyz-pa-article-intro p {
  text-wrap: pretty;
}
#tyz-premium-article .tyz-pa-reading-column {
  min-width: 0;
  max-width: 100%;
}
#tyz-premium-article .tyz-pa-prose {
  font-size: var(--tyz24-font-size);
  line-height: 2.08;
  max-width: var(--tyz24-readable-width);
  letter-spacing: .003em;
}
html[lang^="en"] #tyz-premium-article .tyz-pa-prose {
  line-height: 1.9;
  letter-spacing: .005em;
}
#tyz-premium-article .tyz-pa-prose p,
#tyz-premium-article .tyz-pa-prose li {
  font-size: inherit;
  line-height: inherit;
  text-wrap: pretty;
}
#tyz-premium-article .tyz-pa-prose :is(h2,h3) {
  text-wrap: balance;
  scroll-margin-top: 155px;
}
#tyz-premium-article .tyz-pa-prose h2 {
  padding-block-end: 12px;
  border-bottom: 1px solid var(--pa-line);
}
#tyz-premium-article .tyz-pa-prose blockquote {
  border-inline-start-width: 4px;
  background: linear-gradient(115deg, rgba(206,155,83,.09), transparent 75%),var(--pa-soft);
}
#tyz-premium-article .tyz-pa-prose :is(figure,pre,.wp-block-table,.wp-block-image) {
  max-width: 100%;
}
#tyz-premium-article .tyz-pa-prose :is(iframe,video,embed) {
  max-width:100%;
}
#tyz-premium-article .tyz-pa-prose :is(figure img,img) {
  box-shadow: 0 14px 40px rgba(13,30,51,.09);
}
#tyz-premium-article .tyz-pa-prose :is(table,.wp-block-table) {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}
#tyz-premium-article .tyz-pa-prose :is(code,kbd) {
  overflow-wrap: anywhere;
}
#tyz-premium-article .tyz-pa-toc a.is-active {
  border-inline-start: 2px solid var(--pa-gold);
}
#tyz-premium-article .tyz24-toolbar {
  display: flex;
  position: sticky;
  top: 82px;
  z-index: 20;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 15px;
  margin: 0 0 31px;
  border: 1px solid var(--tyz24-border);
  border-radius: 17px;
  color: var(--pa-ink);
  background: var(--pa-soft);
  box-shadow: 0 12px 42px rgba(21,35,50,.075);
  backdrop-filter: blur(18px);
}
#tyz-premium-article .tyz24-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-inline-end: auto;
  min-width: 110px;
}
#tyz-premium-article .tyz24-label strong {
  font-size: 12px;
  font-weight: 900;
}
#tyz-premium-article .tyz24-remaining {
  font-size: 11px;
  color: var(--pa-muted);
  font-variant-numeric: tabular-nums;
}
#tyz-premium-article .tyz24-actions {
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 7px;
}
#tyz-premium-article .tyz24-action {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--pa-line);
  background: var(--pa-bg);
  border-radius: 11px;
  padding: 9px 12px;
  color: var(--pa-ink);
  font-size: 13px; font-weight: 800; line-height: 1.2;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
#tyz-premium-article .tyz24-action:hover,
#tyz-premium-article .tyz24-action[aria-pressed="true"] {
  color: var(--pa-gold);
  border-color: var(--pa-gold);
  background: rgba(198,145,67,.11);
}
#tyz-premium-article .tyz24-action:focus-visible,
#tyz-premium-article :is(a,button):focus-visible {
  outline: 2px solid var(--pa-gold-strong);
  outline-offset: 3px;
}
#tyz-premium-article.tyz24-focus .tyz-pa-content-layout,
html[lang^="en"] #tyz-premium-article.tyz24-focus .tyz-pa-content-layout {
  grid-template-columns: minmax(0,1fr);
  grid-template-areas: "content";
  justify-items:center;
  gap:0;
}
#tyz-premium-article.tyz24-focus .tyz-pa-aside { display: none; }
#tyz-premium-article.tyz24-focus .tyz-pa-reading-column {
  width: min(100%, 850px);
}
#tyz-premium-article.tyz24-focus .tyz-pa-prose {
  margin-inline: auto;
}
#tyz-premium-article.tyz24-focus .tyz-pa-content-section {
  background: var(--pa-soft);
}
#tyz-premium-article.tyz24-focus .tyz24-toolbar {
  border-color: var(--pa-gold);
}
@media (max-width:760px) {
  #tyz-premium-article .tyz-pa-prose {font-size: var(--tyz24-font-size);}
  #tyz-premium-article .tyz24-toolbar {position:relative;top:auto;margin-bottom:23px;padding:12px;}
  #tyz-premium-article .tyz24-label {min-width:105px;}
  #tyz-premium-article .tyz24-actions {gap:5px;}
  #tyz-premium-article .tyz24-action {min-height:44px;min-width:44px;}
  #tyz-premium-article .tyz-pa-prose :is(h2,h3) {scroll-margin-top:90px;}
}
@media (max-width:420px) {
  #tyz-premium-article .tyz24-toolbar {gap:8px;}
  #tyz-premium-article .tyz24-actions {width:100%;}
  #tyz-premium-article .tyz24-action:last-child {margin-inline-start:auto;}
}
@media (prefers-reduced-motion:reduce) {
  #tyz-premium-article .tyz24-action {transition:none;}
}
