/* The Frontier — Ghost theme styles */
:root {
    --ink: #13262f;
    --ink-soft: #3a4d56;
    --muted: #6a7d86;
    --accent: #a5d1dc;
    --accent-deep: #2c6b7b;
    --pale: #f1f6f8;
    --placeholder: #e2eef2;
    --line: #d8e3e7;
    --white: #fff;
    --font-head: var(--gh-font-heading, "Montserrat", "Helvetica Neue", Arial, sans-serif);
    --font-body: var(--gh-font-body, "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif);
    --radius: 6px;
    --container: 1200px;
    --narrow: 720px;
    --wide: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
button, input { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: calc(var(--narrow) + 48px); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 4px; border: 1px solid transparent;
    font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.2;
    cursor: pointer; white-space: nowrap; transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .88; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line); }

/* Top bar + header */
.topbar { background: var(--ink); color: #dce8ec; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar-tagline { font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.05; text-transform: uppercase; letter-spacing: .06em; }
.brand-logo { max-height: 40px; width: auto; }
.brand-light { color: var(--white); }

.site-nav { flex: 1; display: flex; justify-content: center; }
.nav { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent-deep); }
.nav .nav-current a, .nav a.is-active { border-bottom-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Shared type bits */
.kicker {
    font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent-deep); margin: 0 0 6px;
}
.kicker span + span::before { content: "·"; margin: 0 .45em; }
.kicker:empty { display: none; }
.meta { font-size: 13px; color: var(--muted); }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin-top: 12px; }
.empty { color: var(--muted); font-style: italic; font-size: 15px; }

