/*
 * Linda Ikeji's Blog - modern layer (Phase 2).
 * Loaded after style.css. New components use the lib- prefix; the few legacy
 * selectors restyled at the bottom are the article page's existing markup.
 * html is 62.5% in style.css, so sizes here are in px to stay predictable.
 */

:root {
    --lib-brand: #890e2a;
    --lib-brand-dark: #5e0a1d;
    --lib-brand-tint: #f8e9ec;
    --lib-ink: #16161a;
    --lib-ink-2: #3a3a42;
    --lib-muted: #6b6b76;
    --lib-line: #ebe7e4;
    --lib-surface: #ffffff;
    --lib-canvas: #f6f3f0;
    --lib-radius: 14px;
    --lib-radius-sm: 8px;
    --lib-shadow: 0 1px 2px rgba(22, 22, 26, .06), 0 4px 16px rgba(22, 22, 26, .05);
    --lib-shadow-hover: 0 2px 4px rgba(22, 22, 26, .08), 0 12px 28px rgba(22, 22, 26, .10);
    --lib-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --lib-serif: Georgia, "Times New Roman", serif;
    --lib-gutter: 24px;
}

/* ---------- Base (replaces bootstrap.min.css + style.css on public pages) ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--lib-font); color: var(--lib-ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--lib-brand); text-decoration: none; }
img, svg, video, iframe { max-width: 100%; }
img { vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }
.lib-nav ul, .lib-topic-cloud ul, .lib-pagination { list-style: none; margin: 0; padding: 0; }
.lib-article__body h2, .lib-article__body h3, .lib-article__body h4 { margin: 1.3em 0 .5em; line-height: 1.3; font-weight: 800; }
.lib-article__body ul, .lib-article__body ol { padding-left: 1.4em; margin: 0 0 1em; }

.lib-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */

