/* Dealer Resource Hub — styles theme.json can't express. Values come from theme.json presets. */
:root {
	--drh-surface: var(--wp--preset--color--surface);
	--drh-raised: var(--wp--preset--color--surface-raised);
	--drh-sunken: var(--wp--preset--color--surface-sunken);
	--drh-line: var(--wp--preset--color--line);
	--drh-line-strong: var(--wp--preset--color--line-strong);
	--drh-ink: var(--wp--preset--color--ink);
	--drh-muted: var(--wp--preset--color--ink-muted);
	--drh-spruce: var(--wp--preset--color--spruce);
	--drh-radius-sm: var(--wp--custom--radius--sm);
	--drh-radius-md: var(--wp--custom--radius--md);
	--drh-radius-full: var(--wp--custom--radius--full);
}
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--wp--custom--focus-ring); border-radius: var(--drh-radius-sm); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Logo */
.drh-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--drh-ink); text-decoration: none; }
.drh-logo img { display: block; flex: none; }
.drh-logo-word { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.drh-logo-word span { color: var(--drh-spruce); }
.drh-logo-sm { font-size: 16px; }

/* Header */
.drh-header { position: sticky; top: 0; z-index: 20; }
.admin-bar .drh-header { top: var(--wp-admin--admin-bar--height, 32px); }
.drh-header .wp-block-navigation a { padding: 6px 12px; border-radius: var(--drh-radius-md); color: var(--drh-muted); text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
.drh-header .wp-block-navigation a:hover { color: var(--drh-ink); background: var(--drh-sunken); }
.drh-header .wp-block-navigation .current-menu-item > a,
.drh-header .wp-block-navigation a[aria-current="page"] { color: var(--drh-spruce); background: var(--wp--preset--color--spruce-soft); }
@media (max-width: 900px) { .drh-logo-word { font-size: 17px; } }
@media (max-width: 599px) { .drh-header { padding-left: var(--wp--preset--spacing--4) !important; padding-right: var(--wp--preset--spacing--4) !important; } }

/* Eyebrow, lede, spec */
.is-style-eyebrow, .drh-eyebrow-terms { font-size: .75rem; line-height: 1rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--drh-muted); margin: 0; }
.drh-eyebrow-terms a { color: inherit; text-decoration: none; }
.drh-eyebrow-terms .wp-block-post-terms__separator { opacity: .5; }
.is-style-lede { font-size: var(--wp--preset--font-size--lede); line-height: 1.55; }
.drh-standfirst { color: var(--drh-muted); }
.drh-standfirst .wp-block-post-excerpt__more-text { display: none; }
.is-style-spec { font-family: var(--wp--preset--font-family--mono); font-size: .8125rem; line-height: 1.4; font-weight: 500; color: var(--drh-muted); margin: 0; }
.drh-hero-title { max-width: 14ch; }
.drh-hero-title + .is-style-lede, .drh-hero-title ~ p.is-style-lede { max-width: 52ch; }

/* Pillar colours: eyebrows on cards and articles take their pillar's colour */
.category-sell .drh-eyebrow-terms, .drh-tag-sell { color: var(--wp--preset--color--spruce); }
.category-design .drh-eyebrow-terms, .drh-tag-design { color: var(--wp--preset--color--clay); }
.category-install .drh-eyebrow-terms, .drh-tag-install { color: var(--wp--preset--color--brass-ink); }
.category-business .drh-eyebrow-terms, .drh-tag-business { color: var(--wp--preset--color--slate); }
.category-market-watch .drh-eyebrow-terms, .drh-tag-market-watch { color: var(--drh-ink); }

/* Tag pill */
.drh-tag, .wp-block-post-terms.is-style-tag a { display: inline-flex; align-items: center; height: 24px; margin: 0; padding: 0 10px; border-radius: var(--drh-radius-full); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; width: fit-content; }
.drh-tag-sell { background: var(--wp--preset--color--spruce-soft); }
.drh-tag-design { background: var(--wp--preset--color--clay-soft); }
.drh-tag-install { background: var(--wp--preset--color--brass-soft); }
.drh-tag-business { background: var(--wp--preset--color--slate-soft); }
.drh-tag-market-watch { background: var(--drh-sunken); }
.wp-block-post-terms.is-style-tag a { background: var(--drh-sunken); color: var(--drh-ink); }

/* Cards */
.is-style-card { background: var(--drh-raised); border: 1px solid var(--drh-line); border-radius: var(--drh-radius-md); overflow: hidden; transition: transform .15s ease-out, box-shadow .15s ease-out; }
.drh-card-grid .is-style-card, .drh-pillar, .drh-feature-card { height: 100%; }
.drh-card-grid .is-style-card:hover, .drh-pillar:hover, .drh-feature-card:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--sm); }
.drh-card-grid .is-style-card > .wp-block-post-featured-image { margin: 0; width: 100%; }
.is-style-card .wp-block-post-featured-image img { border-radius: 0; }
.drh-card-body { flex: 1; width: 100%; box-sizing: border-box; }
.drh-card-body .wp-block-post-title, .drh-feature-card .wp-block-post-title { margin: 0; }
.wp-block-post-title a { color: var(--drh-ink); text-decoration: none; }
.wp-block-post-title a:hover { color: var(--drh-spruce); }
.drh-card-body .wp-block-post-excerpt { margin: 0; }
.drh-card-body .wp-block-post-excerpt__more-text, .drh-feature-card .wp-block-post-excerpt__more-text { display: none; }
.drh-card-meta { margin-top: auto !important; padding-top: var(--wp--preset--spacing--2); font-size: .875rem; color: var(--drh-muted); }
.drh-card-grid { gap: var(--wp--preset--spacing--6) !important; }
/* No featured image: the Pinwheel on a sunken panel, never a stock placeholder */
.drh-card-grid .is-style-card:not(:has(.wp-block-post-featured-image))::before {
	content: ""; display: block; aspect-ratio: 3 / 2; width: 100%;
	background: var(--drh-sunken) url("../images/drh-pinwheel-ink.svg") center / 56px no-repeat;
}
.drh-feature-media:not(:has(img)) { min-height: 280px; background: var(--drh-sunken) url("../images/drh-pinwheel-ink.svg") center / 64px no-repeat; }
.drh-feature-card { gap: 0 !important; margin: 0; }
.drh-feature-media .wp-block-post-featured-image { margin: 0; height: 100%; }
.drh-feature-media .wp-block-post-featured-image img { height: 100%; object-fit: cover; }

