/* HongQiong News v2 — Ghost theme
   Accent colour: Ghost Admin → Design → Brand → Accent colour.
   Fonts: Ghost custom fonts if chosen in Admin, else Gelasio (serif, Georgia-metric) + Inter (sans). */

:root {
    --hq-accent: var(--ghost-accent-color, #C8102E);
    --hq-ink: #121417;
    --hq-text: #2a2e35;
    --hq-muted: #5d6570;
    --hq-rule: #dcdfe3;
    --hq-soft: #f6f6f4;
    --hq-bg: #ffffff;
    --hq-serif: var(--gh-font-heading, "Gelasio", Georgia, "Times New Roman", serif);
    --hq-body-serif: var(--gh-font-body, "Gelasio", Georgia, "Times New Roman", serif);
    --hq-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --hq-wrap: 1240px;
    --hq-gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
    margin: 0; background: var(--hq-bg); color: var(--hq-text);
    font-family: var(--hq-sans); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hq-accent); }
:focus-visible { outline: 3px solid var(--hq-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.hq-wrap { width: 100%; max-width: var(--hq-wrap); margin: 0 auto; padding: 0 24px; }
.hq-skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--hq-ink); color: #fff; padding: 10px 14px; }
.hq-skip:focus { left: 8px; color: #fff; }

/* ============ Masthead ============ */
.hq-utility { font-size: 12.5px; color: var(--hq-muted); border-bottom: 1px solid var(--hq-rule); }
.hq-utility-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.hq-date { color: var(--hq-ink); font-weight: 600; letter-spacing: 0.01em; }
.hq-tagline { font-style: italic; font-family: var(--hq-serif); font-size: 14px; }

.hq-masthead-in { position: relative; display: flex; justify-content: center; align-items: center; padding-top: 26px; padding-bottom: 22px; }
.hq-logo img { max-height: 62px; width: auto; }
.hq-logo-text { font-family: var(--hq-serif); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -0.5px; color: var(--hq-ink); }
.hq-search {
    position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 1px solid var(--hq-rule); border-radius: 50%;
    background: var(--hq-bg); color: var(--hq-ink); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.hq-search:hover { border-color: var(--hq-ink); color: var(--hq-accent); }

/* thick–thin newspaper rule around the section menu */
.hq-nav { position: sticky; top: 0; z-index: 10; background: var(--hq-bg); border-top: 3px solid var(--hq-ink); border-bottom: 1px solid var(--hq-ink); box-shadow: 0 1px 0 var(--hq-rule); }
.hq-nav .nav { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.hq-nav .nav::-webkit-scrollbar { display: none; }
.hq-nav .nav li { flex: none; }
.hq-nav .nav a {
    display: block; padding: 13px 16px 12px; border-bottom: 3px solid transparent;
    font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--hq-ink);
}
.hq-nav .nav a:hover { color: var(--hq-accent); }
.hq-nav .nav-current a { color: var(--hq-accent); border-bottom-color: var(--hq-accent); }

/* latest headlines strip */
.hq-strip { background: var(--hq-soft); border-bottom: 1px solid var(--hq-rule); }
.hq-strip-in { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.hq-strip-label { flex: none; background: var(--hq-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.hq-strip-list { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; white-space: nowrap; min-width: 0; font-size: 14px; font-weight: 500; color: var(--hq-ink); }
.hq-strip-list li { flex: none; }
.hq-strip-list li + li::before { content: "•"; color: var(--hq-accent); margin: 0 12px; }

.hq-main { padding-bottom: 56px; }

/* ============ Shared ============ */
.hq-kicker { display: inline-block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hq-accent); }
.hq-label { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hq-ink); }
.hq-meta { margin: 6px 0 0; font-size: 12.5px; color: var(--hq-muted); }
.hq-empty { color: var(--hq-muted); font-size: 15px; }
.hq-button { display: inline-block; padding: 12px 20px; background: var(--hq-ink); color: #fff; font-size: 14px; font-weight: 600; }
.hq-button:hover { background: var(--hq-accent); color: #fff; }

/* ============ Front page (three columns, ruled) ============ */
.hq-front {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
    grid-template-areas: "left lead right";
    padding: 28px 0 8px;
}
.hq-front-left { grid-area: left; padding-right: var(--hq-gutter); border-right: 1px solid var(--hq-rule); }
.hq-front-lead { grid-area: lead; padding: 0 var(--hq-gutter); }
.hq-front-right { grid-area: right; padding-left: var(--hq-gutter); border-left: 1px solid var(--hq-rule); }

.hq-lead-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hq-lead-credit { margin: 6px 0 0; font-size: 11.5px; color: var(--hq-muted); text-align: right; }
.hq-lead-credit a { text-decoration: underline; }
.hq-lead .hq-kicker { margin-top: 16px; }
.hq-lead-title { margin: 0; font-family: var(--hq-serif); font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -0.4px; color: var(--hq-ink); }
.hq-lead-excerpt { margin: 12px 0 0; font-family: var(--hq-body-serif); font-size: 19px; line-height: 1.5; color: var(--hq-text); }

.hq-brief { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hq-rule); }
.hq-brief:last-child { border-bottom: 0; margin-bottom: 0; }
.hq-brief-title { margin: 0; font-family: var(--hq-serif); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--hq-ink); }
.hq-brief-excerpt { margin: 8px 0 0; font-family: var(--hq-body-serif); font-size: 15.5px; line-height: 1.5; color: var(--hq-text); }

.hq-front-right .hq-label { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--hq-accent); }
.hq-ranked { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: rank; }
.hq-ranked li { position: relative; counter-increment: rank; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--hq-rule); }
.hq-ranked li:last-child { border-bottom: 0; }
.hq-ranked li::before { content: counter(rank); position: absolute; left: 0; top: 8px; font-family: var(--hq-serif); font-weight: 700; font-size: 28px; line-height: 1; color: var(--hq-accent); }
.hq-ranked a { display: block; font-family: var(--hq-serif); font-weight: 600; font-size: 16.5px; line-height: 1.3; color: var(--hq-ink); }
.hq-ranked .hq-meta { display: block; margin-top: 4px; }

/* ============ Section blocks ============ */
.hq-section { padding-top: 36px; }
.hq-section-head {
    position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    border-top: 1px solid var(--hq-ink); padding-top: 12px; margin-bottom: 20px;
}
.hq-section-head::before { content: ""; position: absolute; left: 0; top: -4px; width: 56px; height: 4px; background: var(--hq-accent); }
.hq-section-title { margin: 0; font-family: var(--hq-serif); font-weight: 700; font-size: 27px; line-height: 1.2; color: var(--hq-ink); }
.hq-more { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hq-ink); }
.hq-more:hover { color: var(--hq-accent); }

.hq-sec-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.hq-sec-main { padding-right: var(--hq-gutter); }
.hq-sec-col { padding: 0 var(--hq-gutter); border-left: 1px solid var(--hq-rule); }
.hq-sec-col:last-child { padding-right: 0; }
.hq-sec-col .hq-card + .hq-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hq-rule); }

