:root {
    --black: #0a0c0f;
    --charcoal: #111419;
    --panel: #15191f;
    --panel-2: #1c2128;
    --line: #303640;
    --white: #ffffff;
    --muted: #c2c7cf;
    --pink: #f45f8a;
    --pink-dark: #a82650;
    --container: 1370px;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 9%, rgba(244,95,138,.055), transparent 25%),
        linear-gradient(180deg, #0c0f13 0%, #101318 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.62;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pink); }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.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; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,10,13,.97);
    border-bottom: 2px solid var(--pink);
    backdrop-filter: blur(14px);
}
.header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: 290px 1fr auto;
    align-items: center;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
    width: 260px;
    height: 66px;
    object-fit: contain;
    object-position: left center;
}
.main-nav {
    min-height: 82px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 9px;
}
.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: #f7f7f9;
    font-weight: 750;
    text-decoration: none;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 0;
    height: 3px;
    background: transparent;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--pink); }
.main-nav a.is-active::after { background: var(--pink); }

.contact-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: var(--pink);
    border: 1px solid var(--pink);
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}
.contact-button:hover { color: #111; background: var(--pink); }

.menu-toggle {
    display: none;
    padding: 10px 15px;
    color: #fff;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
}

.hero {
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(10,12,15,.98), rgba(20,23,28,.93)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
}
.hero__grid {
    min-height: 270px;
    display: grid;
    grid-template-columns: 1fr .92fr;
    align-items: center;
    gap: 50px;
    padding-block: 34px;
}
.eyebrow {
    margin: 0 0 6px;
    color: var(--pink);
    font-size: .95rem;
}
.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.7rem, 7vw, 5.6rem);
    line-height: 1;
    letter-spacing: -.04em;
}
.pink-rule {
    display: block;
    width: 70px;
    height: 3px;
    margin-top: 20px;
    background: var(--pink);
}
.pink-rule--small { width: 48px; height: 2px; margin-top: 8px; }
.hero__lead {
    max-width: 610px;
    margin: 18px 0 0;
    color: #ececf0;
    font-size: 1.03rem;
}
.hero__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
}
.hero__logo-wrap img {
    width: min(440px, 92%);
    max-height: 225px;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,.45));
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 48px;
    padding-block: 25px 28px;
}
.section-title-row {
    min-height: 54px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}
.section-title-row h2 {
    margin: 0;
    font-size: 1.35rem;
}
.clear-link { font-size: .9rem; font-weight: 750; text-decoration: none; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}
.article-card {
    overflow: hidden;
    background: linear-gradient(180deg, #181c22, #12161b);
    border: 1px solid #343a44;
    border-radius: var(--radius);
    box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.article-card__image {
    display: block;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #0b0d10;
}
.article-card__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.article-card:hover .article-card__image > img { transform: scale(1.035); }

.article-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 42%, rgba(244,95,138,.12), transparent 34%),
        #0d1014;
}
.article-card__placeholder img {
    width: 80%;
    max-height: 100%;
    object-fit: contain;
}
.article-card__body { padding: 15px 17px 16px; }
.topic-pill {
    display: inline-flex;
    padding: 4px 10px;
    color: #160d11;
    background: var(--pink);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
}
.article-card h3 {
    min-height: 3.15em;
    margin: 10px 0 8px;
    font-size: 1.16rem;
    line-height: 1.32;
}
.article-card h3 a { color: #fff; text-decoration: none; }
.article-card h3 a:hover { color: var(--pink); }
.article-card p {
    min-height: 4.6em;
    margin: 0;
    color: var(--muted);
    font-size: .91rem;
}
.article-card__footer {
    margin-top: 15px;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #2a3038;
    color: #dddfe4;
    font-size: .8rem;
}
.read-more { font-weight: 850; text-decoration: none; white-space: nowrap; }

.sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
    padding-top: 4px;
}
.search-form {
    display: grid;
    grid-template-columns: 1fr 47px;
    overflow: hidden;
    border: 1px solid #3a414c;
    border-radius: 7px;
    background: #171b21;
}
.search-form input {
    min-width: 0;
    padding: 12px 14px;
    color: #fff;
    background: transparent;
    border: 0;
    font: inherit;
}
.search-form input::placeholder { color: #9da3ad; }
.search-form input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(244,95,138,.3); }
.search-form button {
    color: #fff;
    background: linear-gradient(180deg, #92274e, #6d1838);
    border: 0;
    border-left: 1px solid var(--pink-dark);
    font-size: 1.3rem;
    cursor: pointer;
}
.sidebar-section h2,
.support-card h2 { margin: 0; font-size: 1.15rem; }
.category-list { display: grid; }
.category-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 9px 0;
    color: #f4f4f6;
    border-bottom: 1px solid #2b3038;
    font-size: .88rem;
    text-decoration: none;
}
.category-list a:hover span { color: var(--pink); }
.category-list strong {
    display: grid;
    min-width: 27px;
    height: 25px;
    place-items: center;
    padding: 0 6px;
    color: #d7d9df;
    background: #1e2329;
    border: 1px solid #303640;
    border-radius: 5px;
    font-size: .73rem;
}
.muted { color: var(--muted); }

