:root {
    --bg: #f4f1eb;
    --bg-alt: #ece8df;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #fbfaf7;
    --surface-deep: rgba(17, 22, 21, 0.78);
    --text: #19211f;
    --muted: #60706a;
    --line: rgba(84, 100, 94, 0.18);
    --line-strong: rgba(84, 100, 94, 0.28);
    --teal: #8fc5bb;
    --teal-deep: #578b82;
    --gold: #d7d0a6;
    --gold-deep: #c3b983;
    --charcoal: #232928;
    --danger: #b95445;
    --shadow-lg: 0 24px 60px rgba(24, 32, 29, 0.12);
    --shadow-md: 0 12px 32px rgba(24, 32, 29, 0.08);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(143, 197, 187, 0.35), transparent 30%),
        radial-gradient(circle at top right, rgba(215, 208, 166, 0.38), transparent 28%),
        linear-gradient(180deg, #f5f2ec 0%, #f0ece4 56%, #ece8df 100%);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.09) 0,
            rgba(255, 255, 255, 0.09) 1px,
            transparent 1px,
            transparent 18px
        );
    opacity: 0.45;
}

.container {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
}

.page-main {
    position: relative;
    z-index: 1;
    padding-bottom: 44px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(244, 241, 235, 0.74);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.main-nav,
.hero-actions,
.story-meta,
.section-heading,
.footer-inner,
.footer-links,
.article-meta-row,
.article-cta-row,
.hero-breadcrumbs,
.admin-row-actions,
.admin-panel-head {
    display: flex;
    align-items: center;
}

.header-inner {
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    position: relative;
}

.brand img,
.article-sidepanel img,
.category-hero-logo img,
.featured-mark img,
.site-footer img {
    width: auto;
}

.brand img {
    width: min(176px, 38vw);
    opacity: 0.96;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(87, 139, 130, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-direction: column;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a,
.filter-row a,
.mini-tags span,
.highlight-list span,
.story-card-tag,
.hero-kicker,
.button-secondary,
.admin-link {
    border: 1px solid var(--line);
    border-radius: 999px;
}

.main-nav a {
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--muted);
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    transform: translateY(-1px);
    background: rgba(143, 197, 187, 0.16);
    border-color: rgba(87, 139, 130, 0.28);
    color: var(--text);
}

.admin-link {
    background: rgba(215, 208, 166, 0.26);
}

.hero-kicker,
.story-card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.34);
    color: var(--teal-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero,
.category-hero,
.article-hero,
.admin-hero {
    padding: 22px 0 40px;
}

.hero-layout,
.category-hero-layout,
.article-hero-layout,
.article-layout,
.admin-layout,
.featured-story {
    display: grid;
    gap: 20px;
}

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

.featured-story,
.category-hero-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.article-hero-layout,
.article-layout,
.admin-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.hero-copy,
.hero-brand-panel,
.featured-story,
.social-strip,
.pillar-card,
.story-card,
.content-card,
.sidebar-card,
.cta-card,
.message-panel,
.category-toolbar,
.admin-hero-card,
.admin-form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.hero-copy,
.hero-brand-panel,
.content-card,
.sidebar-card,
.message-panel,
.admin-hero-card,
.admin-form-card {
    border-radius: var(--radius-xl);
}

.hero-copy,
.hero-brand-panel,
.content-card,
.sidebar-card,
.message-panel,
.admin-hero-card,
.admin-form-card,
.cta-card {
    padding: 28px;
}

.hero-copy h1,
.category-hero h1,
.article-copy h1,
.static-page h1,
.admin-hero-card h1 {
    margin: 14px 0 14px;
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    max-width: 14ch;
}

.hero-intro,
.hero-brand-panel p,
.content-card p,
.sidebar-card p,
.social-strip p,
.story-card p,
.message-panel p,
.admin-hero-card p {
    color: var(--muted);
    line-height: 1.72;
}

.hero-actions,
.article-cta-row {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.home-portal {
    position: relative;
    overflow: hidden;
    padding: 34px 34px 0;
    border: 1px solid var(--line);
    border-radius: 36px;
    background:
        radial-gradient(circle at top right, rgba(215, 208, 166, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(143, 197, 187, 0.2) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(236, 232, 223, 0.96) 100%);
    box-shadow: var(--shadow-lg);
}

.home-portal::before,
.home-portal::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.home-portal::before {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(143, 197, 187, 0.3) 0%, rgba(143, 197, 187, 0) 70%);
}

.home-portal::after {
    width: 360px;
    height: 360px;
    left: -140px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(215, 208, 166, 0.26) 0%, rgba(215, 208, 166, 0) 72%);
}

.home-portal-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.home-portal .hero-copy {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.home-portal .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 5vw, 4.9rem);
}

.home-portal .hero-intro {
    max-width: 56ch;
}

.hero-spotlight-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(251, 250, 247, 0.92);
    box-shadow: var(--shadow-md);
}

.hero-spotlight-card img {
    max-width: 180px;
}

.hero-spotlight-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.hero-spotlight-meta span,
.portal-chip,
.portal-affiliate-slot {
    border: 1px solid var(--line);
    border-radius: 22px;
}

.hero-spotlight-meta span {
    padding: 8px 12px;
    background: rgba(143, 197, 187, 0.12);
}

.hero-spotlight-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-spotlight-card p,
.portal-affiliate-slot p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.portal-shortcuts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 1.25fr);
    gap: 14px;
    margin-top: 28px;
    transform: translateY(32px);
}

.portal-chip,
.portal-affiliate-slot {
    background: rgba(251, 250, 247, 0.94);
    box-shadow: var(--shadow-md);
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 18px 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.portal-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(87, 139, 130, 0.3);
}

.portal-affiliate-slot {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 16px 18px;
}

.portal-affiliate-slot strong {
    font-size: 1rem;
}

.button-primary,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button-primary {
    border: 0;
    border-radius: 999px;
    color: #fdfcf8;
    background: linear-gradient(135deg, var(--teal-deep) 0%, #6da399 100%);
    box-shadow: 0 14px 26px rgba(87, 139, 130, 0.22);
}

.button-primary:hover,
.button-secondary:hover,
.button-danger:hover {
    transform: translateY(-1px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.44);
    color: var(--text);
}

.button-danger {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--danger);
}

.hero-brand-panel,
.article-sidepanel,
.category-hero-logo,
.featured-mark {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.hero-brand-panel,
.category-hero-logo,
.featured-mark {
    display: grid;
    text-align: center;
}

.hero-brand-panel::before,
.category-hero-logo::before,
.featured-mark::before,
.article-sidepanel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(143, 197, 187, 0.38), transparent 26%),
        radial-gradient(circle at 78% 46%, rgba(215, 208, 166, 0.44), transparent 30%),
        linear-gradient(180deg, rgba(21, 28, 27, 0.78) 0%, rgba(35, 41, 40, 0.82) 100%);
}

.hero-brand-panel > *,
.category-hero-logo > *,
.featured-mark > *,
.article-sidepanel > * {
    position: relative;
    z-index: 1;
}

.affiliate-slot-label {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(143, 197, 187, 0.16);
    border: 1px solid rgba(87, 139, 130, 0.2);
    color: var(--teal-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-brand-panel img,
.category-hero-logo img,
.featured-mark img,
.article-sidepanel img,
.site-footer img {
    max-width: 310px;
    opacity: 0.98;
}

.hero-brand-panel p,
.article-sidepanel p {
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.8);
}

.pillar-grid,
.story-grid {
    display: grid;
    gap: 18px;
}

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

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

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

.category-cards-section,
.featured-section,
.social-proof-section,
.story-grid-section,
.category-shelves,
.static-page {
    padding: 14px 0 22px;
}

.category-cards-section {
    padding-top: 8px;
}

.pillar-card,
.story-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pillar-card {
    position: relative;
    padding: 24px;
    background: rgba(251, 250, 247, 0.88);
}

.pillar-card::before {
    content: "";
    display: block;
    width: 70px;
    height: 6px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(143, 197, 187, 0.86) 0%, rgba(215, 208, 166, 0.92) 100%);
}