/* ============ Cards ============ */
.hq-card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; }
.hq-card--big .hq-card-img img { aspect-ratio: 3 / 2; }
.hq-card-title { margin: 0; font-family: var(--hq-serif); font-weight: 700; font-size: 19px; line-height: 1.22; color: var(--hq-ink); }
.hq-card--big .hq-card-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.2px; }
.hq-card--text .hq-card-title { font-size: 19px; }
.hq-card--feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--hq-gutter); align-items: start; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--hq-ink); }
.hq-card--feature .hq-card-img img { aspect-ratio: 3 / 2; margin: 0; }
.hq-card--feature .hq-card-title { font-size: 32px; line-height: 1.12; }
.hq-card-excerpt { margin: 8px 0 0; font-family: var(--hq-body-serif); font-size: 16px; line-height: 1.5; color: var(--hq-text); }
.hq-card--big .hq-card-excerpt, .hq-card--feature .hq-card-excerpt { font-size: 17px; }

.hq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--hq-gutter); }
.hq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hq-older { margin: 32px 0 0; text-align: center; }

/* list rows (archives) */
.hq-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--hq-gutter); padding: 22px 0; border-bottom: 1px solid var(--hq-rule); }
.hq-row:not(:has(.hq-row-img)) { grid-template-columns: minmax(0, 1fr); }
.hq-row-title { margin: 0; font-family: var(--hq-serif); font-weight: 700; font-size: 23px; line-height: 1.2; color: var(--hq-ink); }
.hq-row-excerpt { margin: 8px 0 0; max-width: 62ch; font-family: var(--hq-body-serif); font-size: 16px; line-height: 1.5; }
.hq-row-img img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; }

