/* UniAdviser single article (amara design/single.html, 0.7.0). Base rules ported from design/assets/site.css; TOC, takeaways,
   share, CTA, post nav and Elementor clean-up added. Buttons/icons follow ui.css (0.6.0). Logical properties only (RTL). */

.ua-single { padding-block-end: var(--ua-section); }
.ua-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; background: var(--ua-amber); transform-origin: right; transform: scaleX(0); pointer-events: none; }

/* ---------- 0.9.0 article hero band (amara article-redesign-spec 3) ---------- */
.ua-ahero { position: relative; overflow: hidden; isolation: isolate; background: var(--ua-ink-2); color: var(--ua-on-ink); padding-block: 32px; }
.ua-ahero::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -80px; top: -60px; width: 320px; height: 320px; border: 2px solid var(--ua-amber); opacity: .14; transform: rotate(45deg); pointer-events: none; }
.ua-ahero__in { display: grid; gap: var(--ua-s-6); }
.ua-ahero__text { min-width: 0; }
.ua-ahero .ua-crumbs { margin: 0 0 16px; font-size: var(--ua-fs-xs); color: var(--ua-on-ink-muted); }
.ua-ahero .ua-crumbs a { color: var(--ua-on-ink-muted); }
.ua-ahero .ua-crumbs a:hover { color: var(--ua-on-ink); }
.ua-ahero .ua-crumbs li[aria-current] { color: var(--ua-on-ink); }
.ua-ahero .ua-crumbs li + li::before { color: inherit; opacity: .4; }
.ua-ahero__pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin-bottom: 16px; border-radius: var(--ua-r-pill); background: var(--ua-amber); color: var(--ua-ink); font: 600 13px/1 var(--ua-font); text-decoration: none; transition: background var(--ua-dur-1); }
.ua-ahero__pill::before { content: ""; width: 6px; height: 6px; background: var(--ua-ink); transform: rotate(45deg); flex: none; }
.ua-ahero__pill:hover { background: var(--ua-amber-soft); color: var(--ua-ink); }
.ua-ahero h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.3; max-width: 22ch; margin: 0; color: var(--ua-on-ink); text-wrap: balance; }
.ua-ahero .ua-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; font-size: var(--ua-fs-sm); color: var(--ua-on-ink-muted); }
.ua-ahero .ua-meta + .ua-meta::before { content: "·"; opacity: .5; margin-inline-end: 16px; }
.ua-ahero .ua-meta { gap: 0; }
.ua-ahero .ua-meta--author { gap: 8px; }
.ua-ahero .ua-meta a { color: var(--ua-on-ink); font-weight: 600; }
.ua-author__av { inline-size: 32px; block-size: 32px; border-radius: 50%; background: var(--ua-amber-soft); color: var(--ua-ink); font: 600 13px/32px var(--ua-font); text-align: center; flex: none; }
/* image: 16/10 inside the band on mobile, 4/3 from 768 */
.ua-ahero__media { position: relative; isolation: isolate; min-width: 0; }
.ua-ahero .ua-article__hero { position: relative; margin: 0; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; max-height: none; background: var(--ua-ink-3); box-shadow: var(--ua-shadow-2); }
.ua-ahero .ua-article__hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
/* mobile breadcrumb: only the parent link with a back arrow */
@media (max-width: 767px) {
  .ua-ahero .ua-crumbs li:not(.is-parent) { display: none; }
  .ua-ahero .ua-crumbs li.is-parent::before { content: "→"; opacity: 1; margin-inline-end: .4rem; }
  .ua-ahero .ua-crumbs li.is-parent a { display: inline-flex; align-items: center; min-height: 44px; }
  .ua-ahero .ua-crumbs { margin-bottom: 4px; }
}
@media (min-width: 768px) {
  .ua-ahero { padding-block: 48px; }
  .ua-ahero .ua-article__hero { aspect-ratio: 4 / 3; }
  .ua-ahero__media { max-width: 680px; width: 100%; margin-inline: auto; }
}
/* desktop: 2 columns, image hangs 64px into the paper with an amber offset frame. The band box keeps the
   overhang (ink stops 64px + 32px above the box end) so overflow:hidden can still clip the rhombus. */
