/* WordPress adaptations for interactive behaviours (hover/active states, drawer, hero image
   state) kept out of homepage.css. Minimal by design. */

/* off-canvas drawer row hover (desktop) */
@media (min-width: 1025px) {
	:is(#drawer-list, .twm-id--drawer-list) a[data-drawer-row]:hover { transform: translateX(12px); }
}

/* drawer "Search" pill hover → inks in */
:is(#drawer-search, .twm-aid--drawer-search .wp-block-button__link):hover { background: var(--twm-ink); border-color: var(--twm-ink); color: var(--twm-white); }

/* search suggestion hover underline (border-bottom → ink) */
:is(#search-sugg, .twm-anchor--search-sugg) a:hover { border-bottom-color: var(--twm-ink) !important; }

/* :is(#page-body, .twm-anchor--page-body) wrapper */
:is(#page-body, .twm-anchor--page-body) { position: relative; z-index: 2; background: var(--surface-page); box-shadow: 0 30px 60px rgba(0,0,0,0.28); padding-bottom: 104px; }
/* strip WP's default block-template spacing so sections stack exactly as authored */
.wp-site-blocks > div, .wp-site-blocks > main { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* hero image state — the scrim + caption box key off .hero-media[data-filled] (real featured
   image) */
.hero-media[data-filled] ~ :is(#hero-scrim, .twm-anchor--hero-scrim) { opacity: 1 !important; }
.hero-media:not([data-filled]) ~ :is(#hero-copy, .twm-anchor--hero-copy) { background: rgba(10,14,20,0.86) !important; }
.hero-media[data-filled] ~ :is(#hero-copy, .twm-anchor--hero-copy) { background: transparent !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; }

/* seasons "View The Calendar" outline button hover */
:is(#seasons-head, .twm-anchor--seasons-head) a:hover { background: var(--twm-white); border-color: var(--twm-white); color: var(--twm-ink); }

/* footer link hovers (→ full white) */
:is(#footer-secondary, .twm-id--footer-secondary) a:hover, :is(#footer-legal, .twm-anchor--footer-legal) a:hover { color: var(--twm-white); }

/* Admin-only empty-state for an optional section with no data (hidden from visitors). Deliberately
   unlike the editorial design so it reads as an editor affordance, not content. Shared by the
   collection hub + the article. */
.twm-admin-empty { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border: 1px dashed #c08a2e; background: rgba(192, 138, 46, 0.07); }
.twm-admin-empty__tag { flex: none; font-family: 'proxima-nova', sans-serif; font-weight: 400; font-size: 10px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; background: #c08a2e; padding: 2px 8px; }
.twm-admin-empty__body { font-family: var(--font-soft), sans-serif; font-size: 14px; line-height: 20px; color: var(--twm-secondary); }
.twm-admin-empty__body strong { color: var(--text-body); font-weight: 400; }

/* index.html — the WordPress fallback template (every real route resolves to a specific template).
   Kept valid and on-brand: chrome + a latest-posts grid using the design tokens. */
.twm-index { max-width: 1360px; box-sizing: border-box; margin: 0 auto; padding: 150px 80px 120px; }
.twm-index__title { font-family: var(--font-headline); font-weight: 400; font-size: 48px; line-height: 60px; letter-spacing: 1.5px; margin: 0 0 44px; }
.twm-index__grid .wp-block-post-template { gap: 44px 28px; }
.twm-index__grid .wp-block-post-featured-image, .twm-index__grid .twm-image-placeholder { aspect-ratio: 3/4; background: var(--surface-band); overflow: hidden; }
.twm-index__grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.twm-index__kicker { font-family: 'proxima-nova', var(--font-sans); font-weight: 400; font-size: 12px; line-height: 16.8px; letter-spacing: 2px; text-transform: uppercase; color: var(--twm-secondary); margin: 18px 0 0; }
.twm-index__cardtitle { font-family: var(--font-headline); font-weight: 400; font-size: 22px; line-height: 30px; letter-spacing: 0.5px; margin: 10px 0 0; }
.twm-index__cardtitle a { color: var(--text-body); text-decoration: none; }
.twm-index__cardtitle a:hover { text-decoration: underline; text-underline-offset: 3px; }
.twm-index__pagination { margin-top: 64px; font-family: 'proxima-nova', var(--font-sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.twm-index__empty { font-family: var(--font-headline); font-size: 22px; line-height: 30px; color: var(--twm-secondary); }
@media (max-width: 1024px) { .twm-index { padding: 130px 24px 80px; } .twm-index__title { font-size: 30px; line-height: 40px; letter-spacing: 1px; } .twm-index__grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .twm-index { padding: 110px 18px 64px; } .twm-index__grid .wp-block-post-template { grid-template-columns: 1fr !important; } }
.twm-index__dek { font-family: var(--font-soft); font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: 0.2px; color: var(--twm-secondary); max-width: 620px; margin: -24px 0 44px; }

/* Logged-in admin bar: keep the fixed chrome below it (32px, 46px on small screens). */
body.admin-bar :is(#site-header, .twm-anchor--site-header) { top: 32px; }
body.admin-bar :is(#drawer, .twm-anchor--drawer), body.admin-bar :is(#search-overlay, .twm-anchor--search-overlay) { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar :is(#site-header, .twm-anchor--site-header) { top: 46px; }
	body.admin-bar :is(#drawer, .twm-anchor--drawer), body.admin-bar :is(#search-overlay, .twm-anchor--search-overlay) { top: 46px; }
}

/* Blank Canvas template: full-width content region for pattern-composed pages */
.twm-canvas-content { margin: 0; padding: 0; }
.twm-canvas-content > * + * { margin-block-start: 0; }
