/* Shared HoneyRuns public-site header/footer */
.hr-shell-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hr-shell-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hr-shell-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .hr-shell-inner { padding: 0 2rem; }
}

.hr-shell-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.hr-shell-logo {
    font-family: Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.875rem;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    color: #1A1A1A;
}

.hr-shell-logo span:first-child { color: #FDB813; }

.hr-shell-links {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
}

.hr-shell-link,
.hr-shell-login {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: rgba(26, 26, 28, 0.84);
    text-decoration: none;
    transition: color 160ms ease;
}

.hr-shell-roll-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 1.25;
}

.hr-shell-roll-link span {
    display: block;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hr-shell-roll-link::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    color: #1A1A1A;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hr-shell-roll-link:hover span,
.hr-shell-roll-link:focus-visible span {
    transform: translateY(-115%);
}

.hr-shell-roll-link:hover::after,
.hr-shell-roll-link:focus-visible::after {
    transform: translateY(-100%);
}

.hr-shell-link:hover,
.hr-shell-login:hover {
    color: #1A1A1A;
}

.hr-shell-actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Login is a quiet text link: one filled pill (the CTA) per header, nothing boxed beside it */
.hr-shell-login {
    padding: 0.5rem 0.75rem;
}

.hr-shell-cta,
.hr-primary-cta,
.hr-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    transition: background 160ms ease, border-color 160ms ease;
}

.hr-shell-cta {
    padding: 0.5rem 1.15rem;
}

.hr-shell-cta,
.hr-primary-cta {
    background: #18181B;
    color: #FFFFFF;
}

.hr-shell-cta:hover,
.hr-shell-cta:focus-visible,
.hr-primary-cta:hover,
.hr-primary-cta:focus-visible {
    background: #2E2E33;
}

/* Secondary = text + arrow beside the filled primary, not a second outlined pill */
.hr-secondary-cta {
    gap: 0.4rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background: transparent;
    color: rgba(26, 26, 28, 0.84);
}

.hr-secondary-cta::after {
    content: "\2192";
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hr-secondary-cta:hover,
.hr-secondary-cta:focus-visible {
    color: #18181B;
}

.hr-secondary-cta:hover::after,
.hr-secondary-cta:focus-visible::after {
    transform: translateX(3px);
}

.hr-primary-cta--spaced {
    margin-top: 1rem;
}

.hr-shell-mobile-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: #3D3D3D;
    cursor: pointer;
}

.hr-shell-mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.hr-shell-mobile {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: none;
}

.hr-shell-mobile.is-open { display: block; }

.hr-shell-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.hr-shell-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 16rem;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 5rem 1.5rem 1.5rem;
}

.hr-shell-mobile-panel nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hr-shell-mobile-panel .hr-shell-link,
.hr-shell-mobile-panel .hr-shell-login,
.hr-shell-mobile-panel .hr-shell-cta {
    width: 100%;
    text-align: center;
}

.hr-shell-mobile-panel .hr-shell-link {
    display: block;
    text-align: left;
    padding: 0.5rem 0;
}


@media (min-width: 768px) {
    .hr-shell-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: initial;
    }

    .hr-shell-links,
    .hr-shell-actions {
        display: flex;
    }

    .hr-shell-mobile-toggle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hr-shell-roll-link span,
    .hr-shell-roll-link::after,
    .hr-shell-cta,
    .hr-primary-cta,
    .hr-secondary-cta,
    .hr-secondary-cta::after {
        transition: none;
    }

    .hr-shell-roll-link::after {
        display: none;
    }

    .hr-shell-roll-link:hover span,
    .hr-shell-roll-link:focus-visible span {
        transform: none;
    }
}

.hr-shell-footer {
    background: #1A1A1A;
    color: #fff;
    padding: 4rem 0;
}

.hr-shell-footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hr-shell-footer-brand {
    max-width: 28rem;
}

.hr-shell-footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
}

.hr-shell-footer-logo span:first-child { color: #FDB813; }

.hr-shell-footer-tagline {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.5;
}

.hr-shell-footer-socials {
    display: flex;
    gap: 1rem;
}

.hr-shell-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 160ms ease;
}