@media (min-width: 1024px) {
  .ua-ahero { padding-block: 64px 32px; background: linear-gradient(to bottom, var(--ua-ink-2) calc(100% - 96px), transparent 0); }
  .ua-ahero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .ua-ahero__text { margin-block-end: 128px; }
  .ua-ahero__media { max-width: none; margin: 0; }
  .ua-ahero__media::before { content: ""; position: absolute; z-index: -1; inset-block: 16px -16px; inset-inline: 16px -16px; border: 2px solid var(--ua-amber); border-radius: var(--ua-r-lg); pointer-events: none; }
  .ua-ahero .ua-article__hero { border-radius: var(--ua-r-lg); }
}
/* no featured image: one column, bigger rhombus, no empty box */
.ua-ahero--noimg { padding-block-end: 48px; background: var(--ua-ink-2); }
.ua-ahero--noimg h1 { max-width: 26ch; }
.ua-ahero--noimg::after { width: 480px; height: 480px; opacity: .18; top: -90px; inset-inline-end: -140px; }
@media (max-width: 767px) { .ua-ahero--noimg::after { width: 260px; height: 260px; top: -60px; inset-inline-end: -120px; } }
@media (min-width: 1024px) {
  .ua-ahero--noimg { padding-block: 64px; background: var(--ua-ink-2); }
  .ua-ahero--noimg .ua-ahero__in { grid-template-columns: minmax(0, 1fr); }
  .ua-ahero--noimg .ua-ahero__text { margin-block-end: 0; }
}

/* ---------- layout: TOC column + body ---------- */
/* 0.8.2 (QA H3): body first = start (right in RTL), sidebar (TOC + help panel) second = end, per design single.html.
   Below 1024px the aside dissolves: TOC above the body, help panel below it. */
/* 0.8.3 (QA 10c) kept in 0.9.0: the grid starts below the hero in normal flow, no negative margins / z-index on
   the grid. From 1024 the hero box already holds the 64px image overhang + 32px, so 16px more = 48px image->aside
   (spec: 112px from the end of the ink). Sticky offset clears the header and the WP admin bar. */
.ua-article__hero { position: static; transform: none; }
.ua-article__layout { display: grid; gap: var(--ua-s-5); padding-block: 0; margin-block-start: 32px; clear: both; }
@media (min-width: 1024px) { .ua-article__layout { margin-block-start: 16px; } .ua-ahero--noimg + .ua-article__layout { margin-block-start: 64px; } }
.ua-article__main { min-width: 0; max-width: 760px; display: grid; gap: var(--ua-s-5); }
.ua-aside { display: contents; }
.ua-aside .ua-toc { order: -1; }
@media (min-width: 1024px) {
  .ua-article__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
  .ua-aside { display: grid; gap: var(--ua-s-5); align-content: start; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ua-header-h) + 1.25rem); max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--ua-header-h) - 2.5rem); overflow: auto; }
}
.ua-panel { background: var(--ua-white); border-radius: var(--ua-r-lg); box-shadow: var(--ua-shadow-1); padding: 1.25rem; display: grid; gap: .75rem; }
.ua-panel h2 { font-size: var(--ua-fs-md); margin: 0; }
.ua-panel p { margin: 0; font-size: var(--ua-fs-sm); }
.ua-panel--ink { background: var(--ua-ink-2, var(--ua-ink)); color: var(--ua-on-ink); }
.ua-panel--ink h2 { color: var(--ua-on-ink); }
.ua-panel--ink p { color: var(--ua-on-ink-muted); }
.ua-panel--ink .ua-link { color: var(--ua-on-ink); font-size: var(--ua-fs-sm); }

