/* Small additions on top of theme.json. Colours come from the global palette. */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link:focus { position: fixed; inset-inline-start: 1rem; top: 1rem; z-index: 1000; background: var(--wp--preset--color--base); padding: .5rem 1rem; }

/* Header */
.hwd-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--wp--preset--color--line); }
.admin-bar .hwd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hwd-header { top: 0; position: relative; } }
.hwd-header .wp-block-site-logo img { height: auto; max-height: 52px; width: auto; }
.hwd-header .wp-block-navigation a { font-weight: 600; }
.hwd-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.hwd-header .wp-block-navigation .current-menu-item > a, .hwd-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--primary); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; }
@media (max-width: 599px) {
	.hwd-header .wp-block-site-logo img { max-height: 40px; }
	.hwd-header__cta .wp-block-button__link { padding: .5em .8em !important; font-size: .85rem !important; }
}

/* Buttons */
.wp-block-button__link { transition: background-color .15s, color .15s, border-color .15s; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background-color: var(--wp--preset--color--primary-hover) !important; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ice); color: var(--wp--preset--color--primary-hover); border-color: var(--wp--preset--color--primary-hover); }

/* Hero */
.hwd-hero h1 { text-wrap: balance; }
.hwd-hero p { text-wrap: pretty; }

/* Footer */
.hwd-footer a { color: var(--wp--preset--color--base); text-decoration: none; }
.hwd-footer a:hover { text-decoration: underline; }
.hwd-footer .wp-block-navigation a { font-weight: 400; }

/* Posts */
.wp-block-post-template.is-layout-grid > li { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 1.25rem; }
.wp-block-post-featured-image img { border-radius: 10px; }
.wp-block-post-content :where(table) { border-collapse: collapse; width: 100%; }
.wp-block-post-content :where(th, td) { border: 1px solid var(--wp--preset--color--line); padding: .6rem; }
.hwd-plain-list { list-style: none; padding-inline-start: 0; margin: 0; display: grid; gap: .4rem; }
.hwd-footer__sep { border: 0; border-top: 1px solid #1C2B4D !important; opacity: 1; }
.hwd-footer__small { font-size: .82rem; color: #B8C4D6; }
.hwd-footer .wp-block-site-title { font-weight: 700; }
/* Brand logo */
.wp-block-site-logo .hwd-brand, .wp-block-site-title .hwd-brand { display: inline-block; line-height: 0; }
.hwd-brand img { display: block; width: 230px; max-width: 100%; height: auto; }
.hwd-brand--white img { width: 220px; }
@media (min-width: 1000px) and (max-width: 1279px) { .wp-block-site-logo .hwd-brand img { width: 190px; } }
@media (max-width: 600px) { .wp-block-site-logo .hwd-brand img { width: 170px; } }
