:root {
    --bg: #f3f7fc;
    --surface: #ffffff;
    --surface-soft: #e8f2ff;
    --text: #17202a;
    --muted: #526070;
    --line: #d8e3ef;
    --brand: #2671c9;
    --brand-dark: #1856a8;
    --brand-deep: #113f7c;
    --accent: #ff6f4d;
    --accent-soft: #fff2df;
    --cyan: #20a7e8;
    --mint: #35d4c0;
    --warning: #ffcc48;
    --focus: #2671c9;
    --shadow: 0 20px 46px rgba(24, 86, 168, 0.16);
    --shadow-soft: 0 12px 28px rgba(24, 86, 168, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 8% 3%, rgba(32, 167, 232, 0.22), transparent 32%),
        radial-gradient(circle at 90% 12%, rgba(255, 204, 72, 0.24), transparent 28%),
        radial-gradient(circle at 72% 58%, rgba(53, 212, 192, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0, var(--bg) 520px, #f8fbff 100%);
}

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

a:hover {
    color: var(--brand-dark);
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(24, 86, 168, 0.08);
    backdrop-filter: blur(16px);
}

.site-header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--cyan), var(--warning), var(--accent));
}

.header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(24, 86, 168, 0.24);
}

.brand-text {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid rgba(24, 86, 168, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.search-form:focus-within {
    outline: 3px solid rgba(31, 122, 236, 0.18);
    border-color: var(--focus);
}

.search-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 12px 14px;
    font: inherit;
    background: transparent;
    color: var(--text);
}

.search-form input:focus {
    outline: none;
}

.search-form button,
.button-link {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand), var(--cyan));
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.search-form button:hover,
.button-link:hover {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark), var(--brand));
    color: #ffffff;
}

.button-icon,
.nav-icon,
.footer-link-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
}

.search-icon::before {
    content: "";
    position: absolute;
    inset: 2px 5px 5px 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

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

.locale-nav a {
    min-width: 36px;
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(24, 86, 168, 0.18);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.locale-nav a.is-active {
    border-color: var(--brand);
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: 0 8px 18px rgba(38, 113, 201, 0.18);
}

.main-nav {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(38, 113, 201, 0.06), rgba(255, 204, 72, 0.06)),
        rgba(255, 255, 255, 0.58);
}

.nav-scroll {
    min-height: 44px;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
}

.nav-scroll a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.nav-scroll a:hover {
    border-color: rgba(38, 113, 201, 0.2);
    background: #ffffff;
    color: var(--brand-dark);
    box-shadow: var(--shadow-soft);
}

.nav-icon {
    width: 19px;
    height: 19px;
    color: var(--brand);
}

.nav-icon::before,
.nav-icon::after {
    content: "";
    position: absolute;
}

.nav-icon-grid::before {
    inset: 3px;
    border-radius: 3px;
    background: currentColor;
    box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor;
    width: 5px;
    height: 5px;
}

.nav-icon-window::before {
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.nav-icon-window::after {
    left: 5px;
    right: 5px;
    top: 8px;
    height: 2px;
    background: currentColor;
}

.nav-icon-apps::before {
    inset: 2px;
    border-radius: 5px;
    border: 2px solid currentColor;
}

.nav-icon-apps::after {
    left: 7px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 6px currentColor, 6px 0 currentColor, 6px 6px currentColor;
}

.nav-icon-shield::before {
    left: 4px;
    top: 2px;
    width: 11px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 7px 7px 9px 9px;
    transform: perspective(20px) rotateX(12deg);
}

.nav-icon-spark::before {
    left: 8px;
    top: 1px;
    width: 3px;
    height: 17px;
    border-radius: 999px;
    background: currentColor;
}

.nav-icon-spark::after {
    left: 1px;
    top: 8px;
    width: 17px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 204, 72, 0.25);
}

.nav-icon-mail::before {
    inset: 4px 2px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.nav-icon-mail::after {
    left: 4px;
    right: 4px;
    top: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}
}

.section {
    padding: 44px 0;
}

.tip-page {
    padding-top: 62px;
}

.section.compact {
    padding: 34px 0 18px;
    background:
        linear-gradient(135deg, rgba(232, 242, 255, 0.72), rgba(255, 242, 223, 0.58)),
        transparent;
    border-bottom: 1px solid rgba(38, 113, 201, 0.08);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(232, 242, 255, 0.98), rgba(246, 251, 255, 0.98) 48%, rgba(255, 242, 223, 0.95)),
        var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -150px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 204, 72, 0.28), transparent 66%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 34px auto auto -130px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(32, 167, 232, 0.22), transparent 68%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero h1,
.compact h1,
.article-header h1 {
    max-width: 780px;
    margin: 0;
    font-size: 2.25rem;
    line-height: 1.12;
}

.hero h1 {
    max-width: 820px;
    font-size: 3.65rem;
    line-height: 0.98;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.lead {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(38, 113, 201, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-dark);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.hero-pill:hover {
    border-color: rgba(255, 204, 72, 0.7);
    color: var(--brand-deep);
    background: #ffffff;
}

.hero-panel {
    position: relative;
    min-height: 272px;
    display: grid;
    align-content: end;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(38, 113, 201, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: var(--shadow);
}

.hero-panel strong {
    font-size: 1.35rem;
}

.hero-panel span,
.muted {
    color: var(--muted);
}

.hero-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 520 / 360;
    object-fit: cover;
}

.hero-panel-content {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(255, 204, 72, 0.14), rgba(32, 167, 232, 0.08)),
        rgba(255, 255, 255, 0.94);
}

.hero-panel time {
    color: var(--brand);
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
}

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

.section-head h2 {
    margin: 0;
    font-size: 1.55rem;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.tip-card,
.category-card,
.empty-state,
.article-side,
.video-placeholder {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.tip-card {
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tip-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--cyan), var(--warning), var(--accent));
    z-index: 1;
}

.tip-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 122, 236, 0.34);
    box-shadow: 0 22px 46px rgba(20, 57, 86, 0.16);
}

.tip-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(38, 113, 201, 0.12), rgba(255, 204, 72, 0.16)),
        #e8edf3;
}

.tip-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.tip-card:hover .tip-card-media img {
    transform: scale(1.035);
}

.tip-card-body {
    padding: 16px;
}