/* ---------- TOC ---------- */
.ua-toc { background: var(--ua-white); border-radius: var(--ua-r-md); box-shadow: var(--ua-shadow-1); padding: .25rem 1rem; }
.ua-toc summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .5rem; font-weight: var(--ua-fw-semibold); list-style: none; }
.ua-toc summary::-webkit-details-marker { display: none; }
.ua-toc summary::after { content: "\f107" / ""; font: var(--fa-font-solid, 900 1em "Font Awesome 7 Free"); font-weight: 900; margin-inline-start: auto; transition: transform var(--ua-dur-1); }
.ua-toc[open] summary::after { transform: rotate(180deg); }
.ua-toc ol { list-style: none; margin: 0; padding: 0 0 .75rem; display: grid; gap: .1rem; font-size: var(--ua-fs-sm); }
.ua-toc a { display: block; padding: .4rem .6rem; border-inline-start: 2px solid var(--ua-line); color: var(--ua-muted); text-decoration: none; line-height: 1.5; }
.ua-toc a:hover, .ua-toc a.is-active { color: var(--ua-ink); border-inline-start-color: var(--ua-amber); background: var(--ua-amber-soft); }
.ua-toc__l3 a { padding-inline-start: 1.4rem; font-size: .95em; }

/* ---------- takeaways ---------- */
.ua-takeaways { background: var(--ua-amber-soft); border-inline-start: 4px solid var(--ua-amber); border-radius: var(--ua-r-md); padding: 1rem 1.25rem; }
.ua-takeaways h2 { font-size: var(--ua-fs-md); margin: 0 0 .5rem; display: flex; gap: .5rem; align-items: center; }
.ua-takeaways ul { list-style: disc; padding-inline-start: 1.3em; margin: 0; display: grid; gap: .35rem; }

/* ---------- body (0.9.0, article spec 5): 18px/1.9, 720px measure ---------- */
.ua-prose { max-width: 720px; font-size: 1.0625rem; line-height: 1.85; color: var(--ua-text); overflow-wrap: anywhere; }
@media (min-width: 768px) { .ua-prose { font-size: 1.125rem; line-height: 1.9; } }
.ua-prose > :first-child { margin-top: 0; }
.ua-prose p { margin: 0 0 1.25em; }
.ua-prose > p:first-child { font-size: var(--ua-fs-md); font-weight: 500; color: var(--ua-ink); margin-bottom: 1.5em; }
.ua-prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 700; line-height: 1.3; color: var(--ua-ink); margin: 48px 0 16px; padding-inline-start: 16px; border-inline-start: 4px solid var(--ua-amber); scroll-margin-top: calc(var(--ua-header-h) + 24px); }
.ua-prose h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; color: var(--ua-ink); margin: 32px 0 12px; scroll-margin-top: calc(var(--ua-header-h) + 24px); }
.ua-prose h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--ua-amber); transform: rotate(45deg); margin-inline-end: 10px; vertical-align: .15em; }
.ua-prose h4 { font-size: 1.0625rem; font-weight: 600; color: var(--ua-muted); margin: 24px 0 8px; }
@media (max-width: 767px) { .ua-prose h2 { margin-top: 32px; } }
.ua-prose a:not(.ua-btn) { color: var(--ua-ink); font-weight: 500; text-decoration: underline 2px var(--ua-amber); text-underline-offset: 5px; transition: background var(--ua-dur-1); }
.ua-prose a:not(.ua-btn):hover { background: var(--ua-amber-soft); }
.ua-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.ua-prose figure { margin: 32px 0; }
.ua-prose figure img { width: 100%; }
.ua-prose figcaption { font-size: 13px; color: var(--ua-muted); text-align: center; margin-top: 8px; }
.ua-prose hr { border: 0; border-top: 1px solid var(--ua-line); margin: 48px 0; }