.pillar-card h2,
.featured-copy h2,
.social-strip h2,
.section-heading h2,
.content-card h2,
.cta-card h2,
.static-page h1,
.admin-form-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.mini-tags,
.filter-row,
.highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-tags {
    margin: 18px 0 20px;
}

.mini-tags span,
.highlight-list span {
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.36);
    color: var(--muted);
}

.text-link,
.story-card-cta {
    color: var(--teal-deep);
    font-weight: 700;
}

.featured-story {
    border-radius: 34px;
    overflow: hidden;
}

.featured-copy {
    padding: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 248, 243, 0.76) 100%);
}

.featured-copy p {
    color: var(--muted);
    line-height: 1.72;
}

.social-strip {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: var(--radius-xl);
}

.story-card-link {
    display: grid;
    grid-template-rows: 196px 1fr;
    height: 100%;
}

.story-card {
    background: rgba(251, 250, 247, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(24, 32, 29, 0.1);
}

.story-card-media {
    min-height: 185px;
    position: relative;
    background:
        linear-gradient(180deg, rgba(17, 22, 21, 0.08) 0%, rgba(17, 22, 21, 0.38) 100%),
        linear-gradient(135deg, rgba(143, 197, 187, 0.82) 0%, rgba(215, 208, 166, 0.88) 46%, rgba(85, 112, 104, 0.94) 100%);
}

.story-card:nth-child(2n) .story-card-media {
    background:
        linear-gradient(180deg, rgba(17, 22, 21, 0.08) 0%, rgba(17, 22, 21, 0.38) 100%),
        linear-gradient(135deg, rgba(215, 208, 166, 0.88) 0%, rgba(143, 197, 187, 0.82) 46%, rgba(85, 112, 104, 0.94) 100%);
}

.story-card:nth-child(3n) .story-card-media {
    background:
        linear-gradient(180deg, rgba(17, 22, 21, 0.08) 0%, rgba(17, 22, 21, 0.38) 100%),
        linear-gradient(135deg, rgba(108, 155, 145, 0.92) 0%, rgba(215, 208, 166, 0.86) 52%, rgba(35, 41, 40, 0.94) 100%);
}

.story-card-tag {
    position: absolute;
    left: 16px;
    top: 16px;
    background: rgba(255, 255, 255, 0.26);
    color: #f5f2e9;
    border-color: rgba(255, 255, 255, 0.24);
}

.story-card-body {
    padding: 20px 20px 22px;
}

.story-meta {
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.story-card h3,
.sidebar-card h3,
.article-sidepanel h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.section-heading {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    align-items: end;
}

.section-heading p {
    color: var(--muted);
}

.shelf + .shelf {
    margin-top: 26px;
}

.message-panel,
.category-toolbar {
    margin-top: 28px;
}

.category-toolbar {
    padding: 18px;
    border-radius: var(--radius-lg);
}

.filter-row a {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--muted);
}

.filter-row a.active {
    background: rgba(143, 197, 187, 0.18);
    color: var(--text);
    border-color: rgba(87, 139, 130, 0.3);
}

.article-copy,
.article-content,
.article-sidebar,
.admin-sidebar {
    display: grid;
    gap: 16px;
}

.hero-breadcrumbs,
.article-meta-row {
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.article-sidepanel {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.highlight-list {
    margin-top: 22px;
}

.content-card h2 {
    margin-bottom: 14px;
}

.bullet-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.78;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    border-radius: var(--radius-xl);
    padding: 28px;
}

.sidebar-links {
    display: grid;
    gap: 10px;
}

.sidebar-links a,
.admin-article-row {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--line);
}

.sidebar-links span,
.admin-article-row span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 20px 0 34px;
}

.footer-inner {
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border-radius: var(--radius-xl);
    background: var(--surface-deep);
    color: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-lg);
}

.footer-inner p {
    max-width: 58ch;
    line-height: 1.72;
}

.footer-links {
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

.admin-body .site-header {
    background: rgba(244, 241, 235, 0.82);
}

.admin-form-card {
    padding: 28px;
}

.admin-panel-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-form {
    display: grid;
    gap: 18px;
}

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

.admin-field {
    display: grid;
    gap: 8px;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.admin-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-field input,
.admin-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.54);
    color: var(--text);
}

.admin-field textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.admin-alert-success {
    background: rgba(112, 175, 145, 0.18);
    border: 1px solid rgba(112, 175, 145, 0.24);
    color: #35604d;
}

.admin-alert-error {
    background: rgba(185, 84, 69, 0.12);
    border: 1px solid rgba(185, 84, 69, 0.2);
    color: #8f3d31;
}

.admin-auth-shell {
    max-width: 640px;
    padding-top: 28px;
    padding-bottom: 40px;
}

.admin-auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 30px;
}

.admin-auth-card h1 {
    margin: 14px 0 14px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.admin-auth-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.admin-auth-note {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.65;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(143, 197, 187, 0.16);
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(87, 139, 130, 0.18);
}

.admin-logout-form {
    display: inline-flex;
    margin: 0;
}

.admin-logout-form .button-secondary {
    width: auto;
}

.admin-article-list {
    display: grid;
    gap: 14px;
}

.admin-row-actions {
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .featured-story,
    .category-hero-layout,
    .article-hero-layout,
    .article-layout,
    .admin-layout,
    .pillar-grid,
    .story-grid,
    .compact-grid,
    .admin-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-portal-grid,
    .portal-shortcuts {
        grid-template-columns: 1fr 1fr;
    }

    .portal-affiliate-slot {
        grid-column: 1 / -1;
    }

    .social-strip,
    .footer-inner,
    .header-inner,
    .admin-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .hero-layout,
    .featured-story,
    .category-hero-layout,
    .article-hero-layout,
    .article-layout,
    .admin-layout,
    .pillar-grid,
    .story-grid,
    .compact-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .home-portal {
        padding: 24px 20px 0;
    }

    .home-portal-grid,
    .portal-shortcuts {
        grid-template-columns: 1fr;
    }

    .portal-shortcuts {
        transform: translateY(24px);
    }

    .portal-chip,
    .portal-affiliate-slot {
        min-height: auto;
    }

    .hero-copy,
    .hero-brand-panel,
    .content-card,
    .sidebar-card,
    .message-panel,
    .admin-hero-card,
    .admin-form-card,
    .cta-card {
        padding: 22px;
    }

    .hero-copy h1,
    .category-hero h1,
    .article-copy h1,
    .static-page h1,
    .admin-hero-card h1 {
        font-size: 2.7rem;
    }

    .hero-actions,
    .article-cta-row,
    .footer-links {
        width: 100%;
    }

    .button-primary,
    .button-secondary,
    .button-danger {
        width: 100%;
    }
}

/* Portal redesign */
:root {
    --container: 1280px;
}

.page-main {
    padding-bottom: 0;
}

.site-header {
    background: rgba(251, 250, 247, 0.95);
    box-shadow: 0 8px 24px rgba(24, 32, 29, 0.08);
}

.header-inner {
    flex-direction: row;
    align-items: center;
    min-height: 76px;
    padding: 10px 0;
}

.brand img {
    width: min(190px, 42vw);
}

.main-nav {
    gap: 4px;
}

.main-nav a {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 12px 14px;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(143, 197, 187, 0.14);
    border-color: transparent;
    color: var(--text);
    transform: none;
}

.main-nav .admin-link {
    margin-left: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(215, 208, 166, 0.2);
    color: var(--muted);
}

.home-hero {
    position: relative;
    padding: 0 0 30px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(25, 33, 31, 0.34) 0%, rgba(25, 33, 31, 0.16) 34%, rgba(25, 33, 31, 0.08) 58%, rgba(25, 33, 31, 0.14) 100%),
        linear-gradient(180deg, rgba(255, 248, 237, 0.08) 0%, rgba(255, 248, 237, 0) 28%),
        url("/public/uploads/surejser-home-hero-20260427.png") 62% center / cover no-repeat;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 24%, rgba(255, 248, 237, 0.28), transparent 24%),
        linear-gradient(180deg, rgba(244, 241, 235, 0.12) 0%, rgba(244, 241, 235, 0) 26%);
    pointer-events: none;
}

