/* Hubs of the tplegacy.net theme (taghub hero and tag cards: holy days, mottos, books, prayers…) on the site's tokens. */
.taghub-hero { padding: clamp(40px, 8vw, 80px) 20px clamp(24px, 4vw, 40px); text-align: center; }
.taghub-hero-inner { max-width: 760px; margin: 0 auto; }
.taghub-eyebrow { font: 700 0.75rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--seal); margin: 0 0 14px; }
.taghub-h1 { font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.75rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 18px; }
.taghub-lead { font-family: var(--sans); font-size: 1rem; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }
.taghub-lead p { margin: 0; }
@media (min-width: 768px) { .taghub-lead { font-size: 1.0625rem; } }
@media (max-width: 480px) { .taghub-hero { padding-left: 14px; padding-right: 14px; } }

.taghub-section { padding: 0 20px; margin-bottom: 64px; font-family: var(--sans); }
.taghub-section > div { max-width: 1180px; margin: 0 auto; }
.holydays-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .holydays-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 900px) { .holydays-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tag-card { position: relative; display: flex; flex-direction: column; height: 260px; border-radius: 14px; overflow: hidden; text-decoration: none; background: var(--card-bg, var(--white)); box-shadow: 0 0 0 1px rgba(36, 32, 27, .06); transition: transform 200ms cubic-bezier(.2, 0, 0, 1), box-shadow 200ms cubic-bezier(.2, 0, 0, 1); -webkit-tap-highlight-color: transparent; color: inherit; }
.tag-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(36, 32, 27, .12), 0 6px 16px rgba(36, 32, 27, .10); }
.tag-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tag-card__accent { display: block; height: 64px; background: var(--accent, var(--seal)); }
.tag-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.tag-card__name { font: 600 20px/1.25 var(--serif); letter-spacing: -.01em; }
.tag-card__desc { font-size: 14.5px; line-height: 1.5; opacity: .75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.tag-card__count { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .6; }
.tag-card__arrow { font-size: 18px; color: var(--accent, var(--seal)); transition: transform 200ms; }
.tag-card:hover .tag-card__arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .tag-card, .tag-card__arrow { transition: none; } .tag-card:hover { transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The ten holy days (site addition: the calendar links here by anchor) */
.holydays-ten { margin-top: 48px; }
.holydays-ten h2 { font: 600 24px/1.2 var(--serif); margin: 0 0 6px; }
.holydays-ten > p { color: var(--ink-soft); margin: 0 0 18px; }
.holydays-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.holydays-table th, .holydays-table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.holydays-table thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.holydays-table tbody th { font: 600 16px/1.35 var(--serif); }
.holydays-table td.md { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.holydays-table .desc { display: block; margin-top: 4px; font: 400 14px/1.55 var(--sans); color: var(--ink-soft); }
.holydays-table tr:target { background: var(--seal-wash); }
.holydays-table td[lang] { white-space: nowrap; }