.hr-shell-social:hover { background: #FDB813; }

.hr-shell-footer h4 {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

.hr-shell-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hr-shell-footer a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 160ms ease;
}

.hr-shell-footer a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hr-shell-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hr-shell-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.hr-shell-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.hr-shell-footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.hr-shell-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
    .hr-shell-footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hr-shell-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ==========================================================================
   Document pages (privacy, terms, security, sub-processors, support).
   The one copy of the legal/info page styles. These pages load no Tailwind,
   so this block carries its own small base. Everything is scoped to
   .hr-doc-body so the landing and blog pages are untouched.
   ========================================================================== */
.hr-doc-body {
    --doc-bg: #FCFCF4;
    --doc-ink: #1A1A1A;
    --doc-copy: rgba(26, 26, 26, 0.78);
    --doc-muted: rgba(26, 26, 26, 0.55);
    --doc-rule: rgba(26, 26, 26, 0.1);
    --doc-rule-strong: rgba(26, 26, 26, 0.18);
    --doc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --doc-display: Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: var(--doc-bg);
    color: var(--doc-ink);
    font-family: var(--doc-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html:has(.hr-doc-body) { scroll-behavior: smooth; }

.hr-doc-body *,
.hr-doc-body *::before,
.hr-doc-body *::after { box-sizing: border-box; }

.hr-doc-page {
    padding: 7.5rem 1rem 6rem;
}

@media (min-width: 640px) {
    .hr-doc-page { padding: 9rem 1.5rem 8rem; }
}

.hr-doc-layout {
    max-width: 44rem;
    margin: 0 auto;
}

.hr-doc-toc { display: none; }

@media (min-width: 1120px) {
    .hr-doc-layout--toc {
        display: grid;
        grid-template-columns: 13rem minmax(0, 44rem);
        gap: 5rem;
        max-width: 62rem;
    }

    .hr-doc-toc {
        display: block;
        position: sticky;
        top: 7rem;
        align-self: start;
        max-height: calc(100vh - 9rem);
        overflow-y: auto;
        padding-top: 0.5rem;
    }
}

.hr-doc-toc-label {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--doc-muted);
}

.hr-doc-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--doc-rule);
}

.hr-doc-toc a {
    display: block;
    margin-left: -1px;
    padding: 0.3rem 0 0.3rem 0.875rem;
    border-left: 1px solid transparent;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--doc-muted);
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease;
}

.hr-doc-toc a:hover { color: var(--doc-ink); }

.hr-doc-toc a[aria-current="true"] {
    color: var(--doc-ink);
    border-left-color: var(--doc-ink);
}

/* Header block: H1, optional eyebrow, dates, lede */
.hr-doc-header {
    padding-bottom: 2.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--doc-rule);
}

.hr-doc .hr-doc-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--doc-muted);
}

.hr-doc h1 {
    margin: 0;
    font-family: var(--doc-display);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--doc-ink);
    text-wrap: balance;
}

.hr-doc-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.hr-doc-facts div { display: flex; gap: 0.4rem; }
.hr-doc-facts dt { color: var(--doc-muted); }
.hr-doc-facts dd { margin: 0; color: var(--doc-ink); }

.hr-doc .hr-doc-lede {
    margin: 1.5rem 0 0;
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    line-height: 1.6;
    color: var(--doc-copy);
}

.hr-doc .hr-doc-lede + .hr-doc-lede { margin-top: 0.875rem; }

/* Body copy */
.hr-doc p,
.hr-doc li {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--doc-copy);
}

.hr-doc p { margin: 0 0 1.25rem; }

.hr-doc h2 {
    margin: 3.5rem 0 1.25rem;
    font-family: var(--doc-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--doc-ink);
    scroll-margin-top: 6rem;
}

.hr-doc h2 > a {
    color: inherit;
    text-decoration: none;
}

.hr-doc h2 > a::after {
    content: "#";
    margin-left: 0.4em;
    color: var(--doc-muted);
    opacity: 0;
    transition: opacity 160ms ease;
}

.hr-doc h2 > a:hover::after,
.hr-doc h2 > a:focus-visible::after { opacity: 1; }

.hr-doc h3 {
    margin: 2.25rem 0 0.625rem;
    font-family: var(--doc-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--doc-ink);
}

.hr-doc h4 {
    margin: 1.5rem 0 0.5rem;
    font-family: var(--doc-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--doc-ink);
}

.hr-doc h2 + h3 { margin-top: 0; }

.hr-doc ul,
.hr-doc ol {
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
}

.hr-doc li { padding-left: 0.25rem; }
.hr-doc li + li { margin-top: 0.5rem; }
.hr-doc li::marker { color: var(--doc-muted); }

.hr-doc strong {
    font-weight: 600;
    color: var(--doc-ink);
}