.home-hero > .container {
    width: 100%;
    max-width: none;
}

.home-hero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: clamp(500px, 52vw, 620px);
    padding: clamp(38px, 6vw, 72px) 0;
}

.home-portal {
    position: relative;
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    min-height: 0;
    box-shadow: none;
    background: none;
    isolation: auto;
}

.home-portal::before {
    display: none;
}

.home-portal::after {
    display: none;
}

.home-hero-inner {
    display: flex;
    align-items: center;
    min-height: inherit;
}

.home-portal .hero-copy {
    max-width: min(560px, 100%);
    --hero-controls-width: min(100%, 390px);
    padding: clamp(26px, 4vw, 38px);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.8) 0%, rgba(251, 248, 241, 0.66) 100%);
    border: 1px solid rgba(87, 139, 130, 0.18);
    box-shadow: 0 24px 54px rgba(24, 32, 29, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text);
}

.home-portal .hero-copy h1 {
    max-width: 11ch;
    margin: 16px 0 14px;
    color: var(--text);
    font-size: clamp(2.85rem, 5.8vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.home-portal .hero-intro {
    max-width: 48ch;
    margin: 0;
    color: rgba(25, 33, 31, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
}

.home-portal .hero-kicker {
    background: rgba(251, 248, 241, 0.66);
    border-color: rgba(87, 139, 130, 0.18);
}

.home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: var(--hero-controls-width);
    margin-top: 22px;
    gap: 12px;
    align-items: stretch;
    justify-items: stretch;
}

.home-hero-actions .button-primary,
.home-hero-actions .button-secondary {
    width: 100%;
}

.home-hero-secondary {
    border-color: rgba(87, 139, 130, 0.22);
    background: rgba(251, 248, 241, 0.36);
    color: var(--text);
}

.home-portal .button-primary:hover {
    box-shadow: 0 18px 32px rgba(87, 139, 130, 0.28);
}

.home-hero-secondary:hover {
    background: rgba(251, 248, 241, 0.56);
    border-color: rgba(87, 139, 130, 0.34);
}

.home-hero-points {
    display: grid;
    width: var(--hero-controls-width);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    align-items: stretch;
}

.home-hero-points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(87, 139, 130, 0.16);
    background: rgba(251, 248, 241, 0.4);
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

.home-categories-section,
.home-article-section,
.static-page {
    padding: 24px 0;
}

.home-categories-section {
    padding-top: 22px;
    padding-bottom: 4px;
}

.home-categories-section .home-section-heading {
    margin-bottom: 0;
}

.about-main {
    padding-bottom: 36px;
}

.about-hero {
    position: relative;
    overflow: hidden;
    padding: 0 0 30px;
    isolation: isolate;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(25, 33, 31, 0.34) 0%, rgba(25, 33, 31, 0.16) 38%, rgba(25, 33, 31, 0.06) 66%, rgba(25, 33, 31, 0.14) 100%),
        linear-gradient(180deg, rgba(244, 241, 235, 0.1) 0%, rgba(244, 241, 235, 0) 30%);
}

.about-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.about-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
}

.about-hero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: clamp(500px, 52vw, 620px);
    padding: clamp(38px, 6vw, 72px) 0;
}

.about-hero-card {
    width: min(620px, 100%);
    padding: clamp(24px, 3.4vw, 34px);
    border: 1px solid rgba(87, 139, 130, 0.14);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.74) 0%, rgba(251, 248, 241, 0.58) 100%);
    box-shadow: 0 18px 42px rgba(24, 32, 29, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.about-hero-card h1 {
    max-width: 10.8ch;
    margin: 14px 0 12px;
    color: var(--text);
    font-size: clamp(2.6rem, 4.8vw, 4.35rem);
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
}

.about-hero-card .hero-intro {
    max-width: 45ch;
    margin: 0;
    color: rgba(25, 33, 31, 0.78);
    font-size: 1rem;
    line-height: 1.68;
}

.about-hero-card .hero-kicker {
    background: rgba(251, 248, 241, 0.66);
    border-color: rgba(87, 139, 130, 0.18);
}

.about-page {
    display: grid;
    gap: 22px;
    padding-top: 18px;
}

.about-info-block {
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.about-copy {
    grid-column: 2;
    display: grid;
    gap: 12px;
    max-width: 680px;
    padding-top: 42px;
}

.about-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.about-section-heading {
    display: grid;
    gap: 12px;
}

.about-section-heading h2,
.about-small-card h2,
.about-bottom-cta h2 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: 0;
}

.about-section-heading h2 {
    max-width: 16ch;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
}

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

.about-small-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(251, 250, 247, 0.66);
    box-shadow: 0 10px 24px rgba(24, 32, 29, 0.055);
}

.about-small-card {
    display: grid;
    gap: 10px;
    min-height: 178px;
    padding: 22px;
    align-content: start;
}

.about-small-card::before {
    content: "";
    width: 54px;
    height: 5px;
    margin-bottom: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(143, 197, 187, 0.86) 0%, rgba(215, 208, 166, 0.92) 100%);
}

.about-small-card h2 {
    font-size: 1.32rem;
}

.about-small-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.about-bottom-cta {
    display: grid;
    gap: 18px;
    margin-top: 2px;
    padding: 28px 0 12px;
    text-align: center;
}

.about-bottom-cta h2 {
    max-width: 760px;
    margin: 12px auto 0;
    font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.about-cta-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(860px, 100%);
    margin: 0 auto;
}

.about-cta-actions .button-primary,
.about-cta-actions .button-secondary {
    min-height: 62px;
    padding: 16px 22px;
    border-radius: 999px;
}

.about-cta-actions .button-secondary {
    border: 1px solid rgba(87, 139, 130, 0.18);
    background: rgba(251, 250, 247, 0.62);
}

.contact-main {
    padding-bottom: 36px;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 0 0 30px;
    isolation: isolate;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(25, 33, 31, 0.28) 0%, rgba(25, 33, 31, 0.12) 42%, rgba(25, 33, 31, 0.04) 72%, rgba(25, 33, 31, 0.1) 100%),
        linear-gradient(180deg, rgba(244, 241, 235, 0.12) 0%, rgba(244, 241, 235, 0) 34%);
}

.contact-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.contact-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 61% center;
}

.contact-hero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: clamp(500px, 52vw, 620px);
    padding: clamp(38px, 6vw, 72px) 0;
}

.contact-hero-card {
    width: min(540px, 100%);
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(87, 139, 130, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.76) 0%, rgba(251, 248, 241, 0.62) 100%);
    box-shadow: 0 16px 34px rgba(24, 32, 29, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-hero-card h1 {
    max-width: 12ch;
    margin: 14px 0 12px;
    font-size: clamp(2.25rem, 4.1vw, 3.7rem);
    line-height: 1;
    letter-spacing: 0;
    text-wrap: balance;
}

.contact-hero-card .hero-intro {
    max-width: 46ch;
    margin: 0;
    color: rgba(25, 33, 31, 0.78);
    line-height: 1.66;
}

.contact-hero-card .hero-kicker {
    background: rgba(251, 248, 241, 0.68);
    border-color: rgba(87, 139, 130, 0.18);
}

.contact-page {
    display: grid;
    gap: 22px;
    padding-top: 14px;
}

.contact-options-section {
    display: grid;
    gap: 18px;
    padding: 22px 0 8px;
}

.contact-section-heading {
    display: grid;
    gap: 12px;
}

.contact-section-heading h2,
.contact-form-copy h2 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: 0;
}

.contact-section-heading h2 {
    font-size: clamp(1.85rem, 3vw, 2.65rem);
}

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

.contact-small-card {
    display: grid;
    gap: 10px;
    min-height: 154px;
    padding: 22px;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(251, 250, 247, 0.66);
    box-shadow: 0 10px 24px rgba(24, 32, 29, 0.05);
}