.tip-card-meta,
.tip-card-foot,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.tip-card-meta a,
.tip-card-meta span,
.tip-card-foot span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f2f7ff;
}

.tip-card-meta a {
    color: var(--brand-dark);
    font-weight: 900;
}

.tip-card-foot span:first-child {
    background: #fff7e6;
    color: #7a4b00;
}

.tip-card h2 {
    min-height: 3.2em;
    margin: 12px 0 8px;
    font-size: 1.14rem;
    line-height: 1.35;
}

.tip-card p {
    min-height: 4.8em;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.55;
}

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

.category-card {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: auto -42px -60px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 204, 72, 0.18), transparent 65%);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 113, 201, 0.28);
    box-shadow: var(--shadow);
}

.category-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f2ff, #fff5df);
    box-shadow: inset 0 0 0 1px rgba(38, 113, 201, 0.1);
}

.category-card h2 {
    margin: 4px 0 8px;
    font-size: 1.15rem;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
        "header side"
        "body side";
    gap: 28px;
    align-items: start;
}

.article-header {
    grid-area: header;
}

.article-side {
    grid-area: side;
    padding: 12px;
    position: sticky;
    top: 142px;
}

.article-side img {
    border-radius: 8px;
}

.side-block {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side-block strong {
    width: 100%;
}

.side-block span,
.tag-list span {
    display: inline-flex;
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.article-body {
    grid-area: body;
    max-width: 760px;
    color: #25313d;
    font-size: 1.05rem;
    line-height: 1.75;
}

.external-tip-page {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.external-tip-page .site-header {
    position: relative;
    flex: 0 0 auto;
}

.external-tip-page .site-footer {
    display: none !important;
}

.external-tip-page main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.external-source-reader {
    position: relative;
    flex: 1 1 auto;
    width: 100vw;
    max-width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.external-source-title {
    flex: 0 0 auto;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.external-source-title h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.external-source-open {
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.external-source-back {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(6, 25, 35, 0.72);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(6, 25, 35, 0.28);
    font-weight: 900;
    text-decoration: none;
    backdrop-filter: blur(14px);
}

.external-source-back:hover {
    border-color: rgba(216, 255, 79, 0.5);
    background: rgba(6, 25, 35, 0.86);
    color: #ffffff;
}

.external-source-back-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 34%),
        var(--lime);
    color: #061923;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.external-source-reader iframe {
    flex: 1 1 auto;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    background: #ffffff;
}

.iframe-loader {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    background: #ffffff;
    overflow: hidden;
}

.iframe-loader iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    background: #ffffff;
}

.iframe-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 10px;
    align-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: var(--muted);
    font-weight: 800;
    opacity: 1;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.iframe-loader.is-loaded .iframe-loading {
    visibility: hidden;
    opacity: 0;
}

.iframe-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #d8dee6;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: iframe-spin 0.8s linear infinite;
}

@keyframes iframe-spin {
    to {
        transform: rotate(360deg);
    }
}

.video-placeholder .iframe-loader {
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-placeholder .iframe-loader iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-placeholder,
.empty-state {
    margin-top: 22px;
    padding: 18px;
}

.empty-state .button-link {
    margin-top: 10px;
}

.video-placeholder iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 8px;
}

.youtube-embed {
    width: 100%;
    margin: 28px 0 36px;
}

.youtube-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 280px;
    border: 0;
    border-radius: 18px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.ad-placeholder {
    display: grid;
    place-items: center;
    min-height: 96px;
    margin: 18px 0;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-weight: 700;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 8px;
    border-radius: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.prose {
    max-width: 760px;
    line-height: 1.75;
}

.prose h1 {
    margin-top: 0;
}

.lead-text {
    color: var(--muted);
    font-size: 1.08rem;
}

.prose a {
    color: var(--brand);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.static-section {
    margin-top: 28px;
}

.static-section h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.static-section p {
    margin: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: start;
}

.contact-card {
    position: sticky;
    top: 112px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(38, 113, 201, 0.5), rgba(32, 167, 232, 0.4), rgba(255, 204, 72, 0.55)) border-box;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.contact-card > p:not(.eyebrow) {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

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

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    background: #fbfdff;
    color: var(--text);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(31, 122, 236, 0.16);
    border-color: var(--focus);
    background: #ffffff;
}

.contact-form button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand), var(--cyan));
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(24, 86, 168, 0.22);
}

.contact-form button:hover {
    background: linear-gradient(135deg, var(--brand-dark), #1269b5);
}

.field-error {
    color: #a9341e;
    font-size: 0.86rem;
    font-weight: 800;
}

.form-alert {
    margin: 0 0 14px;
    padding: 12px 13px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.45;
}

.form-alert.success {
    border: 1px solid rgba(38, 113, 201, 0.22);
    background: #e8f2ff;
    color: var(--brand-dark);
}

.form-alert.error {
    border: 1px solid rgba(216, 93, 42, 0.28);
    background: var(--accent-soft);
    color: #8d3319;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.site-footer {
    margin-top: 34px;
    padding: 34px 0;
    border-top: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 204, 72, 0.22), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(32, 167, 232, 0.22), transparent 30%),
        linear-gradient(135deg, #0f315f, var(--brand-deep) 50%, #123a6d);
    color: #ffffff;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

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

.footer-grid p {
    margin: 8px 0 0;
    color: #c7d0d9;
}

.footer-grid .footer-credit {
    color: #f6ffe4;
    font-weight: 800;
}

.footer-grid .footer-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.footer-grid .footer-credit a:hover {
    color: #d9ff55;
}

.footer-grid nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: flex-start;
    align-content: flex-start;
}

.footer-grid a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d9e4ec;
}

