:root {
  --bg: #f4efe3;
  --surface: #fffaf0;
  --surface-strong: #fff;
  --text: #12212e;
  --muted: #4d5c62;
  --border: #e5d7c0;
  --brand: #a8e2e6;
  --brand-strong: #1fc2b6;
  --brand-dark: #0d6f78;
  --accent: #f26c4f;
  --accent-dark: #a93d2d;
  --ink: #102a33;
  --shadow: 0 18px 44px rgba(18, 33, 46, .09);
}

html { min-height: 100%; scroll-behavior: smooth; }
body { background: linear-gradient(180deg, #faf6ec 0%, var(--bg) 42%, #efe7d7 100%); color: var(--text); display: grid; font-family: "Segoe UI", system-ui, sans-serif; grid-template-rows: auto 1fr auto; line-height: 1.65; min-height: 100dvh; }
a { color: var(--brand-dark); font-weight: 650; text-underline-offset: .16em; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }
.skip-link { background: #fff; color: #000; padding: .75rem; position: fixed; z-index: 1100; }
.blog-nav { backdrop-filter: blur(12px); background: rgba(255,250,240,.96); border-bottom: 1px solid rgba(16,42,51,.12); box-shadow: 0 10px 30px rgba(16,42,51,.08); padding: .65rem 0; }
.navbar-brand { align-items: center; color: var(--text); display: inline-flex; gap: .65rem; text-decoration: none; }
.navbar-brand img { background: #fff; border: 1px solid rgba(13,111,120,.2); border-radius: .6rem; height: 44px; object-fit: contain; padding: 3px; width: 44px; }
.navbar-brand span { display: grid; line-height: 1.05; }
.navbar-brand small { color: var(--brand-dark); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.blog-nav .nav-link { color: var(--text); font-weight: 650; margin-inline: .3rem; }
.blog-nav .nav-link:hover, .blog-nav .nav-link:focus { color: var(--brand-dark); }
.blog-hero { background: linear-gradient(135deg, var(--ink), #173c45); color: #fff; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0; position: relative; }
.blog-hero::after { border: 30px solid rgba(168,226,230,.13); border-radius: 50%; content: ""; height: 270px; position: absolute; right: -60px; top: -80px; width: 270px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.blog-hero h1 { font-size: clamp(2.25rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 820px; }
.blog-hero p { color: #e5f5f3; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 700px; }
.search-bar { background: #fff; border-radius: .8rem; box-shadow: var(--shadow); display: flex; max-width: 660px; padding: .4rem; }
.search-bar input { border: 0; box-shadow: none !important; min-width: 0; }
.btn-brand { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 750; }
.btn-brand:hover, .btn-brand:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.content-section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.section-heading { border-left: 5px solid var(--brand-strong); margin-bottom: 1.75rem; padding-left: 1rem; }
.section-heading h1, .section-heading h2 { font-weight: 800; letter-spacing: -.025em; margin-bottom: .25rem; }
.section-heading p { color: var(--muted); margin: 0; }
.featured-article { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 1.25rem; box-shadow: var(--shadow); overflow: hidden; }
.featured-article img { height: 100%; min-height: 340px; object-fit: cover; width: 100%; }
.featured-copy { padding: clamp(1.75rem, 5vw, 3.5rem); }
.featured-copy h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.article-card { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 12px 30px rgba(18,33,46,.07); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card-image { display: block; height: 190px; overflow: hidden; }
.article-card-image img { height: 100%; object-fit: cover; transition: transform .3s ease; width: 100%; }
.article-card:hover img { transform: scale(1.025); }
.article-card-placeholder { align-items: center; background: linear-gradient(135deg, #dff7f6, #f9ead5); color: var(--brand-dark); display: flex; font-size: 3rem; justify-content: center; }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.3rem; }
.article-card h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.article-card h2 a { color: var(--text); text-decoration: none; }
.article-card p { color: var(--muted); }
.article-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: .82rem; gap: .4rem; margin-bottom: .65rem; }
.read-more { margin-top: auto; text-decoration: none; }
.category-pills { display: flex; flex-wrap: wrap; gap: .65rem; }
.category-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text); padding: .55rem .9rem; text-decoration: none; }
.category-pill:hover { background: var(--brand); color: var(--ink); }
.page-link { color: var(--brand-dark); }
.active > .page-link { background: var(--brand-dark); border-color: var(--brand-dark); }
.archive-year { background: var(--surface-strong); border: 1px solid var(--border); border-radius: .85rem; margin-bottom: .8rem; overflow: hidden; }
.archive-year summary { cursor: pointer; font-size: 1.3rem; font-weight: 800; list-style: none; padding: 1rem 1.25rem; }
.archive-year summary::after { content: "+"; float: right; }
.archive-year[open] summary::after { content: "−"; }
.archive-months { border-top: 1px solid var(--border); display: grid; gap: .2rem; padding: .75rem 1.25rem 1rem; }
.archive-months a { display: flex; justify-content: space-between; padding: .45rem 0; }
.article-shell { margin-inline: auto; max-width: 820px; }
.article-header { padding: clamp(2.8rem, 7vw, 5.5rem) 0 2rem; }
.article-header h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.06; }
.article-lead { color: var(--muted); font-size: 1.15rem; }
.article-featured { border-radius: 1rem; box-shadow: var(--shadow); margin: 1rem auto 2.5rem; max-height: 560px; object-fit: cover; width: 100%; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.82; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; font-weight: 800; line-height: 1.2; margin: 2.1rem 0 .8rem; }
.article-content blockquote { border-left: 4px solid var(--brand-strong); color: #344a51; font-size: 1.18rem; margin: 1.5rem 0; padding: .5rem 0 .5rem 1.2rem; }
.article-content img { border-radius: .6rem; height: auto; }
.share-row { border-block: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.5rem 0; padding: 1.2rem 0; }
.post-navigation { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.post-navigation a { background: var(--surface-strong); border: 1px solid var(--border); border-radius: .8rem; padding: 1rem; text-decoration: none; }
.post-navigation .next { text-align: right; }
.blog-footer { background: var(--ink); color: #e4f2f1; margin-top: auto; padding: 3.2rem 0 1.2rem; }
.blog-footer a { color: #c9f3ef; }
.footer-brand { align-items: center; display: flex; font-size: 1.15rem; gap: .65rem; margin-bottom: .8rem; }
.footer-brand img { background: #fff; border-radius: .5rem; height: 42px; padding: 3px; width: 42px; }
.footer-links li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); font-size: .86rem; margin-top: 2rem; padding-top: 1rem; }
.admin-shell { padding: 2.5rem 0 5rem; }
.admin-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-bottom: 1.5rem; }
.form-panel { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2rem); }
.editor-toolbar { background: #f1ede3; border: 1px solid #ced4da; border-bottom: 0; display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; }
.rich-editor { background: #fff; border: 1px solid #ced4da; min-height: 380px; overflow: auto; padding: 1rem; }
.rich-editor:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 .2rem rgba(13,111,120,.2); outline: 0; }
.table-responsive { background: #fff; border: 1px solid var(--border); border-radius: .8rem; }
.status-badge { border-radius: 999px; display: inline-block; font-size: .76rem; font-weight: 750; padding: .25rem .55rem; }
.status-published { background: #d8f3e5; color: #19583c; }
.status-draft { background: #ece8df; color: #4e4a42; }
@media (max-width: 767.98px) {
  .search-bar { display: grid; }
  .search-bar .btn { width: 100%; }
  .featured-article img { min-height: 230px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .next { text-align: left; }
  .article-card-image { height: 210px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

