.headgoal-site .top-bar { position: relative; }
.header-tools { display: flex; gap: 9px; align-items: center; }
.quick-search summary { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); list-style: none; cursor: pointer; }
.quick-search summary::-webkit-details-marker { display: none; }
.quick-search summary svg { width: 20px; stroke: currentColor; stroke-width: 1.7; }
.quick-search[open] summary { background: var(--field); color: var(--lime); }
.quick-search-form { position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); width: min(360px, 100%); padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 28px #132d2722; }
.quick-search-form label { display: block; margin-bottom: 8px; font-weight: 720; }
.quick-search-form > div { display: flex; gap: 6px; }
.quick-search-form input { flex: 1; min-width: 0; border: 1px solid #809286; border-radius: 7px; padding: 8px; font: inherit; }
.quick-search-form button { border: 0; border-radius: 7px; background: var(--field); color: var(--white); padding: 8px 12px; font: inherit; font-weight: 720; cursor: pointer; }
.top-nav a[aria-current] { color: #1d6140; text-decoration: underline; text-underline-offset: .24em; }
.site-footer > div { display: grid; gap: 4px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 7px 20px; }

.page-frame { margin-top: 29px; }
.page-intro { padding: clamp(22px, 4.4vw, 52px); border-radius: 20px; background: #e9f0e4; border: 1px solid #d7e1d0; }
.page-intro .back { margin-bottom: 24px; }
.page-intro h1 { max-width: 24ch; font-size: clamp(2.15rem, 5.4vw, 4.4rem); }
.page-intro > p:not(.kicker) { max-width: 56ch; margin-top: 12px; color: var(--muted); }
.historic-intro { background: #f0ecdd; border-color: #ddd7c3; }
.historic-intro .kicker { color: #6f541d; }
.sportspress-page .page-intro { background: linear-gradient(120deg, #102c25, #193d32); border-color: #193d32; color: var(--white); }
.sportspress-page .page-intro .kicker, .sportspress-page .page-intro .back { color: var(--lime); }
.sportspress-page .page-intro .back:focus-visible { outline-color: var(--lime); }
.entry-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 17px; margin-top: 15px; color: var(--muted); font-size: .94rem; }
.entry-meta a { text-underline-offset: .2em; }
.feature-image { max-width: 900px; margin: 23px auto 0; }
.feature-image img { display: block; width: 100%; height: auto; max-height: 510px; object-fit: contain; border-radius: 14px; background: #e9eee6; }
.entry-body { min-width: 0; margin-top: 23px; overflow-x: auto; }
.table-scroll-hint { display: none; }
.entry-body:empty { display: none; }
.prose { padding: clamp(17px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); border-radius: 15px; overflow-wrap: anywhere; }
.hg-article .prose, .entry-comments { max-width: 900px; margin-inline: auto; }
.entry-body > :first-child { margin-top: 0; }
.entry-body > :last-child { margin-bottom: 0; }
.entry-body p, .entry-body ul, .entry-body ol { margin-block: 0 1em; }
.entry-body h2, .entry-body h3, .entry-body h4 { margin: 1.25em 0 .55em; }
.entry-body h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.entry-body h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.entry-body a, .entry-comments a { color: #215f40; text-underline-offset: .18em; }
.entry-body img, .entry-body video, .entry-body iframe { max-width: 100%; }
.entry-body img, .entry-body video { height: auto; }
.entry-body figure { margin-inline: 0; }
.entry-body figcaption, .entry-body .wp-caption-text { color: var(--muted); font-size: .86rem; }
.entry-body blockquote { margin: 1.2em 0; padding: .6em 1.1em; background: #edf3e8; border-left: 3px solid #327653; }
.entry-body blockquote > :last-child { margin-bottom: 0; }
.entry-body table { border-collapse: collapse; background: var(--white); }
.prose table { margin-bottom: 1em; }
.entry-body table :is(th, td) { padding: 9px 10px; border: 1px solid var(--line); }
.entry-body table thead :is(th, td) { background: #e5eee0; color: var(--ink); font-weight: 800; }
.entry-body table tbody tr:nth-child(even) { background-color: #f4f7f1; }
.entry-body .sp-template { min-width: 0; margin-bottom: 18px; }
.entry-body .sp-table-wrapper { overflow-x: auto; max-width: 100%; }
.entry-body .sp-table-caption, .entry-body .sp-post-caption { margin: 0 0 10px; padding: 0; color: var(--ink); background: transparent; font-size: 1.3rem; font-weight: 800; }
.entry-body .sp-data-table { width: 100%; }
.entry-body .sp-data-table thead th { background: var(--field); color: #f3f8ef; }
.entry-body .sp-data-table thead a { color: inherit; }
.entry-body .sp-data-table tbody tr:hover { background: #edf4e8; }
.entry-body .sp-data-table tbody a { font-weight: 650; }
.entry-body .sp-event-logos { padding: clamp(12px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.entry-body .sp-team-name { font-weight: 740; }
.entry-body .sp-player-details { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.entry-body :is(.sp-selector-redirect, .dataTables_filter input) { max-width: 100%; padding: 7px 9px; border: 1px solid #809286; border-radius: 7px; background: var(--white); color: var(--ink); font: inherit; }
.entry-body .sp-tab-menu { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; }
.entry-body .sp-tab-menu a { display: block; border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; text-decoration: none; }
.entry-body .sp-tab-menu-item-active a { background: var(--field); color: var(--white); }
.entry-body .sp-tab-menu li { list-style: none; }

.entry-comments { margin-top: 27px; padding: clamp(17px, 4vw, 35px); border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.entry-comments h2 { margin-bottom: 15px; font-size: 1.75rem; }
.comments-list, .comments-list .children { padding-inline-start: 18px; }
.comments-list > li + li { margin-top: 14px; }
.comments-list .comment-body { padding: 9px 0; border-bottom: 1px solid var(--line); }
.comments-list .comment-metadata { margin-bottom: 5px; font-size: .82rem; }
.comments-list .comment-content { overflow-wrap: anywhere; }

.directory-nav { display: flex; gap: 8px; margin-top: 20px; }
.directory-nav a { padding: 7px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 720; }
.directory-nav a[aria-current] { background: var(--field); color: var(--white); }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 19px; }
.entry-card { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 20px 36px 19px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; }
.entry-card:hover { border-color: #87a995; background: #fafff1; }
.entry-card .kicker { margin-bottom: 7px; }
.entry-card h2 { font-size: clamp(1.05rem, 2vw, 1.4rem); }
.entry-card p:not(.kicker) { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.entry-card-arrow { position: absolute; right: 15px; top: 15px; color: var(--accent); }
.directory-image { width: 35px; height: 35px; flex: 0 0 35px; object-fit: contain; }
.pagination .nav-links, .comments-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.page-numbers { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); text-decoration: none; }
.page-numbers.current { background: var(--field); color: var(--white); }
.empty-state:not(.page-intro) { margin-top: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.content-pagination { margin-top: 14px; }
.content-pagination > * { margin-inline: 4px; }
.contact-intro { background: #e9effa; border-color: #d4dfef; }
.contact-intro .kicker { color: #294f88; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.contact-card { padding: clamp(17px, 3.5vw, 32px); border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.contact-card h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 16px; }
.contact-links { list-style: none; padding: 0; margin: 0; }
.contact-links > li { border-top: 1px solid var(--line); }
.contact-links a, .contact-links strong { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; overflow-wrap: anywhere; text-decoration: none; font-weight: 660; }
.contact-links a:hover { color: #18437d; text-decoration: underline; text-underline-offset: .18em; }
.contact-links a span { color: #294f88; flex: 0 0 auto; }
.contact-links .contact-links { padding-inline-start: 15px; margin-bottom: 6px; border-inline-start: 2px solid #dbe6f9; }
.contact-links .contact-links > li { border-top: 0; }
.contact-links .contact-links a { padding-block: 5px; font-weight: 540; font-size: .9rem; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }
.directory-search { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0 26px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.directory-search > div { flex: 1 1 240px; }
.directory-search label { display: block; margin-bottom: 7px; font-weight: 650; }
.directory-search input[type="search"] { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); box-sizing: border-box; }
.directory-search button { padding: 12px 22px; border: 0; border-radius: 8px; color: #fff; background: #18437d; font: inherit; font-weight: 650; cursor: pointer; }
.directory-search > a { padding: 12px 4px; }
.entry-comments .comment-form { display: grid; gap: 14px; max-width: 720px; }
.entry-comments .comment-form p { margin: 0; }
.entry-comments .comment-form label { display: block; margin-bottom: 6px; font-weight: 650; }
.entry-comments .comment-form input:not([type="checkbox"]):not([type="submit"]), .entry-comments .comment-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 11px; font: inherit; }
.entry-comments .comment-form input[type="checkbox"] + label { display: inline; font-weight: 400; }
.entry-comments .comment-form .submit { border: 0; border-radius: 8px; background: #18437d; color: #fff; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.comment-moderation-note { color: var(--muted); font-size: .9rem; }
.archive-poll { max-width: 760px; padding: 22px; margin-block: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.archive-poll ol { list-style: none; margin: 20px 0; padding: 0; }
.archive-poll li { margin-block: 14px; }
.archive-poll li > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; }
.archive-poll progress { width: 100%; height: 12px; accent-color: #18437d; }

@media (max-width: 900px) {
    .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .headgoal-site .top-nav { gap: 12px; }
}
@media (max-width: 640px) {
    .headgoal-site .top-bar { gap: 9px 12px; }
    .headgoal-site .top-nav { flex-wrap: wrap; gap: 6px 9px; }
    .headgoal-site .top-nav a { font-size: .76rem; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .page-frame { margin-top: 16px; }
    .page-intro { border-radius: 14px; }
    .page-intro .back { margin-bottom: 16px; }
    .entry-grid:not(.directory-grid) { grid-template-columns: 1fr; }
    .entry-card { padding: 12px 24px 12px 11px; }
    .entry-card-arrow { right: 9px; top: 11px; }
    .directory-image { display: none; }
    .hg-entry:has(.entry-body table) .table-scroll-hint { display: block; margin-top: 15px; font-size: .8rem; color: var(--muted); }
    .hg-entry:has(.entry-body table) .entry-body { margin-top: 8px; }
    .entry-body table :is(th, td) { padding: 6px; }
    .site-footer nav { justify-content: end; }
}