.footer-grid a:hover {
    border-color: rgba(255, 204, 72, 0.55);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.footer-link-icon {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(255, 204, 72, 0.16);
}

@media (max-width: 900px) {
    .header-inner,
    .hero-grid,
    .article-grid,
    .footer-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 24px;
    }

    .hero-panel {
        min-height: 0;
    }

    .contact-card {
        position: static;
    }

    .locale-nav {
        justify-content: flex-start;
    }

    .hero h1,
    .compact h1,
    .article-header h1 {
        font-size: 1.85rem;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

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

    .article-grid {
        grid-template-areas:
            "header"
            "side"
            "body";
    }

    .article-side {
        position: static;
    }

    .youtube-embed {
        margin: 22px 0 30px;
    }

    .youtube-embed iframe {
        min-height: 0;
    }

    .footer-grid nav {
        justify-content: flex-start;
    }
}

/* Modern admin surface */
.admin-body {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(216, 255, 79, 0.16) 0 12%, transparent 12% 100%),
        radial-gradient(circle at 8% 0, rgba(0, 208, 132, 0.18), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(42, 109, 246, 0.18), transparent 32%),
        linear-gradient(180deg, #f5fffb 0, #edf7f5 48%, #f7fbff 100%);
}

.admin-body .brand {
    color: #ffffff;
}

.admin-body .brand:hover {
    color: #ffffff;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 74px;
    border-bottom: 0;
    background:
        linear-gradient(135deg, rgba(6, 25, 35, 0.98), rgba(7, 59, 69, 0.98) 48%, rgba(22, 76, 183, 0.96)),
        #061923;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(6, 25, 35, 0.2);
}

.admin-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--lime), var(--mint), var(--cyan), var(--brand), var(--accent), var(--warning));
}

.admin-header .brand-mark {
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.admin-nav {
    gap: 8px;
}

.admin-nav a,
.admin-link-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    color: #dcecf1;
}

.admin-nav a:hover,
.admin-link-button:hover {
    background: rgba(216, 255, 79, 0.14);
    color: #ffffff;
}

.admin-main {
    width: min(1240px, calc(100% - 32px));
}

.admin-page h1 {
    color: var(--text);
    font-size: 2rem;
}

.admin-eyebrow {
    margin: 0 0 6px;
    color: #008d5d;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-secondary-link,
.admin-title-row .button-link {
    border-radius: 999px;
}

.admin-secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(0, 168, 107, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #007a51;
    font-weight: 900;
}

.admin-secondary-link:hover {
    background: #ffffff;
    color: #061923;
}

.admin-card,
.admin-flash,
.admin-error,
.admin-form,
.admin-table,
.admin-stats div {
    border-color: rgba(0, 168, 107, 0.16);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(6, 25, 35, 0.1);
}

.admin-flash {
    border-color: rgba(0, 168, 107, 0.28);
    background: linear-gradient(135deg, #ecfff7, #f8ffdc);
    color: #07553d;
    font-weight: 800;
}

.admin-error {
    border-color: rgba(255, 93, 122, 0.28);
    background: #fff1f4;
    color: #9c1f34;
}

.admin-login-shell {
    min-height: calc(100vh - 74px);
    place-items: center;
    padding: 54px 0;
}

.admin-login {
    position: relative;
    overflow: hidden;
    width: min(500px, 100%);
    padding: 34px;
    border: 0;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--lime), var(--mint), var(--cyan), var(--accent)) border-box;
}

.admin-login::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, var(--lime), var(--mint), var(--cyan), var(--accent));
}

.admin-login-head {
    align-items: center;
}

.admin-login-head .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.admin-login h1 {
    font-size: 2.15rem;
}

.admin-login-note {
    margin: -10px 0 22px;
    color: var(--muted);
    line-height: 1.55;
}

.admin-login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-table input {
    border-color: rgba(0, 168, 107, 0.18);
    background: #fbfffd;
}

.admin-login-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-table input:focus {
    outline: 3px solid rgba(0, 208, 132, 0.18);
    border-color: #00a86b;
    background: #ffffff;
}

.admin-login-form button,
.admin-form button,
.admin-actions button,
.admin-title-row button,
.admin-card button {
    border-radius: 999px;
    background: linear-gradient(135deg, #00a86b, #00d084 48%, #2a6df6);
    color: #061923;
    box-shadow: 0 12px 24px rgba(0, 168, 107, 0.18);
}

.admin-login-form button:hover,
.admin-form button:hover,
.admin-actions button:hover,
.admin-title-row button:hover,
.admin-card button:hover {
    background: linear-gradient(135deg, var(--lime), var(--mint), var(--cyan));
}

.admin-table {
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background:
        linear-gradient(135deg, rgba(216, 255, 79, 0.28), rgba(0, 208, 132, 0.12)),
        #eefaf4;
    color: #07553d;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.admin-table tbody tr:hover td {
    background: rgba(0, 208, 132, 0.045);
}

.admin-inline-actions a {
    color: #007a51;
    font-weight: 900;
}

.admin-inline-actions button,
.admin-danger-button,
.admin-text-danger {
    border-radius: 999px;
    color: #b42318;
}

.admin-actions .admin-danger-button,
.admin-danger-button {
    border: 1px solid rgba(255, 93, 122, 0.3);
    background: #fff1f4;
    color: #b42318;
    box-shadow: none;
}

.admin-actions .admin-danger-button:hover,
.admin-danger-button:hover {
    background: #ffe0e6;
    color: #8e182a;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 168, 107, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(6, 25, 35, 0.08);
}

.admin-pagination span,
.admin-pagination strong {
    color: var(--muted);
    font-weight: 900;
}

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

.admin-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eefaf4;
    color: #007a51;
    font-weight: 900;
}

.admin-pagination a:hover {
    background: var(--lime);
    color: #061923;
}