.contact-small-card::before {
    content: "";
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(143, 197, 187, 0.86) 0%, rgba(215, 208, 166, 0.92) 100%);
}

.contact-small-card h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.18;
}

.contact-small-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.contact-form-section {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
    padding: 26px 0 8px;
    border-top: 1px solid var(--line);
}

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

.contact-form-copy h2 {
    max-width: 12ch;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.contact-expectation {
    margin: 2px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(87, 139, 130, 0.14);
    border-radius: 18px;
    background: rgba(251, 250, 247, 0.5);
    color: var(--muted);
    line-height: 1.66;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(251, 250, 247, 0.68);
    box-shadow: 0 12px 30px rgba(24, 32, 29, 0.06);
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(87, 139, 130, 0.44);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 4px rgba(143, 197, 187, 0.14);
}

.contact-submit {
    justify-self: start;
    min-width: 176px;
}

@media (max-width: 1100px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        min-height: 72px;
        gap: 16px;
        padding: 10px 0;
    }

    .brand {
        position: relative;
        z-index: 1;
    }

    .brand img {
        width: min(172px, 40vw);
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        width: 44px;
        height: 44px;
        border-color: rgba(87, 139, 130, 0.14);
        background: rgba(250, 248, 241, 0.88);
        box-shadow: 0 10px 24px rgba(24, 32, 29, 0.06);
    }

    .nav-toggle:hover,
    .nav-toggle:focus-visible {
        background: rgba(250, 248, 241, 0.98);
        border-color: rgba(87, 139, 130, 0.22);
        transform: translateY(-1px);
        outline: none;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        justify-items: stretch;
        gap: 2px;
        padding: 8px;
        border: 1px solid rgba(87, 139, 130, 0.14);
        border-radius: 22px;
        background: rgba(250, 248, 241, 0.96);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        padding: 13px 18px;
        border: 1px solid transparent;
        border-radius: 14px;
        background: transparent;
        box-shadow: none;
        color: var(--text);
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible,
    .main-nav a.active {
        background: rgba(143, 197, 187, 0.12);
        border-color: rgba(87, 139, 130, 0.16);
        color: var(--text);
        transform: none;
        outline: none;
    }

    .main-nav a:focus-visible {
        box-shadow: inset 0 0 0 1px rgba(87, 139, 130, 0.12), 0 0 0 3px rgba(143, 197, 187, 0.16);
    }

    .main-nav .admin-link {
        display: none;
    }

    .site-header.menu-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header.menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.home-category-grid {
    display: none;
}

.admin-hero-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.admin-hero-actions,
.admin-dashboard-grid,
.admin-shortcut-grid,
.admin-dashboard-layout,
.admin-list-layout,
.admin-review-grid,
.admin-chip-row,
.admin-indicator-list,
.admin-library-actions,
.admin-toolbar-actions,
.admin-inline-form-row {
    display: grid;
    gap: 14px;
}

.admin-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.admin-dashboard-layout,
.admin-list-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    margin-bottom: 28px;
}

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

.admin-metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.admin-metric-label {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

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

.admin-shortcut-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.42);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-shortcut-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(24, 32, 29, 0.08);
}

.admin-shortcut-card strong,
.admin-library-title-row h3,
.admin-empty-state h3,
.admin-metric-card strong {
    color: var(--text);
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-toolbar-search {
    grid-column: span 2;
}

.admin-toolbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: end;
}

.admin-library-card,
.admin-review-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
}

.admin-library-head,
.admin-library-title-row,
.admin-indicator-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-library-title-row {
    align-items: center;
}

.admin-library-title-row h3 {
    margin: 0;
    font-size: 1.45rem;
}

.admin-library-meta {
    margin-top: 8px;
    flex-wrap: wrap;
}

.admin-library-actions,
.admin-inline-form-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
    justify-content: start;
}

.admin-library-excerpt,
.admin-note-box p,
.admin-empty-state p {
    margin: 0;
}

.admin-category-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.admin-category-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 12px 28px rgba(24, 32, 29, 0.07);
}

.admin-category-card.is-empty {
    border-color: rgba(185, 84, 69, 0.18);
}

.admin-category-card h2 {
    margin: 0;
    font-size: 1.58rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.admin-category-card-top {
    display: grid;
    gap: 9px;
}

.admin-category-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-category-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

.admin-category-subsection {
    display: grid;
    gap: 11px;
    border-top: 1px solid rgba(84, 100, 94, 0.12);
    padding-top: 18px;
    align-content: start;
}

.admin-category-subsection-head {
    display: block;
}

.admin-category-subsection-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.2;
}

.admin-category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(84, 100, 94, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1.2;
}

.admin-category-chip[hidden] {
    display: none;
}

.admin-category-toggle {
    appearance: none;
    width: max-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.admin-category-toggle:hover,
.admin-category-toggle:focus-visible {
    color: var(--text);
}

.admin-category-toggle:focus-visible {
    outline: 2px solid rgba(84, 100, 94, 0.24);
    outline-offset: 4px;
}

.admin-category-empty-state {
    padding: 18px 20px;
}

.admin-category-empty-state h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.admin-category-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 16px;
    border-top: 1px solid rgba(84, 100, 94, 0.12);
}

.admin-category-action {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.admin-chip-row,
.admin-indicator-list {
    grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
}

.admin-status-badge,
.admin-indicator-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-status-kladde {
    background: rgba(215, 208, 166, 0.34);
}

.admin-status-klar_til_gennemgang {
    background: rgba(143, 197, 187, 0.28);
}

.admin-status-publiceret {
    background: rgba(112, 175, 145, 0.24);
}

.admin-status-arkiveret {
    background: rgba(196, 183, 168, 0.34);
}

.admin-indicator-pill.is-ok {
    background: rgba(112, 175, 145, 0.18);
    border-color: rgba(112, 175, 145, 0.22);
    color: #35604d;
}

.admin-indicator-pill.is-missing {
    background: rgba(185, 84, 69, 0.12);
    border-color: rgba(185, 84, 69, 0.2);
    color: #8f3d31;
}

.admin-note-box {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.34);
}

.admin-note-box strong {
    color: var(--text);
}

.admin-empty-state {
    padding: 24px;
    border-radius: 16px;
    border: 1px dashed rgba(87, 139, 130, 0.28);
    background: rgba(255, 255, 255, 0.36);
}

.admin-category-card,
.admin-indicator-card,
.admin-metric-card {
    min-height: 100%;
}

.admin-article-list-large {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    align-items: start;
    gap: 20px;
}

.admin-article-card {
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 12px 26px rgba(24, 32, 29, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-article-card[hidden] {
    display: none !important;
}

.admin-article-list-large .admin-empty-state {
    grid-column: 1 / -1;
}

.admin-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(24, 32, 29, 0.1);
}

.admin-article-card-media {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(17, 22, 21, 0.08) 0%, rgba(17, 22, 21, 0.38) 100%),
        linear-gradient(135deg, rgba(143, 197, 187, 0.82) 0%, rgba(215, 208, 166, 0.88) 46%, rgba(85, 112, 104, 0.94) 100%);
}

.admin-article-card:nth-child(2n) .admin-article-card-media {
    background:
        linear-gradient(180deg, rgba(17, 22, 21, 0.08) 0%, rgba(17, 22, 21, 0.38) 100%),
        linear-gradient(135deg, rgba(215, 208, 166, 0.88) 0%, rgba(143, 197, 187, 0.82) 46%, rgba(85, 112, 104, 0.94) 100%);
}

.admin-article-card:nth-child(3n) .admin-article-card-media {
    background:
        linear-gradient(180deg, rgba(17, 22, 21, 0.08) 0%, rgba(17, 22, 21, 0.38) 100%),
        linear-gradient(135deg, rgba(108, 155, 145, 0.92) 0%, rgba(215, 208, 166, 0.86) 52%, rgba(35, 41, 40, 0.94) 100%);
}

.admin-article-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-article-card-media.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 22, 21, 0.02), rgba(17, 22, 21, 0.36));
}

