﻿/* Base styles for the MVC migration shell; replace with Oxygen CSS during page conversion. */
body {
    font-family: Montserrat, Arial, sans-serif;
    margin: 0;
    color: #1d1d1f;
}

.site-header {
    display: flex;
    min-height: 76px;
    box-sizing: border-box;
    gap: 36px;
    align-items: center;
    padding: 14px max(24px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid #ece7e4;
    background: #fff;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand img {
    display: block;
    width: 214px;
    max-width: 100%;
    height: auto;
}

nav {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
}

main {
    min-height: 60vh;
    padding: 32px 24px;
}

.hero,
.page-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.notice {
    padding: 12px 16px;
    border-left: 4px solid #a51d2d;
    background: #fff4f4;
}

.blog-heading {
    margin-bottom: 32px;
}

.blog-heading h1 {
    max-width: 760px;
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #dedede;
    background: #fff;
}

.article-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #ececec;
}

.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.article-content h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.28;
}

.article-content p {
    margin: 0;
    line-height: 1.45;
}

.blog-detail-page {
    background: #fff;
}

.blog-detail-hero {
    min-height: 360px;
    padding: 42px 0 110px;
    background-color: #66cfe3;
    background-image:
        url("/wp-content/uploads/2023/03/nuages_flat_v2.png"),
        url("/wp-content/uploads/2023/03/nuage_v2.png");
    background-repeat: repeat-x, repeat-x;
    background-position: center bottom, center calc(100% - 28px);
    background-size: 1920px auto, 1920px auto;
}

.blog-detail-hero-inner {
    max-width: 1228px;
}

.blog-detail-hero h1 {
    max-width: 680px;
    margin: 0 0 12px;
    color: #070b13;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.18;
}

.blog-detail-date,
.blog-detail-date time {
    color: #070b13;
    font-size: 14px;
}

.blog-detail-date {
    margin: 0;
}

.blog-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 760px) 340px;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 96px;
}

.blog-detail-main {
    min-width: 0;
}

.blog-hero {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 34px;
    border-radius: 0;
}

.blog-body {
    color: #111;
    font-size: 17px;
    line-height: 1.65;
}

.blog-body p {
    margin: 0 0 22px;
}

.blog-body h2,
.blog-body h3 {
    margin: 38px 0 16px;
    color: #070b13;
    line-height: 1.2;
}

.blog-body img {
    display: block;
    max-width: 100%;
    height: auto;
}

.blog-detail-sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
}

.blog-detail-sidebar h2 {
    /* Preserve the original title-to-card rhythm while spacing every card consistently. */
    margin: 0 0 8px;
    color: #070b13;
    font-size: 32px;
    line-height: 1.15;
}

.site-header__nav {
    margin-left: auto;
}

.site-header__nav a {
    color: #171717;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
    color: #e51d46;
}

.site-footer {
    padding: 32px max(24px, calc((100% - 1180px) / 2));
    background: #171717;
    color: #fff;
}

.site-footer a {
    color: #fff;
}

/* Interviews keep the narrower Oxygen title and the original asymmetric
   editorial/sidebar columns; articles continue to use the blog template. */
.interview-detail-page .blog-detail-hero {
    min-height: 375px;
}

.interview-detail-page .blog-detail-hero h1 {
    max-width: 500px;
}

.interview-detail-page .blog-detail-hero-inner {
    max-width: 1280px;
}

.interview-detail-page .blog-detail-content {
    grid-template-columns: minmax(0, 706px) 340px;
    gap: 153px;
    padding: 65px 0 96px;
}

@media (max-width: 700px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .blog-detail-hero {
        min-height: 320px;
        padding: 34px 0 92px;
    }

    .blog-detail-hero h1 {
        font-size: 30px;
    }

    .blog-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .interview-detail-page .blog-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 72px;
    }
}

