/*
Theme Name: RestartHub
Theme URI: https://restarthub.org
Description: Community theme for RestartHub: connect, contribute and create after a tech layoff. Cobalt and orange design with members-only community pages (BuddyPress) and a project board (WP Job Manager).
Author: RestartHub
Version: 1.4.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: restarthub
*/

:root {
	--page: #FFFFFF;
	--tint: #EEF3FF;
	--band: #F5F8FF;
	--ink: #0B1B3F;
	--muted: #4A5670;
	--line: #DCE3F0;
	--cobalt: #1D4ED8;
	--cobalt-d: #1E40AF;
	--cobalt-soft: #DBE6FF;
	--orange: #F97316;
	--orange-soft: #FFE8D6;
	--orange-ink: #9A3D00;
	--navy: #0B1B3F;
	--on-navy: #EEF3FF;
	--on-navy-muted: #AEB9D3;
	--ok-soft: #DCF5E6;
	--ok-ink: #14653F;
	--display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
	--body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-d); }
h1, h2, h3, h4, h5 { font-family: var(--display); color: inherit; margin: 0; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.rh-rail { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rh-band { padding-block: 64px; }
.rh-band.tint { background: var(--band); }
.rh-band.dark { background: var(--navy); color: var(--on-navy); }
.rh-eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); font-weight: 500; }
.dark .rh-eyebrow { color: #FDBA74; }
.rh-lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.dark .rh-lead { color: var(--on-navy-muted); }
.rh-head { display: grid; gap: 12px; margin-bottom: 34px; }
.rh-head h2 { font-size: clamp(30px, 3.6vw, 42px); }

.rh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.rh-btn.primary, .rh-btn.primary:visited { background: var(--cobalt); color: #fff; }
.rh-btn.primary:hover { background: var(--cobalt-d); color: #fff; }
.rh-btn.ghost { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.rh-btn.ghost:hover { background: var(--cobalt-soft); }
.dark .rh-btn.ghost { border-color: var(--on-navy); color: var(--on-navy); }

/* Header */
.rh-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.admin-bar .rh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rh-header { top: 0; } }
.rh-header .rh-rail { display: flex; align-items: center; gap: 22px; min-height: 70px; flex-wrap: wrap; padding-block: 8px; }
.rh-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 22px var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.rh-logo:hover { color: var(--ink); }
.rh-logo svg { width: 34px; height: 34px; flex: none; }
.rh-logo b { font: inherit; }
.rh-logo span { color: var(--cobalt); }
.rh-wm { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.rh-wm span { color: var(--cobalt); }
.rh-phead-wm { font-size: 22px; line-height: 1; }
.dark .rh-wm { color: #fff; }
.dark .rh-wm span { color: #FDBA74; }
.rh-nav { flex: 1; }
.rh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.rh-nav a { display: block; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 16px; }
.rh-nav a:hover, .rh-nav .current-menu-item > a, .rh-nav .current_page_item > a { color: var(--ink); background: var(--tint); }
.rh-actions { display: flex; gap: 10px; align-items: center; }
.rh-actions .rh-btn { padding: 9px 16px; font-size: 15px; }
.rh-menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 6px; padding: 7px 12px; font: 600 15px var(--body); cursor: pointer; }
@media (max-width: 960px) {
	.rh-menu-btn { display: inline-flex; }
	.rh-nav, .rh-actions { display: none; width: 100%; }
	.rh-header.open .rh-nav { display: block; }
	.rh-header.open .rh-nav ul { display: grid; }
	.rh-header.open .rh-actions { display: flex; padding-bottom: 12px; }
}

/* Hero */
.rh-hero { background: var(--tint); padding-block: 68px 80px; position: relative; overflow: hidden; }
.rh-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rh-hero .rh-rail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; }
.rh-hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; margin-top: 14px; }
.rh-hero h1 em { font-style: normal; color: var(--cobalt); }
.rh-hero .rh-lead { margin-top: 20px; color: #3C4A66; }
.rh-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.rh-proof { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rh-proof b { color: var(--ink); font-weight: 500; }
.rh-stack { display: grid; gap: 14px; position: relative; }
.rh-hero-art { margin: 0; position: relative; }
.rh-hero-art svg { display: block; width: 100%; height: auto; max-width: 520px; margin-left: auto; filter: drop-shadow(0 24px 40px rgba(11, 27, 63, .12)); }
@media (max-width: 980px) { .rh-hero-art svg { margin: 0 auto; max-width: 440px; } }
.rh-stack .rh-mcard:nth-child(2) { margin-left: 34px; }

/* Member card */
.rh-mcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; min-width: 0; box-shadow: 0 12px 30px -22px rgba(11, 27, 63, .45); }
.rh-mtop { display: flex; gap: 12px; align-items: center; }
.rh-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--display); color: #fff; flex: none; background: var(--cobalt); }
.rh-mname { font: 700 17px var(--display); }
.rh-mrole { font-size: 14.5px; color: var(--muted); }
.rh-tier { justify-self: start; font: 500 12px var(--mono); padding: 3px 9px; border-radius: 4px; background: var(--ink); color: #fff; }
.rh-tier.t2 { background: var(--cobalt-soft); color: var(--cobalt-d); }
.rh-tier.t1 { background: var(--tint); color: var(--muted); border: 1px solid var(--line); }
.rh-spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-family: var(--mono); font-size: 13px; margin: 0; }
.rh-spec dt { color: var(--muted); }
.rh-spec dd { margin: 0; }
.rh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-tag { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--band); border: 1px solid var(--line); }
.rh-tag.open { background: var(--orange-soft); color: var(--orange-ink); border-color: transparent; font-weight: 600; }

/* Cards and grids */
.rh-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rh-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.rh-card h3 { font-size: 22px; }
.rh-card p { color: var(--muted); }
.rh-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rh-card .k { font-family: var(--mono); font-size: 12.5px; color: var(--orange-ink); letter-spacing: .06em; text-transform: uppercase; }
.rh-card a.more { font-weight: 600; text-decoration: none; }
.rh-card.small h4 { font-size: 18.5px; }
.rh-card.small p { font-size: 16px; }

.rh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--orange); }
.rh-step { padding: 22px 22px 0 0; display: grid; gap: 8px; align-content: start; }
.rh-step .n { font-family: var(--mono); color: var(--orange-ink); font-size: 13px; }
.rh-step h4 { font-size: 19px; }
.rh-step p { color: var(--muted); font-size: 16px; }

