﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

:root {
    --cf-ink: #18201c;
    --cf-muted: #66706a;
    --cf-line: #d8ddd8;
    --cf-paper: #fbfaf6;
    --cf-panel: #ffffff;
    --cf-moss: #285a43;
    --cf-leaf: #4f7f4c;
    --cf-gold: #c89448;
    --cf-clay: #b7624c;
    --cf-deep: #101815;
}

.blog-shell {
    background:
        linear-gradient(90deg, rgba(24, 32, 28, .045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 32, 28, .035) 1px, transparent 1px),
        radial-gradient(circle at 20% 0%, rgba(200, 148, 72, .17), transparent 30%),
        radial-gradient(circle at 100% 12%, rgba(79, 127, 76, .18), transparent 34%),
        var(--cf-paper);
    background-size: 56px 56px, 56px 56px, auto, auto, auto;
    color: var(--cf-ink);
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

.blog-header {
    backdrop-filter: blur(18px);
    background: rgba(251, 250, 246, .84);
    border-bottom: 1px solid rgba(40, 90, 67, .14);
    position: sticky;
    top: 0;
    z-index: 15;
}

.blog-header__inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 76px;
}

.blog-brand {
    align-items: center;
    color: var(--cf-ink);
    display: inline-flex;
    font-size: 19px;
    font-weight: 900;
    gap: 11px;
    letter-spacing: 0;
    text-decoration: none;
}

.blog-brand__mark {
    align-items: center;
    background: var(--cf-deep);
    border-radius: 8px;
    color: #f7f1df;
    display: inline-flex;
    font-size: 13px;
    height: 36px;
    justify-content: center;
    letter-spacing: .04em;
    width: 36px;
}

.blog-nav {
    display: flex;
    gap: 8px;
}

.blog-nav a {
    border-radius: 999px;
    color: #405047;
    font-size: 14px;
    font-weight: 800;
    padding: 9px 13px;
}

.blog-nav a:hover {
    background: rgba(40, 90, 67, .09);
    color: var(--cf-moss);
}

.blog-category-nav {
    border-top: 1px solid rgba(40, 90, 67, .10);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    padding-top: 12px;
}

.blog-category-nav a {
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(40, 90, 67, .12);
    border-radius: 999px;
    color: #405047;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 12px;
    text-decoration: none;
}

.blog-category-nav a:hover {
    background: var(--cf-moss);
    border-color: var(--cf-moss);
    color: #ffffff;
}

.blog-nav a,
.post-card a,
.post-tags a,
.blog-breadcrumb a {
    text-decoration: none;
}

.blog-container {
    padding-bottom: 72px;
    padding-top: 34px;
}

.blog-hero {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    margin-bottom: 34px;
    min-height: 420px;
}

.blog-hero--compact {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    min-height: 390px;
}

.blog-hero__copy {
    background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(246, 241, 229, .82));
    border: 1px solid rgba(40, 90, 67, .16);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(23, 32, 27, .10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
    position: relative;
}

.blog-hero__copy:before {
    background: var(--cf-gold);
    content: "";
    height: 5px;
    left: 34px;
    position: absolute;
    top: 0;
    width: 132px;
}

