/* ATH Guide Hub: hub page + per-post link block. Uses the almanac tokens with fallbacks. */
.ath-gh, .ath-gh-crumb {
  --gh-border: var(--almanac-border, #e4dfd3);
  --gh-accent: var(--almanac-yellow, #f5c518);
  --gh-muted: var(--almanac-fg-tertiary, #6b6558);
  --gh-soft: var(--almanac-bg-cream, #faf7ef);
}
.ath-gh-crumb { font-size: .8125rem !important; line-height: 1.4 !important; font-weight: 600; color: var(--gh-muted); margin: 0 0 1rem !important; }
.ath-gh-crumb a { color: inherit; text-decoration: underline; text-decoration-color: var(--gh-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ath-gh-crumb span { margin: 0 .25em; }

.ath-gh ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ath-gh li { margin: 0 !important; padding: 0 !important; }
.ath-gh li::before, .ath-gh li::marker { content: none !important; }

.ath-gh-updated { font-size: .8125rem !important; color: var(--gh-muted); margin: 0 0 .75rem !important; }
.ath-gh-hot { border: 1px solid var(--gh-border); border-left: 3px solid var(--gh-accent); background: var(--gh-soft); padding: .75rem 1rem; margin: 1.25rem 0; border-radius: 6px; }
.ath-gh-hot__label { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .375rem !important; color: var(--gh-muted); }
.ath-gh-cards { display: grid !important; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (min-width: 600px) { .ath-gh-cards { grid-template-columns: 1fr 1fr 1fr; } }
.ath-gh-cards a { display: block; text-decoration: none !important; color: inherit; }
.ath-gh-cards__img { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--gh-border); }
.ath-gh-cards__img img, .ath-gh-latest__img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.ath-gh-cards__t { display: block; font-size: .875rem; line-height: 1.3; font-weight: 700; margin-top: .4375rem; }
.ath-gh-cards a:hover .ath-gh-cards__t { text-decoration: underline; text-decoration-color: var(--gh-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.ath-gh-latest { display: grid !important; grid-template-columns: 1fr; gap: .5rem !important; }
@media (min-width: 600px) { .ath-gh-latest { grid-template-columns: 1fr 1fr; gap: .75rem !important; } }
.ath-gh-latest a { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-content: center; text-decoration: none !important; color: inherit; min-height: 54px; }
.ath-gh-latest__img { grid-row: 1 / 3; width: 96px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--gh-border); }
.ath-gh-latest__t { font-size: .875rem; line-height: 1.3; font-weight: 700; align-self: end; }
.ath-gh-latest time { font-size: .75rem; color: var(--gh-muted); align-self: start; }
.ath-gh-latest a:hover .ath-gh-latest__t { text-decoration: underline; text-decoration-color: var(--gh-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.ath-gh-count { font-size: .8125rem; font-weight: 600; color: var(--gh-muted); margin-left: .25rem; }
.ath-gh-more { margin: 0; }
.ath-gh-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; border: 1px solid var(--gh-border); border-top: 0; background: var(--gh-soft); font-size: .8125rem; font-weight: 700; }
.ath-gh-more > summary::-webkit-details-marker { display: none; }
.ath-gh-more > summary::after { content: "+"; margin-left: .5rem; color: var(--gh-muted); }
.ath-gh-more[open] > summary::after { content: "−"; }
.ath-gh-more > summary:hover { border-color: var(--gh-accent); }
.ath-gh-more .ath-gh-grid, .ath-gh-more .ath-gh-table { border-top: 0; }

.ath-gh-jump ul, .ath-gh-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ath-gh-jump { margin: 1.25rem 0 0; }
.ath-gh-jump a, .ath-gh-chips a { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.25rem; padding: .25rem .75rem; border: 1px solid var(--gh-border); border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.2; text-decoration: none !important; color: inherit; background: var(--gh-soft); }
.ath-gh-jump a:hover, .ath-gh-chips a:hover { border-color: var(--gh-accent); }
.ath-gh-jump a span { color: var(--gh-muted); font-weight: 500; }

.ath-gh--hub h2 { scroll-margin-top: calc(var(--almanac-header-h, 64px) + 16px); font-family: var(--almanac-font-display, inherit) !important; font-size: 1.375rem !important; line-height: 1.2 !important; border-bottom: 2px solid var(--gh-accent); padding-bottom: .375rem; margin: 2.25rem 0 1rem !important; }

.ath-gh-grid { display: grid !important; grid-template-columns: 1fr; border-top: 1px solid var(--gh-border); border-left: 1px solid var(--gh-border); }
@media (min-width: 600px) { .ath-gh-grid { grid-template-columns: 1fr 1fr; } }
.ath-gh-grid li { border-right: 1px solid var(--gh-border); border-bottom: 1px solid var(--gh-border); font-size: .875rem; line-height: 1.35; }
.ath-gh-grid li a { display: flex; align-items: center; min-height: 2.75rem; padding: .5rem .75rem; font-weight: 600; text-decoration: none !important; color: inherit; }
.ath-gh-grid li a:hover { background: var(--gh-soft); text-decoration: underline !important; text-decoration-color: var(--gh-accent) !important; text-decoration-thickness: 2px !important; }

.ath-gh-table { display: table !important; width: 100% !important; border-collapse: collapse; font-size: .875rem; line-height: 1.35; margin: 0 !important; }
.ath-gh-table th, .ath-gh-table td { border: 1px solid var(--gh-border); padding: .5625rem .625rem; text-align: left; vertical-align: middle; }
.ath-gh-table thead th { background: var(--gh-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.ath-gh-table td:first-child, .ath-gh-table thead th:first-child { width: 2.5rem; text-align: center; color: var(--gh-muted); }
.ath-gh-table tbody th { white-space: nowrap; font-weight: 700; }
.ath-gh-table a { color: inherit; text-decoration: none !important; }
.ath-gh-table a:hover { text-decoration: underline !important; text-decoration-color: var(--gh-accent) !important; text-decoration-thickness: 2px !important; }
@media (max-width: 599px) { .ath-gh-table thead th:nth-child(3), .ath-gh-table td:nth-child(3) { display: none; } .ath-gh-table tbody th { white-space: normal; } }

.ath-gh-bridge { font-size: .875rem !important; font-weight: 700; margin: .625rem 0 0 !important; }
.ath-gh-bridge a::after { content: " →"; }

/* per-post block */
.ath-gh-nav { margin: 2.5rem 0 0; padding: 1.25rem 0 0; border-top: 2px solid var(--gh-accent); }
.ath-gh-nav__eyebrow { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .75rem !important; }
.ath-gh-nav__eyebrow a { color: var(--almanac-tan-deep, #7a6a3a); text-decoration: none; }
.ath-gh-nav__title { font-size: 1.25rem !important; line-height: 1.2 !important; margin: 0 0 .75rem !important; }
.ath-gh-pn { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0 0 1.25rem; }
.ath-gh-pn__a { display: flex; flex-direction: column; gap: .125rem; padding: .75rem .875rem; border: 1px solid var(--gh-border); border-radius: 8px; text-decoration: none !important; color: inherit; background: var(--gh-soft); min-width: 0; }
.ath-gh-pn__a--next { text-align: right; }
.ath-gh-pn__a span { font-size: .75rem; color: var(--gh-muted); font-weight: 600; }
.ath-gh-pn__a strong { font-size: .9375rem; line-height: 1.25; }
a.ath-gh-pn__a:hover { border-color: var(--gh-accent); }
.ath-gh-pn__a--none { background: transparent; border-style: dashed; justify-content: center; }
.ath-gh-chips { margin-top: 1.25rem !important; }