.hr-doc :is(p, li, dd, td) a {
    color: var(--doc-ink);
    text-decoration: underline;
    text-decoration-color: var(--doc-rule-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: text-decoration-color 160ms ease;
}

.hr-doc :is(p, li, dd, td) a:hover {
    text-decoration-color: var(--doc-ink);
}

.hr-doc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.05);
    color: var(--doc-ink);
}

/* Callouts: a quiet ink rule, no tint, no icon */
.hr-doc-note {
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    border-left: 2px solid var(--doc-ink);
}

.hr-doc-note > :first-child { margin-top: 0; }
.hr-doc-note > :last-child { margin-bottom: 0; }

/* Contact block: hairline box */
.hr-doc-contact {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    border: 1px solid var(--doc-rule);
    border-radius: 12px;
    background: #FFFFFF;
}

.hr-doc-contact > :first-child { margin-top: 0; }
.hr-doc-contact > :last-child { margin-bottom: 0; }

/* Tables scroll inside their own container on narrow screens */
.hr-doc-table-wrap {
    margin: 0 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hr-doc table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.hr-doc th {
    padding: 0 1.25rem 0.75rem 0;
    border-bottom: 1px solid var(--doc-rule-strong);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    color: var(--doc-muted);
}

.hr-doc td {
    padding: 1.125rem 1.25rem 1.125rem 0;
    border-bottom: 1px solid var(--doc-rule);
    vertical-align: top;
    color: var(--doc-copy);
}

.hr-doc th:last-child,
.hr-doc td:last-child { padding-right: 0; }

.hr-doc td:first-child {
    font-weight: 600;
    color: var(--doc-ink);
    white-space: nowrap;
}

.hr-doc td:nth-child(2) { white-space: nowrap; }

.hr-doc-tag {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--doc-ink);
}

.hr-doc-back {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 3.5rem;
    font-size: 0.9375rem;
    color: var(--doc-muted);
    text-decoration: none;
    transition: color 160ms ease;
}

.hr-doc-back::before { content: "\2190"; }
.hr-doc-back:hover { color: var(--doc-ink); }

/* Support form */
.hr-doc-form { margin: 2.5rem 0 0; }

.hr-doc-field { margin-bottom: 1.5rem; }

.hr-doc-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--doc-ink);
}

.hr-doc-field input,
.hr-doc-field select,
.hr-doc-field textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--doc-rule-strong);
    border-radius: 10px;
    background: #FFFFFF;
    font: inherit;
    font-size: 1rem;
    color: var(--doc-ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hr-doc-field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.125rem;
}

.hr-doc-field textarea { resize: vertical; }

.hr-doc-field input::placeholder,
.hr-doc-field textarea::placeholder { color: rgba(26, 26, 26, 0.4); }

.hr-doc-field input:focus,
.hr-doc-field select:focus,
.hr-doc-field textarea:focus {
    outline: none;
    border-color: var(--doc-ink);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.hr-doc-feedback {
    margin: 0 0 1.5rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: rgba(26, 26, 26, 0.04);
    color: var(--doc-ink);
}

.hr-doc-feedback[data-state="success"] { background: #EEF5EE; color: #1F5130; }
.hr-doc-feedback[data-state="error"] { background: #FBEEEC; color: #8A2318; }

.hr-doc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.hr-doc-actions .hr-primary-cta { cursor: pointer; }
.hr-doc-actions .hr-doc-back { margin-top: 0; }
.hr-doc-link-cta { padding-left: 0; }

@media (prefers-reduced-motion: reduce) {
    html:has(.hr-doc-body) { scroll-behavior: auto; }
}

/* Riggs idle motion — the one copy on the public site. Mirrors the app's
   RiggsMark idle state (honeyruns-nextjs/src/components/riggs/RiggsMark.tsx):
   float + blink + slow honey sheen. Change both together. */
.rg-c { transform-box: fill-box; transform-origin: center; }
.rg-bob { animation: rg-bob 3.6s ease-in-out infinite; }
.rg-blink { animation: rg-blink 5s ease-in-out infinite; }
.rg-sheenS { animation: rg-sheenS 5s ease-in-out infinite; }
@keyframes rg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes rg-blink { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.1); } }
@keyframes rg-sheenS { 0% { transform: translateX(-34px) rotate(-18deg); } 55%, 100% { transform: translateX(44px) rotate(-18deg); } }

@media (prefers-reduced-motion: reduce) {
    .rg-bob, .rg-blink, .rg-sheenS { animation: none !important; }
}