@media (min-width: 701px) and (max-width: 1000px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.blog-page {
    background: #fff;
    color: #1e1e1e;
    font-family: Montserrat, Arial, sans-serif;
}

.blog-page main {
    /* The Oxygen header is fixed; match the original inner-content offset. */
    padding: 80px 0 0;
}

.blog-container {
    box-sizing: border-box;
    width: min(1280px, 100%);
    padding-right: 20px;
    padding-left: 20px;
    margin: 0 auto;
}

.blog-hero-section {
    box-sizing: border-box;
    min-height: 350px;
    padding: 32px 0 175px;
    background-color: #6fd4f0;
    background-image: none;
}

.breadcrumb {
    display: flex;
    width: fit-content;
    gap: 0;
    margin-bottom: 32px;
    font-size: 12px;
    color: #1e1e1e;
    font-weight: 300;
}

.breadcrumb a {
    color: #1e1e1e;
}

.breadcrumb span::before {
    content: "\00bb";
    margin: 0 4px;
    color: #1e1e1e;
}

.blog-hero-section h1 {
    width: 738px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 500;
    text-align: center;
}

.blog-hero-section h1 span {
    color: #151515;
    font-weight: 700;
}

/* The WordPress interview heading is shrink-wrapped on desktop, which keeps its
   two lines centered at the same width without changing the shared blog hero. */
.interview-hero-section h1 {
    width: fit-content;
}

.cloud-band {
    position: relative;
    display: block;
    height: 150px;
    margin-top: -130px;
    background-image: url("/wp-content/uploads/2023/03/nuage_v2.png");
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: auto 150px;
    pointer-events: none;
}

.blog-list-section {
    margin-top: 0;
    padding: 36px 0 78px;
}

.blog-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 65%) minmax(0, 35%);
    gap: 0;
    align-items: start;
}

.blog-list-section h2 {
    margin: 0 0 32px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.5;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, calc((100% - 28px) / 2));
    gap: 26px;
}

.blog-main-column {
    box-sizing: border-box;
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
}

.blog-card {
    overflow: hidden;
    display: flex;
    min-width: 0;
    align-self: start;
    flex-direction: column;
    border: 0;
    border-radius: 10px;
    background: #fcfcfc;
    box-shadow: 0 0 5px rgba(0, 0, 0, .25);
}

.blog-card-image {
    display: block;
    aspect-ratio: 1.6;
    overflow: hidden;
    background: #f1f1f1;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.blog-card-content h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.blog-card-content h3 a {
    color: #171717;
    text-decoration: none;
}

.blog-card-content p {
    margin: 0;
    color: #1e1e1e;
    line-height: 1.5;
    font-size: 16px;
}

.read-more {
    width: fit-content;
    margin-top: 8px;
    color: #e22946;
    font-weight: 400;
    text-decoration: underline;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding-top: 26px;
    border-top: 1px solid #e6e6e6;
}

.blog-pagination-row {
    grid-column: 1 / -1;
}

.pager-link,
.pager-number {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    color: #171717;
    font-weight: 700;
    text-decoration: none;
}

.pager-link {
    font-size: 24px;
    line-height: 1;
}

.pager-current {
    border-color: #e51d46;
    background: #e51d46;
    color: #fff;
}

.pager-disabled {
    color: #999;
    background: #f5f5f5;
}

.pager-ellipsis {
    display: inline-flex;
    min-width: 26px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: 700;
}

.blog-sidebar {
    box-sizing: border-box;
    display: grid;
    gap: 32px;
    padding-top: 20px;
    padding-left: 32px;
}

.blog-sidebar h2 {
    margin-bottom: 0;
}

.sidebar-card {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    max-width: 369px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px;
    border: 0;
    border-radius: 10px;
    background: #fcfcfc;
    box-shadow: 0 0 5px rgba(0, 0, 0, .25);
}

.sidebar-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
}

.primary-cta,
.secondary-cta {
    display: inline-flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}

.primary-cta {
    box-sizing: border-box;
    width: 230px;
    padding: 14px 22.4px;
    border: 1px solid #e22946;
    background: #e22946;
    color: #fff;
}

.secondary-cta {
    padding: 10px 15px;
    border: 1px solid #1e1e1e;
    color: #1e1e1e;
}