/* ============ Archives ============ */
.hq-archive { max-width: 1000px; }
.hq-archive-head { padding: 40px 0 22px; margin-bottom: 26px; border-bottom: 3px solid var(--hq-ink); }
.hq-archive-head .hq-label { color: var(--hq-accent); margin-bottom: 6px; }
.hq-archive-title { margin: 0; font-family: var(--hq-serif); font-weight: 700; font-size: 48px; line-height: 1.08; color: var(--hq-ink); letter-spacing: -0.5px; }
.hq-archive-desc { margin: 12px 0 0; max-width: 62ch; font-family: var(--hq-body-serif); font-size: 18px; color: var(--hq-muted); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--hq-rule); font-size: 14px; font-weight: 600; color: var(--hq-muted); }
.pagination a { color: var(--hq-ink); }
.pagination a:hover { color: var(--hq-accent); }

/* ============ Article ============ */
.hq-article { padding-top: 36px; }
.hq-article-head { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hq-article-title { margin: 0; font-family: var(--hq-serif); font-weight: 700; font-size: 46px; line-height: 1.1; letter-spacing: -0.5px; color: var(--hq-ink); }
.hq-article-dek { margin: 16px 0 0; font-family: var(--hq-body-serif); font-size: 21px; line-height: 1.45; color: var(--hq-text); }
.hq-byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--hq-rule); border-bottom: 1px solid var(--hq-rule); }
.hq-byline-text { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.hq-byline-name { font-size: 14px; font-weight: 700; color: var(--hq-ink); }
.hq-byline .hq-meta { margin: 0; }

.hq-share { display: flex; align-items: center; gap: 8px; }
.hq-share-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hq-muted); margin-right: 2px; }
.hq-share-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hq-rule); background: var(--hq-bg); color: var(--hq-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hq-share-btn:hover { border-color: var(--hq-ink); color: var(--hq-accent); }
.hq-copy-msg { position: absolute; top: 100%; right: 0; margin-top: 6px; white-space: nowrap; font-size: 12px; color: var(--hq-ink); }

.hq-article-image { max-width: 1040px; margin: 28px auto 0; padding: 0 24px; }
.hq-article-image img { width: 100%; }
.hq-article-image figcaption, .gh-content figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--hq-muted); }
.hq-article-image figcaption a, .gh-content figcaption a { text-decoration: underline; }

/* reading column: ~68 characters per line */
.gh-content { max-width: 728px; margin: 32px auto 0; padding: 0 24px; font-family: var(--hq-body-serif); font-size: 20px; line-height: 1.7; color: var(--hq-text); }
.gh-content > * + * { margin-top: 1.15em; margin-bottom: 0; }
.gh-content > :first-child { margin-top: 0; }
.gh-content > p:first-of-type::first-letter { float: left; font-family: var(--hq-serif); font-weight: 700; font-size: 3.6em; line-height: 0.85; margin: 0.08em 0.08em 0 0; color: var(--hq-ink); }
.gh-content h2, .gh-content h3 { font-family: var(--hq-serif); color: var(--hq-ink); line-height: 1.25; margin-top: 1.8em; }
.gh-content h2 { font-size: 28px; }
.gh-content h3 { font-size: 22px; }
.gh-content a { color: var(--hq-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gh-content strong { color: var(--hq-ink); }
.gh-content blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--hq-accent); font-family: var(--hq-serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--hq-ink); }
.gh-content hr { border: 0; border-top: 1px solid var(--hq-rule); margin: 2.2em 0; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.4em; }
/* "Sources" heading + list at the end of each story */
.gh-content h3 + ul { margin-top: 0.6em; padding: 16px 18px 16px 2.2em; background: var(--hq-soft); border-left: 3px solid var(--hq-accent); font-family: var(--hq-sans); font-size: 15px; line-height: 1.5; }
.gh-content img { margin: 0 auto; }

/* Ghost editor cards: required widths */
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); transform: translateX(calc(50vw - 50%)); }
.kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.kg-width-full img { width: 100%; }
.kg-image { margin-left: auto; margin-right: auto; }

.hq-standards { max-width: 728px; margin: 40px auto 0; padding: 0 24px; }
.hq-standards p { margin: 0; padding: 16px 0 0; border-top: 3px solid var(--hq-ink); font-size: 14px; line-height: 1.55; color: var(--hq-muted); }
.hq-standards strong { color: var(--hq-ink); }
.hq-standards a { color: var(--hq-accent); text-decoration: underline; text-underline-offset: 2px; }