.blog-kicker {
    color: var(--cf-clay);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.blog-hero h1 {
    color: var(--cf-ink);
    font-size: clamp(32px, 3.7vw, 52px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 22px;
    max-width: 760px;
}

.blog-hero__copy > p:not(.blog-kicker) {
    color: var(--cf-muted);
    font-size: 18px;
    line-height: 1.78;
    margin-bottom: 24px;
    max-width: 680px;
}

.blog-hero-search {
    background: #ffffff;
    border: 1px solid rgba(40, 90, 67, .18);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(24, 32, 28, .08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    max-width: 560px;
    overflow: hidden;
}

.blog-hero-search input {
    border: 0;
    font-size: 16px;
    max-width: none;
    min-height: 56px;
    padding: 0 18px;
    width: 100%;
}

.blog-hero-search button {
    background: var(--cf-moss);
    border: 0;
    color: #ffffff;
    font-weight: 900;
}

.reader-panel {
    background: #101815;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: 0 30px 86px rgba(23, 32, 27, .22);
    color: #ecf4ee;
    overflow: hidden;
    padding: 22px;
}

.reader-panel__head {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.reader-panel__head span {
    color: #d9b56e;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.reader-panel__head strong {
    display: block;
    font-size: 25px;
    letter-spacing: 0;
    line-height: 1.25;
}

.reader-panel__items {
    display: grid;
    gap: 12px;
}

.reader-panel__items a {
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #ecf4ee;
    display: grid;
    gap: 4px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.reader-panel__items div {
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #ecf4ee;
    display: grid;
    gap: 4px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 15px;
}

.reader-panel__items a:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateX(3px);
}

.reader-panel__items span {
    color: #d9b56e;
    font-weight: 900;
    grid-row: span 2;
}

.reader-panel__items strong {
    font-size: 16px;
}

.home-category-section {
    margin-bottom: 26px;
}

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

.home-category-card {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(40, 90, 67, .15);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(24, 32, 28, .07);
    color: var(--cf-ink);
    display: grid;
    min-height: 156px;
    padding: 20px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-category-card:hover {
    border-color: rgba(40, 90, 67, .36);
    box-shadow: 0 24px 58px rgba(24, 32, 28, .11);
    transform: translateY(-2px);
}

.home-category-card span {
    color: var(--cf-clay);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-category-card strong {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    margin-top: 14px;
}

.home-category-card em {
    color: var(--cf-muted);
    font-style: normal;
    line-height: 1.65;
    margin-top: 8px;
    word-break: keep-all;
}

.reader-panel__items em {
    color: #aab9ae;
    font-style: normal;
}

.blog-section-head {
    align-items: end;
    border-bottom: 1px solid var(--cf-line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
}

.ad-slot {
    align-items: center;
    background:
        repeating-linear-gradient(135deg, rgba(40, 90, 67, .08) 0, rgba(40, 90, 67, .08) 8px, rgba(255, 255, 255, .56) 8px, rgba(255, 255, 255, .56) 16px),
        rgba(255, 255, 255, .78);
    border: 1px dashed rgba(40, 90, 67, .28);
    border-radius: 8px;
    color: #59665f;
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    min-height: 96px;
    padding: 18px 22px;
}

.ad-slot span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ad-slot strong {
    color: var(--cf-moss);
    font-size: 16px;
    letter-spacing: 0;
}

.ad-slot--article-top,
.ad-slot--article-bottom {
    margin: 30px 0;
    min-height: 112px;
}

.blog-section-head h2 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.blog-section-head a {
    color: var(--cf-moss);
    font-weight: 900;
    text-decoration: none;
}

.blog-page-head {
    margin-bottom: 28px;
}

.blog-page-head h1,
.blog-post__header h1 {
    color: #111827;
    font-weight: 800;
    letter-spacing: 0;
}

.blog-page-head p,
.post-summary {
    color: #526071;
    font-size: 18px;
    line-height: 1.7;
}

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

.post-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(40, 90, 67, .14);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(24, 32, 28, .08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post-card:hover {
    border-color: rgba(40, 90, 67, .32);
    box-shadow: 0 28px 68px rgba(24, 32, 28, .13);
    transform: translateY(-3px);
}

.post-card__image {
    aspect-ratio: 16 / 9;
    background: #eef3ed;
    display: block;
    overflow: hidden;
    position: relative;
}

.post-card__image:before,
.post-hero:before {
    display: none;
}

.post-card__image:after,
.post-hero:after {
    display: none;
}

.post-card__image--fallback {
    align-items: end;
    color: rgba(255, 255, 255, .9);
    display: flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    padding: 18px;
    text-transform: uppercase;
}

.post-card__image--fallback:before {
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    bottom: 18px;
    content: "";
    left: 18px;
    position: absolute;
    right: 18px;
    top: 18px;
}

.post-card__image img,
.post-hero img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    width: 100%;
    z-index: 1;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.post-card__category {
    color: var(--cf-moss);
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.post-card h2 {
    font-size: 23px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.post-card h2 a {
    color: var(--cf-ink);
}

.post-card p {
    color: var(--cf-muted);
    flex: 1;
    line-height: 1.7;
    margin-bottom: 12px;
}

.post-card time,
.post-meta,
.blog-breadcrumb {
    color: #7a837e;
    font-size: 14px;
}

.blog-post {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(40, 90, 67, .16);
    border-radius: 8px;
    box-shadow: 0 24px 68px rgba(24, 32, 28, .10);
    margin: 0 auto;
    max-width: 940px;
    padding: clamp(28px, 5vw, 64px);
}

.blog-breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.post-meta {
    display: flex;
    gap: 12px;
}

.post-hero {
    aspect-ratio: 16 / 9;
    background: #eef3ed;
    border-radius: 8px;
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}

.post-content {
    font-size: 18px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.post-content p {
    color: #343f38;
    margin-bottom: 20px;
}

.post-content a {
    color: var(--cf-moss);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-content img,
.post-content video,
.post-content iframe {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.post-content table {
    border-collapse: collapse;
    display: block;
    margin: 24px 0;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.post-content th,
.post-content td {
    border: 1px solid var(--cf-line);
    padding: 10px 12px;
    vertical-align: top;
}

.post-content blockquote {
    background: #f5efe0;
    border-left: 5px solid var(--cf-gold);
    border-radius: 8px;
    color: #3f4a43;
    margin: 26px 0;
    padding: 18px 20px;
}

.post-content pre {
    background: #101815;
    border-radius: 8px;
    color: #edf7ef;
    overflow-x: auto;
    padding: 18px;
}

.post-content h2 {
    border-top: 1px solid var(--cf-line);
    color: var(--cf-ink);
    font-size: 30px;
    font-weight: 900;
    margin-top: 40px;
    padding-top: 30px;
}

.post-content h3 {
    font-size: 22px;
    margin-top: 28px;
}

.post-tags {
    border-top: 1px solid #dfe4ea;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 20px;
}

.post-tags a {
    background: #eef6f0;
    border-radius: 999px;
    color: var(--cf-moss);
    padding: 6px 12px;
}

.blog-empty {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(245, 239, 224, .9));
    border: 1px solid rgba(40, 90, 67, .17);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(24, 32, 28, .09);
    display: flex;
    justify-content: space-between;
    padding: 34px;
}

.blog-empty h2 {
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 8px;
}

.blog-empty p:not(.blog-kicker) {
    color: var(--cf-muted);
    margin: 0;
}

.blog-empty a {
    background: var(--cf-moss);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 900;
    padding: 12px 16px;
    text-decoration: none;
}

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

.blog-search {
    display: flex;
    gap: 8px;
}

.blog-search input {
    max-width: none;
    min-height: 42px;
    width: min(420px, 100%);
}

.blog-search button {
    min-height: 42px;
}

.blog-footer {
    border-top: 1px solid #dfe4ea;
    color: #687386;
    padding: 24px 0;
}

.blog-footer p {
    margin: 0;
}

.footer-admin-link {
    color: rgba(104, 115, 134, .42);
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-decoration: none;
}

.footer-admin-link:hover,
.footer-admin-link:focus {
    color: #2f6049;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-shell {
    background: #eef2f1;
    color: #1f2933;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: #101815;
    color: #ffffff;
    padding: 22px 18px;
    position: relative;
}

.admin-brand {
    align-items: center;
    color: #ffffff;
    display: grid;
    gap: 2px 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    margin-bottom: 20px;
    text-decoration: none;
}

.admin-brand span {
    align-items: center;
    background: #d4b46f;
    border-radius: 8px;
    color: #101815;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    grid-row: span 2;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.admin-brand strong {
    font-size: 18px;
    line-height: 1.1;
}

.admin-brand em {
    color: #9aa7a0;
    font-size: 12px;
    font-style: normal;
}

.admin-menu {
    display: grid;
    gap: 7px;
}

.admin-menu a {
    border-radius: 6px;
    color: #dbe6e1;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
    text-decoration: none;
}

.admin-menu a span {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 6px;
    color: #d4b46f;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    grid-row: span 2;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.admin-menu a strong {
    font-size: 14px;
    line-height: 1.2;
}

.admin-menu a em {
    color: #90a09a;
    font-size: 12px;
    font-style: normal;
    line-height: 1.3;
}

.admin-menu a:hover,
.admin-menu a.is-active {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.admin-menu a:hover em,
.admin-menu a.is-active em {
    color: #c7d6cf;
}

.admin-menu a.is-active span,
.admin-menu__primary span {
    background: #2f6049;
    border-color: #2f6049;
    color: #ffffff;
}

.admin-menu__primary {
    border: 1px solid rgba(212, 180, 111, .38);
    margin-top: 8px;
}

.admin-sidebar-tip {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    color: #dbe6e1;
    display: grid;
    gap: 5px;
    line-height: 1.55;
    margin-top: 18px;
    padding: 13px;
}

.admin-sidebar-tip strong {
    color: #d4b46f;
    font-size: 13px;
}

.admin-sidebar-tip span {
    color: #aebdb6;
    font-size: 12px;
}

.admin-logout {
    bottom: 20px;
    left: 18px;
    position: fixed;
    right: calc(100% - 268px);
}

.admin-logout button {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    color: #d9e2ec;
    font-weight: 800;
    min-height: 40px;
    width: 100%;
}

.admin-login-shell {
    background:
        radial-gradient(circle at 12% 15%, rgba(200, 148, 72, .20), transparent 28%),
        radial-gradient(circle at 88% 5%, rgba(79, 127, 76, .22), transparent 30%),
        #101815;
    color: #f8faf9;
    min-height: 100vh;
}

.admin-login {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 460px) minmax(360px, 520px);
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
}

.admin-login__panel,
.admin-login__side {
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.admin-login__panel {
    background: #fbfaf6;
    color: var(--cf-ink);
    padding: 34px;
}

.admin-login__panel h1 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.admin-login__panel p:not(.blog-kicker) {
    color: var(--cf-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.admin-login-form label {
    display: grid;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-login-form input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    max-width: none;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

.admin-login__side {
    background: #101815;
    padding: 18px;
}

.admin-main {
    padding: 32px clamp(18px, 3vw, 42px);
}

.admin-page-head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-page-head h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.admin-page-head p,
.admin-muted {
    color: #697586;
}

.admin-panel {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 20px;
}

.admin-guide-panel {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-section-title {
    border-bottom: 1px solid #e5eaf0;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.admin-section-title span {
    color: #a05b3f;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.admin-section-title h2 {
    color: #15211a;
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 5px;
}

.admin-section-title p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.admin-guide-panel strong {
    color: #0f766e;
    white-space: nowrap;
}

.admin-guide-panel span {
    color: #475569;
    line-height: 1.6;
}

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

.admin-quickstart article {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    min-height: 174px;
    padding: 18px;
}

.admin-quickstart article > span {
    color: #a05b3f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-quickstart h2 {
    color: #15211a;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
    margin: 0;
}

.admin-quickstart p {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.admin-quickstart a {
    align-self: end;
    color: #2f6049;
    font-weight: 900;
    text-decoration: none;
}

.admin-quickstart a:hover,
.admin-quickstart a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-sample-panel {
    background: #fffbeb;
    border: 1px solid #f3d28b;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
}

.admin-sample-head {
    display: grid;
    gap: 4px;
}

.admin-sample-head span {
    color: #a05b3f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-sample-head strong {
    color: #15211a;
    font-size: 18px;
}

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

.admin-sample-grid div {
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(160, 91, 63, .18);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 12px;
}

.admin-sample-grid b {
    color: #7c3d22;
    font-size: 12px;
}

.admin-sample-grid code,
.admin-sample-code code {
    color: #334155;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.admin-sample-code {
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(160, 91, 63, .18);
    border-radius: 8px;
    padding: 12px;
}

.admin-sample-code summary {
    color: #7c3d22;
    cursor: pointer;
    font-weight: 900;
}

.admin-sample-code pre {
    margin: 12px 0 0;
    overflow-x: auto;
    white-space: pre-wrap;
}

.admin-copy-template {
    background: #101815;
    border-radius: 8px;
    color: #dbe6e1;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    overflow-x: auto;
    padding: 14px;
    white-space: pre-wrap;
}

.admin-help-card {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    display: grid;
    gap: 5px;
    line-height: 1.55;
    margin-bottom: 14px;
    padding: 13px;
}

.admin-help-card strong {
    font-size: 14px;
}

.admin-help-card span {
    color: #3f6212;
    font-size: 13px;
}

.admin-help-card a {
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

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

.admin-stat {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 18px;
}

.admin-stat span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-stat strong {
    color: #111827;
    display: block;
    font-size: 28px;
    line-height: 1;
}

.admin-stat em {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    margin-top: 8px;
}

.admin-empty-state {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: grid;
    gap: 6px;
    padding: 18px;
}

.admin-empty-state strong {
    color: #334155;
}

.admin-workflow {
    background: #111827;
    border-radius: 8px;
    color: #cbd5e1;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
    overflow: hidden;
}

.admin-workflow div {
    background: #1f2937;
    display: grid;
    font-weight: 800;
    gap: 3px 10px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 14px 16px;
}

.admin-workflow .is-current {
    background: #0f766e;
    color: #ffffff;
}

.admin-workflow span {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border-radius: 50%;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    grid-row: span 2;
    width: 26px;
}

.admin-workflow strong {
    font-size: 14px;
}

.admin-workflow em {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.admin-alert,
.admin-validation {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.admin-button,
.admin-filters button,
.admin-search button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1f2933;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    text-decoration: none;
}

.admin-button--primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.admin-button--danger {
    background: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}

.admin-actions,
.admin-row-actions,
.admin-danger-zone,
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-filters input,
.admin-filters select,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    max-width: none;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

.admin-table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-top: 1px solid #e5eaf0;
    padding: 14px 10px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table strong,
.admin-table span {
    display: block;
}

.admin-empty {
    color: #697586;
    text-align: center;
}

.admin-badge {
    background: #e2e8f0;
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
}

.admin-badge--2 {
    background: #dcfce7;
    color: #166534;
}

.admin-badge--3,
.admin-badge--4 {
    background: #fee2e2;
    color: #991b1b;
}

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

.admin-editor label {
    color: #334155;
    display: grid;
    font-weight: 700;
    gap: 7px;
    margin-bottom: 14px;
}

.admin-editor label small,
.admin-category-form label small,
.admin-check small {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.admin-example-line {
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 6px;
    color: #475569;
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
    padding: 7px 9px;
}

.admin-editor-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-editor-tools button {
    background: #eef6f2;
    border: 1px solid #b8d3c5;
    border-radius: 6px;
    color: #24513d;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    min-height: 32px;
    padding: 6px 10px;
}

.admin-editor-tools button:hover,
.admin-editor-tools button:focus {
    background: #2f6049;
    border-color: #2f6049;
    color: #ffffff;
}

.admin-live-tools {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
}

.admin-live-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-live-checks span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.admin-live-checks .is-ok {
    background: #dcfce7;
    color: #166534;
}

.admin-live-checks .is-warn {
    background: #fff7ed;
    color: #9a3412;
}

.admin-live-preview {
    background: #fbfaf6;
    border: 1px solid #e5e0d5;
    border-radius: 8px;
    color: #1f2933;
    line-height: 1.8;
    max-height: 520px;
    overflow: auto;
    padding: 18px;
}

.admin-live-preview h2 {
    color: #15211a;
    font-size: 22px;
    font-weight: 900;
    margin: 24px 0 10px;
}

.admin-live-preview p {
    margin: 0 0 14px;
}

.admin-live-preview img {
    border-radius: 8px;
    max-width: 100%;
}

.admin-check {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 12px;
}

.admin-check input {
    margin-top: 3px;
}

.admin-check span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-check strong {
    color: #334155;
    font-size: 14px;
    line-height: 1.35;
}

.admin-editor-main textarea {
    font-family: Consolas, "Courier New", monospace;
}

.admin-code-field {
    min-height: 430px;
}

.admin-seo-fields,
.admin-danger-zone {
    align-items: center;
    margin-top: 18px;
    padding: 18px;
}

.admin-danger-copy {
    display: grid;
    flex: 1 1 360px;
    gap: 4px;
    line-height: 1.55;
}

.admin-danger-copy strong {
    color: #7f1d1d;
}

.admin-danger-copy span {
    color: #64748b;
    font-size: 13px;
}

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

.admin-field-full {
    grid-column: span 2;
}

.admin-form-actions {
    margin-top: 18px;
}

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

.admin-score-panel {
    align-items: center;
    background: #111827;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    gap: 22px;
    margin-bottom: 18px;
    padding: 24px;
}

.admin-score strong {
    font-size: 48px;
    line-height: 1;
}

.admin-score-copy {
    display: grid;
    flex: 1;
    gap: 4px;
}

.admin-score-copy strong {
    font-size: 22px;
}

.admin-score-copy span {
    color: #cbd5e1;
    line-height: 1.6;
}

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

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

.traffic-grid .admin-panel:first-child {
    grid-column: span 2;
}

.traffic-bars {
    display: grid;
    gap: 10px;
}

.traffic-bar {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 54px minmax(0, 1fr) 42px;
}

.traffic-bar span,
.traffic-bar em {
    color: #64748b;
    font-style: normal;
    font-weight: 800;
}

.traffic-bar strong {
    background: #0f766e;
    border-radius: 999px;
    display: block;
    height: 12px;
    max-width: 100%;
    min-width: 3px;
}

.preview-ribbon {
    background: #111827;
    color: #ffffff;
    font-weight: 800;
    left: 50%;
    padding: 8px 16px;
    position: fixed;
    top: 0;
    transform: translateX(-50%);
    z-index: 20;
}

@media (max-width: 720px) {
    body {
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-header__inner,
    .post-card {
        display: block;
    }

    .blog-header__inner {
        min-height: auto;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .blog-brand {
        justify-content: center;
        margin-bottom: 10px;
    }

    .blog-hero {
        display: block;
        min-height: 0;
        margin-bottom: 30px;
    }

    .blog-hero__copy {
        margin-bottom: 18px;
        padding: 28px;
    }

    .blog-hero h1 {
        font-size: 31px;
        line-height: 1.18;
    }

    .blog-hero__copy > p:not(.blog-kicker) {
        font-size: 16px;
        line-height: 1.75;
    }

    .blog-hero-search,
    .home-category-grid,
    .post-list,
    .blog-empty {
        display: block;
    }

    .home-category-card {
        margin-bottom: 12px;
        min-height: 0;
    }

    .blog-hero-search button {
        min-height: 48px;
        width: 100%;
    }

    .blog-nav {
        justify-content: center;
        margin-top: 10px;
    }

    .blog-section-head {
        align-items: flex-start;
        display: block;
    }

    .blog-empty {
        padding: 24px;
    }

    .ad-slot {
        align-items: flex-start;
        display: grid;
        gap: 6px;
        min-height: 82px;
        padding: 15px 16px;
    }

    .blog-empty a {
        display: inline-block;
        margin-top: 18px;
    }

    .blog-post {
        border-radius: 8px;
        box-shadow: 0 14px 38px rgba(24, 32, 28, .08);
        padding: 22px 18px;
    }

    .blog-post__header h1 {
        font-size: 30px;
        line-height: 1.22;
    }

    .post-summary {
        font-size: 16px;
        line-height: 1.75;
    }

    .post-meta {
        display: block;
    }

    .post-meta span {
        display: inline-block;
        margin-left: 0;
        margin-top: 4px;
    }

    .post-hero {
        border-radius: 8px;
        margin: 22px -2px;
    }

    .post-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .post-content h2 {
        font-size: 24px;
        line-height: 1.35;
        margin-top: 34px;
        padding-top: 24px;
    }

    .post-content h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .post-content p,
    .post-content li {
        word-break: keep-all;
    }

    .post-tags a,
    .blog-category-nav a,
    .blog-nav a {
        min-height: 40px;
    }

    .blog-category-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-shell,
    .admin-editor-grid,
    .admin-field-grid,
    .admin-check-grid,
    .traffic-grid,
    .admin-stat-grid,
    .admin-quickstart,
    .admin-workflow {
        display: block;
    }

    .admin-guide-panel {
        align-items: flex-start;
        display: grid;
    }

    .admin-sidebar {
        position: static;
        padding: 18px 16px;
    }

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

    .admin-menu a {
        text-align: center;
    }

    .admin-logout {
        margin-top: 12px;
        position: static;
    }

    .admin-main {
        padding: 18px 14px;
    }

    .admin-page-head {
        display: block;
    }

    .admin-actions {
        margin-top: 14px;
    }

    .admin-filters {
        display: grid;
    }

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

    .admin-field-full {
        grid-column: auto;
    }

    .admin-workflow div,
    .admin-stat {
        margin-bottom: 10px;
    }

    .admin-login {
        display: block;
        min-height: auto;
        padding: 18px;
    }

    .admin-login__panel {
        margin-bottom: 18px;
        padding: 26px;
    }

    .admin-login__side {
        padding: 14px;
    }
}

@media (max-width: 980px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-brand {
        margin-bottom: 14px;
    }

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

    .admin-sidebar-tip {
        margin-top: 12px;
    }

    .admin-logout {
        margin-top: 12px;
        position: static;
        right: auto;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-page-head,
    .admin-guide-panel {
        display: grid;
    }

    .admin-actions,
    .admin-form-actions {
        width: 100%;
    }

    .admin-actions .admin-button,
    .admin-form-actions .admin-button {
        flex: 1 1 140px;
    }

    .admin-editor-grid,
    .admin-field-grid,
    .admin-check-grid,
    .admin-stat-grid,
    .admin-quickstart,
    .admin-sample-grid,
    .traffic-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-field-full,
    .traffic-grid .admin-panel:first-child {
        grid-column: auto;
    }

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

@media (max-width: 560px) {
    .admin-menu,
    .admin-workflow {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .admin-filters {
        display: grid;
    }
}

@media (max-width: 430px) {
    .blog-container {
        padding-top: 20px;
    }

    .blog-hero__copy {
        padding: 24px 20px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .reader-panel {
        padding: 18px;
    }

    .reader-panel__head strong {
        font-size: 23px;
    }

    .reader-panel__items a,
    .reader-panel__items div {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 13px;
    }

    .blog-section-head h2,
    .blog-empty h2 {
        font-size: 25px;
    }

    .post-card__body {
        padding: 20px;
    }

    .post-card h2 {
        font-size: 21px;
    }

    .blog-post {
        margin-left: -4px;
        margin-right: -4px;
    }

    .blog-post__header h1 {
        font-size: 27px;
    }
}

/* Refined public blog surface */
.blog-shell {
    background: #f7f8f5;
    color: #1d2420;
}

.blog-header {
    background: rgba(247, 248, 245, .94);
    border-bottom: 1px solid rgba(29, 36, 32, .09);
    box-shadow: 0 10px 28px rgba(29, 36, 32, .04);
}

.blog-header__inner {
    min-height: 68px;
}

.blog-brand__mark {
    background: #1f3f34;
}

.blog-category-nav {
    border-top-color: rgba(29, 36, 32, .08);
    padding-bottom: 10px;
    padding-top: 10px;
}

.blog-category-nav a,
.blog-nav a {
    background: transparent;
    border-color: rgba(31, 63, 52, .12);
    color: #516059;
}

.blog-container {
    padding-top: 28px;
}

.blog-hero {
    gap: 18px;
    margin-bottom: 28px;
    min-height: 0;
}

.blog-hero--compact {
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
    min-height: 0;
}

.blog-hero__copy,
.reader-panel,
.post-card,
.blog-post,
.blog-empty,
.ad-slot {
    box-shadow: 0 14px 36px rgba(29, 36, 32, .06);
}

.blog-hero__copy {
    background: #ffffff;
    border-color: rgba(31, 63, 52, .12);
    justify-content: flex-start;
    padding: clamp(26px, 4vw, 42px);
}

.blog-hero__copy:before {
    height: 3px;
    left: 28px;
    width: 84px;
}

.blog-hero h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.18;
    max-width: 680px;
}

.blog-hero__copy > p:not(.blog-kicker) {
    font-size: 17px;
    line-height: 1.72;
    max-width: 620px;
}

.blog-hero-search {
    box-shadow: none;
    max-width: 520px;
}

.reader-panel {
    background: #ffffff;
    border-color: rgba(31, 63, 52, .12);
    color: #1d2420;
    padding: 22px;
}

.reader-panel__head {
    border-bottom-color: rgba(31, 63, 52, .1);
}

.reader-panel__head span,
.reader-panel__items span {
    color: #9a6b28;
}

.reader-panel__head strong {
    color: #1d2420;
    font-size: 24px;
}

.reader-panel__items a,
.reader-panel__items div {
    background: #f7f8f5;
    border-color: rgba(31, 63, 52, .1);
    color: #1d2420;
}

.reader-panel__items a:hover {
    background: #eef3ed;
    transform: translateY(-1px);
}

.reader-panel__items em {
    color: #68756e;
    line-height: 1.55;
}

.post-list {
    gap: 18px;
}

.post-card {
    background: #ffffff;
    border-color: rgba(31, 63, 52, .11);
}

.post-card:hover {
    box-shadow: 0 18px 44px rgba(29, 36, 32, .09);
}

.post-card__image {
    aspect-ratio: 1.72;
}

.post-card__image--fallback {
    background: linear-gradient(135deg, #22483a, #d5b875);
}

.post-card__body {
    padding: 22px;
}

.post-card h2 {
    font-size: 21px;
}

.ad-slot {
    background: #ffffff;
    min-height: 82px;
}

.blog-footer {
    background: rgba(255, 255, 255, .62);
    border-top-color: rgba(29, 36, 32, .09);
}

.blog-footer__inner {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.blog-footer__links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.blog-footer__links a {
    border: 1px solid rgba(31, 63, 52, .12);
    border-radius: 999px;
    color: #405047;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 10px;
    text-decoration: none;
}

.blog-footer__links a:hover {
    background: #eef3ed;
    color: #1f3f34;
}

.blog-footer__inner {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.blog-footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .blog-header__inner {
        min-height: auto;
    }

    .blog-hero {
        margin-bottom: 22px;
    }

    .blog-hero__copy {
        padding: 24px 20px;
    }

    .blog-hero h1 {
        font-size: 28px;
        line-height: 1.22;
    }

    .reader-panel {
        padding: 18px;
    }

    .blog-footer__inner {
        align-items: flex-start;
        display: grid;
    }

    .blog-footer__links {
        justify-content: flex-start;
    }
}

.admin-editor-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

/* Magazine polish, board list, and managed ads */
.blog-shell {
    background:
        linear-gradient(180deg, #fbfcf8 0%, #f4f6ef 48%, #f8f8f3 100%);
}

.blog-brand {
    font-size: 18px;
}

.blog-brand__mark {
    box-shadow: inset 0 -10px 18px rgba(255, 255, 255, .08);
}

.blog-nav a {
    border-radius: 999px;
    color: #3d4942;
    padding: 8px 12px;
}

.blog-category-nav a {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(29, 36, 32, .04);
}

.blog-hero__copy {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(250, 252, 244, .96));
    min-height: 330px;
}

.blog-hero h1 {
    color: #17221c;
    font-size: clamp(32px, 3.5vw, 48px);
}

.reader-panel {
    background:
        linear-gradient(180deg, #ffffff, #f7f9f2);
}

.reader-panel__items a {
    align-items: center;
    grid-template-columns: 42px minmax(0, 1fr);
}

.reader-panel__items strong,
.board-row__main strong {
    letter-spacing: 0;
    word-break: keep-all;
}

.blog-section-head {
    margin-top: 10px;
}

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

.post-card {
    min-height: 100%;
}

.post-card__image {
    aspect-ratio: 16 / 9;
    background: #eef3ed;
}

.post-card h2 {
    font-size: 22px;
    line-height: 1.42;
}

.post-card p {
    min-height: 3.4em;
}

.ad-slot {
    background: #ffffff;
    border: 1px solid rgba(31, 63, 52, .12);
    border-radius: 8px;
    min-height: 88px;
    overflow: hidden;
    padding: 0;
}

.ad-slot > span,
.ad-slot > strong {
    padding-left: 20px;
    padding-right: 20px;
}

.ad-slot__link {
    align-items: center;
    color: #1d2420;
    display: grid;
    gap: 16px;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 96px;
    padding: 12px;
    text-decoration: none;
}

.ad-slot__link img {
    background: #eef3ed;
    border-radius: 6px;
    display: block;
    height: 82px;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.ad-slot__link span {
    display: grid;
    gap: 5px;
}

.ad-slot__link em {
    color: #8b6b33;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ad-slot__link strong {
    color: #1f3f34;
    font-size: 18px;
    line-height: 1.35;
}

.ad-slot__link:hover {
    background: #f6f8f2;
}

.board-page-head {
    border-bottom: 1px solid rgba(31, 63, 52, .1);
    margin-bottom: 20px;
    padding-bottom: 18px;
}

.board-list {
    display: grid;
    gap: 10px;
}

.board-category-strip {
    display: flex;
    gap: 8px;
    margin: -4px 0 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.board-category-strip a {
    background: #ffffff;
    border: 1px solid rgba(31, 63, 52, .12);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(29, 36, 32, .04);
    color: #3d4942;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    padding: 9px 13px;
    text-decoration: none;
}

.board-category-strip a:hover {
    background: #1f3f34;
    border-color: #1f3f34;
    color: #ffffff;
}

.board-row {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(31, 63, 52, .11);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(29, 36, 32, .045);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 96px;
    padding: 18px 20px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.board-row:hover {
    border-color: rgba(31, 63, 52, .24);
    box-shadow: 0 16px 34px rgba(29, 36, 32, .075);
    transform: translateY(-1px);
}

.board-row__main {
    color: #1d2420;
    display: grid;
    gap: 6px;
    text-decoration: none;
}

.board-row__main span {
    color: #2c6b4c;
    font-size: 13px;
    font-weight: 900;
}

.board-row__main strong {
    font-size: 19px;
    line-height: 1.35;
}

.board-row__main em {
    color: #66706a;
    font-style: normal;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-row time {
    color: #7a837e;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.admin-ad-thumb {
    background: #edf2f0;
    border-radius: 6px;
    height: 48px;
    object-fit: cover;
    width: 92px;
}

.admin-ad-preview {
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
}

.admin-ad-preview span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-ad-preview img {
    border-radius: 6px;
    max-width: 100%;
}

.admin-thumbnail-box {
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 14px;
}

.admin-thumbnail-box input[type="file"] {
    background: #ffffff;
    cursor: pointer;
}

.admin-thumbnail-preview {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 150px minmax(0, 1fr);
    margin: 12px 0;
}

.admin-thumbnail-preview img {
    background: #edf2f0;
    border-radius: 6px;
    height: 86px;
    object-fit: cover;
    width: 150px;
}

.admin-thumbnail-preview span {
    color: #475569;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-media-panel {
    margin-top: 18px;
}

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

.admin-media-card {
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.admin-media-card > img {
    aspect-ratio: 16 / 9;
    background: #edf2f0;
    object-fit: cover;
    width: 100%;
}

.admin-media-card > div {
    display: grid;
    gap: 5px;
    padding: 0 12px;
}

.admin-media-card strong {
    color: #15211a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-media-card span,
.admin-media-card code {
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-media-actions {
    display: flex;
    gap: 6px;
    padding: 0 12px 12px;
}

.admin-media-actions button {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #24513d;
    cursor: pointer;
    flex: 1;
    font-size: 12px;
    font-weight: 900;
    min-height: 34px;
}

.admin-media-actions button:hover,
.admin-media-actions button:focus {
    background: #2f6049;
    border-color: #2f6049;
    color: #ffffff;
}

.admin-url-list {
    display: grid;
    gap: 9px;
}

.admin-url-list code {
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 6px;
    color: #334155;
    display: block;
    font-size: 13px;
    overflow-wrap: anywhere;
    padding: 10px 12px;
}

.admin-checklist {
    color: #334155;
    display: grid;
    gap: 10px;
    line-height: 1.65;
    margin: 0;
    padding-left: 22px;
}

.admin-checklist li::marker {
    color: #2f6049;
    font-weight: 900;
}

.related-posts {
    border-top: 1px solid #d8dee6;
    margin-top: 42px;
    padding-top: 30px;
}

.related-posts__head {
    margin-bottom: 18px;
}

.related-posts__head span {
    color: #a05b3f;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.related-posts__head h2 {
    color: #15211a;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

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

.related-card {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    color: #15211a;
    display: grid;
    gap: 10px;
    overflow: hidden;
    text-decoration: none;
}

.related-card img {
    aspect-ratio: 16 / 9;
    background: #edf2f0;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* Public thumbnails are authored as 16:9 images. Keep the frame consistent and avoid ghosted letterbox backgrounds. */
.post-card__image,
.post-hero {
    background: #eef3ed !important;
    aspect-ratio: 16 / 9;
}

.post-card__image:before,
.post-card__image:after,
.post-hero:before,
.post-hero:after {
    display: none;
}

.post-card__image img,
.post-hero img,
.related-card img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.related-card span {
    color: #2f6049;
    font-size: 12px;
    font-weight: 800;
    padding: 0 14px;
}

.related-card strong {
    font-size: 16px;
    line-height: 1.45;
    padding: 0 14px 16px;
}

.related-card:hover,
.related-card:focus {
    border-color: #2f6049;
    box-shadow: 0 12px 34px rgba(21, 33, 26, .12);
}

@media (max-width: 900px) {
    .post-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-posts__grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 720px) {
    .ad-slot__link,
    .board-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .ad-slot__link img {
        height: auto;
        max-height: 180px;
    }

    .board-row time {
        text-align: left;
    }
}