.rh-projects { display: grid; gap: 14px; }
.rh-proj { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
.rh-proj h4 { font-size: 19px; }
.rh-proj .co { color: var(--muted); font-size: 15px; }
.rh-proj .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rh-proj .meta b { color: var(--ink); font-weight: 500; }
.rh-lock { font-size: 13.5px; color: var(--muted); white-space: nowrap; }

.rh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rh-stat { border-left: 3px solid var(--orange); padding-left: 16px; }
.rh-stat b { display: block; font: 800 32px var(--display); }
.rh-stat span { color: var(--on-navy-muted); font-size: 15px; }

.rh-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rh-plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.rh-plan.featured { border: 2px solid var(--cobalt); }
.rh-plan .price { font: 800 30px var(--display); }
.rh-plan .price small { font: 500 15px var(--body); color: var(--muted); }
.rh-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.rh-plan .note { font-size: 14px; color: var(--muted); }
.rh-badge { justify-self: start; font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); }

.rh-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.rh-checks { display: grid; gap: 14px; }
.rh-checks div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.rh-checks svg { width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }
.rh-prose { display: grid; gap: 18px; max-width: 66ch; }
.rh-prose p { font-size: 18px; }

/* Inner page header */
.rh-phead { background: var(--tint); padding-block: 54px 46px; border-bottom: 1px solid var(--line); }
.rh-phead h1 { font-size: clamp(34px, 4.4vw, 50px); font-weight: 800; margin-top: 10px; }
.rh-phead .rh-lead { margin-top: 14px; }

/* Notices */
.rh-notice { background: var(--orange-soft); color: var(--orange-ink); padding: 12px 16px; border-radius: 8px; font-weight: 500; }
.rh-notice.ok { background: var(--ok-soft); color: var(--ok-ink); }