@media (max-width: 1280px) {
    .blog-page main {
        padding-top: 60px;
    }

    .blog-list-section h2 {
        margin-bottom: 24px;
        font-size: 26px;
        line-height: 1.5;
    }

    .blog-card-grid {
        grid-template-columns: repeat(2, calc((100% - 20px) / 2));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .blog-content-layout {
        width: calc(100% - 40px);
        padding-right: 0;
        padding-left: 0;
        grid-template-columns: 1fr;
    }

    .blog-main-column {
        padding-right: 20px;
        padding-left: 20px;
    }

    .blog-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 0;
    }

    .blog-sidebar h2 {
        grid-column: 1 / -1;
    }

    .blog-hero-section h1 {
        width: 632px;
        font-size: 36px;
        line-height: 1.1;
    }

    .blog-hero-section {
        min-height: 0;
        padding-bottom: 124px;
    }

    .cloud-band {
        margin-top: -80px;
        margin-bottom: -70px;
    }

    .blog-list-section {
        padding-top: 56px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        min-height: 0;
        padding-top: 16px;
        padding-bottom: 100px;
    }

    .blog-hero-section h1 {
        width: 100%;
        font-size: 28px;
    }

    .blog-list-section {
        padding-top: 62px;
    }

    .blog-main-column {
        padding-top: 0;
        padding-right: 0;
        padding-left: 0;
    }

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

    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479px) {
    .blog-hero-section h1 {
        font-size: 26px;
    }
}

.admin-shell {
    width: min(100% - 48px, 1180px);
    margin: 48px auto;
    font-family: Arial, sans-serif;
}

.admin-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.admin-header p {
    margin: 0;
    color: #555;
}

.admin-header-actions {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.admin-primary,
.admin-secondary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid #111;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.admin-primary {
    border-color: #e51d46;
    background: #e51d46;
    color: #fff;
}

.admin-secondary {
    background: #fff;
    color: #111;
}

.admin-notice {
    padding: 12px 16px;
    border: 1px solid #b7dfbd;
    border-radius: 6px;
    background: #edf8ef;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f5f5f5;
}