.admin-article-card-media .story-card-tag,
.admin-article-card-media .admin-status-badge {
    z-index: 1;
}

.admin-article-card-media .admin-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-height: auto;
    padding: 8px 11px;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(251, 250, 247, 0.92);
    font-size: 0.78rem;
}

.admin-article-card-body {
    display: grid;
    gap: 16px;
    padding: 20px 20px 22px;
}

.admin-article-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-article-title-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-article-title-group h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.admin-article-card .admin-library-meta {
    margin: 0;
}

.admin-article-card .admin-library-excerpt {
    color: var(--muted);
    line-height: 1.65;
}

.admin-article-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding-top: 2px;
}

.admin-article-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(84, 100, 94, 0.14);
}

.admin-article-detail span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-article-detail strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.35;
}

.admin-article-chip-row {
    grid-template-columns: repeat(auto-fit, minmax(124px, max-content));
    gap: 8px;
}

.admin-article-chip-row .admin-indicator-pill {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 0.78rem;
}

.admin-article-primary-actions {
    grid-template-columns: repeat(2, max-content);
    gap: 8px;
    flex: 0 0 auto;
}

.admin-article-primary-actions .button-primary,
.admin-article-primary-actions .button-secondary {
    min-height: 42px;
    padding: 9px 14px;
}

.admin-article-secondary-actions {
    grid-template-columns: repeat(auto-fit, minmax(92px, max-content));
    align-items: center;
    gap: 8px;
    padding-top: 2px;
}

.admin-article-secondary-actions form {
    margin: 0;
}

.admin-article-secondary-actions .admin-small-action {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.36);
    border-color: rgba(84, 100, 94, 0.14);
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 250, 247, 0.78);
    box-shadow: 0 10px 24px rgba(24, 32, 29, 0.06);
}

.admin-pagination-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-pagination-actions,
.admin-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-pagination-actions {
    justify-content: flex-end;
}

.admin-pagination .admin-small-action {
    min-width: 42px;
}

.admin-pagination-page.is-active {
    background: rgba(87, 139, 130, 0.16);
    border-color: rgba(87, 139, 130, 0.28);
    color: var(--text);
}

.admin-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

@media (max-width: 1100px) {
    .admin-dashboard-grid,
    .admin-dashboard-layout,
    .admin-shortcut-grid,
    .admin-toolbar {
        grid-template-columns: 1fr 1fr;
    }

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

    .admin-hero-row {
        flex-direction: column;
    }

    .admin-toolbar-search {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .admin-dashboard-grid,
    .admin-dashboard-layout,
    .admin-shortcut-grid,
    .admin-toolbar,
    .admin-category-overview-grid,
    .admin-toolbar-actions,
    .admin-library-actions,
    .admin-inline-form-row,
    .admin-chip-row,
    .admin-article-detail-grid,
    .admin-indicator-list {
        grid-template-columns: 1fr;
    }

    .admin-section-head,
    .admin-library-head,
    .admin-library-title-row,
    .admin-article-card-top,
    .admin-indicator-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-article-card-media {
        min-height: 156px;
    }

    .admin-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-pagination-actions {
        justify-content: flex-start;
    }

    .admin-pagination .button-secondary {
        width: auto;
    }
}

.not-found-card {
    display: grid;
    gap: 18px;
}

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

.static-info-section {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.36);
}

.static-info-section h2 {
    margin: 0 0 10px;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30;
}

