/*
Theme Name: FixAndReview Editorial
Theme URI: https://fixandreview.com/
Author: FixAndReview
Description: Modern editorial theme for practical guides, reviews and comparisons.
Version: 2.3.6
Text Domain: fixandreview
*/

:root {
  --far-ink: #101828;
  --far-ink-2: #263348;
  --far-muted: #667085;
  --far-line: #e4e9f0;
  --far-accent: #5b5cf0;
  --far-accent-dark: #4040c9;
  --far-aqua: #36c5b3;
  --far-soft: #f3f5f9;
  --far-paper: #fff;
  --far-night: #0c1222;
  --far-white: #fff;
  --far-width: 1240px;
  --far-radius: 22px;
  --far-shadow: 0 20px 55px rgba(16, 24, 40, .08);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--far-ink); background: #f7f8fb; font: 16px/1.66 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--far-accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(91, 92, 240, .25); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-shell { width: min(var(--far-width), calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; background: rgba(12,18,34,.92); box-shadow: 0 8px 32px rgba(5,10,24,.18); backdrop-filter: saturate(160%) blur(18px); }
.admin-bar .site-header { top: 32px; }
.header-row { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.site-brand { margin-right: auto; min-width: max-content; }
.site-title { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 21px; font-weight: 780; letter-spacing: -.03em; line-height: 1; }
.site-title:hover { color: #fff; }
.site-mark, .footer-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; color: #fff; background: linear-gradient(145deg, var(--far-accent), #7c5cff 58%, var(--far-aqua)); border-radius: 13px; box-shadow: 0 8px 20px rgba(91,92,240,.32); font-size: 17px; font-weight: 850; }
.far-brand-logo { display: block; flex: 0 0 auto; object-fit: contain; padding: 0; background: transparent; }
.site-tagline { margin: 4px 0 0 57px; color: #9da9bd; font-size: 11px; letter-spacing: .015em; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: block; padding: 10px 13px; color: #d6dceb; border-radius: 10px; font-size: 12px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; transition: color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out); }
.primary-nav a:active, .post-card__read:active, .pagination a:active { transform: scale(.97); }
.header-search form { position: relative; margin: 0; }
.header-search label { display: block; }
.header-search input[type="search"] { width: 190px; height: 40px; padding: 0 15px; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; outline: 0; background: rgba(255,255,255,.07); transition: width 200ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.header-search input::placeholder { color: #8e9bb0; }
.header-search input:focus { width: 230px; border-color: rgba(129,130,255,.65); background: rgba(255,255,255,.11); }
.header-search input[type="submit"], .header-search button { display: none; }

.site-main { padding: 46px 0 88px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; align-items: start; }
.archive-hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 28px; padding: clamp(32px, 4vw, 48px); color: #fff; background: radial-gradient(circle at 88% 18%, rgba(54,197,179,.28), transparent 26%), radial-gradient(circle at 12% 120%, rgba(91,92,240,.5), transparent 42%), linear-gradient(135deg, #0c1222 0%, #151f3a 62%, #172b40 100%); border-radius: 24px; box-shadow: 0 22px 58px rgba(12,18,34,.16); }
.archive-hero { width: min(100%, 760px); }
.archive-hero::after, .page-hero::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -55px; bottom: -80px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.018); }
.archive-hero--compact { padding-block: 38px; }
.archive-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #aeb8ff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.archive-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--far-aqua); }
.archive-title, .entry-title { margin: 0; font-size: clamp(34px, 4.2vw, 52px); font-weight: 790; line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.archive-hero--compact .archive-title { font-size: clamp(30px, 3.4vw, 44px); }
.archive-description { max-width: 590px; margin: 18px 0 0; color: #bdc7d9; font-size: 16px; line-height: 1.58; }

.post-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--far-line); border-radius: var(--far-radius); background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(16,24,40,.045); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 160ms ease; }
.post-card > div { padding: 23px 24px 25px; }
.post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; }
.post-card:first-child > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 45px); }
.post-card.no-thumbnail { grid-column: 1 / -1; }
.post-card__thumbnail { display: block; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg,#e9edf4,#f7f8fb); }
.post-card:first-child .post-card__thumbnail { height: 100%; min-height: 350px; aspect-ratio: auto; }
.post-card__thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post-card__category { display: inline-flex; width: fit-content; margin-bottom: 11px; padding: 6px 9px; color: var(--far-accent-dark); background: #eeeeff; border-radius: 8px; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.post-card__title { margin: 0 0 13px; font-size: clamp(21px, 2.1vw, 29px); font-weight: 760; line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
.post-card:first-child .post-card__title { font-size: clamp(28px, 3vw, 40px); }
.post-card__title a { color: var(--far-ink); }
.post-card__meta, .entry-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--far-muted); font-size: 12px; font-weight: 560; }
.post-card__views::before { content: "◉ "; color: var(--far-accent); }
.post-card__description { margin-top: 14px; color: #4d5b70; font-size: 14px; }
.post-card__description p { margin: 0; }
.post-card__read { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 18px; color: var(--far-ink); font-size: 13px; font-weight: 760; transition: gap 160ms var(--ease-out), color 160ms ease, transform 140ms var(--ease-out); }

.entry-header { width: min(100%, 720px); margin: 0 0 26px; padding: clamp(22px, 2.6vw, 30px); color: #fff; background: linear-gradient(135deg, #0c1222, #172641); border-radius: 19px; box-shadow: 0 16px 40px rgba(12,18,34,.13); }
.entry-header .post-card__category { color: #c9caff; background: rgba(129,130,255,.15); }
.entry-header .entry-title { max-width: 660px; font-size: clamp(30px, 3.35vw, 43px); line-height: 1.06; }
.entry-header .entry-meta { margin-top: 15px; color: #aeb9cc; }
.entry-featured { margin: 0 0 32px; overflow: hidden; border: 1px solid var(--far-line); border-radius: 22px; background: #fff; box-shadow: var(--far-shadow); }
.entry-featured img { width: 100%; max-height: 640px; object-fit: cover; }
.entry-content { color: var(--far-ink-2); font-size: 17px; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > h2, .entry-content > h3, .entry-content > blockquote { max-width: 780px; }
.entry-content h2 { scroll-margin-top: 108px; margin: 54px 0 17px; color: var(--far-ink); font-size: clamp(28px, 3.3vw, 38px); font-weight: 760; line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
.entry-content h3 { scroll-margin-top: 108px; margin: 34px 0 12px; color: var(--far-ink); font-size: 23px; font-weight: 730; line-height: 1.25; letter-spacing: -.022em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 21px; }
.entry-content li + li { margin-top: 7px; }
.entry-content a { font-weight: 620; text-decoration: underline; text-decoration-color: rgba(91,92,240,.3); text-underline-offset: 3px; }
.entry-content table { width: 100%; border-spacing: 0; border: 1px solid var(--far-line); border-radius: 15px; margin: 30px 0; overflow: hidden; background: #fff; box-shadow: 0 8px 26px rgba(16,24,40,.045); font-size: 14px; }
.entry-content th, .entry-content td { padding: 13px 15px; border: 0; border-bottom: 1px solid var(--far-line); text-align: left; vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content th { color: var(--far-ink); background: #f0f2ff; font-size: 12px; letter-spacing: .025em; }
.entry-content blockquote { margin: 28px 0; padding: 22px 24px; border: 0; border-left: 4px solid var(--far-accent); border-radius: 0 14px 14px 0; color: #354258; background: linear-gradient(110deg,#efefff,#f8f9fc); }
.entry-content figure { margin-inline: 0; }
.entry-content figure img { border-radius: 18px; }

/* Keep rich article content inside the reading column at every breakpoint. */
.content-grid > *, .article-column, article, .entry-content { min-width: 0; max-width: 100%; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *, .entry-content figure, .entry-content iframe, .entry-content video, .entry-content embed, .entry-content object { max-width: 100%; }
.entry-content pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 14px; background: #111827; color: #eef2ff; -webkit-overflow-scrolling: touch; }
.entry-content code, .entry-content a { overflow-wrap: anywhere; }
.entry-content .wp-block-table, .entry-content .table-scroll, .entry-content .cbf-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content .cbf-wrap { min-width: 0; max-width: 100%; }

.reader-rating, .comments-area { max-width: 880px; margin: 46px 0 0; padding: clamp(24px, 4vw, 34px); border: 1px solid var(--far-line); border-radius: 22px; background: var(--far-paper); box-shadow: var(--far-shadow); }
.author-box { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 24px; max-width: 880px; margin: 50px 0 0; padding: clamp(25px,4vw,36px); border: 1px solid #dfe2ff; border-radius: 22px; background: linear-gradient(135deg,#f7f8ff,#fff 65%); box-shadow: var(--far-shadow); }
.author-box__avatar { display: grid; place-items: center; width: 82px; height: 82px; overflow: hidden; border-radius: 24px; color: #fff; background: linear-gradient(145deg,var(--far-accent),var(--far-aqua)); box-shadow: 0 12px 28px rgba(91,92,240,.22); font-weight: 850; }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__eyebrow { display: block; margin-bottom: 5px; color: var(--far-accent-dark); font-size: 11px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.author-box__name { margin: 0 0 14px; color: var(--far-ink); font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.author-box p { margin: 0; color: #46546a; font-size: 15px; line-height: 1.7; }
.author-box p + p { margin-top: 12px; }

.article-share { max-width: 880px; margin: 24px 0 0; padding: 22px 24px; border: 1px solid var(--far-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.05); }
.article-share__label { display: block; margin-bottom: 13px; color: var(--far-ink); font-size: 14px; font-weight: 760; }
.article-share__links { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.share-link { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; color: #344054; border: 1px solid var(--far-line); border-radius: 11px; background: #f8f9fc; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform 140ms var(--ease-out),border-color 160ms ease,background-color 160ms ease; }
.share-link svg { width: 18px; height: 18px; fill: currentColor; }
.share-link--facebook { color: #1877f2; }.share-link--x { color: #111827; }.share-link--whatsapp { color: #1d9f56; }.share-link--telegram { color: #229ed9; }.share-link--reddit { color: #f4511e; }
.comment-plain-text-note { color: var(--far-muted); font-size: 12px; }
.rating-heading, .comments-title, .comment-reply-title { margin: 0; color: var(--far-ink); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
.rating-summary { display: flex; flex-wrap: wrap; gap: 11px 15px; align-items: center; margin: 17px 0 22px; }
.rating-stars { --rating-percent: 0%; position: relative; display: inline-block; color: #d8deea; font-size: 26px; line-height: 1; letter-spacing: 3px; }
.rating-stars::before { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; width: var(--rating-percent); overflow: hidden; color: #ffb21c; white-space: nowrap; }
.rating-copy { color: var(--far-muted); font-size: 14px; }
.rating-copy strong { color: var(--far-ink); }
.rating-form fieldset { min-width: 0; padding: 0; border: 0; }
.rating-form legend { margin-bottom: 9px; color: var(--far-ink); font-size: 15px; font-weight: 760; }
.rating-choice { display: inline-flex; direction: rtl; gap: 2px; }
.rating-choice input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.rating-choice label { color: #d8deea; cursor: pointer; font-size: 34px; line-height: 1; transition: color 140ms ease, transform 140ms var(--ease-out); }
.rating-choice label:hover, .rating-choice label:hover ~ label, .rating-choice input:checked ~ label { color: #ffb21c; }
.rating-choice input:focus-visible + label { outline: 3px solid rgba(91,92,240,.28); outline-offset: 3px; border-radius: 5px; }
.rating-choice label:active { transform: scale(.94); }
.rating-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 15px; }
.rating-submit, .comment-submit { min-height: 44px; padding: 10px 17px; border: 0; border-radius: 12px; color: #fff; background: var(--far-accent); box-shadow: 0 8px 20px rgba(91,92,240,.22); cursor: pointer; font: inherit; font-size: 14px; font-weight: 760; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.rating-submit:active, .comment-submit:active { transform: scale(.97); }
.rating-submit:disabled { cursor: not-allowed; opacity: .55; }
.rating-status { color: var(--far-muted); font-size: 13px; }

.comment-list { margin: 24px 0 34px; padding: 0; list-style: none; }
.comment-list .children { margin: 18px 0 0 34px; padding: 0; list-style: none; }
.comment-body { margin-bottom: 18px; padding: 20px; border: 1px solid var(--far-line); border-radius: 16px; background: #fbfcff; }
.comment-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; }
.comment-avatar { flex: 0 0 auto; overflow: hidden; border-radius: 50%; }
.comment-author { color: var(--far-ink); font-size: 14px; font-weight: 760; }
.comment-time { display: block; color: var(--far-muted); font-size: 12px; }
.comment-content { color: var(--far-ink-2); font-size: 15px; }
.comment-content > :last-child { margin-bottom: 0; }
.comment-actions { margin-top: 12px; font-size: 13px; font-weight: 700; }
.comment-navigation { margin-block: 22px; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 15px; }
.comment-form { margin-top: 22px; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--far-ink); font-size: 13px; font-weight: 720; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d8deea; border-radius: 12px; color: var(--far-ink); background: #fff; font: inherit; }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 3px solid rgba(91,92,240,.14); border-color: var(--far-accent); }
.comment-form-cookies-consent { display: flex; gap: 9px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; }
.no-comments { color: var(--far-muted); }

.article-toc { max-width: 880px; margin: 34px 0 46px; padding: 25px 27px; border: 1px solid #dfe2ff; border-radius: 18px; background: linear-gradient(135deg,#f0f1ff,#fff); box-shadow: 0 12px 34px rgba(91,92,240,.07); }
.article-toc__title { margin-bottom: 14px; color: var(--far-ink); font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
.article-toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 21px; }
.article-toc li { break-inside: avoid; margin: 8px 0; color: #8a8fd7; }
.article-toc .toc-level-3 { margin-left: 14px; font-size: 14px; }
.article-toc a { color: #354258; font-weight: 620; text-decoration: none; }

.page-hero { padding-block: 42px; }
.page-hero .entry-title { font-size: clamp(38px,5vw,60px); }
.page-content { max-width: 850px; padding: clamp(28px,5vw,58px); border: 1px solid var(--far-line); border-radius: 22px; background: #fff; box-shadow: var(--far-shadow); }
.page-content > * { max-width: 100%; }
.page-content .policy-intro { margin-bottom: 34px; padding: 18px 20px; color: #46546a; background: #f2f3ff; border-radius: 14px; }
.page-content .contact-card { padding: 24px; border: 1px solid #dfe2ff; border-radius: 16px; background: linear-gradient(135deg,#f6f7ff,#fff); }

.tool-integrated { min-width: 0; }
.tool-integrated #watch-brand-tier-list { min-height: 0; border-radius: 24px; box-shadow: 0 24px 68px rgba(12,18,34,.2); }
.tool-integrated .wbt-content { margin-top: 28px; padding: clamp(26px,4vw,46px); border: 1px solid var(--far-line); border-radius: 22px; background: #fff; box-shadow: var(--far-shadow); }

.sidebar { position: sticky; top: 104px; }
.admin-bar .sidebar { top: 136px; }
.widget { margin-bottom: 22px; padding: 23px; border: 1px solid var(--far-line); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 10px 32px rgba(16,24,40,.05); }
.widget-title { margin: 0 0 16px; color: var(--far-ink); font-size: 18px; font-weight: 780; letter-spacing: -.025em; }
.popular-guides, .category-list { margin: 0; padding: 0; list-style: none; }
.popular-guides li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--far-line); }
.popular-guides li:last-child { border-bottom: 0; }
.popular-guides a { display: block; color: #2c394e; font-size: 13px; font-weight: 680; line-height: 1.35; }
.popular-guides__rank { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; background: linear-gradient(145deg,var(--far-accent),#7a5cf0); border-radius: 9px; box-shadow: 0 5px 13px rgba(91,92,240,.2); font-size: 10px; font-weight: 800; }
.popular-guides__views { color: var(--far-muted); font-size: 11px; }
.category-list ul { margin: 8px 0 0 14px; padding: 0; border-left: 1px solid var(--far-line); list-style: none; }
.category-list li { margin: 7px 0; padding-left: 10px; color: var(--far-muted); font-size: 13px; }
.category-list > li { padding-left: 0; }
.category-list a { color: #46546a; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 13px; border: 1px solid var(--far-line); border-radius: 12px; color: #3a465b; background: #fff; font-size: 13px; font-weight: 680; transition: transform 140ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease; }
.pagination .current { color: #fff; background: var(--far-accent); border-color: var(--far-accent); box-shadow: 0 9px 22px rgba(91,92,240,.25); }

.site-footer { padding: 58px 0 28px; color: #b8c2d5; background: var(--far-night); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-title { display: flex; align-items: center; gap: 11px; margin: 0 0 8px; color: #fff; font-size: 21px; letter-spacing: -.03em; }
.footer-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 15px; }
.footer-tagline { padding-left: 42px; font-size: 13px; }
.footer-menu { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: block; padding: 9px 12px; color: #dce3ef; border-radius: 9px; font-size: 13px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); color: #7f8ca3; font-size: 12px; }

.cookie-consent { position: fixed; z-index: 1000; left: 18px; bottom: 18px; width: min(420px, calc(100vw - 36px)); padding: 17px; color: var(--far-ink-2); background: rgba(255,255,255,.98); border: 1px solid var(--far-line); border-radius: 16px; box-shadow: 0 20px 58px rgba(12,18,34,.2); backdrop-filter: blur(16px); }
.cookie-consent[hidden] { display: none; }
.cookie-consent strong { display: block; margin-bottom: 7px; color: var(--far-ink); font-size: 15px; letter-spacing: -.01em; }
.cookie-consent p { margin: 0; font-size: 13px; line-height: 1.5; }
.cookie-consent p a { color: var(--far-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.cookie-consent__button { min-height: 38px; padding: 8px 13px; color: #354258; background: #fff; border: 1px solid #d7dce5; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.cookie-consent__button--primary { color: #fff; background: var(--far-accent); border-color: var(--far-accent); }
.cookie-consent__button:disabled { opacity: .58; cursor: not-allowed; }
.cookie-consent__button:active { transform: scale(.97); }
.cookie-consent__button:focus-visible, .cookie-settings-toggle:focus-visible { outline: 3px solid rgba(91,92,240,.3); outline-offset: 2px; }
.cookie-settings-toggle { position: fixed; z-index: 999; left: 12px; bottom: 10px; padding: 5px 8px; color: #637087; background: rgba(255,255,255,.94); border: 1px solid #dfe4eb; border-radius: 7px; box-shadow: 0 5px 16px rgba(12,18,34,.08); font: inherit; font-size: 10px; cursor: pointer; }

@media (hover:hover) and (pointer:fine) {
  .primary-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
  .post-card:hover { transform: translateY(-4px); border-color: #d9dcff; box-shadow: 0 22px 50px rgba(16,24,40,.105); }
  .post-card:hover .post-card__thumbnail img { transform: scale(1.035); }
  .post-card__title a:hover { color: var(--far-accent-dark); }
  .post-card__read:hover { gap: 12px; color: var(--far-accent); }
  .article-toc a:hover, .popular-guides a:hover, .category-list a:hover { color: var(--far-accent); }
  .pagination a:hover { border-color: #c9ccff; box-shadow: 0 7px 18px rgba(16,24,40,.07); }
  .footer-menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
}

@media (max-width: 1020px) {
  .content-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 24px; }
  .post-cards { grid-template-columns: 1fr; }
  .post-card:first-child { grid-column: auto; grid-template-columns: 1fr; }
  .post-card:first-child .post-card__thumbnail { min-height: 0; aspect-ratio: 16/9; }
}
@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .header-row { min-height: 70px; gap: 14px; flex-wrap: wrap; padding-top: 12px; }
  .site-tagline { display: none; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .primary-nav ul { width: max-content; padding-bottom: 10px; }
  .header-search { display: none; }
  .content-grid { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; }
  .article-toc ol { columns: 1; }
}
@media (max-width: 620px) {
  .site-shell { width: min(100% - 24px, var(--far-width)); }
  .site-main { padding: 24px 0 60px; }
  .cookie-consent { left: 8px; bottom: 8px; width: calc(100vw - 16px); padding: 14px; border-radius: 14px; }
  .cookie-consent strong { font-size: 14px; }
  .cookie-consent p { font-size: 12px; }
  .cookie-consent__actions { gap: 7px; margin-top: 11px; }
  .cookie-consent__button { flex: 1 1 130px; min-height: 40px; }
  .archive-hero, .page-hero { padding: 21px 18px; border-radius: 18px; }
  .entry-header { padding: 17px 15px; border-radius: 16px; }
  .archive-title, .entry-title { font-size: clamp(27px,8vw,33px); line-height: 1.07; letter-spacing: -.04em; overflow-wrap: anywhere; text-wrap: pretty; }
  .entry-header .entry-title { font-size: clamp(25px,7vw,29px); line-height: 1.09; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: pretty; }
  .entry-header .entry-meta { margin-top: 17px; gap: 6px 11px; }
  .entry-featured { margin-bottom: 26px; border-radius: 16px; }
  .archive-description { font-size: 15px; }
  .post-card > div, .post-card:first-child > div { padding: 22px; }
  .post-card__title, .post-card:first-child .post-card__title { font-size: 24px; }
  .page-content { padding: 25px 21px; }
  .entry-content { font-size: 16px; line-height: 1.68; }
  .entry-content h2 { margin-top: 42px; font-size: clamp(24px,7.2vw,30px); line-height: 1.16; overflow-wrap: anywhere; text-wrap: pretty; }
  .entry-content h3 { margin-top: 30px; font-size: clamp(20px,5.8vw,24px); line-height: 1.22; overflow-wrap: anywhere; text-wrap: pretty; }
  .entry-content ul, .entry-content ol { padding-left: 1.35rem; }
  .entry-content blockquote { padding: 18px; }
  .entry-content table { display: block; overflow-x: auto; white-space: normal; }
  .article-toc { margin: 28px 0 38px; padding: 20px 18px; border-radius: 16px; }
  .article-toc ol { padding-left: 18px; }
  .reader-rating, .comments-area { margin-top: 34px; padding: 22px 18px; border-radius: 18px; }
  .rating-heading, .comments-title, .comment-reply-title { font-size: 25px; }
  .rating-choice label { font-size: 32px; }
  .comment-list .children { margin-left: 14px; }
  .comment-body { padding: 16px; }
  .widget { padding: 20px; border-radius: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-menu { flex-wrap: wrap; }
  .author-box { grid-template-columns: 58px minmax(0,1fr); gap: 16px; padding: 22px 18px; }
  .author-box__avatar { width: 58px; height: 58px; border-radius: 17px; }
  .author-box__name { font-size: 22px; }
  .author-box p { grid-column: 1/-1; }
  .article-share { padding: 18px; }
  .article-share__links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Mobile stability and compact reading layout. */
html, body { max-width: 100%; overflow-x: clip; }
.site-header, .site-main, .site-footer, .content-grid, .article-column, .entry-content { min-width: 0; max-width: 100%; }
.entry-content iframe, .entry-content video, .entry-content object, .entry-content embed { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry-content input, .entry-content select, .entry-content textarea, .entry-content button { max-width: 100%; }
.entry-content .ckf2, .entry-content .cbf-wrap, .entry-content .fbf-wrap, .entry-content .gsg { min-width: 0; max-width: 100%; }
.entry-content .ckf2-scroll, .entry-content .cbf-table-scroll, .entry-content .fbf-scroll, .entry-content .table-scroll, .entry-content .wp-block-table { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }

@media (max-width: 820px) {
  .site-header { position: relative; top: auto; }
  .admin-bar .site-header { top: auto; }
  .header-row { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 0; padding-block: 10px 8px; gap: 8px 12px; }
  .site-brand { min-width: 0; margin: 0; }
  .site-title { min-width: 0; gap: 8px; font-size: 18px; }
  .site-mark { width: 40px; height: 40px; border-radius: 11px; }
  .primary-nav { grid-column: 1 / -1; width: 100%; margin: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
  .primary-nav ul { width: max-content; max-width: none; padding: 0 0 5px; gap: 2px; }
  .primary-nav a { padding: 7px 10px; font-size: 11px; }
  .site-main { padding-top: 22px; }
  .content-grid { gap: 26px; }
  .sidebar { width: 100%; }
}

@media (max-width: 620px) {
  .site-shell { width: calc(100% - 20px); }
  .archive-hero, .page-hero { margin-bottom: 16px; padding: 18px 15px; border-radius: 16px; }
  .archive-eyebrow { margin-bottom: 12px; font-size: 9px; }
  .archive-title { font-size: clamp(25px, 7.6vw, 30px); }
  .archive-description { margin-top: 15px; line-height: 1.55; }
  .entry-header { margin-bottom: 16px; padding: 15px 14px; border-radius: 15px; }
  .entry-header .entry-title { font-size: clamp(23px, 6.8vw, 28px); line-height: 1.1; }
  .entry-header .entry-meta { margin-top: 13px; font-size: 11px; }
  .entry-featured { margin-bottom: 22px; border-radius: 14px; }
  .entry-content { font-size: 16px; line-height: 1.62; }
  .entry-content h2 { margin-top: 36px; font-size: clamp(23px, 6.8vw, 28px); }
  .entry-content h3 { margin-top: 26px; font-size: clamp(19px, 5.7vw, 23px); }
  .entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 17px; }
  .entry-content figure { margin-block: 20px; }
  .entry-content table { margin-block: 22px; font-size: 13px; }
  .entry-content th, .entry-content td { min-width: 112px; padding: 10px 11px; }
  .entry-content .ckf2, .entry-content .cbf-wrap, .entry-content .fbf-wrap, .entry-content .gsg { margin-inline: 0 !important; border-radius: 15px !important; }
  .entry-content .ckf2-head, .entry-content .cbf-head, .entry-content .fbf-head { padding: 17px 15px !important; }
  .entry-content .ckf2-head strong, .entry-content .cbf-title, .entry-content .fbf-head h2 { font-size: 22px !important; line-height: 1.18 !important; }
  .entry-content .ckf2-controls, .entry-content .cbf-controls, .entry-content .fbf-controls { grid-template-columns: minmax(0,1fr) !important; padding: 14px !important; }
  .entry-content .ckf2-search, .entry-content .fbf-input { grid-column: auto !important; }
  .entry-content .ckf2-meta, .entry-content .cbf-meta, .entry-content .fbf-meta, .entry-content .ckf2-pages, .entry-content .cbf-pages, .entry-content .fbf-pages { padding-inline: 14px !important; align-items: flex-start !important; flex-direction: column !important; }
  .post-cards { gap: 14px; }
  .post-card, .post-card:first-child { border-radius: 17px; }
  .post-card > div, .post-card:first-child > div { padding: 18px; }
  .post-card__title, .post-card:first-child .post-card__title { font-size: 22px; }
  .post-card__description { font-size: 13px; }
  .article-toc, .author-box, .reader-rating, .article-share, .comments-area { width: 100%; margin-top: 25px; padding: 18px 16px; border-radius: 15px; }
  .author-box { grid-template-columns: 52px minmax(0,1fr); gap: 13px; }
  .author-box__avatar { width: 52px; height: 52px; border-radius: 15px; }
  .author-box__name { margin-bottom: 10px; font-size: 21px; }
  .author-box__body p { font-size: 14px; line-height: 1.62; }
  .rating-summary { align-items: flex-start; margin-block: 13px 17px; }
  .rating-stars { font-size: 24px; }
  .rating-choice label { font-size: 30px; }
  .article-share__links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .share-link { min-height: 40px; padding: 7px; }
  .comment-body { padding: 14px; }
  .comment-list .children { margin-left: 8px; }
  .comment-form input, .comment-form textarea { width: 100%; }
  .comment-form textarea { min-height: 120px; }
  .widget { margin-bottom: 15px; padding: 17px; border-radius: 15px; }
  .site-footer { padding-top: 38px; }
}

@media (max-width: 380px) {
  .site-title { font-size: 17px; }
  .entry-header .entry-title { font-size: 23px; }
  .article-share__links { grid-template-columns: 1fr; }
  .rating-actions { align-items: stretch; flex-direction: column; }
  .rating-submit { width: 100%; }
}