.hq-related { padding-top: 48px; }
.hq-page .gh-content > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }

/* ============ Error ============ */
.hq-error { padding: 80px 24px; text-align: center; }
.hq-error .hq-label { color: var(--hq-accent); }
.hq-error .hq-archive-desc { margin-left: auto; margin-right: auto; }

/* ============ Footer ============ */
.hq-footer { background: var(--hq-ink); color: #c8cdd4; margin-top: 32px; border-top: 4px solid var(--hq-accent); }
.hq-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 48px 0 32px; }
.hq-footer-title { font-family: var(--hq-serif); font-weight: 700; font-size: 30px; line-height: 1.1; color: #fff; }
.hq-footer-desc { margin: 8px 0 0; font-family: var(--hq-serif); font-style: italic; font-size: 16px; color: #e4e7eb; }
.hq-footer-note { margin: 14px 0 0; max-width: 46ch; font-size: 14px; line-height: 1.55; }
.hq-footer-head { margin: 4px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.hq-footer .nav { margin: 0; padding: 0; list-style: none; }
.hq-footer .nav li + li { margin-top: 8px; }
.hq-footer .nav a { font-size: 14.5px; color: #c8cdd4; }
.hq-footer .nav a:hover { color: #fff; text-decoration: underline; }
.hq-footer-copy { margin: 0; padding: 18px 0 28px; border-top: 1px solid #2c323a; font-size: 13px; color: #9aa2ad; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
    .hq-front { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "lead right" "left left"; }
    .hq-front-lead { padding-left: 0; }
    .hq-front-left { padding: 24px 0 0; margin-top: 24px; border-right: 0; border-top: 1px solid var(--hq-rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hq-gutter); }
    .hq-brief { border-bottom: 0; margin: 0; padding: 0; }
    .hq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hq-sec-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .hq-sec-col:last-child { grid-column: 2; padding-left: var(--hq-gutter); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hq-rule); }
}
@media (max-width: 760px) {
    :root { --hq-gutter: 20px; }
    .hq-wrap { padding: 0 16px; }
    .hq-tagline { display: none; }
    .hq-masthead-in { justify-content: flex-start; padding-top: 16px; padding-bottom: 14px; }
    .hq-logo img { max-height: 38px; max-width: calc(100vw - 96px); }
    .hq-logo-text { font-size: 30px; }
    .hq-search { right: 12px; }
    .hq-nav .nav { justify-content: flex-start; }
    .hq-nav .nav a { padding: 12px 11px 11px; font-size: 12.5px; }
    .hq-strip-list { overflow-x: auto; scrollbar-width: none; }
    .hq-front { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "left" "right"; padding-top: 16px; }
    .hq-front-lead { padding: 0; }
    .hq-front-left { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hq-brief { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--hq-rule); }
    .hq-front-right { padding: 20px 0 0; margin-top: 8px; border-left: 0; border-top: 1px solid var(--hq-ink); }
    .hq-lead-title { font-size: 29px; }
    .hq-lead-excerpt { font-size: 17px; }
    .hq-sec-grid { grid-template-columns: minmax(0, 1fr); }
    .hq-sec-main { padding: 0; }
    .hq-sec-col, .hq-sec-col:last-child { grid-column: auto; padding: 18px 0 0; margin-top: 18px; border-left: 0; border-top: 1px solid var(--hq-rule); }
    .hq-card--big .hq-card-title { font-size: 24px; }
    .hq-grid, .hq-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .hq-card--feature { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hq-card--feature .hq-card-title { font-size: 26px; }
    .hq-row { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 16px 0; }
    .hq-row-title { font-size: 18px; }
    .hq-row-img img { width: 104px; }
    .hq-row-excerpt { display: none; }
    .hq-archive-title { font-size: 34px; }
    .hq-article { padding-top: 22px; }
    .hq-article-head { padding: 0 16px; }
    .hq-article-title { font-size: 31px; }
    .hq-article-dek { font-size: 18px; }
    .hq-article-image { padding: 0; }
    .hq-article-image figcaption { padding: 0 16px; }
    .gh-content { padding: 0 16px; font-size: 18px; }
    .hq-standards { padding: 0 16px; }
    .hq-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