.cookie-banner-card {
    width: min(960px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(251, 250, 247, 0.96);
    box-shadow: 0 18px 38px rgba(24, 32, 29, 0.16);
}

.cookie-banner-card strong {
    color: var(--text);
    font-size: 1rem;
}

.cookie-banner-card p,
.cookie-banner-settings p {
    margin: 0;
    color: var(--muted);
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-banner-settings {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

@media (max-width: 760px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.faq-page-card {
    display: grid;
    gap: 16px;
}

.faq-page-card h1 {
    max-width: none;
}

.faq-page-accordion {
    margin-top: 6px;
}

.faq-page-accordion .faq-item summary {
    font-size: 1.02rem;
}

.faq-page-accordion .faq-answer {
    gap: 10px;
}

.faq-page-accordion .faq-answer .faq-inline-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-page-accordion .bullet-list {
    margin: 0;
}

.home-section-heading {
    margin-bottom: 16px;
}

.home-section-heading > div {
    display: grid;
    gap: 10px;
}

.home-section-heading p,
.home-section-intro {
    max-width: 56ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.home-category-grid {
    gap: 18px;
}

.home-category-card {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 100%;
    padding: 26px;
    background: rgba(251, 250, 247, 0.92);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(24, 32, 29, 0.1);
    border-color: rgba(87, 139, 130, 0.24);
}

.home-category-card::before {
    margin-bottom: 8px;
}

.home-category-card h3 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.home-category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.home-category-card .text-link {
    margin-top: auto;
}

.home-article-section .story-grid {
    gap: 18px;
}

.home-article-section + .home-article-section {
    padding-top: 8px;
}

.home-article-section .story-card {
    background: rgba(251, 250, 247, 0.94);
    box-shadow: 0 14px 30px rgba(24, 32, 29, 0.08);
}

.home-article-section .story-card-link {
    grid-template-rows: 184px 1fr;
}

.home-article-section .story-card-body {
    padding: 20px 20px 24px;
}

.home-article-section .story-card-cta {
    display: inline-flex;
    margin-top: 10px;
}

.story-grid,
.compact-grid {
    gap: 20px;
}

.story-card {
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 12px 26px rgba(24, 32, 29, 0.08);
}

.story-card-link {
    grid-template-rows: 178px 1fr;
}

.story-card-media {
    min-height: 178px;
}

.story-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(251, 250, 247, 0.92);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

.story-card-tag {
    top: auto;
    bottom: 14px;
}

.story-card h3,
.sidebar-card h3,
.article-sidepanel h3 {
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.section-heading h2,
.pillar-card h2,
.featured-copy h2,
.social-strip h2,
.content-card h2,
.cta-card h2,
.static-page h1,
.admin-form-card h2 {
    font-size: 2rem;
    letter-spacing: 0;
}

.category-hero {
    padding: 34px 0 20px;
    background: linear-gradient(135deg, rgba(143, 197, 187, 0.18), rgba(215, 208, 166, 0.18));
}

.category-hero-layout {
    align-items: center;
}

.site-footer {
    width: 100%;
    margin: 40px 0 0;
    padding: 0;
    background: var(--surface-deep);
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-footer img {
    max-width: 220px;
}

body {
    min-height: 100vh;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        min-height: 72px;
    }

    .home-hero {
        padding-bottom: 22px;
        background-position: 72% center;
    }

    .home-hero-shell {
        min-height: clamp(390px, 64vw, 500px);
        padding: 28px 0;
    }

    .home-portal {
        width: min(var(--container), calc(100% - 24px));
        padding: 0;
    }

    .home-hero-inner {
        min-height: 0;
    }

    .home-portal .hero-copy {
        max-width: min(430px, 100%);
        --hero-controls-width: min(100%, 390px);
        padding: 24px 22px;
    }

    .home-portal .hero-copy h1 {
        max-width: 12ch;
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .home-portal .hero-intro {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .about-hero {
        padding-bottom: 22px;
    }

    .about-hero-media img {
        object-position: 66% center;
    }

    .about-hero-shell {
        min-height: clamp(390px, 64vw, 500px);
        padding: 28px 0;
    }

    .about-hero-card {
        width: min(430px, 100%);
        padding: 24px 22px;
    }

    .about-hero-card h1 {
        max-width: 12ch;
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .about-hero-card .hero-intro {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .about-info-block {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 26px 0;
    }

    .about-copy {
        grid-column: auto;
        padding-top: 0;
    }

    .about-card-grid {
        grid-template-columns: 1fr;
    }

    .about-small-card {
        min-height: auto;
    }

    .about-bottom-cta {
        padding-top: 24px;
    }

    .about-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .contact-hero {
        padding-bottom: 22px;
    }

    .contact-hero-media img {
        object-position: 66% center;
    }

    .contact-hero-shell {
        min-height: clamp(390px, 64vw, 500px);
        padding: 28px 0;
    }

    .contact-hero-card {
        width: min(430px, 100%);
        padding: 24px 22px;
    }

    .contact-hero-card h1 {
        font-size: clamp(2.05rem, 5vw, 2.85rem);
    }

    .contact-card-grid,
    .contact-form-section,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-small-card {
        min-height: auto;
    }

    .contact-submit {
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-bottom: 18px;
        background-position: 76% center;
    }

    .home-hero-shell {
        align-items: flex-end;
        min-height: clamp(350px, 96vw, 420px);
        padding: 18px 0;
    }

    .home-portal {
        width: min(var(--container), calc(100% - 20px));
        padding: 0;
    }

    .home-portal .hero-copy {
        width: min(348px, 100%);
        max-width: min(348px, 100%);
        --hero-controls-width: 100%;
        padding: 20px 18px;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(251, 248, 241, 0.76) 0%, rgba(251, 248, 241, 0.66) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .home-portal .hero-copy h1 {
        max-width: 12ch;
        margin: 12px 0 10px;
        font-size: 1.95rem;
        line-height: 0.98;
    }

    .home-portal .hero-intro {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .home-portal .hero-kicker {
        padding: 7px 12px;
        font-size: 11px;
    }

    .about-hero {
        padding-bottom: 18px;
    }

    .about-hero::before {
        background:
            linear-gradient(180deg, rgba(25, 33, 31, 0.08) 0%, rgba(25, 33, 31, 0.38) 100%),
            linear-gradient(90deg, rgba(25, 33, 31, 0.16), rgba(25, 33, 31, 0.06));
    }

    .about-hero-media img {
        object-position: 69% center;
    }

    .about-hero-shell {
        align-items: flex-end;
        min-height: clamp(350px, 96vw, 420px);
        padding: 18px 0;
    }

    .about-hero-card {
        width: min(348px, 100%);
        padding: 19px 17px;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(251, 248, 241, 0.76) 0%, rgba(251, 248, 241, 0.66) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .about-hero-card h1 {
        max-width: 11ch;
        margin: 12px 0 10px;
        font-size: 1.88rem;
        line-height: 1.02;
    }

    .about-hero-card .hero-intro {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .about-hero-card .hero-kicker {
        padding: 7px 12px;
        font-size: 11px;
    }

    .about-page {
        gap: 14px;
        padding-top: 10px;
    }

    .about-info-block {
        gap: 14px;
        padding: 20px 0;
    }

    .about-section-heading h2 {
        max-width: none;
        font-size: 1.9rem;
    }

    .about-small-card {
        padding: 19px 17px;
        border-radius: 18px;
    }

    .about-bottom-cta {
        gap: 16px;
        padding: 22px 0 8px;
    }

    .about-bottom-cta h2 {
        font-size: 2rem;
    }

    .about-cta-actions .button-primary,
    .about-cta-actions .button-secondary {
        min-height: 56px;
    }

    .contact-hero {
        padding-bottom: 18px;
    }

    .contact-hero::before {
        background:
            linear-gradient(180deg, rgba(25, 33, 31, 0.08) 0%, rgba(25, 33, 31, 0.36) 100%),
            linear-gradient(90deg, rgba(25, 33, 31, 0.14), rgba(25, 33, 31, 0.05));
    }

    .contact-hero-media img {
        object-position: 70% center;
    }

    .contact-hero-shell {
        align-items: flex-end;
        min-height: clamp(350px, 96vw, 420px);
        padding: 18px 0;
    }

    .contact-hero-card {
        width: min(348px, 100%);
        padding: 19px 17px;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(251, 248, 241, 0.78) 0%, rgba(251, 248, 241, 0.68) 100%);
    }

    .contact-hero-card h1 {
        margin: 12px 0 10px;
        font-size: 1.86rem;
        line-height: 1.03;
    }

    .contact-hero-card .hero-intro,
    .contact-expectation {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .contact-hero-card .hero-kicker {
        padding: 7px 12px;
        font-size: 11px;
    }

    .contact-page {
        gap: 14px;
        padding-top: 10px;
    }

    .contact-options-section,
    .contact-form-section {
        gap: 14px;
        padding: 20px 0;
    }

    .contact-section-heading h2,
    .contact-form-copy h2 {
        max-width: none;
        font-size: 1.9rem;
    }

    .contact-small-card,
    .contact-form {
        padding: 19px 17px;
        border-radius: 18px;
    }

    .contact-form {
        gap: 14px;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 16px;
    }

    .home-hero-actions .button-primary,
    .home-hero-actions .button-secondary {
        min-height: 46px;
        padding: 10px 16px;
        white-space: nowrap;
    }

    .home-section-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero-points {
        margin-top: 14px;
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-hero-points span {
        min-height: 32px;
        padding: 6px 11px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .home-categories-section {
        padding-top: 10px;
        padding-bottom: 0;
    }

    .story-card-link,
    .home-article-section .story-card-link {
        grid-template-rows: 164px 1fr;
    }

    .footer-inner {
        width: min(var(--container), calc(100% - 24px));
    }
}

/* CMS and article publishing */
.admin-form-section {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.38);
}

.admin-form-section h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.admin-form-grid-compact {
    gap: 12px;
}

.admin-advanced {
    display: grid;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(196, 183, 168, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.26);
}

.admin-advanced summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    cursor: pointer;
    color: var(--muted);
    font-weight: 800;
    list-style: none;
}

.admin-advanced summary::-webkit-details-marker {
    display: none;
}

.admin-advanced summary::before {
    content: ">";
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1;
    transform: translateY(-1px);
}

.admin-advanced[open] summary::before {
    content: "v";
}

.admin-advanced[open] summary {
    margin-bottom: 12px;
    color: var(--text);
}

.admin-advanced-intro {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid rgba(87, 139, 130, 0.35);
    color: var(--teal-deep);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: help;
    background: rgba(255, 255, 255, 0.7);
}

.admin-help-tip-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 40px));
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(24, 32, 29, 0.14);
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
    z-index: 5;
}

.admin-help-tip:hover .admin-help-tip-text,
.admin-help-tip:focus-visible .admin-help-tip-text {
    opacity: 1;
}

.admin-seo-advanced-grid {
    align-items: start;
}

.admin-advanced-seo .admin-toggle {
    min-height: 58px;
    padding: 12px 14px;
}

.admin-og-grid {
    align-items: start;
}

.admin-og-grid .admin-field {
    align-content: start;
}

.admin-og-grid .admin-field input[type="file"] {
    min-height: 46px;
    padding: 9px 10px;
}

.admin-intro-grid {
    align-items: start;
}

.admin-intro-grid .admin-field {
    align-content: start;
    align-self: start;
}

.admin-intro-grid .admin-field input[type="text"] {
    min-height: 46px;
}

.admin-intro-grid .admin-field input[type="file"] {
    min-height: 46px;
    padding: 9px 10px;
}

.admin-small-action {
    min-height: auto;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    box-shadow: none;
}

.content-section-toolbar .button-danger.admin-small-action {
    background: rgba(185, 84, 69, 0.1);
    border-color: rgba(185, 84, 69, 0.22);
    color: #8f3d31;
}

.admin-field select,
.admin-field input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.54);
    color: var(--text);
}

.admin-field input[type="file"] {
    margin-top: 8px;
    padding: 10px;
}

.admin-field small {
    color: var(--muted);
    line-height: 1.45;
}

.admin-field-hidden {
    display: none;
}

.repeat-list,
.content-section-list {
    display: grid;
    gap: 12px;
}

.repeat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.content-section-editor {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(251, 250, 247, 0.72);
}

.content-section-toolbar,
.admin-save-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.content-section-toolbar > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.content-section-editor .admin-form-grid {
    align-items: start;
}

.content-section-editor .admin-field {
    align-content: start;
    align-self: start;
}

.content-section-editor .admin-field input[type="text"],
.content-section-editor .admin-field input[type="url"] {
    min-height: 46px;
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.4);
    color: var(--text);
    font-weight: 700;
}

.admin-count-warning {
    color: var(--danger);
    font-weight: 800;
}

.admin-preview-card .story-card {
    box-shadow: none;
}

.admin-layout.admin-layout-editor {
    align-items: start;
}

.admin-layout.admin-layout-editor .admin-sidebar {
    align-content: start;
}

.admin-layout.admin-layout-editor .sidebar-card,
.admin-layout.admin-layout-editor .admin-indicator-card {
    min-height: 0;
    height: auto;
}

.admin-layout.admin-layout-editor .admin-preview-card .story-card,
.admin-layout.admin-layout-editor .admin-preview-card .story-card-link {
    height: auto;
}

.story-card-media.has-image {
    background: var(--surface-deep);
}

.story-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-media.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 22, 21, 0.05), rgba(17, 22, 21, 0.42));
}

.story-card-media.has-image .story-card-tag,
.story-card-media.has-image .story-card-badge {
    z-index: 1;
}

.article-image-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.article-image-panel::before {
    display: none;
}

.article-hero-image,
.article-inline-image {
    margin: 0;
}

.article-hero-image img,
.article-inline-image img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.article-hero-image img {
    max-height: 390px;
}

.article-inline-image img {
    max-height: 420px;
}

.article-hero-image figcaption,
.article-inline-image figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.article-hero-image figcaption span,
.article-inline-image figcaption span {
    display: block;
    font-size: 0.84rem;
}

.article-section-card {
    display: grid;
    gap: 18px;
}

.article-section-content {
    display: grid;
    gap: 18px;
}

.article-section-card.image-side .article-section-content {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
    align-items: start;
}

.section-cta {
    margin-top: 10px;
}

.article-top {
    padding: 34px 0 20px;
    background: linear-gradient(135deg, rgba(143, 197, 187, 0.18), rgba(215, 208, 166, 0.18));
}

.article-top-inner {
    display: grid;
    gap: 20px;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-breadcrumbs a {
    color: var(--teal-deep);
    font-weight: 700;
}

.article-title-wrap {
    max-width: 920px;
}

.article-title-wrap h1 {
    margin: 14px 0;
    max-width: 900px;
    font-size: clamp(2.25rem, 4.3vw, 4.05rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.article-title-wrap .hero-intro {
    max-width: 760px;
    font-size: 1.12rem;
}

.article-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 24px;
    align-items: stretch;
    padding: 28px 0;
}

.article-hero-split:not(:has(.article-booking-card)) {
    grid-template-columns: 1fr;
}

.article-hero-media,
.article-booking-card,
.article-faq-section,
.experience-cta {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-md);
}

.article-hero-media {
    overflow: hidden;
    height: 500px;
    min-height: 0;
}

.article-hero-image,
.article-hero-image img {
    height: 100%;
}

.article-hero-image img {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-height: none;
    border-radius: 0;
    object-fit: cover;
}

.article-hero-fallback {
    display: grid;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(25, 33, 31, 0.1), rgba(25, 33, 31, 0.62)),
        linear-gradient(135deg, var(--teal), var(--gold));
}

.article-hero-fallback img {
    max-width: 280px;
}

.article-booking-card {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
    min-height: 500px;
    padding: 24px;
    align-content: space-between;
    background:
        linear-gradient(145deg, rgba(251, 250, 247, 0.98), rgba(236, 232, 223, 0.9)),
        radial-gradient(circle at top right, rgba(143, 197, 187, 0.28), transparent 42%);
    border-color: rgba(87, 139, 130, 0.22);
}

.article-heading-stack {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.article-heading-stack .hero-kicker,
.booking-card-head .hero-kicker {
    margin: 0;
}

.article-heading-stack h2,
.booking-card-head h2,
.article-fact-heading h2 {
    margin: 0;
}

.booking-card-head h2,
.article-fact-heading h2 {
    font-size: 1.45rem;
    line-height: 1.15;
}

.booking-card-head p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.booking-actions {
    display: grid;
    gap: 12px;
}

.booking-action {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(87, 139, 130, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.booking-action:hover {
    transform: translateY(-2px);
    border-color: rgba(87, 139, 130, 0.42);
    box-shadow: 0 16px 30px rgba(87, 139, 130, 0.16);
}

.booking-action-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--teal-deep), #426f68);
}

.booking-action-secondary {
    background: rgba(255, 255, 255, 0.68);
    color: var(--text);
}

.booking-action-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 1.25rem;
    font-weight: 900;
}

.booking-action-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.booking-action strong,
.booking-action small {
    display: block;
}

.booking-action strong {
    font-size: 1.02rem;
}

.booking-action small {
    margin-top: 3px;
    color: inherit;
    opacity: 0.82;
    font-weight: 700;
}

.booking-mini-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.booking-mini-facts span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.booking-mini-facts strong {
    color: var(--text);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.article-fact-overview {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 0 0 18px;
}

.article-fact-overview dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.article-fact-overview dl div {
    display: grid;
    gap: 5px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 22px rgba(24, 32, 29, 0.05);
}

.article-fact-overview dt {
    color: var(--teal-deep);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.article-fact-overview dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
}

.article-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
}

.article-highlights span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
}

.article-highlights b {
    color: var(--teal-deep);
}

.article-body-layout {
    display: grid;
    justify-items: center;
    padding: 18px 0 0;
}

.article-main-column {
    display: grid;
    width: min(100%, 900px);
    gap: 22px;
}

.article-lead-card,
.article-section-card,
.article-tips-section,
.article-faq-section,
.experience-cta {
    padding: 28px;
}

.article-lead-card {
    border-left: 4px solid var(--teal-deep);
    background: transparent;
    box-shadow: none;
    font-size: 1.08rem;
    padding-top: 8px;
    padding-bottom: 6px;
}

.article-section-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 10px 0;
}

.article-section-card.has-section-image {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-md);
}

.article-section-card h2,
.article-tips-section h2 {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.article-section-card p,
.article-lead-card p,
.article-tips-section li,
.faq-answer p,
.experience-cta p {
    color: var(--muted);
    line-height: 1.78;
}

.article-section-card.image-side .article-section-content {
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
}

.article-inline-image img,
.faq-image img,
.experience-cta img {
    border-radius: 8px;
}

.article-inline-image,
.faq-image,
.experience-cta-image,
.article-hero-image {
    position: relative;
    overflow: hidden;
}

.image-caption-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    gap: 2px;
    width: fit-content;
    max-width: calc(100% - 24px);
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    line-height: 1.35;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
    backdrop-filter: none;
}

.image-caption-overlay small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
}

.article-tips-section {
    border: 1px solid rgba(87, 139, 130, 0.2);
    border-radius: 8px;
    background: rgba(143, 197, 187, 0.1);
}

.article-tips-section .bullet-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.article-tips-section .bullet-list li {
    position: relative;
    padding-left: 26px;
}

.article-tips-section .bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal-deep);
    font-weight: 900;
}