.admin-list-thumb {
    display: inline-grid;
    width: 92px;
    height: 62px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f4f4f4;
    color: #777;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

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

.admin-list-thumb--empty {
    padding: 0 8px;
    box-sizing: border-box;
}

.admin-actions {
    white-space: nowrap;
}

.admin-actions a {
    margin-right: 12px;
}

.admin-inline-form {
    margin: 0;
}

.admin-publish-toggle {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.admin-publish-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-publish-toggle__rail {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 24px;
    flex: 0 0 46px;
    border-radius: 999px;
    background: #b9b9b9;
    transition: background 0.2s ease;
}

.admin-publish-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.admin-publish-toggle input:checked + .admin-publish-toggle__rail {
    background: #1f9d55;
}

.admin-publish-toggle input:checked + .admin-publish-toggle__rail .admin-publish-toggle__thumb {
    transform: translateX(22px);
}

.admin-publish-toggle input:focus + .admin-publish-toggle__rail {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.admin-publish-toggle__label {
    min-width: 72px;
}

.admin-form {
    display: grid;
    gap: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-form label,
.admin-field {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-form input[type="file"],
.admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font: inherit;
}

.admin-form input[type="file"] {
    background: #fff;
}

.admin-form textarea {
    font-family: Consolas, "Courier New", monospace;
}

.admin-image-preview {
    width: 180px;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.html-editor {
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.html-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid #e2e2e2;
    background: #f7f7f7;
}

.html-editor-toolbar button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.html-editor-toolbar button:hover,
.html-editor-toolbar button.is-active {
    border-color: #e51d46;
    color: #e51d46;
}

.html-editor-surface,
.html-editor-source {
    min-height: 360px;
    padding: 16px;
    box-sizing: border-box;
}

.html-editor-surface {
    font-weight: 400;
    line-height: 1.55;
    outline: none;
}

.html-editor-source {
    display: none;
    min-height: 360px;
    border: 0;
    border-radius: 0;
    font-family: Consolas, "Courier New", monospace;
}

.html-editor.is-source-mode .html-editor-surface {
    display: none;
}

.html-editor.is-source-mode .html-editor-source {
    display: block;
}

.admin-check {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.login-shell {
    display: grid;
    min-height: 60vh;
    place-items: center;
    padding: 48px 20px;
    background: #f6f6f6;
}

.login-panel {
    width: min(100%, 420px);
    padding: 32px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.login-panel h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.login-panel p {
    margin: 0 0 24px;
    color: #555;
}

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

.login-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font: inherit;
}

.login-check {
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.login-form button {
    min-height: 46px;
    border: 1px solid #e51d46;
    border-radius: 6px;
    background: #e51d46;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.login-error {
    color: #b00020;
}

@media (max-width: 720px) {
    .admin-header,
    .admin-grid,
    .admin-form-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

/* The back-office deliberately reuses the public brand language: Montserrat,
   the La Résidence red, generous rounded cards and restrained warm neutrals. */
.admin-shell {
    width: min(100% - 48px, 1180px);
    margin: 48px auto;
    font-family: Montserrat, Arial, sans-serif;
}

.admin-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 38px;
    padding: 8px;
    border: 1px solid #ece7e4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(23, 23, 23, 0.06);
}

.admin-nav__eyebrow {
    padding: 0 14px 0 10px;
    color: #e51d46;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-nav a,
.admin-nav button {
    padding: 10px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #282828;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
}

.admin-nav a:hover,
.admin-nav a:focus-visible,
.admin-nav a.is-active,
.admin-nav button:hover,
.admin-nav button:focus-visible {
    background: #fff0f3;
    color: #d71942;
}

.admin-nav a.is-active {
    box-shadow: inset 0 0 0 1px #ffd7df;
}

.admin-nav__logout-form {
    margin-left: auto;
}

.admin-nav .admin-nav__logout {
    color: #666;
}

.admin-header {
    margin-bottom: 28px;
}

.admin-header h1 {
    color: #171717;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.admin-header p {
    color: #68635f;
    font-size: 15px;
    line-height: 1.6;
}

.admin-primary,
.admin-secondary {
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-primary:hover,
.admin-primary:focus-visible {
    box-shadow: 0 8px 20px rgba(229, 29, 70, 0.24);
    transform: translateY(-1px);
}

.admin-secondary:hover,
.admin-secondary:focus-visible {
    background: #f7f4f2;
    transform: translateY(-1px);
}

.admin-notice {
    padding: 14px 18px;
    border-left: 4px solid #32935a;
    border-radius: 10px;
    color: #174d2b;
    font-size: 14px;
}

.admin-card,
.admin-editor,
.admin-form {
    padding: 26px;
    border: 1px solid #ece7e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(23, 23, 23, 0.055);
}

.admin-card {
    margin-bottom: 24px;
}

.admin-card h2 {
    margin: 0 0 20px;
    color: #171717;
    font-size: 21px;
}

.admin-card dl {
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.admin-card dt,
.admin-card dd {
    padding: 11px 0;
    border-bottom: 1px solid #eee9e6;
}

.admin-card dt {
    color: #6c6763;
    font-size: 13px;
    font-weight: 700;
}

.admin-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-table-wrap {
    position: relative;
    overflow-x: auto;
    border: 1px solid #ece7e4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(23, 23, 23, 0.055);
}

.admin-table {
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 15px 16px;
    border-bottom-color: #eee9e6;
}

.admin-table th {
    background: #f8f5f3;
    color: #5f5a56;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.admin-table tbody tr {
    transition: background 0.16s ease;
}

.admin-table tbody tr:hover {
    background: #fffafb;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table code,
.admin-card code {
    color: #6b2840;
    font-size: 12px;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f0efee;
    color: #4f4b48;
    font-size: 11px;
    font-weight: 800;
}

.admin-status--accent {
    background: #fff0f3;
    color: #c91840;
}

.admin-actions a {
    color: #d71942;
    font-weight: 700;
    text-decoration: none;
}

.admin-inline-form > label {
    display: inline-grid;
    gap: 6px;
    margin-bottom: 20px;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 800;
}

.admin-inline-form select,
.admin-inline-form button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9d3cf;
    border-radius: 9px;
    background: #fff;
    font: inherit;
}

/* Keep dense analytics controls readable without introducing a separate admin design system. */
.analytics-filters,
.analytics-annotation,
.analytics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: 20px 0;
}

.analytics-filters label {
    display: grid;
    gap: 6px;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 800;
}

.analytics-filters input,
.analytics-filters select,
.analytics-annotation input,
.analytics-annotation select,
.analytics-actions .button,
.analytics-filters .button,
.analytics-annotation .button {
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #d9d3cf;
    border-radius: 9px;
    background: #fff;
    color: #312d2a;
    font: inherit;
}

.analytics-actions .button,
.analytics-filters .button,
.analytics-annotation .button {
    display: inline-flex;
    align-items: center;
    color: #d71942;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.analytics-kpis article,
.analytics-panel {
    padding: 20px;
    border: 1px solid #eee6e2;
    border-radius: 14px;
    background: #fff;
}

.analytics-kpis strong,
.analytics-kpis span {
    display: block;
}

.analytics-kpis strong {
    color: #d71942;
    font-size: 28px;
}

.analytics-kpis span {
    margin-top: 4px;
    color: #6b6460;
    font-size: 12px;
    font-weight: 700;
}

.analytics-delta {
    display: inline-flex;
    width: fit-content;
    margin-top: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f2f0ee;
    color: #69635f;
    font-size: 10px;
    font-weight: 800;
}

.analytics-delta.is-up {
    background: #e9f7ef;
    color: #197542;
}

.analytics-delta.is-down {
    background: #fff0f3;
    color: #b81738;
}

.analytics-comparison-note {
    margin: -10px 0 20px;
    color: #756e69;
    font-size: 11px;
    font-weight: 600;
}

.analytics-panel {
    margin: 18px 0;
}

.analytics-panel h2 {
    margin-top: 0;
}

.analytics-annotation input[type="text"] {
    flex: 1 1 360px;
}

.analytics-panel__heading {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.analytics-panel__heading h2,
.analytics-panel__heading p {
    margin-top: 0;
}

.analytics-panel__heading > p {
    color: #6b6460;
    font-size: 12px;
    font-weight: 700;
}

.analytics-realtime {
    border-color: #ffd8e0;
    background: linear-gradient(135deg, #fff 0%, #fff8fa 100%);
}

.analytics-realtime.is-unavailable {
    border-color: #e4dedb;
    background: #faf9f8;
}

.analytics-live-label,
.admin-eyebrow {
    margin-bottom: 6px;
    color: #d71942;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.analytics-live-label span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 50%;
    background: #28a95b;
    box-shadow: 0 0 0 5px rgba(40, 169, 91, 0.12);
}

.analytics-live-status {
    margin-bottom: 0;
}

.analytics-live-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.analytics-live-kpis article {
    min-width: 0;
    padding: 14px;
    border: 1px solid #f0e4e6;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.82);
}

.analytics-live-kpis strong,
.analytics-live-kpis span {
    display: block;
}

.analytics-live-kpis strong {
    color: #d71942;
    font-size: 24px;
}

.analytics-live-kpis span {
    margin-top: 3px;
    color: #6b6460;
    font-size: 11px;
    font-weight: 700;
}

.analytics-live-pages .admin-table {
    min-width: 460px;
}

.analytics-target-label {
    display: block;
    margin-bottom: 4px;
    color: #312d2a;
    font-size: 12px;
}

.analytics-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.analytics-chart-card {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #eee6e2;
    border-radius: 12px;
    background: #fff;
}

.analytics-chart-card figcaption {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.analytics-chart-legend {
    color: #6b6460;
    font-size: 10px;
    font-weight: 700;
}

.analytics-chart-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px 0 7px;
    border-radius: 50%;
}

.analytics-chart-legend .is-red { background: #d71942; }
.analytics-chart-legend .is-navy { background: #17324d; }
.analytics-chart-legend .is-gold { background: #d19a24; }
.analytics-chart-legend .is-green { background: #29975a; }

.analytics-line-chart {
    display: block;
    width: 100%;
    height: 220px;
    overflow: visible;
}

.analytics-chart-gridlines line {
    stroke: #eee8e4;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.analytics-chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.analytics-chart-line.is-red { stroke: #d71942; }
.analytics-chart-line.is-navy { stroke: #17324d; }
.analytics-chart-line.is-gold { stroke: #d19a24; }
.analytics-chart-line.is-green { stroke: #29975a; }

.analytics-chart-annotation {
    stroke: #8c817b;
    stroke-width: 1;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
}

.analytics-chart-axis {
    display: flex;
    justify-content: space-between;
    margin: 8px 4px 0;
    color: #746d68;
    font-size: 11px;
    font-weight: 700;
}

.analytics-funnel {
    display: grid;
    gap: 9px;
}

.analytics-funnel article {
    width: var(--analytics-funnel-width);
    min-width: 120px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border-radius: 9px;
    background: linear-gradient(90deg, #d71942, #ee5775);
    color: #fff;
    transition: width 0.2s ease;
}

.analytics-funnel strong {
    display: inline-block;
    min-width: 52px;
    font-size: 20px;
}

.analytics-funnel span {
    font-size: 12px;
    font-weight: 700;
}

.admin-inline-form button {
    color: #d71942;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-form,
.admin-editor {
    display: grid;
    gap: 20px;
}

.admin-editor label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.admin-editor .admin-check {
    display: inline-flex;
}

.admin-form select,
.admin-editor input[type="text"],
.admin-editor input[type="date"],
.admin-editor input[type="datetime-local"],
.admin-editor select,
.admin-editor textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 9px;
    font: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-editor input:focus,
.admin-editor select:focus,
.admin-editor textarea:focus {
    border-color: #e51d46;
    box-shadow: 0 0 0 3px rgba(229, 29, 70, 0.11);
    outline: none;
}

.login-shell {
    background:
        radial-gradient(circle at 15% 10%, rgba(229, 29, 70, 0.10), transparent 33%),
        #f7f4f2;
}

.login-panel {
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(23, 23, 23, 0.10);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    border-radius: 9px;
}

.login-form button {
    border-radius: 999px;
}

@media (max-width: 720px) {
    main {
        padding: 20px 14px;
    }

    .site-header {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .site-header__nav {
        margin-left: 0;
    }

    .admin-shell {
        width: 100%;
        margin: 24px auto;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .admin-nav__eyebrow {
        grid-column: 1 / -1;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px 4px;
    }

    .admin-nav a,
    .admin-nav button {
        min-width: 0;
        padding: 10px 8px;
        text-align: center;
    }

    .admin-nav__logout-form {
        margin-left: 0;
    }

    .admin-nav .admin-nav__logout {
        width: 100%;
    }

    .admin-card,
    .admin-editor,
    .admin-form {
        padding: 20px;
    }

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

    .admin-card dt {
        padding-bottom: 4px;
        border-bottom: 0;
    }

    .admin-card dd {
        padding-top: 0;
    }

    .analytics-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }

    .analytics-filters label,
    .analytics-filters input,
    .analytics-filters select,
    .analytics-filters > .button {
        min-width: 0;
        width: 100%;
    }

    .analytics-filters > .button {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .analytics-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .analytics-actions > form,
    .analytics-actions .button {
        width: 100%;
        box-sizing: border-box;
    }

    .analytics-actions .button {
        justify-content: center;
    }

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

    .analytics-kpis article,
    .analytics-panel {
        min-width: 0;
        padding: 16px;
    }

    .analytics-panel p,
    .analytics-panel li {
        overflow-wrap: anywhere;
    }

    .analytics-panel__heading,
    .analytics-chart-card figcaption {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

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

    .analytics-chart-grid {
        grid-template-columns: 1fr;
    }

    .analytics-line-chart {
        height: 180px;
    }

    .analytics-annotation {
        align-items: stretch;
    }

    .analytics-annotation > * {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 479px) {
    .analytics-filters {
        grid-template-columns: 1fr;
    }

    .analytics-filters > .button {
        grid-column: auto;
    }
}