.support-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--pink);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(244,95,138,.055), rgba(255,255,255,.012));
}
.support-card__icon { color: var(--pink); font-size: 2.1rem; line-height: 1; }
.support-card p {
    margin: 5px 0 13px;
    color: #e6e7eb;
    font-size: .88rem;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    color: #170d11;
    background: var(--pink);
    border: 1px solid var(--pink);
    border-radius: 5px;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
}
.button:hover { color: #111; background: #ff87a8; }

.pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.pagination a {
    padding: 8px 13px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
}
.pagination a:hover { color: var(--pink); border-color: var(--pink); }

.empty-state {
    padding: 55px 25px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.site-footer {
    padding-top: 25px;
    background: #0b0e12;
    border-top: 1px solid var(--pink);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr .95fr 1.05fr 1.05fr;
    gap: 44px;
}
.brand--footer img {
    width: 260px;
    height: 76px;
    object-fit: contain;
    object-position: left center;
}
.footer-brand p {
    max-width: 325px;
    margin-top: 13px;
    color: var(--muted);
    font-size: .87rem;
}
.site-footer h2 { margin: 0; font-size: 1rem; }
.site-footer p { color: var(--muted); font-size: .86rem; }
.site-footer a {
    display: block;
    margin: 6px 0;
    color: #eff0f3;
    font-size: .84rem;
    text-decoration: none;
}
.site-footer a:hover { color: var(--pink); }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-grid > div:nth-child(2) a::first-letter { color: var(--pink); }

.footer-bottom {
    margin-top: 20px;
    padding-block: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 85px;
    border-top: 1px solid #262c34;
    color: #aeb3bb;
    font-size: .78rem;
}
.footer-bottom div { display: flex; gap: 13px; align-items: center; }
.footer-bottom a { display: inline; margin: 0; color: var(--pink); }

/* Article page */
.article-page { padding-block: 58px 70px; }
.article-header { max-width: 980px; text-align: center; }
.article-header h1 {
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 6vw, 4.7rem);
    line-height: 1.08;
}
.article-meta {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
}
.article-hero { margin-top: 35px; }
.article-hero img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.narrow { max-width: 850px; }
.article-content {
    margin-top: 42px;
    color: #e8e9ec;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.article-content h2 {
    margin-top: 2em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pink);
}
.article-content a { color: var(--pink); }
.article-content blockquote {
    margin: 2em 0;
    padding: 18px 22px;
    background: rgba(244,95,138,.09);
    border-left: 4px solid var(--pink);
}
.related-section {
    padding-block: 58px;
    background: #0d1014;
    border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
    .header-inner { grid-template-columns: 230px 1fr auto; gap: 15px; }
    .brand img { width: 220px; }
    .main-nav { gap: 2px; }
    .main-nav a { padding-inline: 8px; font-size: .9rem; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 930px) {
    .header-inner { min-height: 74px; grid-template-columns: 1fr auto; }
    .brand img { width: 205px; height: 58px; }
    .menu-toggle { display: inline-flex; }
    .contact-button { display: none; }
    .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 18px;
        right: 18px;
        min-height: auto;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        background: #0d1014;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 20px 40px rgba(0,0,0,.4);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { min-height: 42px; }
    .main-nav a::after { display: none; }
    .hero__grid { grid-template-columns: 1fr .75fr; gap: 20px; }
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .search-form { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .container { width: min(calc(100% - 26px), var(--container)); }
    .hero__grid { min-height: auto; grid-template-columns: 1fr; padding-block: 42px; }
    .hero__logo-wrap { display: none; }
    .hero h1 { font-size: 3.7rem; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card h3,
    .article-card p { min-height: auto; }
    .sidebar { grid-template-columns: 1fr; }
    .search-form { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
    .article-card__footer { align-items: flex-start; flex-direction: column; }
}



/* Manual CMS upgrade */
.admin-actions,
.row-actions,
.filter-groups {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-actions form,
.row-actions form { margin: 0; }
.filter-groups {
    justify-content: space-between;
    flex-wrap: wrap;
}
.source-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}
.source-badge--manual {
    color: #183f2b;
    background: #dff3e7;
}
.source-badge--rankscore {
    color: #5d2454;
    background: #f8dff0;
}
.button--danger {
    color: #fff;
    background: #a52d2d;
    border-color: #a52d2d;
}
.button--danger:hover {
    color: #fff;
    background: #7e2020;
    border-color: #7e2020;
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px;
    background: #eef2f3;
    border: 1px solid #b8c7ca;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}
.editor-toolbar button {
    min-height: 34px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #c7d1d3;
    border-radius: 5px;
    cursor: pointer;
}
.editor-toolbar button:hover { background: #e7eeee; }
.rich-editor {
    min-height: 430px;
    padding: 22px;
    color: #17202a;
    background: #fff;
    border: 1px solid #b8c7ca;
    border-radius: 0 0 9px 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.7;
}
.rich-editor:focus {
    outline: 3px solid rgba(11,127,131,.18);
    border-color: #0b7f83;
}
.rich-editor img {
    max-width: 100%;
    height: auto;
}
.field-help {
    margin: 7px 0 0;
    color: #5b6773;
    font-size: .85rem;
}
.editor-submit-row {
    display: flex;
    gap: 10px;
}
.preview-banner {
    padding: 10px 18px;
    color: #5f4106;
    background: #fff0c8;
    border-bottom: 1px solid #d8b65e;
    text-align: center;
    font-weight: 800;
}
@media (max-width: 760px) {
    .admin-actions,
    .row-actions,
    .filter-groups {
        align-items: stretch;
        flex-direction: column;
    }
    .row-actions form,
    .row-actions .button {
        width: 100%;
    }
}