.faq-accordion {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 800;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--teal-deep);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    display: grid;
    gap: 18px;
    padding: 0 20px 20px;
}

.faq-answer.has-faq-image {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr);
    align-items: start;
}

.experience-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(87, 139, 130, 0.14), rgba(215, 208, 166, 0.3)),
        var(--surface-strong);
    border-color: rgba(87, 139, 130, 0.24);
    overflow: hidden;
    margin-top: 8px;
}

.experience-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.experience-cta p {
    margin-top: 14px;
}

.experience-cta .button-primary {
    margin-top: 10px;
    min-height: 60px;
    padding-inline: 26px;
    box-shadow: 0 18px 34px rgba(87, 139, 130, 0.24);
}

.experience-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 8px;
}

.experience-points span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.experience-cta-image {
    margin: 0;
}

.experience-cta img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.article-related-section {
    padding: 48px 0 24px;
}

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

.article-endcap {
    display: grid;
    justify-items: center;
    padding: 0 0 52px;
}

.article-endcap-button {
    min-height: 54px;
    padding: 12px 26px;
    border-radius: 999px;
    border-color: rgba(87, 139, 130, 0.18);
    background: rgba(255, 255, 255, 0.7);
    color: var(--teal-deep);
    box-shadow: 0 14px 32px rgba(24, 32, 29, 0.08);
}

