/* Red Apple Connect - public website */
:root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --surface-strong: #eef1f4;
    --text: #171717;
    --muted: #4b5260;
    --soft: #8a929b;
    --border: #e3e6ea;
    --accent: #c62828;
    --accent-dark: #991f1f;
    --accent-soft: #fff1f1;
    --ink: #111827;
    --container: 1120px;
    --radius: 8px;
    --shadow: 0 14px 36px rgba(17, 24, 39, .08);
    --font: "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--accent-dark);
    text-decoration-thickness: 2px;
}

/* Navigation and card links — no underline (distinguishable by context) */
.site-nav a,
.footer-col-nav a,
.footer-nav a,
.post-card,
.topic-card,
.cat-spotlight-card,
.hero-featured-link,
.button,
.read-more,
.breadcrumb a,
.nav-item {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

h1 {
    max-width: 780px;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 750;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.95rem);
    font-weight: 740;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 720;
    line-height: 1.25;
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

h5 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

h6 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.5;
}

p {
    margin: 0;
    color: var(--muted);
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.container.narrow {
    max-width: 760px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.brand:hover,
.brand:focus {
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 46px;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    border-radius: 7px;
    color: #3f4650;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
}

.site-main {
    min-height: 62vh;
}

.section {
    padding: 76px 0;
}

.section.compact {
    padding: 48px 0;
}

.ad-section {
    padding: 22px 0;
    background: #fff;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 76px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(90deg, rgba(198, 40, 40, .06), transparent 32%),
        linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.editorial-hero h1 {
    max-width: 820px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 56px;
    align-items: center;
}

.hero-copy p {
    max-width: 620px;
    margin-top: 22px;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: .94rem;
    font-weight: 730;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover,
.button:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.button.secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.button.secondary:hover,
.button.secondary:focus {
    background: var(--surface);
    border-color: #cfd5dc;
    color: var(--text);
}

.featured-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: box-shadow .18s, transform .18s;
    display: block;
}

.hero-featured-link:hover,
.hero-featured-link:focus {
    box-shadow: 0 20px 52px rgba(17, 24, 39, .13);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}

.featured-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.featured-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.hero-featured-link:hover .featured-card-thumb img {
    transform: scale(1.03);
}

.featured-card-body {
    padding: 22px 24px 26px;
    border-top: 3px solid var(--accent);
}

.featured-card-body h2 {
    margin-top: 10px;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    line-height: 1.2;
}

.featured-card-body p {
    margin-top: 12px;
    font-size: .94rem;
}

.featured-card-body .read-more {
    display: inline-flex;
    margin-top: 16px;
}

.hero-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd1d8;
}

.dot.red {
    background: var(--accent);
}

.panel-body {
    padding: 24px;
}

.service-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: .94rem;
}

.service-list strong {
    display: block;
    color: var(--text);
    font-size: .96rem;
}

.check {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-header p {
    max-width: 580px;
    margin-top: 10px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}

.topic-card:hover,
.topic-card:focus {
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(198, 40, 40, .08);
    transform: translateY(-2px);
    color: var(--text);
    text-decoration: none;
}

.topic-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background .16s;
    flex-shrink: 0;
}

.topic-card:hover .topic-icon {
    background: var(--accent);
    color: #fff;
}

.topic-card strong {
    font-size: 1rem;
    font-weight: 740;
    line-height: 1.2;
}

.topic-card p {
    font-size: .91rem;
    line-height: 1.6;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 0 rgba(17, 24, 39, .03);
    text-decoration: none;
}

.post-card-image {
    padding: 0;
    overflow: hidden;
}

.post-card-image > div:not(.post-thumb),
.post-card-image .read-more {
    margin-inline: 22px;
}

.post-card-image > div:not(.post-thumb) {
    margin-top: 18px;
}

.post-card-image .read-more {
    margin-bottom: 22px;
}

.post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card:hover,
.post-card:focus {
    border-color: #d0d5dd;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.post-date,
.post-meta {
    color: var(--soft);
    font-size: .82rem;
    font-weight: 650;
}

.post-card h3 {
    margin-top: 14px;
}

.post-card p {
    margin-top: 12px;
    font-size: .94rem;
}

.read-more {
    margin-top: 24px;
    color: var(--accent);
    font-size: .9rem;
    font-weight: 740;
}

.empty-state {
    display: grid;
    max-width: 620px;
    gap: 14px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.empty-state .button {
    width: fit-content;
    margin-top: 10px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: .9rem;
    font-weight: 720;
    text-decoration: none;
}

.pagination a:hover,
.pagination a:focus,
.pagination .current {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.content-band {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-item {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.feature-item h3 {
    margin-bottom: 6px;
}

.page-hero {
    padding: 66px 0 46px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.page-hero p {
    max-width: 680px;
    margin-top: 16px;
    font-size: 1.08rem;
}

.post-hero {
    padding: 58px 0 34px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.post-hero h1 {
    margin-top: 12px;
}

.post-hero p {
    max-width: 720px;
    margin-top: 18px;
    font-size: 1.08rem;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--soft);
    font-size: .86rem;
    font-weight: 720;
}

.post-featured {
    padding-top: 34px;
}

.post-featured img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.prose {
    max-width: 760px;
}

.prose h2 {
    margin-top: 34px;
    margin-bottom: 10px;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.2;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p + p {
    margin-top: 18px;
}

.prose ul,
.prose ol {
    color: var(--muted);
}

.prose img {
    height: auto;
    border-radius: 8px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 34px;
    margin-bottom: 12px;
}

.contact-box {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.site-footer {
    background: #0d1117;
    color: #8d96a3;
    border-top: 3px solid var(--accent);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding: 68px 0 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-col-brand p {
    max-width: 340px;
    margin-top: 14px;
    color: #6b7583;
    font-size: .93rem;
    line-height: 1.7;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .88;
}

.footer-logo:hover { opacity: 1; }

.footer-col-heading {
    margin: 0 0 18px;
    color: #fff;
    font-size: .75rem;
    font-weight: 780;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-col-nav {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col-nav a {
    color: #7a8494;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .14s;
}

.footer-col-nav a:hover,
.footer-col-nav a:focus {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    background: #080c11;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    color: #4b5563;
    font-size: .84rem;
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 26px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 40px;
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
}

.stat-label {
    font-size: .78rem;
    font-weight: 600;
    color: #6b7583;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
}

/* ── Category spotlight ──────────────────────────────────── */
.cat-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cat-spotlight-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow .16s, transform .16s;
}

.cat-spotlight-card:hover,
.cat-spotlight-card:focus {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--text);
    text-decoration: none;
}

.cat-spotlight-thumb {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: var(--surface);
}

.cat-spotlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.cat-spotlight-card:hover .cat-spotlight-thumb img {
    transform: scale(1.04);
}

.cat-spotlight-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
    flex: 1;
}

.cat-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .74rem;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cat-spotlight-body h3 {
    font-size: .97rem;
    line-height: 1.35;
}

.cat-spotlight-body .read-more {
    margin-top: auto;
    padding-top: 6px;
    font-size: .86rem;
}

/* ── Newsletter CTA ──────────────────────────────────────── */
.newsletter-section {
    background: #0d1117;
    padding: 0;
    overflow: hidden;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    align-items: stretch;
    min-height: 420px;
}

.newsletter-copy {
    padding: 68px 56px 68px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.newsletter-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(198, 40, 40, .4);
    background: rgba(198, 40, 40, .1);
    color: #e88;
    font-size: .76rem;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.newsletter-copy h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.15;
    max-width: 480px;
}

.newsletter-copy p {
    color: #6b7583;
    font-size: .97rem;
    max-width: 420px;
}

.newsletter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: .95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color .14s;
}

.newsletter-input::placeholder { color: #4b5563; }
.newsletter-input:focus { border-color: var(--accent); }

.newsletter-btn {
    height: 48px;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-msg {
    font-size: .87rem;
    min-height: 1.4em;
    margin: 0;
    color: #6b7583;
}

.newsletter-msg.success { color: #4ade80; }
.newsletter-msg.error   { color: #f87171; }

.newsletter-image {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: #111;
}

.newsletter-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .75;
}

/* ── About teaser ────────────────────────────────────────── */
.about-teaser {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.about-teaser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 64px;
    align-items: start;
}

.about-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 780;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.about-teaser h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.about-teaser p { color: var(--muted); }

.about-trust-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 8px;
}

.trust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.trust-item svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: .97rem;
    color: var(--text);
}

.trust-item p {
    font-size: .9rem;
    margin: 0;
}

/* ── About hero ─────────────────────────────────────────── */
.about-hero {
    padding: 72px 0 56px;
    background: linear-gradient(135deg, #fff 60%, #fff5f5 100%);
}

.about-hero h1 {
    margin-top: 14px;
}

.about-hero p {
    max-width: 600px;
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--muted);
}

/* ── Legal hero ──────────────────────────────────────────── */
.legal-hero { background: var(--surface); }

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--soft);
    font-size: .78rem;
    font-weight: 650;
    margin-bottom: 14px;
}

/* ── Legal layout (TOC + content) ───────────────────────── */
.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 88px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: #fff;
}

.legal-toc > p {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.legal-toc ol {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}

.legal-toc li { color: var(--muted); font-size: .88rem; }

.legal-toc a {
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
}

.legal-toc a:hover { color: var(--accent); text-decoration: none; }

.legal-content section {
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
}

.legal-content section:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.legal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-content p + p { margin-top: 12px; }

/* ── Contact layout ──────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 52px;
    align-items: start;
}

.contact-sidebar { display: grid; gap: 14px; }

.contact-side-card {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.contact-side-title {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.contact-email-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    word-break: break-all;
}

.contact-email-link:hover { color: var(--accent); text-decoration: none; }

.contact-social-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    transition: border-color .14s, color .14s;
    text-decoration: none;
}

.contact-social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ── Public form fields ──────────────────────────────────── */
.pub-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.pub-form-group { margin-bottom: 20px; }

.pub-label {
    display: block;
    margin-bottom: 6px;
    font-size: .87rem;
    font-weight: 680;
    color: var(--text);
}

.pub-required { color: var(--accent); }

.pub-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: .95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color .14s, box-shadow .14s;
    box-sizing: border-box;
    appearance: none;
}

.pub-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .09);
}

.pub-textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.65;
}

.contact-success {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    background: #f0fdf4;
    margin-bottom: 28px;
    color: #166534;
}

.contact-success svg { flex-shrink: 0; color: #16a34a; margin-top: 2px; }
.contact-success strong { display: block; font-size: .97rem; margin-bottom: 4px; }
.contact-success p { color: #166534; font-size: .9rem; margin: 0; }

.contact-errors {
    padding: 16px 20px;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    background: #fff5f5;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: .9rem;
}

.contact-errors p { color: var(--accent); margin: 0; }
.contact-errors p + p { margin-top: 4px; }

/* ── Share bar ───────────────────────────────────────────── */
.share-bar {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.share-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.share-label {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: .88rem;
    font-weight: 660;
    text-decoration: none;
    transition: border-color .14s, background .14s, color .14s;
}

.share-link:hover,
.share-link:focus {
    text-decoration: none;
}

.share-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-x:hover        { background: #000; border-color: #000; color: #fff; }

/* ── Social links in footer ──────────────────────────────── */
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #5a6472;
    text-decoration: none;
    transition: border-color .14s, color .14s, background .14s;
}

.footer-social a:hover,
.footer-social a:focus {
    border-color: var(--accent);
    background: rgba(198, 40, 40, .12);
    color: #fff;
    text-decoration: none;
}

/* ── Cookie consent banner ───────────────────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #111827;
    border-top: 2px solid var(--accent);
    padding: 16px 20px;
}

.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: var(--container);
    margin-inline: auto;
}

.cookie-inner p {
    color: #c4cad3;
    font-size: .9rem;
    margin: 0;
}

.cookie-inner a {
    color: #e88;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    background: transparent;
    color: #d7dbe1;
    font-size: .88rem;
    font-weight: 650;
    cursor: pointer;
}

.btn-cookie-accept {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-cookie:hover { opacity: .85; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 14px;
    color: var(--soft);
    font-size: .82rem;
}

.breadcrumb a {
    color: var(--soft);
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb span + span::before {
    content: '/';
    margin-right: 6px;
    opacity: .5;
}

/* ── Related posts ───────────────────────────────────────── */
.related-posts {
    padding: 54px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.related-posts h2 {
    margin-bottom: 24px;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

/* ── Category page hero ──────────────────────────────────── */
/* ── Nav toggle (hamburger) ──────────────────────────────── */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle .icon-menu  { display: block; }

.nav-toggle[aria-expanded="true"] .icon-menu  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 64px;
        padding: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .brand {
        flex: 1;
        min-width: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none !important;
        width: 100%;
        flex-direction: column;
        gap: 2px;
        padding: 10px 0 16px;
    }

    .site-header.nav-open .site-nav {
        display: flex !important;
    }

    .brand img {
        height: 38px;
    }

    .hero-grid,
    .split-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero {
        padding: 56px 0 46px;
    }

    .section {
        padding: 54px 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 0 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stat-item { padding: 0 20px; }
    .stat-sep  { height: 28px; }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .pub-form-row {
        grid-template-columns: 1fr;
    }

    .cat-spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .newsletter-copy {
        padding: 48px 0 36px;
    }

    .newsletter-image {
        display: none;
    }

    .about-teaser-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .site-nav a {
        padding-inline: 10px;
        font-size: .88rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .topic-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }
}