.lib-header { font-family: var(--lib-font); }
.lib-topbar { background: var(--lib-brand-dark); }
.lib-topbar .lib-wrap { display: flex; justify-content: flex-end; gap: 20px; padding-top: 6px; padding-bottom: 6px; }
.lib-topbar a { color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.lib-topbar a:hover { opacity: 1; color: #fff; }
.lib-topbar img { width: 18px; height: 18px; object-fit: contain; }

.lib-brandbar { background: linear-gradient(135deg, var(--lib-brand) 0%, var(--lib-brand-dark) 100%); color: #fff; }
.lib-brandbar .lib-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.lib-brand { color: #fff; display: block; min-width: 0; }
.lib-brand:hover, .lib-brand:focus { color: #fff; }
.lib-brand__name { display: block; font-family: var(--lib-serif); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.3px; color: inherit; }
.lib-brand__tag { display: block; margin-top: 4px; font-size: 13px; opacity: .85; line-height: 1.4; }

.lib-search { position: relative; flex: 0 1 340px; display: flex; }
.lib-search input {
    width: 100%; height: 42px; border: 0; border-radius: 999px; padding: 0 46px 0 18px;
    font: 15px var(--lib-font); color: var(--lib-ink); background: rgba(255, 255, 255, .96);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.lib-search input:focus { outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 1px; }
.lib-search button {
    position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: var(--lib-brand); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.lib-search--inline { max-width: 460px; margin-top: 14px; }
.lib-search--inline input { box-shadow: inset 0 0 0 1px var(--lib-line); }

.lib-nav { position: sticky; top: 0; z-index: 50; background: var(--lib-surface); border-bottom: 1px solid var(--lib-line); box-shadow: 0 1px 8px rgba(0, 0, 0, .04); }
.lib-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 8px 0; }
.lib-nav ul::-webkit-scrollbar { display: none; }
.lib-nav li { flex: 0 0 auto; }
.lib-nav a {
    display: block; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
    font: 600 14px var(--lib-font); color: var(--lib-ink-2); transition: background .15s, color .15s;
}
.lib-nav a:hover { background: var(--lib-brand-tint); color: var(--lib-brand); }
.lib-nav a[aria-current="page"] { background: var(--lib-brand); color: #fff; }

/* ---------- Page frame ---------- */

.lib-main { font-family: var(--lib-font); color: var(--lib-ink); padding: 20px 0 40px; }
.lib-main > .da.x728 { max-width: 1200px; margin: 0 auto 16px; padding: 0 16px; }
/* Front-page slot: reserve space so banners/ad scripts don't push the page down (CLS). */
.lib-main > .da.x728 { text-align: center; }
.f_ads_i { display: block; }
.lib-main .f_ads_i img { display: block; margin: 8px auto 0; width: 100%; max-width: 728px; height: auto; }
.lib-main .f_ads_i img:not([width]) { aspect-ratio: 728 / 90; object-fit: contain; } /* size unknown: assume a leaderboard */
.lib-fp-slot { margin: 10px auto 0; padding: 10px 0; }
.lib-fp-slot--display { min-height: 280px; }
@media (max-width: 767px) { .lib-fp-slot--display { min-height: 250px; } }
.lib-main .da.x728 > br { display: none; }
/* Direct-sold creatives are uploaded at fixed sizes (728x90 etc.); never let them widen the page. */
.lib-main .da, .lib-ad, .lib-sidebar { max-width: 100%; overflow: hidden; }
.lib-main .da img, .lib-main .da iframe, .lib-ad img, .lib-ad iframe, .lib-sidebar img, .lib-sidebar iframe { max-width: 100%; height: auto; }
.lib-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start;
    background: var(--lib-surface); border-radius: var(--lib-radius); padding: 24px; box-shadow: var(--lib-shadow);
}
.lib-main > .lib-wrap:not(.lib-layout) { background: var(--lib-surface); border-radius: var(--lib-radius); padding: 24px; box-shadow: var(--lib-shadow); }
.lib-sidebar { position: sticky; top: 72px; }
.lib-sidebar .da img { max-width: 100%; height: auto; }

.lib-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--lib-ink); }
.lib-section-head h2 { margin: 0; font: 800 20px/1.2 var(--lib-font); letter-spacing: -.2px; text-transform: none; color: var(--lib-ink); }
.lib-section-head h2 a { color: inherit; }
.lib-section-head h2 a:hover { color: var(--lib-brand); }
.lib-more { font: 600 14px var(--lib-font); color: var(--lib-brand); white-space: nowrap; }
.lib-more:hover { color: var(--lib-brand-dark); text-decoration: underline; }

.lib-page-head { margin-bottom: 22px; }
.lib-page-head h1 { margin: 4px 0 8px; font: 800 32px/1.15 var(--lib-font); letter-spacing: -.5px; color: var(--lib-ink); }
.lib-page-head p { margin: 0; max-width: 680px; font-size: 16px; line-height: 1.55; color: var(--lib-muted); }
.lib-kicker { font: 700 12px var(--lib-font); text-transform: uppercase; letter-spacing: .08em; color: var(--lib-brand); }

.lib-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; font: 13px var(--lib-font); color: var(--lib-muted); }
.lib-crumbs li { list-style: none; margin: 0; padding: 0; }
.lib-crumbs li + li::before { content: "›"; margin-right: 6px; color: #b5b0ab; }
.lib-crumbs a { color: var(--lib-muted); }
.lib-crumbs a:hover { color: var(--lib-brand); }
.lib-crumbs li[aria-current] { color: var(--lib-ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 2 x 2 story grid ---------- */

.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lib-gutter); }
.lib-grid__full { grid-column: 1 / -1; min-width: 0; }
.lib-ad { text-align: center; overflow: hidden; }
.lib-ad img { max-width: 100%; height: auto; }
.lib-grid .google_ads { min-height: 1px; }

.lib-card {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--lib-surface); border: 1px solid var(--lib-line); border-radius: var(--lib-radius);
    box-shadow: var(--lib-shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.lib-card:hover { transform: translateY(-2px); box-shadow: var(--lib-shadow-hover); }
.lib-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #eee6e1; overflow: hidden; }
.lib-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; transition: transform .4s ease; }
.lib-card:hover .lib-card__media img { transform: scale(1.03); }
.lib-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--lib-serif); color: #fff; background: linear-gradient(135deg, var(--lib-brand), var(--lib-brand-dark)); }
.lib-card__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0, 0, 0, .6); }
.lib-card__play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }

.lib-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 14px; }
.lib-card__title { margin: 0; font: 700 20px/1.3 var(--lib-font); letter-spacing: -.2px; }
.lib-card__title a { color: var(--lib-ink); }
.lib-card__title a:hover { color: var(--lib-brand); }
.lib-card__title a::after { content: ""; } /* keeps focus ring on the link itself */
.lib-card__excerpt {
    margin: 0; font-size: 15px; line-height: 1.55; color: var(--lib-ink-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lib-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--lib-muted); }
.lib-card__comments { color: var(--lib-muted); }
.lib-card__comments:hover { color: var(--lib-brand); }
.lib-card__share {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
    border: 1px solid var(--lib-line); border-radius: 999px; background: #fff; color: var(--lib-ink-2);
    font: 600 13px var(--lib-font); cursor: pointer; transition: all .15s;
}
.lib-card__share:hover { border-color: var(--lib-brand); color: var(--lib-brand); background: var(--lib-brand-tint); }

.lib-chip {
    align-self: flex-start; display: inline-block; padding: 3px 9px; border-radius: 999px;
    background: var(--lib-brand-tint); color: var(--lib-brand);
    font: 700 11px/1.4 var(--lib-font); text-transform: uppercase; letter-spacing: .06em;
}
.lib-chip:hover { background: var(--lib-brand); color: #fff; }
.lib-chip--outline { background: transparent; border: 1px solid var(--lib-line); color: var(--lib-ink-2); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; padding: 5px 12px; }

/* Compact cards: image left, text right; still a 2 x 2 on desktop. */
.lib-rail { margin-top: 40px; }
.lib-rail .lib-chip { display: none; } /* the rail heading already names the section */
.lib-grid--rail { gap: 16px; }
.lib-card--compact { flex-direction: row; border-radius: var(--lib-radius-sm); }
.lib-card--compact .lib-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 110px; }
.lib-card--compact .lib-card__media img { position: absolute; inset: 0; } /* image fills the column; the text sets the card height */
.lib-card--compact .lib-card__body { padding: 12px 14px; gap: 6px; }
.lib-card--compact .lib-card__title { font-size: 15px; line-height: 1.35; }
.lib-card--compact .lib-card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-card--compact .lib-card__meta { font-size: 12px; padding-top: 2px; }
.lib-card--compact .lib-chip { font-size: 10px; padding: 2px 7px; }

.lib-side-list { margin-top: 24px; }
.lib-side-list h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--lib-ink); font: 800 17px var(--lib-font); }
.lib-side-list .lib-card { margin-bottom: 12px; box-shadow: none; }

/* ---------- Pagination / buttons ---------- */