.article-endcap-button:hover {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(87, 139, 130, 0.28);
}

@media (max-width: 760px) {
    .repeat-row,
    .article-section-card.image-side .article-section-content,
    .article-hero-split,
    .faq-answer.has-faq-image,
    .experience-cta,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-booking-card {
        position: static;
        min-height: auto;
        gap: 16px;
        padding: 18px;
    }

    .article-hero-media {
        height: 340px;
        min-height: 0;
    }

    .article-hero-image img {
        height: 100%;
        min-height: 0;
    }

    .booking-mini-facts {
        grid-template-columns: 1fr;
    }

    .article-fact-overview,
    .article-fact-overview dl {
        grid-template-columns: 1fr;
    }

    .article-fact-overview {
        gap: 14px;
        padding-bottom: 8px;
    }

    .article-fact-overview dl {
        gap: 8px;
    }

    .article-fact-overview dl div {
        min-height: auto;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.44);
        box-shadow: none;
    }

    .article-lead-card,
    .article-section-card,
    .article-tips-section,
    .article-faq-section,
    .experience-cta {
        padding: 22px;
    }

    .article-heading-stack {
        gap: 12px;
    }

    .article-page .article-heading-stack .hero-kicker {
        padding: 7px 12px;
        font-size: 11px;
    }

    .booking-card-head p,
    .experience-cta p {
        margin-top: 12px;
    }

    .booking-action {
        min-height: 66px;
        padding: 12px 14px;
    }

    .booking-action strong {
        font-size: 0.98rem;
    }

    .article-highlights {
        display: grid;
        gap: 8px;
        padding-bottom: 12px;
    }

    .article-highlights span {
        width: 100%;
        align-items: flex-start;
        padding: 10px 12px;
        font-size: 0.94rem;
        border-radius: 14px;
    }

    .article-highlights b {
        margin-top: 1px;
    }

    .article-lead-card {
        padding: 2px 0 2px 16px;
        border-left-width: 3px;
        font-size: 1rem;
    }

    .article-section-card h2,
    .article-tips-section h2,
    .booking-card-head h2,
    .article-fact-heading h2,
    .experience-cta h2,
    .article-related-section h2 {
        line-height: 1.16;
    }

    .article-related-section {
        padding: 36px 0 18px;
    }

    .article-endcap {
        padding-bottom: 40px;
    }

    .article-endcap-button {
        width: min(100%, 320px);
        justify-content: center;
        text-align: center;
    }

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

@media (min-width: 761px) and (max-width: 1100px) {
    .article-hero-split,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-booking-card {
        position: static;
        min-height: auto;
    }

    .article-hero-media {
        height: 430px;
        min-height: 0;
    }

    .article-hero-image img {
        height: 100%;
        min-height: 0;
    }

    .article-fact-overview {
        grid-template-columns: 1fr;
    }

    .article-fact-overview dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Category page refresh */
.category-page {
    padding-bottom: 18px;
}

.category-overview {
    padding: 10px 0 4px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(circle at top right, rgba(215, 208, 166, 0.2), transparent 36%);
}

.category-overview-panel {
    position: relative;
    overflow: hidden;
    gap: 10px;
    padding: 18px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(215, 208, 166, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 248, 243, 0.82) 100%);
}

.category-overview-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 22px);
    opacity: 0.26;
}

.category-overview-panel > * {
    position: relative;
    z-index: 1;
}

.category-overview-inner {
    display: grid;
    gap: 9px;
}

.category-breadcrumbs {
    margin: 0;
    gap: 6px;
    font-size: 0.8rem;
    line-height: 1.25;
}

.category-label-chip {
    padding: 6px 11px;
    background: rgba(143, 197, 187, 0.16);
    border-color: rgba(87, 139, 130, 0.2);
    font-size: 11px;
    line-height: 1;
}

.category-overview-copy {
    max-width: 82ch;
}

.category-overview-copy h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(2.05rem, 3.15vw, 3.05rem);
    line-height: 1;
}

.category-overview-copy .hero-intro {
    margin: 5px 0 0;
    max-width: 78ch;
    font-size: 0.98rem;
    line-height: 1.48;
}

.category-filter-group {
    display: grid;
    gap: 6px;
}

.category-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-filter-chip,
.category-filter-toggle,
.category-page-link {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.category-filter-chip:hover,
.category-filter-toggle:hover,
.category-page-link:hover {
    transform: translateY(-1px);
    border-color: rgba(87, 139, 130, 0.32);
    color: var(--text);
    box-shadow: var(--shadow-md);
}

.category-filter-chip.active,
.category-page-link.active {
    background: linear-gradient(135deg, rgba(143, 197, 187, 0.24), rgba(215, 208, 166, 0.26));
    color: var(--text);
    border-color: rgba(87, 139, 130, 0.3);
    box-shadow: 0 10px 24px rgba(24, 32, 29, 0.08);
}

.category-filter-toggle {
    width: fit-content;
    cursor: pointer;
    background: rgba(215, 208, 166, 0.2);
}

.category-filter-group[data-expanded="false"] .category-filter-chip.is-collapsible {
    display: none;
}

.category-results {
    padding-top: 10px;
}

.category-results.is-loading {
    opacity: 0.62;
    transition: opacity 0.18s ease;
}

.category-results-heading {
    margin-bottom: 20px;
}

.category-results-heading p {
    margin: 8px 0 0;
    max-width: 60ch;
}

.category-story-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-results .story-card {
    height: 100%;
    border-radius: 12px;
}

.category-results .story-card-link {
    grid-template-rows: 188px 1fr;
}

.category-results .story-card-media {
    min-height: 188px;
}

.category-results .story-card-body {
    display: grid;
    gap: 12px;
    align-content: start;
    height: 100%;
    padding: 18px 18px 20px;
}

.category-results .story-meta {
    margin-bottom: 0;
}

.category-results .story-card h3 {
    font-size: 1.28rem;
}

.category-results .story-card p {
    margin: 0;
}

.category-results .story-card-cta {
    margin-top: auto;
}

.category-empty-state {
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px dashed rgba(87, 139, 130, 0.28);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.46);
}

.category-empty-state h3 {
    margin: 0 0 8px;
    font-size: 1.26rem;
}

.category-empty-state p {
    margin: 0;
    color: var(--muted);
}

.category-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.category-page-link {
    min-width: 44px;
    font-weight: 700;
}

.category-page-step {
    padding-inline: 16px;
}

@media (min-width: 761px) and (max-width: 1100px) {
    .category-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .category-overview {
        padding: 8px 0 2px;
    }

    .category-overview-panel {
        padding: 16px 15px;
        border-radius: 22px;
    }

    .category-overview-inner {
        gap: 9px;
    }

    .category-overview-copy h1 {
        font-size: clamp(2rem, 12vw, 2.35rem);
        line-height: 1.02;
    }

    .category-overview-copy .hero-intro {
        margin-top: 4px;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .category-filter-row {
        gap: 6px;
    }

    .category-filter-group[data-expanded="false"] .category-filter-row,
    .category-filter-group[data-expanded="true"] .category-filter-row {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
        scrollbar-width: auto;
    }

    .category-filter-chip,
    .category-filter-toggle,
    .category-page-link {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 8px 11px;
        font-size: 0.86rem;
    }

    .category-filter-toggle {
        margin-top: 0;
    }

    .category-results {
        padding-top: 8px;
    }

    .category-story-grid {
        grid-template-columns: 1fr;
    }

    .category-results .story-card-link {
        grid-template-rows: 184px 1fr;
    }

    .category-empty-state {
        padding: 20px 18px;
    }

    .category-page-step {
        padding-inline: 14px;
    }
}
