/* Site-wide extras, moved from Ghost Code injection (head) on 24th of November 2026. */

/* Ennui Nation: accessibility and polish */
.en-skip{position:absolute;left:-9999px;top:0;z-index:100000;background:#F9D432;color:#000;padding:12px 18px;font-weight:600;border-radius:0 0 6px 0}
.en-skip:focus{left:0}
:focus-visible{outline:3px solid #F9D432;outline-offset:3px}
/* hero: darker image for readable headline */
.gh-header.has-image .gh-header-image{filter:brightness(.55)}
.gh-header-title{text-shadow:0 2px 18px rgba(0,0,0,.6)}
.home-template .gh-header-title::after{content:"Independent journalism on how Britain and the wider world are actually run. Free to read.";display:block;margin-top:.9rem;font-size:max(1.7rem,.42em);font-weight:400;line-height:1.5}
/* paid-only model: hide the free email signup block in the footer */
.gh-footer-signup{display:none!important}
/* en-announce-text: black text on the yellow announcement bar */
.gh-announcement-bar,.gh-announcement-bar *{color:#000!important}
.gh-announcement-bar svg{fill:#000!important}
/* en-menu-gap: close the empty menu row under the logo (no menu links yet) */
.gh-navigation-menu:not(:has(li)){display:none!important}
/* en-feed-gap: while there are no posts, close the empty feed space above the footer (returns to normal once posts exist) */
.home-template:not(:has(.gh-card)) .gh-container{display:none!important}
.home-template:not(:has(.gh-card)) .gh-footer{margin-top:48px!important}

/* en-table-wrap: let short text tables wrap on phones instead of scrolling sideways */
@media (max-width: 640px) { .gh-content .gh-table table { white-space: normal; } .gh-content .gh-table th, .gh-content .gh-table td { min-width: 0; word-break: normal; overflow-wrap: anywhere; } }

/* en-footer: grouped footer (built by the en-footer script in Site Footer) */
.gh-footer:has(.en-footer) .gh-footer-bar,.gh-footer:has(.en-footer) .gh-social-links{display:none!important}
.gh-footer:has(.en-footer){margin-top:max(8vmin,48px)}
.en-footer{width:100%;font-family:Poppins,system-ui,-apple-system,sans-serif;text-align:left;color:rgba(255,255,255,.72);border-top:1px solid rgba(255,255,255,.12);padding-top:48px}
.en-f-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px;padding-bottom:40px}
.en-f-brand{grid-column:1/-1;max-width:440px}
.en-footer .en-f-logo{display:inline-block;line-height:0}
.en-f-logo img{height:64px;width:auto}
.en-f-tag{margin:16px 0 0;font-size:1.5rem;line-height:1.6;color:rgba(255,255,255,.78)}
.en-f-social{display:flex;flex-wrap:wrap;gap:2px;margin:14px 0 0 -12px}
.en-footer .en-f-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;color:#fff;transition:color .15s}
.en-footer .en-f-social a:hover{color:#F9D432}
.en-f-social svg{width:20px;height:20px}
.en-f-col h2{margin:0 0 6px;font-size:1.2rem;font-weight:600;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;color:#F9D432}
.en-f-col ul{list-style:none;margin:0;padding:0}
.en-f-col li{margin:0;padding:0}
.en-footer .en-f-col a{display:flex;align-items:center;justify-content:flex-start;min-height:44px;min-width:0;padding:6px 0;font-size:1.45rem;font-weight:500;line-height:1.35;color:#fff;text-decoration:none}
.en-footer .en-f-col a:hover,.en-footer .en-f-col a[aria-current]{color:#F9D432}
.en-f-bottom{display:flex;flex-direction:column;gap:14px;border-top:1px solid rgba(255,255,255,.12);padding:24px 0 40px;font-size:1.3rem;line-height:1.7}
.en-f-bottom p{margin:0}
.en-f-legal>span{display:block}
.en-footer .en-f-bottom a{display:inline;min-width:0;min-height:0;padding:0;color:inherit;text-decoration:underline}
.en-f-bottom .en-reg{color:#F9D432}
@media (max-width:359px){.en-f-top{grid-template-columns:1fr}}
@media (min-width:600px){.en-f-top{gap:40px 32px}.en-footer .en-f-col a{font-size:1.5rem}}
@media (min-width:960px){.en-f-top{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1080px){.en-f-top{grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,1fr));gap:36px 32px}.en-f-brand{grid-column:auto}.en-f-bottom{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:32px}.en-f-ghost{text-align:right;flex:none}}
/* en-support-actions: stacked support buttons in page content */
.en-support-actions{display:grid;grid-template-columns:1fr;gap:12px;margin:24px 0 0}
.gh-content .en-support-actions a.en-btn{display:flex;align-items:center;justify-content:center;min-height:50px;padding:12px 20px;border:1px solid rgba(255,255,255,.4);border-radius:6px;font-size:1.6rem;font-weight:600;line-height:1.3;text-align:center;color:#fff;text-decoration:none;transition:border-color .15s,color .15s,background .15s}
.gh-content .en-support-actions a.en-btn:hover{border-color:#F9D432;color:#F9D432}
.gh-content .en-support-actions a.en-btn-primary{background:#F9D432;border-color:#F9D432;color:#000}
.gh-content .en-support-actions a.en-btn-primary:hover{background:#ffe066;color:#000}
.gh-content .en-support-more{margin-top:20px}
@media (min-width:600px){.en-support-actions{grid-template-columns:1fr 1fr}.en-support-actions .en-btn-primary{grid-column:1/-1}}
/* en-tap: header icon buttons get a full 44px touch area */
.gh-navigation .gh-icon-button{width:44px;height:44px}
/* en-support-btn: black text on the yellow Support button for contrast */
.gh-navigation .gh-button,.gh-navigation .gh-button:hover{color:#000!important}

/* en-align, 24th of November 2026 (Ali): short items are centred in their own box at every size: cards, labels, intros, points, link lists, buttons and the footer. Long reading text stays left-aligned. */
.cx-covers > .en-col-label,.cx-covers > .cx-lede,.cx-start > .en-col-label,.en-col-extra > .en-col-label,.en-col-extra > .en-extra-lede,.en-col-extra > .en-extra-note,.en-col-others,.en-col-others > .en-col-label,.cx-feed-head,.cx-feed-head > .en-col-label{text-align:center}
.en-col-others ul{justify-content:center}
.en-rung-show{margin-left:auto;margin-right:auto}
.cx-about-body.is-open > p:first-of-type{text-align:center}
.en-f-bottom{flex-direction:column;align-items:center;gap:6px}
/* en-demo-fit: the Help Hub example conversation fits its content instead of leaving a tall empty space */
.gx-demo .gx-msgs{height:auto!important;min-height:0!important;max-height:min(520px,70vh)}
.gx-demo .gx-msgs:empty{padding:0}
.gx-demo .gx-msgs:empty::before{content:"Press the message below to send it.";display:block;padding:20px 16px;font-size:1.4rem;line-height:1.5;opacity:.7}
/* en-bitm-veil: the chart's gold box sits clear of both the tagline and the gold line under it */
.page-britain-in-the-margins .en-col-veil{margin-top:40px!important}
@media (min-width:375px){.page-britain-in-the-margins .en-col-veil{margin-top:36px!important}}
@media (min-width:600px){.page-britain-in-the-margins .en-col-veil{margin-top:32px!important}.page-britain-in-the-margins .cx-hero-art{transform:translateY(-8px)}}
@media (min-width:768px){.page-britain-in-the-margins .en-col-veil{margin-top:34px!important}.page-britain-in-the-margins .cx-hero-art{transform:translateY(-18px)}}
@media (min-width:1024px){.page-britain-in-the-margins .en-col-veil{margin-top:42px!important}.page-britain-in-the-margins .cx-hero-art{transform:translateY(-36px)}}
@media (min-width:1200px){.page-britain-in-the-margins .en-col-veil{margin-top:52px!important}.page-britain-in-the-margins .cx-hero-art{transform:translateY(-40px)}}
/* en-gold-black: brand gold always carries black text */
.gh-button,.gh-button:hover,.kg-btn-accent,.kg-btn-accent:hover,.kg-product-card-btn-accent,.kg-product-card-btn-accent:hover{color:#000!important}
/* en-toggle-h3: expandable titles are h3 now; keep their old look */
h3.kg-toggle-heading-text{line-height:1.3;letter-spacing:-.0085em}

/* en-align, 24th of November 2026: footer groups and support buttons centred in their own areas, at every screen width */
.en-footer{text-align:center}
.en-f-brand{max-width:520px;margin-inline:auto;justify-self:center}
.en-footer .en-f-logo{margin-inline:auto}
.en-f-social{justify-content:center;margin:14px 0 0}
.en-f-col h2{text-align:center}
.en-f-col ul{padding:0;margin-left:0;list-style:none}
.en-footer .en-f-col li{text-align:center}
.en-footer .en-f-col a{justify-content:center}
.en-f-bottom,.en-f-legal,.en-f-ghost{text-align:center;justify-content:center}
.en-support-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
@media (max-width:479px){.en-support-actions .en-btn{flex:1 1 100%;justify-content:center;text-align:center}}

/* en-align: the About page's support section is a call to action, so its heading, line and buttons are centred together */
#support-the-work,#support-the-work + p{text-align:center}

/* en-align: buttons set to centre in the editor are centred on every page and at every width */
.gh-content .kg-button-card.kg-align-center{justify-content:center!important;text-align:center}
.gh-content .kg-button-card.kg-align-center .kg-btn{margin-inline:auto}