/* lists: amber rhombus marker (logo motif) */
.ua-prose ul:not(.ua-share):not(.elementor-icon-list-items) { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ua-prose ul:not(.ua-share):not(.elementor-icon-list-items) > li { position: relative; padding-inline-start: 32px; margin-block: 12px; }
.ua-prose ul:not(.ua-share):not(.elementor-icon-list-items) > li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .7em; width: 10px; height: 10px; background: var(--ua-amber); transform: rotate(45deg); }
.ua-prose ul ul > li::before { width: 8px !important; height: 8px !important; background: transparent !important; border: 2px solid var(--ua-amber); box-sizing: border-box; }
.ua-prose ul > li:has(> svg) { padding-inline-start: 0 !important; }
.ua-prose ul > li:has(> svg)::before { display: none; }
/* lists that open the post (b21/b34): first item is the lead */
.ua-prose > ul:first-child > li:first-child { font-size: 19px; font-weight: 500; color: var(--ua-ink); padding-inline-start: 0; margin: 0 0 16px; }
.ua-prose > ul:first-child > li:first-child::before { display: none; }
/* long lists (5+ items) become a white card */
.ua-prose > ul:not(.ua-share):has(> li:nth-child(5)) { background: var(--ua-white); border: 1px solid var(--ua-line); border-radius: var(--ua-r-md); padding: 24px 28px; box-shadow: var(--ua-shadow-1); }
.ua-prose > ul:has(> li:nth-child(5)) > li { margin: 0; padding-block: 12px; border-top: 1px solid var(--ua-line); }
.ua-prose > ul:has(> li:nth-child(5)) > li:first-child { border-top: 0; padding-block-start: 0; }
.ua-prose > ul:has(> li:nth-child(5)) > li::before { top: calc(12px + .7em); }
.ua-prose > ul:has(> li:nth-child(5)) > li:first-child::before { top: .7em; }
@media (max-width: 767px) { .ua-prose > ul:not(.ua-share):has(> li:nth-child(5)) { padding: 16px 18px; } }
/* a paragraph / item holding only a link = "read more" row */
.ua-prose li:has(> a:only-child), .ua-prose p:has(> a:only-child) { margin-top: 24px; padding: 16px 20px !important; background: var(--ua-white); border: 1px solid var(--ua-line) !important; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.ua-prose li:has(> a:only-child)::before { display: none; }
.ua-prose li:has(> a:only-child)::after, .ua-prose p:has(> a:only-child)::after { content: "←"; color: var(--ua-amber-text); font-weight: 700; margin-inline-start: auto; }
.ua-prose > ul:has(> li:nth-child(5)) > li:has(> a:only-child) { margin-top: 12px; }
/* ordered lists + typed numbers: 28px ink circle with amber digits */
.ua-prose ol { counter-reset: ua; list-style: none; padding: 0; margin: 0 0 1.5em; }
.ua-prose ol > li { counter-increment: ua; position: relative; padding-inline-start: 44px; margin-block: 16px; }
.ua-prose ol > li::before { content: counter(ua, decimal); }
.ua-prose ol > li::before, .ua-prose .ua-num { position: absolute; inset-inline-start: 0; top: .25em; width: 28px; height: 28px; border-radius: 50%; background: var(--ua-ink); color: var(--ua-amber); font: 600 14px/28px var(--ua-font); text-align: center; }
.ua-prose ul.is-numbered > li:has(> .ua-num) { padding-inline-start: 44px; }
.ua-prose ul.is-numbered > li:has(> .ua-num)::before { display: none; }
.ua-prose > ul.is-numbered:has(> li:nth-child(5)) > li > .ua-num { top: calc(12px + .25em); }
.ua-num__dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* tables (template wraps them in .ua-table) */
.ua-table { position: relative; overflow-x: auto; margin: 32px 0; border: 1px solid var(--ua-line); border-radius: 12px; background: var(--ua-white); }
.ua-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.ua-prose th { background: var(--ua-ink); color: var(--ua-on-ink); font-weight: 600; text-align: start; padding: 12px 16px; }
.ua-prose td { padding: 12px 16px; border-top: 1px solid var(--ua-line); text-align: start; vertical-align: top; }
.ua-prose tr:nth-child(even) td { background: var(--ua-paper); }
@media (max-width: 767px) {
  .ua-prose table { min-width: 560px; }
  /* scroll hint: fade on the left (inline-end) edge while more content is off screen */
  .ua-table { background: linear-gradient(to right, var(--ua-white) 30%, transparent) left / 24px 100% no-repeat local, linear-gradient(to right, rgb(0 0 0 / .08), transparent) left / 24px 100% no-repeat scroll, var(--ua-white); }
}

/* blockquote */
.ua-prose blockquote { position: relative; margin: 48px 0; padding: 24px 28px 24px 24px; background: var(--ua-white); border-inline-start: 4px solid var(--ua-amber); border-radius: 12px; border-start-start-radius: 0; border-end-start-radius: 0; font-size: var(--ua-fs-md); font-weight: 500; color: var(--ua-ink); line-height: 1.7; }
.ua-prose blockquote::before { content: "”"; position: absolute; inset-inline-end: 16px; top: 8px; font: 700 64px/1 var(--ua-font); color: var(--ua-amber); opacity: .5; }
.ua-prose blockquote p { margin: 0; }
.ua-prose blockquote cite { display: block; font-size: 13px; font-style: normal; color: var(--ua-muted); margin-top: 12px; }

/* callout */
.ua-prose :is(.ua-callout, p.has-background, .wp-block-group.is-style-callout) { position: relative; margin: 32px 0; padding: 16px 20px; padding-inline-start: 52px; background: var(--ua-amber-soft); color: var(--ua-ink); border-inline-start: 4px solid var(--ua-amber); border-radius: 12px; font-size: 1rem; line-height: 1.75; }
.ua-prose :is(.ua-callout, p.has-background, .wp-block-group.is-style-callout)::before { content: ""; position: absolute; inset-inline-start: 18px; top: 18px; width: 20px; height: 20px; background: var(--ua-amber-text); -webkit-mask: var(--ua-i-info) center / contain no-repeat; mask: var(--ua-i-info) center / contain no-repeat; }
.ua-prose { --ua-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E"); }
.ua-prose .ua-callout--info { background: var(--ua-info-bg); border-inline-start-color: var(--ua-info); }
.ua-prose .ua-callout--info::before { background: var(--ua-info); }
.ua-prose .ua-callout--warn { background: var(--ua-danger-bg); border-inline-start-color: var(--ua-danger); }
.ua-prose .ua-callout--warn::before { background: var(--ua-danger); }
.ua-prose :is(.ua-callout, .wp-block-group.is-style-callout) > :last-child { margin-bottom: 0; }

.ua-prose [lang="de"], .ua-prose .ua-de { direction: ltr; unicode-bidi: isolate; font-weight: 500; padding: 0 4px; border-radius: 4px; }
.ua-prose details { background: var(--ua-white); border-radius: var(--ua-r-md); padding: .5rem 1rem; box-shadow: var(--ua-shadow-1); margin: 0 0 1.25em; }
.ua-prose summary { cursor: pointer; font-weight: var(--ua-fw-semibold); min-height: 40px; display: flex; align-items: center; }

/* Elementor leftovers: neutralise wrappers/grid, keep icon lists readable. */
.ua-prose :is(.elementor, .elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap, .elementor-element, .elementor-widget-container, .e-con, .e-con-inner) { display: block; width: auto !important; max-width: none; margin: 0; padding: 0; min-height: 0; background: none; }
.ua-prose :is(.elementor-element, .elementor-widget) + :is(.elementor-element, .elementor-widget) { margin-top: 1.1rem; }
.ua-prose .elementor-icon-list-items { list-style: none; padding: 0; margin-block: 1rem; display: grid; gap: .5rem; }
.ua-prose .elementor-icon-list-item { display: flex; gap: .6rem; align-items: baseline; margin: 0; padding: 0; }
.ua-prose .elementor-icon-list-icon { flex: none; inline-size: 1em; color: var(--ua-amber); }
.ua-prose ul > li > svg, .ua-prose .elementor-icon-list-icon svg { width: .8em; height: .8em; fill: var(--ua-amber); flex: none; }
.ua-prose ul:has(> li > svg) { list-style: none; padding-inline-start: 0; }
.ua-prose ul > li:has(> svg) { display: flex; gap: .6rem; align-items: baseline; }
.ua-prose ul > li:has(> svg) > svg { transform: scaleX(-1); position: relative; top: .1em; }
.ua-prose :is(.elementor-spacer, .elementor-divider, .elementor-widget-spacer, .elementor-widget-divider):empty, .ua-prose p:empty { display: none; }
.ua-prose .elementor-heading-title { margin: 0; font-size: inherit; }

/* ---------- 0.9.1 sidebar (amara article-redesign-spec 6): sticky 320px column, TOC (2+ H2 only), help card, share ---------- */
.ua-toc { background: var(--ua-white); border: 1px solid var(--ua-line); border-radius: 12px; box-shadow: none; padding: 8px 24px; }
@media (min-width: 1024px) { .ua-toc { padding: 20px 24px; } .ua-toc summary { min-height: 0; margin-bottom: 12px; font-size: 13px; color: var(--ua-muted); } .ua-toc summary::after, .ua-toc summary .ua-ico { display: none; } }
.ua-toc a { padding: 6px 0; padding-inline-start: 14px; font-size: 15px; background: none; }
.ua-toc a:hover, .ua-toc a.is-active { background: none; font-weight: 600; }
/* help card: desktop only (the CTA band below covers mobile/tablet -> one help CTA per viewport) */
.ua-help { display: none; }
@media (min-width: 1024px) {
  .ua-aside { gap: 24px; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ua-header-h) + 24px); max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--ua-header-h) - 48px); }
  .ua-help { display: grid; gap: 0; position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 28px 24px; border-top: 4px solid var(--ua-amber); box-shadow: none; }
  .ua-help::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -56px; bottom: -56px; width: 160px; height: 160px; border: 2px solid var(--ua-amber); opacity: .12; transform: rotate(45deg); pointer-events: none; }
  .ua-help h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
  .ua-help p { font-size: 15px; line-height: 1.7; margin: 8px 0 20px; }
  .ua-help .ua-btn--wa { min-height: 48px; }
  .ua-help .ua-panel__more { margin-top: 12px; justify-self: start; color: var(--ua-amber); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
}