@media (max-width: 900px) {
    .admin-header {
        position: relative;
    }

    .admin-login {
        padding: 28px 22px;
    }

    .admin-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .header-inner {
        gap: 12px;
        padding: 12px 0;
    }

    .brand {
        font-size: 1rem;
    }

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

    .search-form button {
        width: 100%;
    }

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

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

    .tip-card h2,
    .tip-card p {
        min-height: auto;
    }

    .section {
        padding: 30px 0;
    }

    .section.tip-page {
        padding-top: 42px;
    }

    .hero h1,
    .compact h1,
    .article-header h1 {
        font-size: 1.65rem;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-panel time {
        font-size: 1.35rem;
    }

    .contact-card {
        padding: 18px;
    }
}

/* Editorial visual refresh for the public site. Assets stay local and no external UI dependency is required. */
:root {
    --bg: #eef6f3;
    --surface: #ffffff;
    --surface-soft: #e9fff6;
    --text: #101923;
    --muted: #506171;
    --line: #d8e7e2;
    --brand: #2a6df6;
    --brand-dark: #174bb7;
    --brand-deep: #061923;
    --accent: #ff5d7a;
    --accent-soft: #fff1f4;
    --cyan: #00c6ff;
    --mint: #00d084;
    --warning: #ffd23f;
    --lime: #d8ff4f;
    --focus: #00a86b;
    --shadow: 0 24px 54px rgba(6, 25, 35, 0.18);
    --shadow-soft: 0 14px 30px rgba(6, 25, 35, 0.1);
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.bi {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: currentColor;
}

body:not(.admin-body) {
    background:
        linear-gradient(120deg, rgba(216, 255, 79, 0.16) 0 11%, transparent 11% 100%),
        linear-gradient(150deg, rgba(0, 208, 132, 0.12) 0 18%, transparent 18% 100%),
        linear-gradient(180deg, #f8fffb 0, #eef6f3 520px, #f7fbff 100%);
}

.site-header {
    border-bottom: 0;
    background:
        linear-gradient(135deg, rgba(6, 25, 35, 0.97), rgba(7, 59, 69, 0.96) 48%, rgba(22, 76, 183, 0.95)),
        #061923;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(6, 25, 35, 0.22);
}

.site-header::before {
    height: 5px;
    background: linear-gradient(90deg, var(--lime), var(--mint), var(--cyan), var(--brand), var(--accent), var(--warning));
}

.brand {
    gap: 12px;
}

.brand-mark {
    border-radius: 13px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.brand-text {
    background: none;
    color: #ffffff;
}

.search-form {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.search-form input {
    color: #16212c;
}

.search-form button,
.button-link {
    background: linear-gradient(135deg, #00a86b, #00d084 48%, #2a6df6);
    color: #061923;
    font-weight: 900;
}

.search-form button:hover,
.button-link:hover {
    background: linear-gradient(135deg, var(--lime), var(--mint), var(--cyan));
    color: #061923;
}

.locale-nav a {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #d8e8ef;
}

.locale-nav a.is-active {
    border-color: rgba(216, 255, 79, 0.92);
    background: var(--lime);
    color: #061923;
    box-shadow: 0 10px 22px rgba(216, 255, 79, 0.24);
}

.main-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(90deg, rgba(216, 255, 79, 0.14), rgba(0, 198, 255, 0.1), rgba(255, 93, 122, 0.1)),
        rgba(3, 14, 23, 0.42);
}

.nav-scroll a {
    color: #e8f2f1;
}

.nav-scroll a:hover {
    border-color: rgba(216, 255, 79, 0.44);
    background: rgba(216, 255, 79, 0.14);
    color: #ffffff;
    box-shadow: none;
}

.nav-svg {
    width: 1.08rem;
    height: 1.08rem;
    color: var(--lime);
}

.hero {
    color: #ffffff;
    background:
        linear-gradient(116deg, rgba(216, 255, 79, 0.94) 0 9%, transparent 9% 100%),
        linear-gradient(138deg, rgba(0, 208, 132, 0.9) 0 17%, transparent 17% 100%),
        linear-gradient(135deg, #061923 0%, #073b45 43%, #164cb7 74%, #2a6df6 100%);
    border-bottom: 0;
}

.hero::before,
.hero::after {
    border-radius: 0;
    pointer-events: none;
}

.hero::before {
    inset: auto -12% 8% auto;
    width: 56%;
    height: 120px;
    background: linear-gradient(90deg, rgba(255, 210, 63, 0.34), rgba(255, 93, 122, 0.16));
    transform: skewY(-10deg);
}

.hero::after {
    inset: 16% auto auto -16%;
    width: 62%;
    height: 112px;
    background: linear-gradient(90deg, rgba(0, 198, 255, 0.24), rgba(0, 208, 132, 0.1));
    transform: skewY(-12deg);
}

.hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
    gap: 46px;
    padding: 12px 0 0;
}

.hero .eyebrow {
    color: var(--lime);
}

.hero h1 {
    color: #ffffff;
    font-size: 3.95rem;
    text-wrap: balance;
}

.hero .lead {
    color: #dcecf1;
}

.hero-pill {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.hero-pill .bi {
    color: var(--lime);
}

.hero-pill:hover {
    border-color: rgba(216, 255, 79, 0.68);
    background: rgba(216, 255, 79, 0.16);
    color: #ffffff;
}

.hero-panel {
    min-height: 388px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: #061923;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 25, 35, 0.78));
    pointer-events: none;
}

.hero-visual {
    height: 100%;
    min-height: 388px;
    object-fit: cover;
}

.hero-panel-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(6, 25, 35, 0.82);
    color: #ffffff;
    backdrop-filter: blur(16px);
}

.hero-panel span {
    color: #d7e6ec;
}

.hero-today-summary {
    display: block;
    color: #d7e6ec;
    text-decoration: none;
    line-height: 1.25;
}

.hero-today-summary:hover,
.hero-today-summary:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-today-link {
    display: block;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.hero-today-link:hover,
.hero-today-link:focus {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-panel time {
    color: var(--lime);
}

.home-spectrum {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.topic-tile {
    min-height: 116px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(233, 255, 246, 0.92)),
        #ffffff;
    color: #122131;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.topic-tile .bi {
    width: 1.35rem;
    height: 1.35rem;
    color: #00a86b;
    grid-row: span 2;
}

.topic-tile strong {
    font-size: 1rem;
}

.topic-tile span {
    color: var(--muted);
    line-height: 1.35;
}

.topic-tile:hover {
    transform: translateY(-2px);
    color: #061923;
    background:
        linear-gradient(140deg, var(--lime), #f8ffdc 54%, #ffffff),
        #ffffff;
}

.section-head {
    position: relative;
    padding-left: 18px;
}

.section-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--mint), var(--cyan), var(--accent));
}

.card-grid {
    gap: 22px;
}

.tip-card {
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(6, 25, 35, 0.12);
}

.tip-card::before {
    height: 7px;
    background: linear-gradient(90deg, var(--lime), var(--mint), var(--cyan), var(--accent));
}

.tip-card-media {
    position: relative;
    background:
        linear-gradient(135deg, rgba(0, 208, 132, 0.16), rgba(42, 109, 246, 0.18)),
        #eaf4f2;
}

.tip-card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(6, 25, 35, 0.18));
    pointer-events: none;
}

.tip-card-meta a,
.tip-card-meta span,
.tip-card-foot span {
    background: #eefaf4;
}

.tip-card-meta a {
    color: #007a51;
}

.tip-card-foot span:first-child {
    background: #fff7d8;
    color: #6c5200;
}

.home-card-grid .tip-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    min-height: 364px;
    background:
        linear-gradient(135deg, #ffffff 0 58%, #f3fff9),
        #ffffff;
}

.home-card-grid .tip-card-featured .tip-card-media {
    height: 100%;
    min-height: 364px;
    aspect-ratio: auto;
}

.home-card-grid .tip-card-featured .tip-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.home-card-grid .tip-card-featured h2 {
    min-height: auto;
    font-size: 1.55rem;
}

.home-card-grid .tip-card-featured p {
    min-height: auto;
}

.category-card {
    border-radius: 18px;
    border-color: transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(0, 208, 132, 0.44), rgba(42, 109, 246, 0.32), rgba(255, 210, 63, 0.42)) border-box;
}

.category-card::after {
    inset: auto -24px -38px auto;
    width: 152px;
    height: 56px;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(216, 255, 79, 0.36), rgba(0, 198, 255, 0.18));
    transform: skewY(-12deg);
}

.category-media {
    border-radius: 14px;
}

.section.compact {
    background:
        linear-gradient(112deg, rgba(216, 255, 79, 0.18) 0 13%, transparent 13% 100%),
        linear-gradient(135deg, #f6fffb, #eef8f6 58%, #f6fbff);
}

.prose,
.contact-card,
.empty-state,
.article-side,
.video-placeholder {
    border-radius: 18px;
}

.contact-card {
    border-color: transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--lime), var(--mint), var(--cyan), var(--accent)) border-box;
}