.lib-pager { margin-top: 32px; text-align: center; }
.lib-pagination { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--lib-font); }
.lib-pagination a, .lib-pagination span, .lib-button {
    display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--lib-line); color: var(--lib-ink-2); background: #fff;
}
.lib-pagination a:hover, .lib-button:hover { border-color: var(--lib-brand); color: var(--lib-brand); background: var(--lib-brand-tint); }
.lib-pagination .is-disabled span { opacity: .45; }
.lib-pagination__current span { border-color: transparent; color: var(--lib-muted); background: transparent; }
.lib-button { background: var(--lib-brand); border-color: var(--lib-brand); color: #fff; font: 700 15px var(--lib-font); padding: 12px 26px; }
.lib-button:hover { background: var(--lib-brand-dark); color: #fff; }

.lib-empty { padding: 32px; border: 1px dashed var(--lib-line); border-radius: var(--lib-radius); color: var(--lib-ink-2); font-size: 16px; line-height: 1.6; }
.lib-empty .lib-chip { margin: 4px 4px 0 0; }

/* ---------- Topics hub ---------- */

.lib-topic-cloud { margin-top: 28px; }
.lib-topic-cloud h2 { font: 800 18px var(--lib-font); margin: 0 0 12px; }
.lib-topic-cloud ul { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-topic-cloud a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lib-line); color: var(--lib-ink-2); font: 600 14px var(--lib-font); }
.lib-topic-cloud a:hover { border-color: var(--lib-brand); color: var(--lib-brand); }
.lib-topic-cloud a span { color: var(--lib-muted); font-weight: 500; font-size: 12px; }

/* ---------- Article page (legacy markup, modernised) ---------- */

.page .big_story { font-family: var(--lib-font); }
.page .big_story .title,
.page .big_story h1.title { font: 800 34px/1.2 var(--lib-font) !important; letter-spacing: -.5px; color: var(--lib-ink) !important; margin: 10px 0 14px; }
.page .big_story .lib-chip { margin-bottom: 4px; }
.page .big_story summary.description { font-size: 18px !important; line-height: 1.7 !important; color: #222; display: block; }
.page .big_story .my_div img { max-width: 100%; height: auto; border-radius: var(--lib-radius-sm); }
.page .big_story .meta { font: 14px var(--lib-font); color: var(--lib-muted); }
.lib-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 8px; font: 600 14px var(--lib-font); color: var(--lib-muted); }
.lib-related { margin: 28px 0 12px; font-family: var(--lib-font); }

/* ---------- Article (new template) ---------- */

.lib-muted { color: var(--lib-muted); font: 500 14px var(--lib-font); }
.lib-article { font-family: var(--lib-font); color: var(--lib-ink); }
.lib-article__head { margin-bottom: 18px; }
.lib-article__title { margin: 10px 0 12px; font: 800 36px/1.18 var(--lib-font); letter-spacing: -.6px; color: var(--lib-ink); overflow-wrap: anywhere; }
.lib-article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--lib-muted); padding-bottom: 16px; border-bottom: 1px solid var(--lib-line); }
.lib-article__author { font-weight: 700; color: var(--lib-ink-2); }
.lib-article__byline a { color: var(--lib-brand); font-weight: 600; }

.lib-article__body { font-size: 18px; line-height: 1.75; color: #222; overflow-wrap: break-word; }
.lib-article__body p, .lib-article__body div { max-width: 100%; }
.lib-article__body img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: var(--lib-radius-sm); }
.lib-article__body iframe, .lib-article__body video { display: block; max-width: 100%; margin: 16px auto; border: 0; border-radius: var(--lib-radius-sm); }
.lib-article__body iframe[src*="youtube"], .lib-article__body iframe[src*="youtu.be"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.lib-article__body blockquote { margin: 16px auto !important; max-width: 100%; }
.lib-article__body a { color: var(--lib-brand); text-decoration: underline; text-underline-offset: 2px; }
.lib-article__body table { max-width: 100%; display: block; overflow-x: auto; }
.lib-article__body .separator { margin: 0 !important; }
.lib-inarticle-ad { margin: 8px 0 20px; text-align: center; }
.lib-article__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--lib-line); }
.lib-ad--leader { margin: 28px 0; }
.lib-ad--comment { margin: 12px 0 18px; }

