/*
Theme Name: Haxell Giddings
Theme URI: https://www.haxellgiddings.co.uk
Author: MultiTask Computing
Description: Custom theme for Haxell Giddings Limited, accountants in Fawkham, Kent. Ledger Grid (1B) design with styled Resources, Factsheets and News content.
Version: 1.0.8
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haxell-giddings
*/

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
	font-family: "Outfit";
	src: url("assets/fonts/outfit-latin-var.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--hg-blue: #1F6DB2;
	--hg-blue-dark: #185890;
	--hg-blue-light: #C7DBEF;
	--hg-blue-tint: #E4EEF8;
	--hg-ink: #1C2330;
	--hg-text: #4A5363;
	--hg-line: #E3E7EE;
	--hg-line-strong: #C9D2DE;
	--hg-ground: #F6F7F9;
	--hg-white: #FFFFFF;
	--hg-radius: 18px;
	--hg-radius-sm: 12px;
	--hg-heading: "Outfit", "Helvetica Neue", Arial, sans-serif;
	--hg-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--hg-max: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--hg-ground);
	color: var(--hg-ink);
	font-family: var(--hg-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--hg-blue); text-underline-offset: 3px; }
a:hover { color: var(--hg-ink); }
:focus-visible { outline: 3px solid var(--hg-blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--hg-heading); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--hg-ink); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.hg-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--hg-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.hg-skip:focus { left: 8px; color: #fff; }

.hg-wrap { max-width: var(--hg-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hg-section { padding-top: 88px; padding-bottom: 88px; }
.hg-section--tight-top { padding-top: 0; }
.hg-blue { color: var(--hg-blue); }
.hg-h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin: 0; max-width: 20em; }
.hg-h3 { font-size: 30px; margin: 0; }
.hg-h4 { font-size: 21px; margin: 0 0 8px; }
.hg-eyebrow { margin: 0 0 12px; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hg-blue); }
.hg-lead { font-size: 20px; color: var(--hg-ink); }

/* ---------- Buttons & links ---------- */
.hg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 12px 20px; border-radius: var(--hg-radius-sm);
	background: var(--hg-blue); color: #fff; border: 1.5px solid var(--hg-blue);
	font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.hg-btn:hover { background: var(--hg-blue-dark); border-color: var(--hg-blue-dark); color: #fff; }
.hg-btn--sm { padding: 10px 16px; font-size: 15px; }
.hg-btn--lg { padding: 16px 26px; font-size: 17px; }
.hg-btn--block { width: 100%; }
.hg-btn--ghost { background: #fff; color: var(--hg-ink); border-color: var(--hg-line-strong); }
.hg-btn--ghost:hover { background: var(--hg-blue-tint); color: var(--hg-ink); border-color: var(--hg-blue-light); }
.hg-btn--white { background: #fff; color: var(--hg-blue); border-color: #fff; }
.hg-btn--white:hover { background: var(--hg-blue-tint); color: var(--hg-blue-dark); border-color: var(--hg-blue-tint); }
.hg-btn--outline-white { background: transparent; color: #fff; border-color: #fff; }
.hg-btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.hg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hg-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.hg-link-arrow:hover { text-decoration: underline; }
.hg-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--hg-blue-tint); color: var(--hg-blue); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hg-pill--solid { background: var(--hg-blue); color: #fff; font-size: 13px; padding: 4px 12px; margin-bottom: 14px; }

/* ---------- Logo ---------- */
.hg-logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; flex: none; }
.hg-logo .hg-mark { flex: none; }
.hg-logo__words { display: flex; flex-direction: column; font-family: var(--hg-heading); font-weight: 600; font-size: 31px; line-height: 1; letter-spacing: -0.02em; }
.hg-logo__a { color: var(--hg-ink); }
.hg-logo__b { color: var(--hg-blue); }
.hg-logo--reverse .hg-logo__words { flex-direction: row; gap: 6px; font-size: 22px; }
.hg-logo--reverse .hg-logo__a, .hg-logo--reverse .hg-logo__b { color: #fff; }
.custom-logo-link img { max-height: 84px; width: auto; }
.hg-header .hg-mark { width: 69px; height: 69px; }

/* ---------- Header & nav ---------- */
.hg-header { background: #fff; border-bottom: 1px solid var(--hg-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .hg-header { top: 32px; }
.hg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.hg-nav { display: flex; align-items: center; gap: 28px; }
.hg-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.hg-nav__list a { color: var(--hg-ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.hg-nav__list a:hover { color: var(--hg-blue); }
.hg-nav__list a[aria-current="page"], .hg-nav__list .current-menu-item > a { color: var(--hg-blue); border-bottom-color: var(--hg-blue); }
.hg-nav__actions { display: flex; gap: 10px; flex: none; }
.hg-menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--hg-line-strong); background: #fff; color: var(--hg-ink); align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.hg-menu-toggle__close { display: none; }

/* Between laptop and wide desktop, show the phone button as an icon so the menu stays on one line */
.hg-nav__phone-sr { display: none; }
.hg-nav__list { flex-wrap: nowrap; }
.hg-nav__list a { white-space: nowrap; }
@media (max-width: 1480px) and (min-width: 1281px) {
	.hg-nav { gap: 20px; }
	.hg-nav__list { gap: 4px 18px; }
	.hg-nav__phone-text { display: none; }
	.hg-nav__phone-sr { display: inline; }
	.hg-nav__actions .hg-btn--ghost { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 1280px) {
	.hg-menu-toggle { display: inline-flex; }
	.hg-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--hg-line);
		flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 24px 24px;
		box-shadow: 0 16px 32px rgba(28,35,48,.08);
	}
	.hg-nav-open .hg-nav { display: flex; }
	.hg-nav-open .hg-menu-toggle__open { display: none; }
	.hg-nav-open .hg-menu-toggle__close { display: inline; }
	.hg-nav__list { flex-direction: column; gap: 0; flex-wrap: wrap; }
	.hg-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hg-line); }
	.hg-nav__list a[aria-current="page"] { border-bottom-color: var(--hg-line); }
	.hg-nav__actions { flex-wrap: wrap; }
	.hg-header__inner { position: relative; min-height: 84px; }
}
@media (max-width: 782px) { .admin-bar .hg-header { top: 0; position: relative; } }

/* ---------- Homepage hero ---------- */
.hg-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.hg-hero__text { flex: 1 1 480px; min-width: 0; }
.hg-hero__title { font-size: clamp(40px, 5vw, 64px); line-height: 1.03; letter-spacing: -0.03em; margin: 0 0 20px; }
.hg-hero__lead { font-size: 20px; color: var(--hg-text); max-width: 32em; margin: 0 0 32px; }
.hg-hero__grid { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hg-tile { aspect-ratio: 1 / 1; border-radius: var(--hg-radius); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 16px; overflow: hidden; }
img.hg-tile { padding: 0; object-fit: cover; width: 100%; height: 100%; }
.hg-tile--blue { background: var(--hg-blue); color: #fff; }
.hg-tile--blue span:last-child { color: var(--hg-blue-tint); }
.hg-tile--light { background: var(--hg-blue-light); color: #12355C; }
.hg-tile__big { font-family: var(--hg-heading); font-size: 46px; font-weight: 600; line-height: 1; }
.hg-tile__mid { font-family: var(--hg-heading); font-size: 24px; font-weight: 600; line-height: 1.15; }

.hg-photo { border-radius: var(--hg-radius); width: 100%; object-fit: cover; }
.hg-photo--placeholder { background: #DCE3EC; color: var(--hg-text); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; font-size: 14px; padding: 16px; }
.hg-photo--wide { aspect-ratio: 4 / 3; height: auto; }

/* ---------- Software strip ---------- */
.hg-strip { background: #fff; border-top: 1px solid var(--hg-line); border-bottom: 1px solid var(--hg-line); }
.hg-strip__inner { display: flex; flex-wrap: wrap; gap: 10px 44px; align-items: center; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
.hg-strip__label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hg-text); font-weight: 600; }
.hg-strip__item { font-family: var(--hg-heading); font-weight: 600; font-size: 19px; color: var(--hg-text); }

/* ---------- Section heads & service cells ---------- */
.hg-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; margin-bottom: 32px; }
.hg-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2px; background: var(--hg-line); border: 2px solid var(--hg-line); border-radius: 20px; overflow: hidden; }
.hg-cell { background: #fff; padding: 32px; text-decoration: none; color: var(--hg-ink); display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: background-color .15s; }
.hg-cell:hover { background: var(--hg-blue-tint); color: var(--hg-ink); }
.hg-cell__n { font-family: var(--hg-heading); font-size: 15px; font-weight: 600; color: var(--hg-blue); }
.hg-cell__title { font-family: var(--hg-heading); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.hg-cell__body { color: var(--hg-text); font-size: 16px; }

/* ---------- Banner (MTD) ---------- */
.hg-banner { background: var(--hg-ink); color: #D6DCE5; border-radius: 22px; padding: 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.hg-banner__text { flex: 1 1 520px; min-width: 0; }
.hg-banner h2 { color: #fff; font-size: 34px; margin: 0 0 10px; }
.hg-banner p { margin: 0; }

/* ---------- Bands, split, values ---------- */
.hg-band { background: #fff; border-top: 1px solid var(--hg-line); border-bottom: 1px solid var(--hg-line); }
.hg-band--dark { background: var(--hg-ink); border: 0; }
.hg-band--dark .hg-value { background: rgba(255,255,255,.06); }
.hg-band--dark .hg-value h3 { color: #fff; }
.hg-band--dark .hg-value p { color: #C3CAD5; }
.hg-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hg-split__text, .hg-split__media { flex: 1 1 460px; min-width: 0; }
.hg-split__text .hg-h2 { margin-bottom: 18px; }
.hg-split__text > p { color: var(--hg-text); }
.hg-values { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hg-values--four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hg-value { background: var(--hg-ground); border-radius: 16px; padding: 24px; }
.hg-value h3 { font-size: 20px; margin: 0 0 4px; }
.hg-value p { margin: 0; color: var(--hg-text); font-size: 15px; }

/* ---------- Two column: news + dates ---------- */
.hg-two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.hg-two-col__main { flex: 3 1 560px; min-width: 0; }
.hg-two-col__side { flex: 2 1 340px; min-width: 0; }
.hg-ledger { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--hg-radius); overflow: hidden; font-size: 15px; border: 1px solid var(--hg-line); }
.hg-ledger th, .hg-ledger td { padding: 14px 18px; border-bottom: 1px solid var(--hg-line); text-align: left; vertical-align: top; }
.hg-ledger tr:last-child th, .hg-ledger tr:last-child td { border-bottom: 0; }
.hg-ledger th { font-family: var(--hg-heading); font-weight: 600; color: var(--hg-blue); white-space: nowrap; font-size: 17px; width: 1%; }
.hg-ledger td { color: var(--hg-text); }

/* ---------- Cards ---------- */
.hg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hg-cards--three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hg-card { background: #fff; border: 1px solid var(--hg-line); border-radius: var(--hg-radius); overflow: hidden; display: flex; flex-direction: column; }
.hg-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hg-card__body { padding: 24px; }
.hg-card__meta { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hg-blue); margin: 0 0 8px; }
.hg-card__title { font-size: 21px; margin: 0 0 8px; line-height: 1.25; }
.hg-card__title a { color: var(--hg-ink); text-decoration: none; }
.hg-card__title a:hover { color: var(--hg-blue); text-decoration: underline; }
.hg-card__excerpt { color: var(--hg-text); font-size: 15px; margin: 0; }

/* ---------- Resource tiles ---------- */
.hg-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hg-resource { background: var(--hg-blue-tint); border-radius: 16px; padding: 22px 24px; text-decoration: none; color: var(--hg-ink); display: flex; flex-direction: column; gap: 4px; transition: background-color .15s; }
.hg-resource strong { font-family: var(--hg-heading); font-size: 19px; font-weight: 600; }
.hg-resource span { font-size: 15px; color: var(--hg-text); }
.hg-resource:hover { background: var(--hg-blue-light); color: var(--hg-ink); }

/* ---------- CTA band ---------- */
.hg-cta { background: var(--hg-blue); color: #fff; border-radius: 22px; padding: 52px 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.hg-cta__text { flex: 1 1 420px; min-width: 0; }
.hg-cta h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 8px; }
.hg-cta p { margin: 0; color: var(--hg-blue-tint); font-size: 18px; }
.hg-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.hg-footer { background: var(--hg-ink); color: #C3CAD5; font-size: 15px; margin-top: 0; }
.hg-footer a { color: #E6EAF0; text-decoration: none; }
.hg-footer a:hover { color: #fff; text-decoration: underline; }
.hg-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-top: 60px; padding-bottom: 36px; }
.hg-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.hg-footer__address { margin: 0; }
.hg-footer__title { color: #fff; font-family: var(--hg-body); font-size: 15px; font-weight: 700; letter-spacing: 0; margin: 0 0 12px; }
.hg-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hg-footer__legal { border-top: 1px solid #343D4D; padding-top: 18px; padding-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: #A3ADBC; }
.hg-footer__legal a { color: #C3CAD5; }

.hg-mobile-bar { display: none; }
@media (max-width: 700px) {
	.hg-mobile-bar {
		display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
		background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 8px 24px rgba(28,35,48,.22);
	}
	.hg-mobile-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 999px; font-weight: 600; color: var(--hg-ink); text-decoration: none; }
	.hg-mobile-bar .hg-mobile-bar__primary { flex: 2; background: var(--hg-blue); color: #fff; }
	.hg-footer { padding-bottom: 72px; }
	.hg-nav__actions { display: none; }
}

/* ---------- Inner page hero ---------- */
.hg-page-hero, .hg-feed-hero { background: #fff; border-bottom: 1px solid var(--hg-line); }
.hg-page-hero .hg-wrap { padding-top: 56px; padding-bottom: 56px; }
.hg-page-hero__title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 14px; }
.hg-page-hero__intro { font-size: 20px; color: var(--hg-text); max-width: 38em; margin: 0; }
.hg-crumbs { font-size: 14px; color: var(--hg-text); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.hg-crumbs a { color: var(--hg-text); }
.hg-crumbs a:hover { color: var(--hg-blue); }

/* ---------- Side navigation layout ---------- */
.hg-with-side { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.hg-with-side__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hg-side-nav { flex: 1 1 240px; min-width: 0; background: #fff; border: 1px solid var(--hg-line); border-radius: var(--hg-radius); padding: 18px; }
@media (min-width: 900px) { .hg-side-nav { position: sticky; top: 128px; } }
.hg-side-nav__label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hg-text); margin: 4px 12px 10px; }
.hg-side-nav ul { list-style: none; margin: 0; padding: 0; }
.hg-side-nav a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--hg-ink); font-weight: 600; font-size: 15px; }
.hg-side-nav a:hover { background: var(--hg-blue-tint); }

/* ---------- Services ---------- */
.hg-service { background: #fff; border: 1px solid var(--hg-line); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px 40px; scroll-margin-top: 134px; }
.hg-service__text { flex: 2 1 360px; min-width: 0; }
.hg-service__text h2 { font-size: 28px; margin: 6px 0 10px; }
.hg-service__text p { color: var(--hg-text); margin: 0; }
.hg-service__aside { flex: 1 1 220px; min-width: 0; background: var(--hg-ground); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.hg-service__aside strong { color: var(--hg-ink); }
.hg-service__aside span { color: var(--hg-text); }
.hg-service__aside .hg-link-arrow { margin-top: 8px; }
.hg-service--software { background: var(--hg-blue-tint); border-color: var(--hg-blue-light); }
.hg-faq { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.hg-faq h2 { margin-bottom: 8px; }
.hg-faq details { background: #fff; border: 1px solid var(--hg-line); border-radius: 14px; padding: 16px 20px; }
.hg-faq summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.hg-faq details p { margin: 10px 0 0; color: var(--hg-text); }

/* ---------- Team ---------- */
.hg-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.hg-person { background: #fff; border: 1px solid var(--hg-line); border-radius: 20px; overflow: hidden; }
.hg-person__photo { aspect-ratio: 4 / 5; border-radius: 0; }
.hg-person__body { padding: 22px 24px; }
.hg-person__body h3 { font-size: 23px; margin: 0 0 4px; }
.hg-person__role { color: var(--hg-blue); font-weight: 600; font-size: 15px; margin: 0; }

/* ---------- Panels, contact ---------- */
.hg-panel { background: #fff; border: 1px solid var(--hg-line); border-radius: 20px; padding: 28px; }
.hg-panel > :last-child { margin-bottom: 0; }
.hg-panel--dark { background: var(--hg-ink); border-color: var(--hg-ink); color: #D6DCE5; }
.hg-panel--dark a { color: #fff; }
.hg-panel--blue { background: var(--hg-blue); border-color: var(--hg-blue); color: var(--hg-blue-tint); }
.hg-panel--blue h2 { color: #fff; }
.hg-contact { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hg-contact__main { flex: 999 1 540px; min-width: 0; }
.hg-contact__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hg-details { margin: 0; }
.hg-details dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9FC3E8; margin-top: 18px; }
.hg-details dt:first-child { margin-top: 0; }
.hg-details dd { margin: 4px 0 0; }
.hg-details__big { font-family: var(--hg-heading); font-size: 28px; font-weight: 600; text-decoration: none; }
.hg-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--hg-line); background: #DCE3EC; }
.hg-map iframe { display: block; width: 100%; height: 380px; border: 0; }
.hg-side-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #fff !important; font-weight: 600; text-decoration: none; }

/* Forms: Contact Form 7 and others */
.hg-form .hg-h3 { margin-bottom: 18px; }
.hg-form label, .hg-feed label { font-weight: 600; font-size: 15px; color: var(--hg-ink); }
.hg-form input[type="text"], .hg-form input[type="email"], .hg-form input[type="tel"], .hg-form input[type="number"], .hg-form input[type="url"], .hg-form select, .hg-form textarea,
.hg-search input, .hg-prose input[type="text"], .hg-prose input[type="email"], .hg-prose textarea, .hg-prose select {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--hg-line-strong); border-radius: var(--hg-radius-sm);
	background: var(--hg-ground); color: var(--hg-ink); min-height: 48px; margin-top: 6px;
}
.hg-form textarea { min-height: 150px; resize: vertical; }
.hg-form input:focus, .hg-form textarea:focus, .hg-form select:focus, .hg-search input:focus { outline: none; border-color: var(--hg-blue); box-shadow: 0 0 0 3px var(--hg-blue-tint); background: #fff; }
.hg-form p { margin: 0 0 18px; }
.hg-form .wpcf7-submit, .hg-prose input[type="submit"], .hg-prose button[type="submit"] {
	background: var(--hg-blue); color: #fff; border: 0; border-radius: var(--hg-radius-sm); padding: 14px 28px; font-weight: 600; font-size: 17px; cursor: pointer; min-height: 48px;
}
.hg-form .wpcf7-submit:hover { background: var(--hg-blue-dark); }
.wpcf7-not-valid-tip { color: #B42318; font-size: 14px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; border-radius: var(--hg-radius-sm); padding: 12px 16px; }
.wpcf7-list-item { margin: 0 16px 0 0; }
/* Contact Form 7 anywhere on the site (contact page, data request page) */
.wpcf7 { max-width: 760px; }
.hg-prose .wpcf7, .hg-panel .wpcf7 { margin-top: 8px; }
.wpcf7 form > p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-weight: 600; font-size: 15px; color: var(--hg-ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"], .wpcf7 input[type="url"], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--hg-line-strong); border-radius: var(--hg-radius-sm);
	background: var(--hg-ground); color: var(--hg-ink); min-height: 48px; margin-top: 6px; font-weight: 400;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--hg-blue); box-shadow: 0 0 0 3px var(--hg-blue-tint); background: #fff; }
.wpcf7 .wpcf7-submit { background: var(--hg-blue); color: #fff; border: 0; border-radius: var(--hg-radius-sm); padding: 14px 28px; font-weight: 600; font-size: 17px; cursor: pointer; min-height: 48px; }
.wpcf7 .wpcf7-submit:hover { background: var(--hg-blue-dark); }
.wpcf7 .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--hg-text); }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--hg-blue); }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.hg-search { display: flex; gap: 8px; max-width: 520px; }
.hg-search input { margin: 0; background: #fff; }
.hg-search .hg-btn { flex: none; }

/* ---------- Prose (page content, posts) ---------- */
.hg-prose { max-width: 760px; }
.hg-prose h2 { font-size: 30px; margin-top: 1.4em; }
.hg-prose h3 { font-size: 23px; margin-top: 1.3em; }
.hg-prose ul, .hg-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.hg-prose li { margin-bottom: 6px; }
.hg-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.hg-prose th, .hg-prose td { border-bottom: 1px solid var(--hg-line); padding: 10px 12px; text-align: left; }
.hg-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hg-blue); font-family: var(--hg-heading); font-size: 21px; color: var(--hg-ink); }
.hg-post-image { border-radius: var(--hg-radius); margin: 0 0 24px; }
.hg-post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hg-line); font-weight: 600; }
.hg-pagination { margin-top: 32px; }
.hg-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.hg-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--hg-line); text-decoration: none; color: var(--hg-ink); font-weight: 600; }
.hg-pagination .page-numbers.current { background: var(--hg-blue); border-color: var(--hg-blue); color: #fff; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--hg-text); }

/* =========================================================
   Resources, Factsheets and News (external content service)
   The service prints Bootstrap 3 style markup inside
   <resourcecontent>; these rules restyle it to match.
   ========================================================= */
.hg-feed-hero .hg-wrap { padding-top: 28px; padding-bottom: 0; }
.hg-feed-hero .hg-crumbs { margin-bottom: 18px; }
.hg-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; margin-bottom: -1px; }
.hg-tabs a { flex: none; padding: 12px 16px; font-weight: 600; font-size: 15px; color: var(--hg-text); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.hg-tabs a:hover { color: var(--hg-blue); }
.hg-tabs a[aria-current="page"] { color: var(--hg-blue); border-bottom-color: var(--hg-blue); }
.hg-section--feed { padding-top: 48px; }
.hg-feed-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .hg-feed-side { position: sticky; top: 128px; } }
.hg-feed-side .hg-ledger th { font-size: 15px; }
.hg-feed-side .hg-ledger th, .hg-feed-side .hg-ledger td { padding: 10px 12px; }
.hg-feed-side .hg-panel .hg-ledger { border: 0; }

.hg-feed form#form1 { margin: 0; }
.hg-feed resourcecontent { display: block; color: var(--hg-ink); }
.hg-feed resourcecontent > h1, .hg-feed resourcecontent h1:first-child {
	font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px;
}
.hg-feed resourcecontent > p:first-of-type, .hg-feed .opening-para p { font-size: 19px; color: var(--hg-text); max-width: 42em; }
.hg-feed resourcecontent h2 { font-size: 28px; margin: 1.6em 0 0.5em; }
.hg-feed resourcecontent h3 { font-size: 21px; margin: 1.4em 0 0.4em; }
.hg-feed resourcecontent h4 { font-size: 18px; margin: 1.2em 0 0.4em; }
.hg-feed resourcecontent p, .hg-feed resourcecontent li { color: #2E3644; }
.hg-feed resourcecontent ul, .hg-feed resourcecontent ol { padding-left: 1.3em; }
.hg-feed resourcecontent li { margin-bottom: 6px; }
.hg-feed resourcecontent nav { margin-top: 28px; }
.hg-feed .closing-para { margin-top: 28px; padding: 20px 24px; background: var(--hg-blue-tint); border-radius: 14px; }
.hg-feed .closing-para p:last-child { margin: 0; }

/* Index pages: card grid (.row / .col-md-4 / a.cta) */
.hg-feed .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 14px; }
.hg-feed nav .row + .row { margin-top: 0; }
.hg-feed nav { display: block; }
.hg-feed nav > .row:last-child { margin-bottom: 0; }
.hg-feed [class*="col-md-"], .hg-feed [class*="col-sm-"] { min-width: 0; }
.hg-feed a.cta {
	display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius); padding: 26px; text-decoration: none; color: var(--hg-ink);
	transition: background-color .15s, border-color .15s;
}
.hg-feed a.cta:hover { background: var(--hg-blue-tint); border-color: var(--hg-blue-light); }
.hg-feed a.cta h3 { font-size: 21px; margin: 0 0 6px; color: var(--hg-ink); }
.hg-feed a.cta h3::after { content: " →"; color: var(--hg-blue); }
.hg-feed a.cta p { font-size: 15px; color: var(--hg-text); margin: 0; }
/* Make the three-wide rows behave as one continuous grid */
.hg-feed nav:has(> .row) { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hg-feed nav:has(> .row) > .row { display: contents; }

/* Listing pages: ledger list (.panel) */
.hg-feed .panel-group { margin: 0 0 8px; }
.hg-feed .panel { background: #fff; border: 1px solid var(--hg-line); border-radius: 0; margin: 0 0 -1px; padding: 0; }
.hg-feed nav > .panel:first-child, .hg-feed .panel-group > .panel:first-child { border-radius: var(--hg-radius-sm) var(--hg-radius-sm) 0 0; }
.hg-feed nav > .panel:last-child, .hg-feed .panel-group > .panel:last-child { border-radius: 0 0 var(--hg-radius-sm) var(--hg-radius-sm); }
.hg-feed nav > .panel:only-child { border-radius: var(--hg-radius-sm); }
.hg-feed nav > .panel { padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 2px 28px; align-items: baseline; }
.hg-feed nav > .panel .panel-heading { flex: 1 1 260px; min-width: 0; }
.hg-feed nav > .panel .panel-body { flex: 2 1 300px; min-width: 0; color: var(--hg-text); font-size: 15px; }
.hg-feed .panel-title { font-size: 18px; margin: 0; }
.hg-feed .panel-title a { color: var(--hg-ink); text-decoration: none; }
.hg-feed .panel-title a::after { content: " →"; color: var(--hg-blue); }
.hg-feed nav > .panel:hover { background: var(--hg-blue-tint); position: relative; z-index: 1; }
.hg-feed nav > .panel:hover .panel-title a { color: var(--hg-blue); }

/* Tax calendar accordion */
.hg-feed .tax-calendar-month { font-family: var(--hg-heading); font-weight: 600; font-size: 22px; color: var(--hg-ink); margin: 28px 0 10px; }
.hg-feed #tax-calendar-widget > .tax-calendar-month:first-child { margin-top: 8px; }
.hg-feed .panel-group .panel { padding: 0; }
.hg-feed .panel-group .panel-heading { padding: 0; border-bottom: 1px solid var(--hg-line); }
.hg-feed .panel-group .panel-heading:last-of-type { border-bottom: 0; }
.hg-feed .panel-group .panel-heading a { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 14px 44px 14px 18px; color: var(--hg-ink); text-decoration: none; font-weight: 600; }
.hg-feed .panel-group .panel-heading a:hover { background: var(--hg-blue-tint); }
.hg-feed .panel-group .panel-heading a::after { content: "+"; position: absolute; right: 18px; top: 14px; color: var(--hg-blue); font-weight: 700; font-size: 20px; line-height: 1.2; }
.hg-feed .panel-group .panel-heading a[aria-expanded="true"]::after { content: "–"; }
.hg-feed .tax-calendar-date { font-family: var(--hg-heading); color: var(--hg-blue); min-width: 110px; flex: none; }
.hg-feed .panel-heading.company .tax-calendar-date::before, .hg-feed .panel-heading.personal .tax-calendar-date::before {
	display: inline-block; font-family: var(--hg-body); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 2px;
}
.hg-feed .panel-heading.company .tax-calendar-date::before { content: "Business"; background: var(--hg-blue-tint); color: var(--hg-blue-dark); }
.hg-feed .panel-heading.personal .tax-calendar-date::before { content: "Personal"; background: #EEF0F3; color: #3A4352; }
.hg-feed .panel-collapse .panel-body { padding: 4px 18px 16px; color: var(--hg-text); font-size: 15px; border-bottom: 1px solid var(--hg-line); }
.hg-feed .collapse { display: none; }
.hg-feed .collapse.in, .hg-feed .collapse.show { display: block; }
/* The service turns the calendar's own toggles off; site.js adds ours back.
   Without JavaScript every entry's detail is shown. */
.hg-feed #tax-calendar-widget .collapse { display: block; height: auto !important; }
.hg-calendar-js .hg-feed #tax-calendar-widget .collapse { display: none; }
.hg-calendar-js .hg-feed #tax-calendar-widget .collapse.in { display: block; }
.hg-feed #tax-calendar-widget .panel-heading { border-bottom: 0; }
.hg-feed #tax-calendar-widget .panel-heading a::after { content: none; }
.hg-calendar-js .hg-feed #tax-calendar-widget .panel-heading a { cursor: pointer; }
.hg-calendar-js .hg-feed #tax-calendar-widget .panel-heading a::after { content: "+"; }
.hg-calendar-js .hg-feed #tax-calendar-widget .panel-heading a[aria-expanded="true"]::after { content: "–"; }
.hg-feed #tax-calendar-widget .panel-heading { border-top: 1px solid var(--hg-line); }
.hg-feed #tax-calendar-widget .panel-heading:first-child { border-top: 0; }
.hg-feed #tax-calendar-widget .panel-collapse .panel-body { padding-left: 142px; border-bottom: 0; }
.hg-feed #tax-calendar-widget .panel-collapse .panel-body p:last-child { margin-bottom: 0; }
.hg-feed .collapsing { position: relative; height: 0; overflow: hidden; transition: height .25s ease; }

/* Tables (tax rates) */
.hg-feed table.table, .hg-feed resourcecontent table {
	width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius-sm); overflow: hidden; margin: 0 0 24px; font-size: 15px;
}
.hg-feed resourcecontent th, .hg-feed resourcecontent td { padding: 11px 14px; border-bottom: 1px solid var(--hg-line); text-align: left; vertical-align: top; }
.hg-feed resourcecontent thead th { background: var(--hg-ink); color: #fff; font-weight: 600; border-bottom: 0; }
.hg-feed resourcecontent tbody tr:nth-child(even) td { background: #FAFBFC; }
.hg-feed resourcecontent tbody tr:last-child td { border-bottom: 0; }
.hg-feed resourcecontent td:not(:first-child) { font-variant-numeric: tabular-nums; }
.hg-feed resourcecontent sup { font-size: 0.7em; }

/* Calculators (Bootstrap 3 forms) */
.hg-feed .form-horizontal { background: #fff; border: 1px solid var(--hg-line); border-radius: var(--hg-radius); padding: 28px; margin: 20px 0; }
.hg-feed .form-group { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 18px; align-items: flex-start; }
.hg-feed .form-group .control-label { flex: 1 1 200px; min-width: 0; padding-top: 12px; }
.hg-feed .form-group > div { flex: 2 1 280px; min-width: 0; }
.hg-feed .form-group > div[class*="offset"] { margin-left: auto; }
.hg-feed .form-actions .form-group > div { flex-basis: 100%; }
.hg-feed .form-control {
	display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--hg-line-strong);
	border-radius: var(--hg-radius-sm); background: var(--hg-ground); color: var(--hg-ink);
}
.hg-feed .form-control:focus { outline: none; border-color: var(--hg-blue); box-shadow: 0 0 0 3px var(--hg-blue-tint); background: #fff; }
.hg-feed .help-block { font-size: 14px; color: var(--hg-text); margin: 6px 0 0; }
.hg-feed .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--hg-radius-sm); font-weight: 600; font-size: 16px; cursor: pointer; border: 1.5px solid var(--hg-line-strong); background: #fff; color: var(--hg-ink); }
.hg-feed .btn-primary { background: var(--hg-blue); border-color: var(--hg-blue); color: #fff; }
.hg-feed .btn-primary:hover { background: var(--hg-blue-dark); border-color: var(--hg-blue-dark); }
.hg-feed .alert { border-radius: var(--hg-radius-sm); padding: 12px 16px; margin: 0 0 16px; }
.hg-feed .alert:empty { display: none; }
.hg-feed .alert-danger { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.hg-feed .alert-info, .hg-feed .alert-success { background: var(--hg-blue-tint); color: var(--hg-ink); border: 1px solid var(--hg-blue-light); }
.hg-feed .calculator-disclaimer { font-size: 14px; color: var(--hg-text); }
.hg-feed label.error, .hg-feed .error { color: #B42318; font-size: 14px; }
.hg-feed .resource-col-halved { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.hg-feed .hidden { display: none !important; }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
	body { font-size: 16px; }
	.hg-header .hg-mark { width: 54px; height: 54px; }
	.hg-header .hg-logo__words { font-size: 25px; }
	.hg-section { padding-top: 56px; padding-bottom: 56px; }
	.hg-section--tight-top { padding-top: 0; }
	.hg-hero { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
	.hg-hero__lead { font-size: 18px; }
	.hg-actions .hg-btn { width: 100%; }
	.hg-tile { padding: 18px; }
	.hg-tile__big { font-size: 34px; }
	.hg-tile__mid { font-size: 19px; }
	.hg-tile span:last-child { font-size: 14px; }
	.hg-cells { grid-template-columns: 1fr; }
	.hg-cell { min-height: 0; padding: 24px; }
	.hg-banner, .hg-cta { padding: 30px 24px; }
	.hg-banner h2 { font-size: 26px; }
	.hg-values { grid-template-columns: 1fr; }
	.hg-page-hero .hg-wrap { padding-top: 36px; padding-bottom: 36px; }
	.hg-page-hero__intro { font-size: 18px; }
	.hg-service { padding: 24px; }
	.hg-side-nav { display: none; }
	.hg-form .wpcf7-submit { width: 100%; }
	.hg-feed .form-horizontal { padding: 20px; }
	.hg-feed nav > .panel { padding: 16px 18px; }
	.hg-feed .tax-calendar-date { min-width: 0; }
	.hg-feed #tax-calendar-widget .panel-collapse .panel-body { padding-left: 18px; }
	.hg-feed .panel-group .panel-heading a { flex-wrap: wrap; }
	.hg-feed resourcecontent table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.hg-feed resourcecontent th, .hg-feed resourcecontent td { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* ---------- News (resourceCENTRE newswire) ---------- */
/* Headline list: one card per story. */
.hg-feed a.news-block {
	display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 24px; align-items: baseline;
	background: #fff; border: 1px solid var(--hg-line); border-radius: var(--hg-radius-sm);
	padding: 20px 24px; margin: 0 0 12px; text-decoration: none; color: inherit;
	transition: background .15s ease, border-color .15s ease;
}
.hg-feed resourcecontent > p:first-of-type + a.news-block { margin-top: 24px; }
.hg-feed a.news-block:hover { background: var(--hg-blue-tint); border-color: var(--hg-blue-light); }
.hg-feed a.news-block .date { margin: 0; font-family: var(--hg-heading); font-weight: 600; font-size: 15px; color: var(--hg-blue); white-space: nowrap; }
.hg-feed a.news-block .overflow { min-width: 0; }
.hg-feed a.news-block h5 { font-family: var(--hg-heading); font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--hg-ink); margin: 0 0 6px; }
.hg-feed a.news-block h5::after { content: " →"; color: var(--hg-blue); }
.hg-feed a.news-block:hover h5 { color: var(--hg-blue); }
.hg-feed a.news-block .overflow p { margin: 0; font-size: 15px; color: var(--hg-text); }
@media (max-width: 600px) {
	.hg-feed a.news-block { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; }
}
/* "Archive News" link under the headlines. */
.hg-feed a.news-block + h3 { font-size: 21px; margin: 36px 0 10px; }
.hg-feed a.news-block + h3 + p a {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
	border: 1px solid var(--hg-line-strong); background: #fff; color: var(--hg-ink); font-weight: 600; text-decoration: none;
}
.hg-feed a.news-block + h3 + p a::after { content: "→"; color: var(--hg-blue); }
.hg-feed a.news-block + h3 + p a:hover { border-color: var(--hg-blue); color: var(--hg-blue); }

/* Budget and Spring Statement contents: title left, summary right, like the factsheet lists. */
.hg-feed dl.dl-surround {
	display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
	background: #fff; border: 1px solid var(--hg-line); border-radius: var(--hg-radius-sm);
	margin: 24px 0 0; overflow: hidden;
}
.hg-feed dl.dl-surround dt, .hg-feed dl.dl-surround dd { margin: 0; padding: 18px 22px; border-top: 1px solid var(--hg-line); }
.hg-feed dl.dl-surround dt:first-of-type, .hg-feed dl.dl-surround dt:first-of-type + dd { border-top: 0; }
.hg-feed dl.dl-surround dt { font-family: var(--hg-heading); font-weight: 600; font-size: 18px; padding-right: 8px; }
.hg-feed dl.dl-surround dt a { color: var(--hg-ink); text-decoration: none; }
.hg-feed dl.dl-surround dt a::after { content: " →"; color: var(--hg-blue); }
.hg-feed dl.dl-surround dt a:hover { color: var(--hg-blue); }
.hg-feed dl.dl-surround dt a::before { content: ""; position: absolute; inset: 0; }
.hg-feed dl.dl-surround dt { position: relative; }
.hg-feed dl.dl-surround dd { color: var(--hg-text); font-size: 15px; padding-left: 0; }
@media (max-width: 600px) {
	.hg-feed dl.dl-surround { grid-template-columns: minmax(0, 1fr); }
	.hg-feed dl.dl-surround dd { border-top: 0; padding: 0 20px 18px; }
	.hg-feed dl.dl-surround dt { padding: 18px 20px 4px; }
}

/* News archive: month accordion. Open by default without JS; site.js makes it collapsible. */
.hg-feed #news-archive .collapse { display: block; height: auto !important; }
.hg-acc-js .hg-feed #news-archive .collapse { display: none; }
.hg-acc-js .hg-feed #news-archive .collapse.in { display: block; }
.hg-feed #news-archive .panel-group { margin: 8px 0 0; }
.hg-feed #news-archive .panel-group .panel-heading { border-bottom: 0; }
.hg-feed #news-archive .panel-group .panel-heading a { font-family: var(--hg-heading); font-size: 18px; }
.hg-feed #news-archive .panel-collapse .panel-body { border-top: 1px solid var(--hg-line); border-bottom: 0; padding: 8px 18px 14px; }
.hg-feed #news-archive .panel-body ul { list-style: none; padding: 0; margin: 0; }
.hg-feed #news-archive .panel-body li { margin: 0; border-bottom: 1px solid var(--hg-line); }
.hg-feed #news-archive .panel-body li:last-child { border-bottom: 0; }
.hg-feed #news-archive .panel-body li a { display: block; padding: 10px 0; color: var(--hg-ink); text-decoration: none; }
.hg-feed #news-archive .panel-body li a:hover { color: var(--hg-blue); }