/* Pillar grid */
.drh-pillar h3 { margin: var(--wp--preset--spacing--2) 0 0; }
.drh-pillar h3 a { color: var(--drh-ink); text-decoration: none; }
.drh-pillar h3 a::after { content: ""; position: absolute; inset: 0; }
.drh-pillar { position: relative; }
.drh-pillar p:last-child { margin: 0; }

/* Section link */
.drh-section-link { margin: 0; font-weight: 600; font-size: .9375rem; }
.drh-section-link a { text-decoration: none; }

/* Resources */
.drh-resource-type { display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin: 0; border-radius: var(--drh-radius-sm); background: var(--drh-sunken); font-family: var(--wp--preset--font-family--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.drh-resource-title { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.drh-resource .wp-block-buttons { flex: none; }
.drh-btn-sm .wp-block-button__link { padding: 8px 16px; font-size: .875rem; }
@media (max-width: 520px) { .drh-resource { flex-wrap: wrap !important; } }
/* core/file looks like a resource card too */
.wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: var(--wp--preset--spacing--4); padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--6); background: var(--drh-raised); border: 1px solid var(--drh-line); border-radius: var(--drh-radius-md); }
.wp-block-file > a:first-child { font-weight: 600; color: var(--drh-ink); text-decoration: none; }
.wp-block-file .wp-block-file__button { background: var(--drh-raised); color: var(--drh-ink); border: 1px solid var(--drh-line-strong); border-radius: var(--drh-radius-md); padding: 8px 16px; font-size: .875rem; font-weight: 600; }

/* Button styles */
.wp-block-button.is-style-secondary .wp-block-button__link { background: var(--drh-raised); color: var(--drh-ink); border-color: var(--drh-line-strong); }
.wp-block-button.is-style-secondary .wp-block-button__link:hover { background: var(--drh-raised); border-color: var(--drh-ink); color: var(--drh-ink); }
.wp-block-button.is-style-quiet .wp-block-button__link { background: transparent; color: var(--drh-spruce); border-color: transparent; padding-left: 12px; padding-right: 12px; }
.wp-block-button.is-style-quiet .wp-block-button__link:hover { background: var(--wp--preset--color--spruce-soft); color: var(--drh-spruce); }
.wp-block-button.is-style-accent .wp-block-button__link { background: var(--wp--preset--color--brass); color: var(--wp--preset--color--on-brass); border-color: var(--wp--preset--color--brass); }
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: var(--wp--preset--color--surface); color: var(--drh-ink); border-color: var(--wp--preset--color--surface); }
.wp-block-button.is-style-accent .wp-block-button__link:focus-visible { box-shadow: 0 0 0 2px var(--drh-spruce), 0 0 0 4px var(--wp--preset--color--brass); }
.wp-element-button { min-height: var(--wp--custom--control-height); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.drh-btn-sm .wp-element-button { min-height: 36px; }

/* Callouts */
.is-style-tip, .is-style-heads-up, .is-style-note { padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--6); border-radius: var(--drh-radius-md); font-size: var(--wp--preset--font-size--body-sm); line-height: 1.55; }
.is-style-tip > :first-child, .is-style-heads-up > :first-child, .is-style-note > :first-child { margin-top: 0; }
.is-style-tip > :last-child, .is-style-heads-up > :last-child, .is-style-note > :last-child { margin-bottom: 0; }
.is-style-tip { background: var(--wp--preset--color--spruce-soft); }
.is-style-tip strong { color: var(--drh-spruce); }
.is-style-heads-up { background: var(--wp--preset--color--brass-soft); }
.is-style-heads-up strong { color: var(--wp--preset--color--brass-ink); }
.is-style-note { background: var(--drh-sunken); }
.is-style-note strong { color: var(--wp--preset--color--slate); }

/* Article */
.single .wp-block-post-content { font-size: var(--wp--preset--font-size--body); }
.single .wp-block-post-content > * { max-width: var(--wp--custom--measure); }
.single .wp-block-post-content > .alignwide, .single .wp-block-post-content > .alignfull { max-width: none; }
.drh-meta { font-size: .875rem; color: var(--drh-muted); }
.drh-meta p { margin: 0; }
.drh-post-tags { font-size: .875rem; color: var(--drh-muted); }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], textarea, select { min-height: var(--wp--custom--control-height); padding: 0 12px; border: 1px solid var(--drh-line-strong); border-radius: var(--drh-radius-sm); background: var(--drh-raised); color: var(--drh-ink); font: inherit; font-size: 1rem; box-sizing: border-box; }
.wp-block-search__input { border-color: var(--drh-line-strong); border-radius: var(--drh-radius-sm); }

/* Footer */
.drh-footer-links { list-style: none; padding: 0; margin: var(--wp--preset--spacing--3) 0 0; display: grid; gap: var(--wp--preset--spacing--2); }
.drh-footer-links a { color: var(--drh-ink); text-decoration: none; }
.drh-footer-links a:hover { color: var(--drh-spruce); text-decoration: underline; }