.site-footer {
    background:
        linear-gradient(120deg, rgba(216, 255, 79, 0.14) 0 14%, transparent 14% 100%),
        linear-gradient(135deg, #061923, #073b45 50%, #164cb7);
}

.footer-grid a {
    align-self: flex-start;
    min-height: 30px;
    padding: 6px 10px;
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.footer-link-icon {
    width: 1rem;
    height: 1rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--lime);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

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

    .home-card-grid .tip-card-featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .home-card-grid .tip-card-featured .tip-card-media {
        min-height: 250px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .site-header {
        position: relative;
    }

    .hero {
        overflow: hidden;
    }

    .hero-grid {
        display: block;
    }

    .hero-copy,
    .hero-panel {
        width: 100%;
        min-width: 0;
    }

    .hero h1 {
        width: min(100%, 330px);
        max-width: 100%;
        font-size: 1.92rem;
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    .hero-panel,
    .hero-visual {
        min-height: 320px;
    }

    .hero-panel {
        width: min(330px, calc(100vw - 24px));
        max-width: 100%;
        margin-top: 28px;
        margin-right: auto;
    }

    .hero .lead {
        width: min(100%, 330px);
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-visual {
        width: 100%;
        max-width: none;
    }

    .hero-panel-content {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .home-spectrum,
    .home-card-grid .tip-card-featured {
        grid-template-columns: 1fr;
    }

    .home-card-grid .tip-card-featured {
        grid-column: auto;
    }

    .topic-tile {
        min-height: 0;
    }
}

.admin-body {
    background: #f4f6f8;
}

.admin-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.admin-nav {
    display: flex;
    flex: 1;
    gap: 12px;
    overflow-x: auto;
}

.admin-nav a,
.admin-link-button {
    color: var(--muted);
    font-weight: 700;
}

.admin-link-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.admin-main {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 56px;
}

.admin-page h1 {
    margin: 0 0 18px;
}

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

.admin-card,
.admin-flash,
.admin-error {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.admin-flash {
    margin-bottom: 18px;
    border-color: #83bd93;
    background: #ecf8ef;
}

.admin-error {
    border-color: #d58d8d;
    background: #fff0f0;
}

.admin-login-shell {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: start center;
    padding: 60px 0;
}

.admin-login {
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 28px;
    border-color: #cfd7df;
    box-shadow: var(--shadow);
}

.admin-login-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.admin-login-head .brand-mark {
    width: 46px;
    height: 46px;
}

.admin-login-head p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-login h1 {
    margin: 0;
    color: var(--text);
    font-size: 1.9rem;
    line-height: 1.15;
}

.admin-login .admin-error {
    margin: 0 0 18px;
}

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

.admin-login-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.admin-login-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.admin-login-form input:focus {
    outline: 3px solid rgba(31, 122, 236, 0.18);
    border-color: var(--focus);
}

.admin-login-form button {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    justify-content: center;
}

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

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stats div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.admin-stats strong {
    display: block;
    font-size: 1.8rem;
}

.admin-stats span {
    color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.admin-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-table input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.admin-checkbox {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
}

.admin-checkbox input {
    width: auto;
}

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

.admin-check-grid label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.admin-form button,
.admin-actions button,
.admin-title-row button,
.admin-card button {
    width: fit-content;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

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

.admin-inline-actions form {
    margin: 0;
}

.admin-inline-actions button,
.admin-danger-button,
.admin-text-danger {
    border: 0;
    background: transparent;
    color: #b42318;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-actions .admin-danger-button {
    border: 1px solid #f2b8b5;
    background: #fff4f2;
    color: #b42318;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    background: #ffffff;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #eef3f2;
}

@media (max-width: 900px) {
    .admin-header,
    .admin-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-header {
        display: grid;
    }

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

    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

/* Final admin theme overrides. Keep this block after the legacy admin base so the panel matches the public visual language. */
.admin-body {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(216, 255, 79, 0.16) 0 12%, transparent 12% 100%),
        linear-gradient(150deg, rgba(0, 208, 132, 0.14) 0 19%, transparent 19% 100%),
        linear-gradient(180deg, #f5fffb 0, #edf7f5 48%, #f7fbff 100%);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 74px;
    border: 0;
    background:
        linear-gradient(135deg, rgba(6, 25, 35, 0.98), rgba(7, 59, 69, 0.98) 48%, rgba(22, 76, 183, 0.96)),
        #061923;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(6, 25, 35, 0.2);
}

.admin-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--lime), var(--mint), var(--cyan), var(--brand), var(--accent), var(--warning));
}

.admin-body .brand,
.admin-body .brand:hover {
    color: #ffffff;
}

.admin-header .brand-mark {
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.admin-nav {
    gap: 8px;
}

.admin-nav a,
.admin-link-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    color: #dcecf1;
}

.admin-nav a:hover,
.admin-link-button:hover {
    background: rgba(216, 255, 79, 0.14);
    color: #ffffff;
}

.admin-main {
    width: min(1240px, calc(100% - 32px));
}

.admin-page h1 {
    color: var(--text);
    font-size: 2rem;
}

.admin-eyebrow {
    margin: 0 0 6px;
    color: #008d5d;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-card,
.admin-flash,
.admin-error,
.admin-form,
.admin-table,
.admin-stats div {
    border-color: rgba(0, 168, 107, 0.16);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(6, 25, 35, 0.1);
}

.admin-flash {
    border-color: rgba(0, 168, 107, 0.28);
    background: linear-gradient(135deg, #ecfff7, #f8ffdc);
    color: #07553d;
    font-weight: 800;
}

.admin-error {
    border-color: rgba(255, 93, 122, 0.28);
    background: #fff1f4;
    color: #9c1f34;
}

.admin-login-shell {
    min-height: calc(100vh - 74px);
    place-items: center;
    padding: 54px 0;
}

.admin-login {
    position: relative;
    overflow: hidden;
    width: min(500px, 100%);
    padding: 34px;
    border: 0;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--lime), var(--mint), var(--cyan), var(--accent)) border-box;
}

.admin-login::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, var(--lime), var(--mint), var(--cyan), var(--accent));
}

.admin-login-head {
    align-items: center;
}

.admin-login-head .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.admin-login h1 {
    font-size: 2.15rem;
}

.admin-login-note {
    margin: -10px 0 22px;
    color: var(--muted);
    line-height: 1.55;
}

.admin-secondary-link,
.admin-title-row .button-link {
    border-radius: 999px;
}

.admin-secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(0, 168, 107, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #007a51;
    font-weight: 900;
}

.admin-login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-table input {
    border-color: rgba(0, 168, 107, 0.18);
    background: #fbfffd;
}

.admin-login-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-table input:focus {
    outline: 3px solid rgba(0, 208, 132, 0.18);
    border-color: #00a86b;
    background: #ffffff;
}

.admin-login-form button,
.admin-form button,
.admin-actions button,
.admin-title-row button,
.admin-card button {
    border-radius: 999px;
    background: linear-gradient(135deg, #00a86b, #00d084 48%, #2a6df6);
    color: #061923;
    box-shadow: 0 12px 24px rgba(0, 168, 107, 0.18);
}

.admin-login-form button:hover,
.admin-form button:hover,
.admin-actions button:hover,
.admin-title-row button:hover,
.admin-card button:hover {
    background: linear-gradient(135deg, var(--lime), var(--mint), var(--cyan));
}

.admin-table {
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background:
        linear-gradient(135deg, rgba(216, 255, 79, 0.28), rgba(0, 208, 132, 0.12)),
        #eefaf4;
    color: #07553d;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.admin-table tbody tr:hover td {
    background: rgba(0, 208, 132, 0.045);
}

.admin-inline-actions a {
    color: #007a51;
    font-weight: 900;
}

.admin-inline-actions button,
.admin-danger-button,
.admin-text-danger {
    border-radius: 999px;
    color: #b42318;
}

.admin-actions .admin-danger-button,
.admin-danger-button {
    border: 1px solid rgba(255, 93, 122, 0.3);
    background: #fff1f4;
    color: #b42318;
    box-shadow: none;
}

.admin-actions .admin-danger-button:hover,
.admin-danger-button:hover {
    background: #ffe0e6;
    color: #8e182a;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 168, 107, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(6, 25, 35, 0.08);
}

.admin-pagination span,
.admin-pagination strong {
    color: var(--muted);
    font-weight: 900;
}

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

.admin-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eefaf4;
    color: #007a51;
    font-weight: 900;
}

.admin-pagination a:hover {
    background: var(--lime);
    color: #061923;
}

.admin-message-cell {
    min-width: 260px;
    max-width: 380px;
}

.admin-message-cell summary {
    color: #007a51;
    font-weight: 900;
    cursor: pointer;
}

.admin-message-cell p {
    margin: 10px 0 0;
    color: var(--muted);
    white-space: normal;
}

.admin-user-agent {
    max-width: 260px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-cache-key,
.admin-cache-file {
    max-width: 260px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-system-card {
    margin-bottom: 18px;
}

.admin-system-card h2 {
    margin-top: 0;
}

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

.admin-metric {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 184px;
    padding: 18px;
    border: 1px solid rgba(0, 168, 107, 0.14);
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(196, 255, 57, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 255, 246, 0.76));
    box-shadow: 0 16px 34px rgba(6, 25, 35, 0.1);
}

.admin-pie {
    --metric-value: 0;
    --metric-color: #00d084;
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background:
        conic-gradient(var(--metric-color) calc(var(--metric-value) * 1%), rgba(6, 25, 35, 0.12) 0),
        #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 14px 30px rgba(6, 25, 35, 0.14);
}

.admin-pie::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: inherit;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(6, 25, 35, 0.06);
}

.admin-pie.is-unavailable {
    background:
        repeating-conic-gradient(from -20deg, rgba(91, 102, 115, 0.18) 0 10deg, rgba(91, 102, 115, 0.08) 10deg 20deg),
        #ffffff;
}

.admin-pie-center {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    place-items: center;
    text-align: center;
}

.admin-pie-center strong {
    color: #061923;
    font-size: 1.12rem;
    line-height: 1;
}

.admin-pie-center span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-metric-copy {
    min-width: 0;
}

.admin-metric-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.admin-metric-head span,
.admin-metric-head strong {
    font-weight: 900;
}

.admin-metric-head strong {
    color: #007a51;
}

.admin-metric small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.admin-pie-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.admin-pie-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-pie-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(6, 25, 35, 0.12);
}

.admin-pie-legend .admin-legend-used {
    background: var(--metric-color, #00d084);
}

body:not(.admin-body) .hero {
    padding-bottom: 82px;
}

body:not(.admin-body) .home-spectrum {
    margin-bottom: 0;
}

body:not(.admin-body) .topic-tile {
    min-height: 126px;
    padding-bottom: 24px;
}

body:not(.admin-body) .home-card-grid .tip-card-featured .tip-card-media {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(0, 208, 132, 0.11), rgba(42, 109, 246, 0.13)),
        #f6fbff;
}

body:not(.admin-body) .home-card-grid .tip-card-featured .tip-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
}

body:not(.admin-body) .home-card-grid .tip-card-featured:hover .tip-card-media img {
    transform: none;
}

.tips-more-row,
.tips-archive-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    text-align: center;
}

.tips-more-link,
.tips-next-link {
    min-width: min(100%, 230px);
}

.tips-archive-hero {
    padding-bottom: 18px;
}

.tips-archive {
    padding-top: 18px;
}

.tips-infinite-status {
    min-height: 1.4em;
    margin: 0;
    font-weight: 800;
}

.infinite-sentinel {
    width: 100%;
    height: 1px;
}

@media (max-width: 900px) {
    .admin-header {
        position: relative;
        display: grid;
    }

    .admin-title-row,
    .admin-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

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

    body:not(.admin-body) .hero {
        padding-bottom: 64px;
    }
}

/* Production responsive pass for admin and public layouts. */
.admin-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
}