/* Default content (WordPress pages, BuddyPress, WP Job Manager) */
.rh-content { padding-block: 44px 72px; }
.rh-content .entry { max-width: 1160px; }
.rh-content .entry > * + * { margin-top: 1em; }
.rh-content input[type="text"], .rh-content input[type="email"], .rh-content input[type="url"], .rh-content input[type="password"], .rh-content input[type="search"], .rh-content input[type="tel"], .rh-content input[type="number"], .rh-content select, .rh-content textarea {
	width: 100%; max-width: 560px; font: 16px var(--body); padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.rh-content textarea { max-width: 100%; }
.rh-content input[type="submit"], .rh-content button[type="submit"], .rh-content .button, .rh-content input[type="button"] {
	background: var(--cobalt); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font: 600 16px var(--body); cursor: pointer;
}
.rh-content input[type="submit"]:hover, .rh-content button[type="submit"]:hover, .rh-content .button:hover { background: var(--cobalt-d); color: #fff; }
.rh-content label { font-weight: 600; }

/* BuddyPress touches */
#buddypress .bp-navs ul li.selected a, #buddypress .bp-navs ul li.current a { color: var(--cobalt); }
#buddypress .bp-navs a { font-weight: 500; }
#buddypress .item-list .list-title, #buddypress .item-entry-header a { font-family: var(--display); }
#buddypress .register-section h2, #buddypress .register-section h3 { font-size: 22px; margin-bottom: 8px; }
#buddypress .rh-tier { margin-top: 6px; display: inline-block; }
.buddypress-wrap .bp-list li { border-color: var(--line); }

/* WP Job Manager touches */
/* Project list: flex layout so the plugin's floats and absolute logo can't overlap the text. */
body ul.job_listings li.job_listing a { display: flex !important; align-items: flex-start; gap: 16px; padding: 18px 16px !important; overflow: visible; }
body ul.job_listings li.job_listing a::before, body ul.job_listings li.job_listing a::after { display: none; }
body ul.job_listings li.job_listing a img.company_logo { position: static !important; float: none !important; flex: none; width: 48px !important; height: 48px !important; margin: 0 !important; border-radius: 8px; visibility: visible !important; }
body ul.job_listings li.job_listing a div.position { float: none !important; padding: 0 !important; width: auto !important; flex: 1 1 auto; min-width: 0; }
body ul.job_listings li.job_listing a div.position .company { display: block; margin-top: 4px; color: var(--muted); }
body ul.job_listings li.job_listing a div.position .company .tagline { display: none; }
body ul.job_listings li.job_listing a div.location { float: none !important; padding: 0 !important; width: auto !important; flex: 0 0 170px; color: var(--muted); font-size: 15px; }
body ul.job_listings li.job_listing a ul.meta { float: none !important; padding: 0 !important; width: auto !important; flex: 0 0 auto; text-align: right; font-size: 14px; }
@media (max-width: 700px) {
	body ul.job_listings li.job_listing a { flex-wrap: wrap; }
	body ul.job_listings li.job_listing a div.position { flex: 1 1 calc(100% - 64px); }
	body ul.job_listings li.job_listing a div.location, body ul.job_listings li.job_listing a ul.meta { flex: 1 1 auto; margin-left: 64px !important; text-align: left; }
}
ul.job_listings li.job_listing a .position h3 { font-family: var(--display); font-size: 18px; }
.job_filters { background: var(--band); border-radius: 10px; }
.rh-members-only { background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-top: 18px; }


/* Sign-up */
.rh-typeswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; max-width: 720px; }
.rh-typeswitch a { display: grid; gap: 2px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; }
.rh-typeswitch a b { font: 700 17px var(--display); }
.rh-typeswitch a span { color: var(--muted); font-size: 15px; }
.rh-typeswitch a[aria-selected="true"] { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); background: var(--tint); }
.rh-req { font-weight: 400; color: var(--muted); font-size: 14px; }
.rh-captcha-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.rh-captcha-row img { border-radius: 6px; border: 1px solid var(--line); }
.rh-captcha-row input { max-width: 180px !important; }
#buddypress .editfield[hidden] { display: none !important; }
#buddypress .editfield { margin-bottom: 18px; }
#buddypress .editfield .description { color: var(--muted); font-size: 14px; }
#buddypress .bp-required-field-label { font-weight: 400; color: var(--muted); }

