.hm-guide {
    --guide-ink: #292725;
    --guide-muted: #746d68;
    --guide-line: #e5dad0;
    --guide-paper: #fbf7f2;
    --guide-red: var(--ghost-accent-color, #c5162e);
    color: var(--guide-ink);
    background: #fff;
}

.hm-guide [hidden] { display: none !important; }
.hm-guide .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hm-guide-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, #6f1521 0%, #971629 55%, #c5162e 100%); }
.hm-guide-hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: radial-gradient(circle at 82% 5%, rgba(217,166,106,.28), transparent 27%), repeating-linear-gradient(165deg, transparent 0 36px, rgba(255,255,255,.025) 37px 38px); }
.hm-guide-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; padding-top: 90px; padding-bottom: 94px; text-align: center; }
.hm-guide-kicker { font-size: 1.1rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #f2d8da; }
.hm-guide-hero h1 { max-width: 900px; margin: 15px 0 18px; color: #fff; font-size: clamp(4.4rem, 6vw, 7.2rem); line-height: 1; letter-spacing: -.06em; }
.hm-guide-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.65rem; line-height: 1.65; }
.hm-guide-search { position: relative; display: flex; align-items: center; width: min(760px, 100%); margin-top: 37px; color: var(--guide-ink); background: #fff; border: 1px solid rgba(255,255,255,.62); border-radius: 12px; box-shadow: 0 20px 55px rgba(55,17,20,.35); }
.hm-guide-search:focus-within { outline: 3px solid rgba(255,255,255,.3); }
.hm-guide-search svg { flex: 0 0 23px; width: 23px; height: 23px; margin-left: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.hm-guide-search input { width: 100%; height: 67px; padding: 0 16px; color: var(--guide-ink); background: transparent; border: 0; outline: 0; font: inherit; font-size: 1.5rem; }
.hm-guide-search button { flex: 0 0 52px; height: 52px; margin-right: 7px; color: var(--guide-muted); background: transparent; border: 0; font-size: 2.8rem; cursor: pointer; }
.hm-guide-hero .hm-guide-search-hint { margin-top: 14px; color: rgba(255,255,255,.58); font-size: 1.05rem; }

.hm-guide-intro { padding: 58px 0 0; }
.hm-guide-resources { padding-top: 82px; padding-bottom: 105px; }
.hm-guide-section-head { margin-bottom: 32px; }
.hm-guide-section-head > span { display: inline-flex; align-items: center; gap: 8px; color: var(--guide-red); font-size: 1.05rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hm-guide-section-head > span::before { width: 23px; height: 3px; content: ""; background: #d9a66a; border-radius: 3px; }
.hm-guide-section-head h2 { margin: 8px 0 0; font-size: clamp(3.1rem, 4vw, 4.8rem); letter-spacing: -.05em; }
.hm-guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-guide-card { position: relative; display: flex; align-items: flex-start; flex-direction: column; min-height: 255px; padding: 28px; color: var(--guide-ink); background: var(--guide-paper); border: 1px solid var(--guide-line); border-radius: 18px 6px 18px 6px; box-shadow: 0 10px 30px rgba(75,35,38,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hm-guide-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; content: ""; background: var(--guide-red); border-radius: 18px 6px 0 0; }
.hm-guide-card:hover { color: var(--guide-ink); border-color: rgba(197,22,46,.35); opacity: 1; transform: translateY(-5px); box-shadow: 0 20px 48px rgba(75,35,38,.14); }
.hm-guide-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 21px; color: #fff; background: linear-gradient(145deg, #c5162e, #861827); border-radius: 50% 50% 50% 12px; }
.hm-guide-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hm-guide-card strong { font-size: 1.75rem; letter-spacing: -.025em; }
.hm-guide-card small { margin-top: 8px; color: var(--guide-muted); font-size: 1.2rem; line-height: 1.55; }
.hm-guide-card b { margin-top: auto; padding-top: 19px; color: var(--guide-red); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }

.hm-guide-library { padding: 96px 0 110px; background: linear-gradient(180deg, #f8f3ee 0%, #fff 100%); }
.hm-guide-groups { display: grid; gap: 26px; }
.hm-guide-group { scroll-margin-top: 105px; display: grid; grid-template-columns: minmax(245px, .36fr) minmax(0, 1fr); gap: 34px; padding: 32px; background: #fff; border: 1px solid var(--guide-line); border-radius: 20px 7px 20px 7px; box-shadow: 0 9px 28px rgba(75,35,38,.065); }
.hm-guide-group-head { display: flex; gap: 16px; align-items: flex-start; }
.hm-guide-group-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; color: #fff; background: var(--guide-red); border-radius: 50% 50% 50% 11px; font-size: 1.35rem; font-weight: 900; }
.hm-guide-group h3 { margin: 2px 0 8px; font-size: 2.1rem; letter-spacing: -.035em; }
.hm-guide-group-head p { margin: 0; color: var(--guide-muted); font-size: 1.15rem; line-height: 1.55; }
.hm-guide-article-list { border-top: 1px solid var(--guide-line); }
.hm-guide-article { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 82px; padding: 15px 4px; color: var(--guide-ink); border-bottom: 1px solid var(--guide-line); }
.hm-guide-article:hover { color: var(--guide-red); opacity: 1; }
.hm-guide-article > span { display: flex; flex-direction: column; min-width: 0; }
.hm-guide-article strong { font-size: 1.35rem; line-height: 1.35; }
.hm-guide-article small { display: -webkit-box; overflow: hidden; margin-top: 5px; color: var(--guide-muted); font-size: 1.05rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.hm-guide-article b { color: var(--guide-red); font-size: 1.6rem; transition: transform .2s ease; }
.hm-guide-article:hover b { transform: translateX(4px); }
.hm-guide-empty { margin: 0; padding: 22px; color: var(--guide-muted); background: var(--guide-paper); border: 1px dashed var(--guide-line); border-radius: 10px; font-size: 1.15rem; line-height: 1.55; }

.hm-guide-search-results { padding: 80px 0 105px; }
.hm-guide-results-head h2 { font-size: clamp(2.8rem, 4vw, 4.2rem); }
.hm-guide-results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.hm-guide-search-hit { padding: 18px 20px; background: var(--guide-paper); border: 1px solid var(--guide-line); border-radius: 12px; }
.hm-guide-no-results { padding: 30px; color: var(--guide-muted); background: var(--guide-paper); border-radius: 12px; font-size: 1.3rem; text-align: center; }

.hm-guide-updates { padding: 0 0 110px; }
.hm-guide-updates-box { padding: 42px; background: #292725; border-radius: 22px 8px 22px 8px; box-shadow: 0 22px 55px rgba(75,35,38,.16); }
.hm-guide-updates-box .hm-guide-section-head > span { color: #efc6cb; }
.hm-guide-updates-box .hm-guide-section-head h2 { color: #fff; }
.hm-guide-update-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.hm-guide-update { display: flex; align-items: flex-start; flex-direction: column; min-height: 98px; padding: 19px 0; color: #fff; border-top: 1px solid rgba(255,255,255,.14); }
.hm-guide-update:hover { color: #f1c2c8; opacity: 1; }
.hm-guide-update strong { font-size: 1.3rem; line-height: 1.45; }
.hm-guide-update span { margin-top: 8px; color: rgba(255,255,255,.52); font-size: 1rem; }
.hm-guide-updates .hm-guide-empty { color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }

@media (max-width: 900px) {
    .hm-guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-guide-group { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hm-guide-hero-inner { padding-top: 65px; padding-bottom: 68px; }
    .hm-guide-hero h1 { font-size: 4.1rem; }
    .hm-guide-search input { height: 60px; font-size: 1.3rem; }
    .hm-guide-resources, .hm-guide-library { padding-top: 65px; padding-bottom: 72px; }
    .hm-guide-cards, .hm-guide-results-list, .hm-guide-update-list { grid-template-columns: 1fr; }
    .hm-guide-card { min-height: 225px; }
    .hm-guide-group { gap: 23px; padding: 22px; }
    .hm-guide-updates { padding-bottom: 72px; }
    .hm-guide-updates-box { padding: 28px 22px; border-radius: 16px 5px 16px 5px; }
}