.section { padding-top: 48px; padding-bottom: 48px; }
.section-pale { background: var(--pale); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 24px; }
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-sub { color: var(--ink-soft); margin: -12px 0 22px; }
.more-link { font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.more-link:hover { color: var(--accent-deep); }
.subhead { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.subhead-lg { font-size: 14px; margin-top: 48px; }

/* Cards */
.grid { display: grid; gap: 32px 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-media { aspect-ratio: 3 / 2; background: var(--placeholder); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card-link:hover .card-title { color: var(--accent-deep); }

/* Homepage top */
.home-top { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 40px; }
.lead-media { display: block; aspect-ratio: 16 / 10; background: var(--accent); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-bottom: 12px; }
.lead-title a:hover { color: var(--accent-deep); }
.lead-excerpt { font-size: 18px; color: var(--ink-soft); margin-bottom: 10px; }
.byline-line { color: var(--muted); font-size: 15px; }
.rail-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.list-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.list-item:last-child { border-bottom: 0; }
.list-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.list-item a:hover .list-title { color: var(--accent-deep); }

/* Subscribe */
.sub-band { background: var(--accent); padding: 40px 0; }
.sub-band-slim { background: var(--pale); padding: 28px 0; }
.sub-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.sub-band-slim .sub-band-inner { display: flex; justify-content: space-between; }
.sub-band h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.sub-band-slim h2 { font-size: 20px; margin: 0; }
.sub-band p { color: var(--ink-soft); }
.sub-row { display: flex; gap: 10px; }
.sub-input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #9fb6be; border-radius: 4px; background: var(--white); color: var(--ink); }
.sub-input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.sub-msg { display: none; font-size: 14px; margin-top: 8px; }
.sub-form.success .sub-success, .sub-form.error .sub-error { display: block; }
.sub-form.success .sub-row { display: none; }
.sub-form.loading button { opacity: .6; pointer-events: none; }

/* Focus pillars + sectors + countries */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card, .hub-block-pillar .hub-head {
    display: flex; flex-direction: column; gap: 6px; background: var(--ink); color: var(--white);
    border-radius: 10px; padding: 26px 26px 28px; transition: transform .15s, box-shadow .15s;
}
.pillar-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(19, 38, 47, .18); }
.pillar-num { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pillar-name { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.15; }
.pillar-blurb { color: #c9dbe1; font-size: 16px; }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector-card, .country-card {
    display: flex; flex-direction: column; gap: 2px; background: var(--white);
    border-top: 4px solid var(--accent); border-radius: 4px; padding: 14px 18px 16px;
}
.section-pale .sector-card { background: var(--white); }
.sector-card:hover, .country-card:hover { background: var(--placeholder); }
.sector-name, .country-name { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.sector-blurb, .country-note { font-size: 14px; color: var(--muted); }
.country-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.country-card { border: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--white); }

/* Company profiles + deal flow */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.profile-chip { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
.profile-chip:hover { background: var(--pale); }
.profile-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { display: flex; flex-direction: column; min-width: 0; }
.profile-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.3; }
.profile-meta { font-size: 13px; color: var(--muted); }
.profile-meta span + span::before { content: "·"; margin: 0 .4em; }
.split-side .list-item { padding: 12px 0; }

.disclosure-strip { border-top: 1px solid var(--line); padding: 22px 0; color: var(--ink-soft); font-size: 16px; }
.disclosure-strip strong, .disclosure-strip a { color: var(--ink); font-weight: 700; }

/* Tag + hub pages */
.tag-hero, .page-hero { background: var(--accent); padding: 48px 0 44px; }
.tag-hero h1, .page-hero h1 { font-size: clamp(34px, 4.5vw, 48px); font-weight: 700; }
.chips { border-bottom: 1px solid var(--line); padding: 14px 0; }
.chips-inner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font-family: var(--font-head); font-weight: 600; font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }

.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.feature-media { display: block; aspect-ratio: 16 / 10; background: var(--placeholder); border-radius: 4px; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: 10px; }
.feature-title a:hover { color: var(--accent-deep); }
.feature-excerpt { color: var(--ink-soft); margin-bottom: 10px; }

.hub-grid { display: grid; gap: 24px; }
.hub-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hub-block { display: flex; flex-direction: column; }
.hub-head { display: flex; flex-direction: column; gap: 4px; background: var(--pale); border-top: 4px solid var(--accent); border-radius: 4px; padding: 18px 20px; }
.hub-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.hub-blurb { color: var(--muted); font-size: 15px; }
.hub-cta { font-family: var(--font-head); font-weight: 600; font-size: 13px; margin-top: 8px; }
.hub-block-pillar .hub-name { font-size: 26px; }
.hub-block-pillar .hub-blurb { color: #c9dbe1; }
.hub-block-pillar .hub-cta { color: var(--accent); }
.hub-head:hover { box-shadow: 0 6px 18px rgba(19, 38, 47, .12); }
.hub-list { padding: 4px 4px 0; }
.hub-notes { margin-top: 48px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 48px; }
.page-number { font-size: 14px; color: var(--muted); }

.author-hero { display: flex; gap: 28px; align-items: center; }
.author-hero-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.author-hero .meta a { text-decoration: underline; }

/* Article */
.article-head { padding-top: 40px; padding-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.pill:hover { border-color: var(--ink); }
.pill-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.article-title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; margin-bottom: 14px; }
.standfirst { font-size: 20px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); overflow: hidden; display: block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; }
.byline-name { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.byline-name a:hover { color: var(--accent-deep); }
.article-image { margin: 8px auto 36px; }
.article-image img { width: 100%; border-radius: 4px; background: var(--accent); }
.article-image figcaption, .gh-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Post content (Ghost editor output) */
.gh-content {
    display: grid;
    grid-template-columns: [full-start] minmax(24px, 1fr) [wide-start] minmax(0, calc((var(--wide) - var(--narrow)) / 2)) [main-start] min(var(--narrow), calc(100% - 48px)) [main-end] minmax(0, calc((var(--wide) - var(--narrow)) / 2)) [wide-end] minmax(24px, 1fr) [full-end];
    font-size: 19px; line-height: 1.7; color: #22343c;
}
.gh-content > * { grid-column: main; margin: 0 0 1.25em; }
.gh-content > .kg-width-wide { grid-column: wide; }
.gh-content > .kg-width-full { grid-column: full; }
.gh-content > .kg-width-full img { width: 100%; }
.gh-content h2 { font-size: 26px; font-weight: 700; margin: 1.6em 0 .6em; }
.gh-content h3 { font-size: 21px; font-weight: 700; margin: 1.4em 0 .5em; }
.gh-content a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li { margin-bottom: .4em; }
.gh-content blockquote {
    border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin-left: 0;
    font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.45; color: var(--ink);
}
.gh-content blockquote.kg-blockquote-alt { border: 0; text-align: center; padding: 8px 32px; font-size: 24px; font-style: normal; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content img { border-radius: 4px; }
.gh-content .kg-callout-card { background: var(--pale); border-radius: 4px; padding: 20px 22px; }
.gh-content .kg-callout-card .kg-callout-text { font-size: 17px; }
.gh-content .kg-bookmark-card a { text-decoration: none; }
.gh-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* "At a glance" box: paste the HTML snippet from the README into an HTML card */
.glance { background: var(--pale); border-radius: 4px; padding: 20px 22px; font-size: 17px; }
.glance p { margin: 0 0 .45em; }
.glance p:last-child { margin: 0; }
.glance-label { font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }

.article-foot { padding-top: 12px; padding-bottom: 56px; }
.disclosure-box { border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; color: var(--ink-soft); margin-bottom: 24px; }
.disclosure-box strong { color: var(--ink); }
.disclosure-link { font-size: 14px; margin-top: 6px; }
.disclosure-link a { text-decoration: underline; }
.author-box { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--line); padding: 20px 0; }
.author-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.author-bio { font-size: 15px; color: var(--ink-soft); }
.sub-box { background: var(--ink); color: var(--white); border-radius: 6px; padding: 26px; margin-top: 12px; }
.sub-box h2 { color: var(--white); font-size: 22px; margin-bottom: 6px; }
.sub-box p { color: #c9dbe1; margin-bottom: 16px; font-size: 15px; }
.sub-box .sub-input { border-color: transparent; }
.sub-box .sub-msg { color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: #c9dbe1; font-size: 15px; padding: 44px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { margin-bottom: 4px; }
.footer-nav .nav { flex-wrap: wrap; gap: 14px 40px; display: grid; grid-template-columns: repeat(3, max-content); }
.footer-nav .nav a { color: #e6eff2; font-weight: 500; }
.footer-nav .nav a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: 13px; color: #8ea6ae; }

/* Responsive */
@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    }
    .nav-open .site-nav { display: block; }
    .site-nav .nav { flex-direction: column; gap: 0; }
    .site-nav .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .header-inner { justify-content: space-between; position: relative; }
    .country-grid { grid-template-columns: repeat(4, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .home-top, .split, .sub-band-inner, .feature-split, .footer-inner { grid-template-columns: 1fr; }
    .sub-band-slim .sub-band-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .grid-4, .grid-3, .hub-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid, .sector-grid { grid-template-columns: 1fr; }
    .country-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar-right { display: none; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .grid-4, .grid-3, .hub-grid-3, .profile-grid { grid-template-columns: 1fr; }
    .header-actions .btn { padding: 9px 12px; font-size: 13px; }
    .sub-row { flex-direction: column; }
    .gh-content { font-size: 18px; }
    .footer-nav .nav { grid-template-columns: repeat(2, max-content); }
    .author-hero { flex-direction: column; align-items: flex-start; }
    .footer-base { flex-direction: column; }
    .topbar { display: none; }
}

/* Cover banner (publication cover) */
.cover-banner { position: relative; background: var(--ink); color: var(--white); overflow: hidden; min-height: 360px; display: flex; align-items: center; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cover-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 28, 35, .85) 0%, rgba(13, 28, 35, .35) 55%, rgba(13, 28, 35, 0) 100%); }
.cover-inner { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.cover-eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cover-title { color: var(--white); font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; max-width: 640px; line-height: 1.12; }
.cover-desc { color: #c9dbe1; font-size: 19px; max-width: 520px; margin-top: 16px; }
.cover-btn { margin-top: 26px; padding: 12px 24px; font-size: 15px; }
@media (max-width: 700px) {
    .cover-banner { min-height: 300px; }
    .cover-banner::after { background: rgba(13, 28, 35, .62); }
    .cover-inner { padding-top: 44px; padding-bottom: 44px; }
    .cover-desc { font-size: 17px; }
}