/* Talent pool */
.rh-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--band); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.rh-filter { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 160px; flex: 1 1 160px; }
.rh-filter.grow { flex: 2 1 240px; }
.rh-filter select, .rh-filter input { font: 16px var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.rh-filter-btns { display: flex; gap: 8px; }
.rh-count { color: var(--muted); margin-bottom: 12px; }
.rh-talent { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.rh-talent .rh-mname { color: var(--ink); text-decoration: none; }
.rh-avatar-img { border-radius: 50%; width: 44px; height: 44px; }
.rh-talent-links { font-size: 15px; }
@media (max-width: 560px) { .rh-typeswitch { grid-template-columns: 1fr; } }

/* Footer */
.rh-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 52px 30px; font-size: 15px; }
.rh-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.rh-footer h5 { font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy); margin: 0 0 10px; }
.rh-footer a { color: var(--on-navy-muted); text-decoration: none; display: block; padding: 3px 0; }
.rh-footer a:hover { color: #fff; }
.rh-footer .rh-logo { color: #fff; margin-bottom: 10px; }
.rh-footer .rh-logo span { color: #FDBA74; }
.rh-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; }

@media (max-width: 980px) {
	.rh-hero .rh-rail, .rh-split { grid-template-columns: minmax(0, 1fr); }
	.rh-stack .rh-mcard:nth-child(2) { margin-left: 0; }
	.rh-grid3, .rh-plans { grid-template-columns: minmax(0, 1fr); }
	.rh-steps, .rh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rh-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.rh-band { padding-block: 48px; }
	.rh-steps, .rh-proj, .rh-footer .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rh-hero canvas { display: none; } }

/* Back to top */
.rh-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--cobalt); color: #FFFFFF; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; box-shadow: 0 12px 26px -12px rgba(11, 27, 63, .6); }
.rh-top.show { opacity: 1; visibility: visible; transform: none; }
.rh-top:hover, .rh-top:focus-visible { background: var(--orange); color: #FFFFFF; }
.rh-top svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .rh-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* Resources */
.rh-res-card { color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rh-res-card:hover { border-color: var(--cobalt); box-shadow: 0 14px 30px -20px rgba(29, 78, 216, .55); transform: translateY(-2px); color: var(--ink); }
.rh-res-card .more { color: var(--cobalt); font-weight: 600; font-size: 15px; }
.rh-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.rh-article { max-width: 72ch; }
.rh-article > * + * { margin-top: 1em; }
.rh-article h2 { font-size: 26px; margin-top: 1.8em; }
.rh-article h3 { font-size: 19px; margin-top: 1.4em; }
.rh-article p, .rh-article li { font-size: 17.5px; line-height: 1.65; }
.rh-article ul, .rh-article ol { padding-left: 1.3em; display: grid; gap: .55em; }
.rh-article a { color: var(--cobalt); }
.rh-a-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rh-a-meta a { text-decoration: none; }
.rh-a-lead { font-size: 20px !important; color: var(--ink); }
.rh-a-note { font-size: 14.5px !important; color: var(--muted); }
.rh-check { list-style: none; padding-left: 0 !important; }
.rh-check li { position: relative; padding-left: 34px; }
.rh-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border: 2px solid var(--cobalt); border-radius: 5px; }
.rh-callout { background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 8px; padding: 16px 20px; }
.rh-callout p { margin: 0; color: var(--ink); }
.rh-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rh-ba > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.rh-ba > div:last-child { border-color: var(--cobalt); background: var(--tint); }
.rh-ba span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rh-ba p { margin: 6px 0 0; font-size: 16px !important; }
.rh-template { border: 1px dashed var(--cobalt); border-radius: 12px; padding: 8px 28px 26px; background: var(--band); }
.rh-template > * + * { margin-top: .8em; }
.rh-a-cta { margin-top: 2.4em !important; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.rh-a-cta p { margin: 0; }
.rh-a-side { position: sticky; top: 96px; display: grid; gap: 10px; }
.rh-a-side h2 { font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.rh-a-side a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); }
.rh-a-side a:hover { border-color: var(--cobalt); }
.rh-a-side .k { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); }
.rh-a-side b { font-size: 15.5px; line-height: 1.35; }
@media (max-width: 980px) { .rh-article-wrap { grid-template-columns: 1fr; gap: 40px; } .rh-a-side { position: static; } }
@media (max-width: 560px) { .rh-ba { grid-template-columns: 1fr; } .rh-template { padding: 4px 18px 20px; } .rh-article p, .rh-article li { font-size: 17px; } }

/* Footer social link */
.rh-footer a.rh-social { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 14px 8px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #fff; font-weight: 600; }
.rh-footer a.rh-social:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.rh-social svg { width: 18px; height: 18px; flex: none; }

/* Daily tips */
.rh-tip-card { padding: 0 0 22px; overflow: hidden; }
.rh-tip-card > :not(.rh-tip-img) { margin-inline: 22px; }
.rh-tip-img { display: block; aspect-ratio: 1200 / 627; overflow: hidden; border-bottom: 1px solid var(--line); }
.rh-tip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-tip p { white-space: normal; }
.rh-pager { margin-top: 28px; }
.rh-pager .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.rh-pager .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.rh-pager .page-numbers.current { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.rh-pager .screen-reader-text { position: absolute; left: -9999px; }
.rh-res-tips { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.rh-res-tips p { margin: 0; }