.admin-brand {
    min-width: 0;
}

.admin-nav {
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.admin-logout-form {
    margin: 0;
    white-space: nowrap;
}

.admin-mobile-menu {
    display: none;
}

.admin-main {
    max-width: calc(100% - 32px);
}

.admin-title-row {
    display: flex;
    flex-wrap: wrap;
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-form,
.admin-card {
    min-width: 0;
}

.admin-form fieldset {
    min-width: 0;
    border: 1px solid rgba(0, 168, 107, 0.16);
    border-radius: 14px;
    padding: 14px;
}

.admin-form legend {
    padding: 0 8px;
    color: #007a51;
    font-weight: 900;
}

.admin-form textarea {
    resize: vertical;
}

.admin-actions {
    flex-wrap: wrap;
}

.admin-actions form {
    margin: 0;
}

.admin-inline-actions {
    min-width: 0;
}

.admin-table {
    table-layout: auto;
}

.admin-table th,
.admin-table td {
    overflow-wrap: anywhere;
}

.admin-table input[type="checkbox"] {
    width: auto;
}

.admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-metric {
    min-width: 0;
}

.admin-login-shell {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
    place-items: center;
}

.admin-login-form {
    min-width: 0;
}

@media (max-width: 960px) {
    .admin-header {
        position: sticky;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .admin-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-nav,
    .admin-logout-form {
        display: none;
    }

    .admin-mobile-menu {
        display: block;
        justify-self: end;
        min-width: 0;
    }

    .admin-mobile-menu summary {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 9px 14px;
        border: 1px solid rgba(216, 255, 79, 0.34);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-weight: 900;
        cursor: pointer;
        list-style: none;
    }

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

    .admin-mobile-menu summary::before {
        content: "";
        width: 18px;
        height: 12px;
        border-block: 2px solid currentColor;
        background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
    }

    .admin-mobile-menu[open] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .admin-mobile-menu[open] summary {
        margin-left: auto;
    }

    .admin-mobile-menu nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 18px;
        background: rgba(6, 25, 35, 0.62);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .admin-mobile-menu nav a,
    .admin-mobile-menu form button {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        border: 1px solid rgba(216, 255, 79, 0.14);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-weight: 900;
    }

    .admin-mobile-menu form {
        margin: 8px 12px 0;
    }

    .admin-mobile-menu form button {
        width: 100%;
        cursor: pointer;
    }
}

@media (max-width: 820px) {
    .admin-main {
        width: min(100% - 24px, 1240px);
        max-width: calc(100% - 24px);
        margin-block: 18px 40px;
    }

    .admin-page h1 {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .admin-card,
    .admin-form,
    .admin-flash,
    .admin-error {
        border-radius: 16px;
        padding: 14px;
    }

    .admin-grid,
    .admin-check-grid,
    .admin-stats,
    .admin-metrics-grid {
        grid-template-columns: 1fr;
    }

    .admin-title-row,
    .admin-pagination,
    .admin-actions,
    .admin-inline-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-title-row .button-link,
    .admin-secondary-link,
    .admin-actions button,
    .admin-actions form,
    .admin-inline-actions a,
    .admin-inline-actions form,
    .admin-inline-actions button {
        width: 100%;
    }

    .admin-inline-actions a,
    .admin-inline-actions button {
        justify-content: center;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        border: 1px solid rgba(0, 168, 107, 0.15);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
    }

    .admin-inline-actions .admin-text-danger {
        border-color: rgba(255, 93, 122, 0.28);
        background: #fff1f4;
    }

    .admin-metric {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .admin-metric-head,
    .admin-pie-legend {
        justify-content: center;
    }

    .admin-table {
        display: block;
        width: 100%;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-table tr {
        display: grid;
        gap: 0;
        padding: 10px;
        border: 1px solid rgba(0, 168, 107, 0.16);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 14px 30px rgba(6, 25, 35, 0.09);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 10px 4px;
        border: 0;
        border-bottom: 1px solid rgba(6, 25, 35, 0.08);
    }

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

    .admin-table td::before {
        content: attr(data-label);
        color: #007a51;
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-table td[colspan] {
        grid-template-columns: 1fr;
    }

    .admin-table td[colspan]::before {
        display: none;
    }

    .admin-message-cell,
    .admin-user-agent,
    .admin-cache-key,
    .admin-cache-file {
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .admin-mobile-menu nav {
        grid-template-columns: 1fr;
    }

    .admin-login-shell {
        width: min(100% - 24px, 1120px);
        padding: 32px 0;
    }

    .admin-login {
        padding: 26px 20px;
    }

    .admin-login-head {
        align-items: flex-start;
    }

    .admin-login h1 {
        font-size: 1.65rem;
    }

    .admin-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .admin-pagination div {
        width: 100%;
    }

    .admin-pagination a {
        justify-content: center;
        flex: 1 1 auto;
    }
}

@media (max-width: 760px) {
    body:not(.admin-body) .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 0;
    }

    body:not(.admin-body) .search-form {
        grid-column: 1 / -1;
        order: 3;
    }

    body:not(.admin-body) .locale-nav {
        justify-self: end;
        max-width: 100%;
        overflow-x: auto;
    }

    body:not(.admin-body) .main-nav .container {
        width: min(100% - 20px, 1120px);
    }

    body:not(.admin-body) .nav-scroll {
        flex-wrap: wrap;
        overflow: visible;
        padding: 8px 0;
    }

    body:not(.admin-body) .nav-scroll a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    body:not(.admin-body) .hero {
        padding-top: 42px;
    }

    body:not(.admin-body) .hero-copy {
        position: relative;
        z-index: 1;
    }

    body:not(.admin-body) .hero-copy::before {
        content: "";
        position: absolute;
        inset: -18px -14px;
        z-index: -1;
        border-radius: 24px;
        background:
            radial-gradient(circle at 18% 24%, rgba(6, 25, 35, 0.72), transparent 58%),
            linear-gradient(135deg, rgba(6, 25, 35, 0.48), rgba(7, 59, 69, 0.2));
        filter: blur(10px);
        opacity: 0.86;
        pointer-events: none;
    }

    body:not(.admin-body) .hero .eyebrow,
    body:not(.admin-body) .hero h1,
    body:not(.admin-body) .hero .lead {
        text-shadow:
            0 2px 8px rgba(0, 0, 0, 0.62),
            0 14px 34px rgba(0, 0, 0, 0.42);
    }

    body:not(.admin-body) .hero h1 {
        width: 100%;
        max-width: none;
        font-size: 2.2rem;
    }

    body:not(.admin-body) .hero .lead {
        width: 100%;
        max-width: none;
    }

    body:not(.admin-body) .hero-actions {
        align-items: stretch;
    }

    body:not(.admin-body) .hero-pill {
        justify-content: center;
    }

    body:not(.admin-body) .home-spectrum {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body:not(.admin-body) .topic-tile {
        min-height: auto;
    }

    body:not(.admin-body) .home-card-grid .tip-card-featured {
        grid-column: auto;
        grid-template-columns: 1fr;
        min-width: 0;
    }

    body:not(.admin-body) .home-card-grid .tip-card-featured .tip-card-media {
        width: 100%;
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    body:not(.admin-body) .tip-card,
    body:not(.admin-body) .tip-card-media {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    body:not(.admin-body) .header-inner {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .locale-nav {
        justify-self: stretch;
        justify-content: flex-start;
    }

    body:not(.admin-body) .locale-nav a {
        flex: 1 1 0;
        min-width: 0;
    }

    body:not(.admin-body) .hero h1 {
        font-size: 1.92rem;
    }
}

/* Final control polish: simpler buttons and visible dashboard charts. */
.search-form button,
.button-link,
.contact-form button,
.admin-login-form button,
.admin-form button:not(.admin-danger-button):not(.admin-text-danger),
.admin-actions button:not(.admin-danger-button):not(.admin-text-danger),
.admin-title-row button:not(.admin-danger-button):not(.admin-text-danger),
.admin-card button:not(.admin-danger-button):not(.admin-text-danger) {
    border: 1px solid rgba(6, 25, 35, 0.12);
    border-radius: 12px;
    background: #0b6f67;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(6, 25, 35, 0.12);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.search-form button:hover,
.button-link:hover,
.contact-form button:hover,
.admin-login-form button:hover,
.admin-form button:not(.admin-danger-button):not(.admin-text-danger):hover,
.admin-actions button:not(.admin-danger-button):not(.admin-text-danger):hover,
.admin-title-row button:not(.admin-danger-button):not(.admin-text-danger):hover,
.admin-card button:not(.admin-danger-button):not(.admin-text-danger):hover {
    border-color: rgba(6, 25, 35, 0.18);
    background: #075a55;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(6, 25, 35, 0.15);
    transform: translateY(-1px);
}

.button-link {
    padding-inline: 16px;
}

.admin-title-row .button-link,
.admin-secondary-link,
.admin-pagination a,
.admin-inline-actions a,
.admin-inline-actions button {
    border-radius: 12px;
}

.admin-pie {
    overflow: hidden;
}

.admin-pie::after {
    z-index: 0;
}

.admin-pie-center {
    z-index: 1;
    min-width: 0;
}

.admin-pie-center strong {
    max-width: 86px;
    overflow-wrap: anywhere;
}

/* External tip reader: keep the original page usable on small screens. */
@media (max-width: 760px) {
    body.external-tip-page {
        min-height: 100svh !important;
        height: 100svh !important;
    }

    body.external-tip-page .site-header::before {
        height: 3px;
    }

    body.external-tip-page .header-inner {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 0;
    }

    body.external-tip-page .brand {
        min-width: 0;
        gap: 8px;
    }

    body.external-tip-page .brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    body.external-tip-page .brand-text {
        min-width: 0;
        overflow: hidden;
        font-size: 0.92rem;
        text-overflow: ellipsis;
    }

    body.external-tip-page .search-form,
    body.external-tip-page .locale-nav,
    body.external-tip-page .main-nav {
        display: none !important;
    }

    body.external-tip-page main,
    body.external-tip-page .external-source-reader,
    body.external-tip-page .iframe-loader {
        flex: 1 1 0 !important;
        min-height: 0 !important;
    }

    body.external-tip-page .external-source-title {
        min-height: 38px;
        gap: 8px;
        padding: 6px 10px;
    }

    body.external-tip-page .external-source-title h1 {
        font-size: 0.82rem;
        line-height: 1.15;
    }

    body.external-tip-page .external-source-open {
        min-height: 28px;
        padding: 5px 7px;
        border-radius: 10px;
        font-size: 0.72rem;
    }

    body.external-tip-page .external-source-back {
        left: 12px;
        bottom: 12px;
        min-height: 38px;
        padding: 8px 12px;
        gap: 7px;
        font-size: 0.88rem;
    }

    body.external-tip-page .external-source-back-icon {
        width: 22px;
        height: 22px;
        padding: 3.5px;
    }
}

.footer-grid .footer-credit a,
.footer-grid .footer-credit a:hover {
    display: inline;
    align-items: initial;
    gap: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    text-decoration: none;
}

.footer-grid .footer-credit a:hover {
    color: #d9ff55;
}