/* share: 40px circular icon buttons (44px on mobile, one non-wrapping row) */
.ua-share { display: grid; gap: 8px; min-width: 0; }
.ua-share__l { font-size: 13px; font-weight: 600; color: var(--ua-muted); }
.ua-share__row { display: flex; gap: 8px; }
.ua-share__b { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--ua-line); background: var(--ua-white); color: var(--ua-ink); cursor: pointer; font: inherit; text-decoration: none; transition: background var(--ua-dur-1), border-color var(--ua-dur-1); }
.ua-share__b .ua-ico { font-size: 18px; width: auto; }
.ua-share__b:hover { background: var(--ua-amber-soft); border-color: var(--ua-amber); }
.ua-share__b--wa .ua-ico { color: #1A8F48; } .ua-share__b--tg .ua-ico { color: #1C7EAE; } .ua-share__b--fb .ua-ico { color: #1877F2; }
.ua-share__b.is-copied { background: var(--ua-amber-soft); border-color: var(--ua-amber); }
@media (max-width: 1023px) {
  .ua-share { padding-top: 16px; border-top: 1px solid var(--ua-line); }
  .ua-article__layout .ua-share { max-width: 720px; }
  .ua-share__row { overflow-x: auto; scrollbar-width: none; }
  .ua-share__row::-webkit-scrollbar { display: none; }
  .ua-share__b { width: 44px; height: 44px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .ua-article__layout .ua-share { width: 100%; max-width: 680px; margin-inline: auto; } }

/* ---------- 0.9.1 CTA band (spec 7): after the article grid, full 1200px, ink + rhombus decoration ---------- */
.ua-wrap12 { width: min(100% - 2 * var(--ua-gutter), 1200px); margin-inline: auto; }
.ua-article-cta { position: relative; overflow: hidden; isolation: isolate; margin-block: 64px 32px; background: var(--ua-ink-2); color: var(--ua-on-ink); border-radius: var(--ua-r-lg); padding: 48px 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; border-inline-start: 4px solid var(--ua-amber); }
.ua-article-cta > h2, .ua-article-cta > p { grid-column: 1; }
.ua-article-cta__btns { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ua-article-cta::before, .ua-article-cta::after { content: ""; position: absolute; z-index: -1; border: 2px solid var(--ua-amber); transform: rotate(45deg); pointer-events: none; }
.ua-article-cta::before { width: 240px; height: 240px; inset-inline-end: -120px; top: -90px; opacity: .16; }
.ua-article-cta::after { width: 120px; height: 120px; inset-inline-end: 72px; bottom: -84px; opacity: .3; }
.ua-article-cta h2 { color: var(--ua-on-ink); font-size: var(--ua-fs-lg); font-weight: 700; margin: 0; }
.ua-article-cta p { color: var(--ua-on-ink-muted); font-size: 17px; line-height: 1.7; max-width: 52ch; margin: 0; }
.ua-article-cta .ua-link { color: var(--ua-amber); text-decoration: underline; text-underline-offset: 4px; }
.ua-article-cta .ua-btn { min-height: 52px; padding: 0 24px; border-radius: 12px; }
@media (max-width: 1023px) { .ua-article-cta { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; } .ua-article-cta__btns { grid-column: 1; grid-row: auto; } }
@media (max-width: 767px) {
  .ua-article-cta { margin-block: 48px 24px; padding: 28px 20px; border-radius: 16px; gap: 16px; }
  .ua-article-cta::before { width: 160px; height: 160px; inset-inline-end: -90px; top: -70px; }
  .ua-article-cta::after { width: 80px; height: 80px; inset-inline-end: 40px; bottom: -56px; }
  .ua-article-cta__btns { display: grid; gap: 10px; }
  .ua-article-cta .ua-btn { width: 100%; justify-content: center; }
}

/* ---------- 0.9.1 prev / next (spec 8): 2 columns, 72px thumb (rhombus fallback) ---------- */
.ua-postnav { display: grid; gap: 16px; }
@media (min-width: 768px) { .ua-postnav { grid-template-columns: 1fr 1fr; } }
.ua-postnav__a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 104px; padding: 16px; background: var(--ua-white); border: 1px solid var(--ua-line); border-radius: 12px; color: var(--ua-ink); text-decoration: none; transition: box-shadow var(--ua-dur-1), border-color var(--ua-dur-1), transform var(--ua-dur-1); }
.ua-postnav__a:hover { box-shadow: var(--ua-shadow-2); border-color: var(--ua-amber); transform: translateY(-2px); }
.ua-postnav__img, .ua-postnav__img img { display: block; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; overflow: hidden; }
.ua-thumb-fb { position: relative; display: block; width: 100%; height: 100%; background: var(--ua-ink-3); }
.ua-thumb-fb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border: 2px solid var(--ua-amber); transform: rotate(45deg); }
.ua-postnav__t { display: grid; gap: 4px; min-width: 0; }
.ua-postnav__l { font-size: 13px; color: var(--ua-muted); display: inline-flex; gap: 8px; align-items: center; }
.ua-postnav__t b { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ua-postnav__a--next:only-child { grid-column: 2; }
@media (max-width: 767px) { .ua-postnav__a--next:only-child { grid-column: auto; } }

/* ---------- 0.9.1 related (spec 8): 16:10 cards, one-line meta, 2-line title/excerpt ---------- */
.ua-related { padding-block: var(--ua-section) 0; }
.ua-related__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 16px; margin-bottom: 32px; }
.ua-related__head h2 { margin: 0; font-size: var(--ua-fs-xl); font-weight: 700; }
.ua-related__head h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 12px; background: var(--ua-amber); }
.ua-related__head .ua-link { font-size: 15px; font-weight: 600; color: var(--ua-ink); text-decoration: underline 2px var(--ua-amber); text-underline-offset: 5px; }
.ua-related__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .ua-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ua-related__grid > .ua-card:nth-child(3) { display: none; } }
@media (min-width: 1024px) { .ua-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ua-related__grid > .ua-card:nth-child(3) { display: flex; } }
.ua-card--related { display: flex; flex-direction: column; border-radius: 12px; }
.ua-card--related:hover { transform: none; }
.ua-card--related .ua-card__img { aspect-ratio: 16 / 10; }
.ua-card--related .ua-card__img img { transition: transform var(--ua-dur-2) var(--ua-ease); }
.ua-card--related:hover .ua-card__img img { transform: scale(1.04); }
.ua-card__img--fb { position: relative; display: grid; place-items: center; align-content: center; gap: 16px; background: var(--ua-ink-3); }
.ua-card__img--fb::before { content: ""; width: 34px; height: 34px; margin: 7px; border: 2px solid var(--ua-amber); transform: rotate(45deg); }
.ua-card__img--fb span { font-size: 13px; color: var(--ua-on-ink-muted); padding-inline: 16px; text-align: center; }
.ua-card--related .ua-card__body { padding: 20px 20px 24px; gap: 12px; }
.ua-card--related .ua-card__meta { flex-wrap: nowrap; gap: 12px; white-space: nowrap; min-width: 0; }
.ua-card--related .ua-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font-size: 12px; font-weight: 600; background: var(--ua-amber-soft); color: var(--ua-ink); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ua-card--related time { font-size: 13px; color: var(--ua-muted); flex: none; }
.ua-card--related .ua-card__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.45; color: var(--ua-ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ua-card--related .ua-card__ex { font-size: 15px; line-height: 1.7; margin: 0; }

/* ---------- 0.9.1 floating WhatsApp on articles (spec 7): 56px icon-only on mobile, inline-end corner; the footer
   gets 88px extra bottom room so the button never covers the last line (it also hides over the footer, 0.8.2) ---------- */
@media (min-width: 768px) { body.single .ua-wa { inset-inline-start: auto; inset-inline-end: 24px; bottom: 24px; } }
@media (max-width: 767px) {
  body.single .ua-wa { width: 56px; min-height: 56px; height: 56px; inset-inline-start: auto; inset-inline-end: 16px; bottom: 16px; }
  body.single .ua-wa svg { width: 28px; height: 28px; }
  body.single .ua-footer { padding-bottom: 88px; }
}

/* ---------- 0.9.1 spacing rhythm (8/12/16/24/32/48/64) ---------- */
.ua-article__main { gap: 24px; }
@media (max-width: 767px) { .ua-related__head { margin-bottom: 24px; } .ua-related__grid { gap: 16px; } }

:focus-visible { outline: 3px solid var(--ua-amber); outline-offset: 2px; }
@media print { .ua-share, .ua-article-cta, .ua-postnav, .ua-related, .ua-aside, .ua-progress { display: none; } }
.ua-article__meta .ua-ico { width: 14px; text-align: center; }