/* Share bar */
.lib-share { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-share__btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--lib-line); background: #fff; color: var(--lib-ink-2); font: 600 14px var(--lib-font); cursor: pointer; text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.lib-share__btn:hover, .lib-share__btn:focus-visible { color: #fff; border-color: transparent; text-decoration: none; }
.lib-share__wa:hover { background: #25d366; }
.lib-share__fb:hover { background: #1877f2; }
.lib-share__x:hover { background: #111; }
.lib-share__tg:hover { background: #229ed9; }
.lib-share__copy:hover, .lib-share__native:hover { background: var(--lib-brand); }
.lib-share__native { background: var(--lib-brand); color: #fff; border-color: var(--lib-brand); }

/* Dialogs (contact, advertise, share) */
.lib-dialog {
    width: min(92vw, 460px); border: 0; border-radius: var(--lib-radius); padding: 24px; font-family: var(--lib-font);
    color: var(--lib-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.lib-dialog::backdrop { background: rgba(20, 8, 12, .55); backdrop-filter: blur(2px); }
.lib-dialog h2 { margin: 0 0 12px; font: 800 20px var(--lib-font); }
.lib-dialog p { font-size: 15px; line-height: 1.6; margin: 0; }
.lib-dialog a { color: var(--lib-brand); }
.lib-dialog__close { position: absolute; top: 10px; right: 10px; margin: 0; }
.lib-dialog__close button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--lib-canvas); font-size: 22px; line-height: 1; cursor: pointer; color: var(--lib-ink-2); }
.lib-dialog__story { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.lib-dialog__story img { width: 88px; height: 64px; object-fit: cover; border-radius: var(--lib-radius-sm); flex: 0 0 auto; }
.lib-dialog__story p { font-weight: 700; font-size: 15px; line-height: 1.35; }

/* Most read: horizontal, swipeable */
.lib-mostread { margin: 36px 0 12px; font-family: var(--lib-font); }
.lib-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: 0; list-style: none; scrollbar-width: thin; }
.lib-scroller li { scroll-snap-align: start; }
.lib-mini { display: block; color: var(--lib-ink); }
.lib-mini:hover { color: var(--lib-brand); }
.lib-mini__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--lib-radius-sm); overflow: hidden; background: #eee6e1; }
.lib-mini__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.lib-mini__rank { position: absolute; left: 8px; bottom: 8px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--lib-brand); color: #fff; font: 800 14px/28px var(--lib-font); text-align: center; }
.lib-mini__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font: 700 15px/1.35 var(--lib-font); }

/* Comments */
.lib-comments { margin-top: 36px; font-family: var(--lib-font); color: var(--lib-ink); }
.lib-comments__disclaimer { font-size: 13px; color: var(--lib-muted); margin: -6px 0 18px; }
.lib-comment-list { list-style: none; margin: 0; padding: 0; }
.lib-comment-list > li { border-bottom: 1px solid var(--lib-line); padding: 16px 0; }
.lib-comment-list > li:last-child { border-bottom: 0; }
.lib-comment-list--replies { margin: 12px 0 0 52px; padding-left: 14px; border-left: 2px solid var(--lib-brand-tint); }
.lib-comment-list--replies > li { border: 0; padding: 10px 0 0; }
.lib-comment { display: flex; gap: 12px; }
.lib-comment__avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--lib-brand-tint); color: var(--lib-brand); font: 800 16px var(--lib-font); }
.lib-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.lib-comment__main { min-width: 0; flex: 1; }
.lib-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.lib-comment__head strong { color: var(--lib-ink); }
.lib-comment__head time { color: var(--lib-muted); font-size: 13px; }
.lib-comment__text { margin: 4px 0 8px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.lib-comment__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-comment__actions button {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px;
    border: 1px solid var(--lib-line); background: #fff; color: var(--lib-ink-2); font: 600 13px var(--lib-font); cursor: pointer;
}
.lib-comment__actions button:hover { border-color: var(--lib-brand); color: var(--lib-brand); }
.lib-comment__actions button[aria-pressed="true"] { background: var(--lib-brand-tint); border-color: var(--lib-brand); color: var(--lib-brand); }
.lib-comment__actions .lib-comment__delete { margin-left: auto; color: #b3261e; }

.lib-comment-form { margin-top: 24px; padding: 20px; border-radius: var(--lib-radius); background: var(--lib-canvas); scroll-margin-top: 80px; }
.lib-comment-form h3 { margin: 0 0 14px; font: 800 18px var(--lib-font); }
.lib-comment-form label { display: block; margin: 0; font-weight: 600; font-size: 13px; color: var(--lib-ink-2); }
.lib-comment-form label > span { display: block; margin-bottom: 6px; }
.lib-comment-form input[type=text], .lib-comment-form input[type=email], .lib-comment-form textarea {
    width: 100%; border: 1px solid #dcd6d1; border-radius: var(--lib-radius-sm); padding: 11px 13px; background: #fff;
    font: 16px/1.4 var(--lib-font); color: var(--lib-ink);
}
.lib-comment-form input:focus, .lib-comment-form textarea:focus { outline: 2px solid var(--lib-brand); outline-offset: 0; border-color: transparent; }
.lib-comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lib-comment-form__row[hidden] { display: none; }
.lib-comment-form__text textarea { resize: vertical; min-height: 110px; }
.lib-comment-form__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.lib-comment-form__submit { border: 0; cursor: pointer; }
.lib-comment-form__submit[disabled] { opacity: .6; cursor: wait; }
.lib-comment-form__reply { font-size: 14px; margin: -6px 0 12px; color: var(--lib-ink-2); }
.lib-comment-form__reply button { border: 0; background: none; color: var(--lib-brand); font-weight: 700; cursor: pointer; }
.lib-check { display: inline-flex !important; align-items: center; gap: 8px; font-size: 14px !important; cursor: pointer; }
.lib-check input { width: 18px; height: 18px; accent-color: var(--lib-brand); margin: 0; }
.lib-alert { padding: 10px 14px; border-radius: var(--lib-radius-sm); font-size: 14px; margin-bottom: 12px; }
.lib-alert--error { background: #fdecea; color: #8a1c14; }
.lib-alert--ok { background: #e7f5ec; color: #19633a; }
[hidden] { display: none !important; }

/* ---------- Legal pages ---------- */

.lib-legal-wrap { max-width: 880px; }
.lib-legal { font-family: var(--lib-font); color: #222; font-size: 17px; line-height: 1.7; }
.lib-legal h2 { margin: 36px 0 10px; font: 800 22px/1.3 var(--lib-font); color: var(--lib-ink); scroll-margin-top: 80px; }
.lib-legal h3 { margin: 20px 0 8px; font: 700 17px var(--lib-font); color: var(--lib-ink); }
.lib-legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.lib-legal li { margin-bottom: 6px; }
.lib-legal a { color: var(--lib-brand); text-decoration: underline; text-underline-offset: 2px; }
.lib-legal .lib-button { text-decoration: none; border: 0; cursor: pointer; }
.lib-legal__toc { margin: 8px 0 12px; padding: 18px 22px; border-radius: var(--lib-radius); background: var(--lib-canvas); font-size: 15px; }
.lib-legal__toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.lib-legal__toc a { text-decoration: none; }
@media (max-width: 639px) { .lib-legal__toc ol { columns: 1; } .lib-legal { font-size: 16px; } }

/* ---------- Footer ---------- */

.lib-footer { background: #1a0b10; color: #d9cfd2; font-family: var(--lib-font); margin-top: 24px; }
.lib-footer .lib-wrap { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 28px; }
.lib-footer .lib-brand__name { font-size: 24px; color: #fff; }
.lib-footer p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #b9aeb1; }
.lib-footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; }
.lib-footer__links a { color: #e8dfe2; font-size: 14px; }
.lib-footer__links a:hover { color: #fff; text-decoration: underline; }
.lib-footer__legal { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 16px; text-align: center; font-size: 13px; color: #9d9194; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .lib-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
}
@media (max-width: 991px) {
    .lib-layout { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .lib-sidebar { position: static; }
    .lib-footer .lib-wrap { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
    :root { --lib-gutter: 16px; }
    .lib-topbar .lib-wrap { justify-content: center; gap: 14px; }
    .lib-brandbar .lib-wrap { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
    .lib-brand { text-align: center; }
    .lib-brand__name { font-size: 26px; }
    .lib-brand__tag { font-size: 12px; }
    .lib-search { flex-basis: auto; }
    .lib-main { padding-top: 12px; }
    .lib-layout, .lib-main > .lib-wrap:not(.lib-layout) { border-radius: 0; padding: 16px 12px; box-shadow: none; }
    .lib-page-head h1 { font-size: 26px; }
    .page .big_story h1.title { font-size: 26px !important; }
    .lib-article__title { font-size: 27px; letter-spacing: -.3px; }
    .lib-article__body { font-size: 17px; line-height: 1.7; }
    .lib-comment-form__row { grid-template-columns: 1fr; }
    .lib-comment-list--replies { margin-left: 20px; }
    .lib-scroller { grid-auto-columns: 62%; }
    .lib-share__btn { height: 36px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 639px) {
    .lib-grid { grid-template-columns: minmax(0, 1fr); }
    .lib-card__title { font-size: 19px; }
    .lib-card--compact .lib-card__media { flex-basis: 36%; min-height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .lib-card, .lib-card__media img { transition: none; }
    .lib-card:hover, .lib-card:hover .lib-card__media img { transform: none; }
}
