
/* ═══════════════════════════════════════════════════
   BTMR Design System v2 — btmrlaw.com
   Light mode redesign (2026-03-14)
   Target: GeneratePress + flavor-developer child theme
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --ink: #101820;
  --ink-soft: #1c2632;
  --green: #2d9d5e;
  --green-deep: #238a4e;
  --text: #18202c;
  --text-2: #3d4a5c;
  --text-3: #7c8798;
  --bg: #ffffff;
  --bg-page: #f5f6f8;
  --bg-subtle: #fafbfc;
  --rule: #e2e5ea;
  --rule-light: #eef0f3;
  --lift-1: 0 1px 3px rgba(16,24,32,.04), 0 1px 2px rgba(16,24,32,.02);
  --lift-2: 0 4px 12px rgba(16,24,32,.07), 0 1px 3px rgba(16,24,32,.04);
  --r: 8px;
  --r-lg: 12px;
}

/* ── Base / Body ── */
body {
  font-family: 'Pretendard', -apple-system, system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* GP container override — full-width page, content constrained inside */
.site.grid-container {
  max-width: 100%;
  padding: 0;
}

a { color: inherit; }

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════ HEADER ══════════════════════ */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}

.inside-header.grid-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Site branding (logo) */
.site-branding {
  flex: 0 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
}

.main-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1;
}
.main-title a {
  color: var(--ink);
  text-decoration: none;
}
.main-title a:hover { color: var(--ink); }

/* Hide tagline if present */
.site-description { display: none; }

/* ══════════════════════ NAVIGATION ══════════════════════ */
/* Primary navigation — force full-width row below branding */
#site-navigation.main-navigation {
  flex: 1 1 100%;
  order: 10;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-light);
  margin: 0 -32px;
  padding: 0 32px;
}

.inside-navigation.grid-container {
  max-width: 100%;
  padding: 0;
}

/* Menu container */
.main-navigation .main-nav {
  flex: none;
}
.main-navigation .main-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu items */
.main-navigation .main-nav ul li a {
  padding: 8px 18px 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 1.5px solid transparent;
  transition: all .12s;
  text-decoration: none;
  line-height: 1.5;
  display: inline-block;
}

.main-navigation .main-nav ul li a:hover {
  color: var(--ink);
  border-bottom-color: var(--green);
  font-weight: 700;
}

/* Active category highlight */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a,
.main-navigation .main-nav ul li[class*="current-cat"] > a {
  color: var(--ink);
  border-bottom-color: var(--green);
  font-weight: 700;
}

/* Hide GP mobile toggle on desktop */
.menu-toggle { display: none; }

/* Mobile menu control wrapper inside header — hide on desktop */
#mobile-menu-control-wrapper { display: none; }

/* ══════════════════════ CONTENT AREA ══════════════════════ */
.site-content {
  background: var(--bg-page);
}

/* Page header (archive title etc) — override GP defaults */
.page-header {
  background: transparent;
  padding: 28px 0 0;
}
.page-header .page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
}

/* Content container */
.inside-article {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--lift-1);
  padding: 28px 32px;
  margin-bottom: 20px;
}

/* Article titles in archive/category */
.entry-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.2px;
}
.entry-title a { color: var(--text); text-decoration: none; }
.entry-title a:hover { color: var(--green-deep); }

/* Post meta */
.entry-meta {
  font-size: 12px;
  color: var(--text-3);
}
.entry-meta a { color: var(--text-3); }
.entry-meta a:hover { color: var(--text); }

/* Content text */
.entry-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.entry-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 32px 0 16px;
  letter-spacing: -0.2px;
}
.entry-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 24px 0 12px;
}

/* Read more link */
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.read-more:hover { color: var(--green-deep); }

/* Category label on posts */
.cat-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* Tags */
.tag-links a {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-page);
  border-radius: 4px;
  color: var(--text-3);
}
.tag-links a:hover {
  background: var(--rule-light);
  color: var(--text);
}

/* Featured image */
.post-image {
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
}
.post-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
}

/* Pagination */
.nav-links {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 20px 0;
}
.nav-links a, .nav-links span {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.nav-links a {
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--text-2);
}
.nav-links a:hover {
  border-color: var(--green);
  color: var(--green);
}
.nav-links .current {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}

/* ══════════════════════ SIDEBAR ══════════════════════ */
.widget {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--lift-1);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--green);
}

/* ══════════════════════ FOOTER ══════════════════════ */
.site-info {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 24px 32px;
  font-size: 12px;
  color: var(--text-3);
}
.inside-site-info.grid-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}
.site-info a {
  color: var(--text-3);
}
.site-info a:hover {
  color: var(--text);
}

/* Hide "Powered by GeneratePress" */
.site-info .copyright + span,
.site-info .copyright ~ a[href*="generatepress"] {
  display: none;
}
/* Also hide the bullet before it */
.copyright-bar {
  font-size: 12px;
  color: var(--text-3);
}

/* ══════════════════════ GP BUTTON OVERRIDE ══════════════════════ */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  font-family: 'Pretendard', -apple-system, system-ui, sans-serif;
  border-radius: 6px;
}

/* ══════════════════════ HOMEPAGE ══════════════════════ */
/* Hide the "홈" page title on homepage */
body.home .entry-header { display: none; }
body.home .inside-article {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 900px) {
  .inside-header.grid-container {
    padding: 0 20px;
  }
  #site-navigation.main-navigation {
    margin: 0 -20px;
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .inside-header.grid-container {
    padding: 0 16px;
  }
  #site-navigation.main-navigation {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .main-navigation .main-nav ul li a {
    padding: 8px 12px 5px;
    font-size: 12px;
  }
  .inside-article {
    padding: 20px 16px;
  }
}

/* ══════════════════════ HEADER BUTTONS (injected via JS) ══════════════════════ */
.btmr-hdr-r {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  height: 54px;
}
.hdr-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--green-deep);
  border: 1.5px solid var(--green);
  background: var(--bg);
  transition: all .15s;
  cursor: pointer;
  height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.hdr-pill:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.hdr-search input {
  width: 100px;
  padding: 6px 12px;
  border: 1.5px solid var(--green);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg);
  color: var(--green-deep);
  outline: none;
  transition: all .2s;
  height: 32px;
}
.hdr-search input:focus {
  width: 150px;
  background: #fff;
  color: var(--text);
}
.hdr-search input::placeholder {
  color: var(--green-deep);
}

/* ══════════════════════ CUSTOM FOOTER ══════════════════════ */
.btmr-ft {
  max-width: 1080px;
  margin: 0 auto;
}
.btmr-ft-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btmr-ft-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.btmr-ft-info span {
  font-size: 11.5px;
  color: var(--text-3);
}
.btmr-ft-links {
  display: flex;
  gap: 20px;
}
.btmr-ft-links a {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  text-decoration: none;
}
.btmr-ft-links a:hover {
  color: var(--text);
}
.btmr-ft-copy {
  padding-top: 14px;
  border-top: 1px solid var(--rule-light);
  font-size: 11px;
  color: var(--text-3);
}

/* Hide GP default footer elements */
.site-info .copyright-bar > .copyright:first-child,
.site-info .copyright-bar > span,
.site-info .copyright-bar > a[href*="generatepress"] {
  display: none;
}

/* Footer responsive */
@media (max-width: 640px) {
  .btmr-hdr-r .hdr-pill { display: none; }
  .btmr-ft-main {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .btmr-ft-links {
    justify-content: center;
  }
}


/* ═══ FOOTER CONTAINER ═══ */
.site-footer {
  padding: 40px 20px 30px;
  border-top: 1px solid var(--rule);
  margin-top: 60px;
  background: var(--bg);
}
.btmr-ft {
  padding: 0 20px;
}
.btmr-ft-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px 0;
}
.btmr-ft-info p {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
}


/* ═══ HOMEPAGE LAYOUT ═══ */
.btmr-home { max-width: 1080px; margin: 0 auto; padding: 28px 32px 56px; }
.btmr-home .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.btmr-home .stitle {
  font-size: 15px; font-weight: 800; letter-spacing: -0.1px;
  color: var(--ink); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.btmr-home .stitle::before {
  content: ''; width: 3px; height: 14px; background: var(--green); border-radius: 2px; flex-shrink: 0;
}
.btmr-home .stitle::after {
  content: ''; flex: 1; height: 1px; background: var(--rule-light);
}

/* 인기글 3-BOX */
.top-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.top-card {
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--lift-1); display: block; padding: 20px 22px; transition: all .2s;
}
.top-card:hover { box-shadow: var(--lift-2); transform: translateY(-2px); border-color: var(--text-3); }
.top-card .cat-label {
  font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1.5px solid var(--green);
  display: flex; align-items: center; justify-content: space-between;
}
.top-card .cat-label .more { font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.top-card .card-title {
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.45;
  letter-spacing: -0.2px; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.top-card .meta { font-size: 11px; color: var(--text-3); }

/* 구독 바 */
.bar-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.bar {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--lift-1); padding: 8px 12px 8px 16px;
}
.bar input {
  width: 150px; padding: 6px 12px; border: 1.5px solid var(--green); border-radius: 6px;
  background: var(--bg); color: var(--green-deep); font-size: 11px; font-weight: 600;
  font-family: inherit; outline: none; height: 32px;
}
.bar input::placeholder { color: var(--green-deep); }
.bar .btn-bar, .bar .btn-push {
  padding: 6px 14px; background: var(--green); color: #fff; border: none; border-radius: 6px;
  font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap; height: 32px; display: inline-flex; align-items: center;
}
.bar .btn-bar:hover, .bar .btn-push:hover { background: var(--green-deep); }
.bar-sep { width: 1px; height: 16px; background: var(--rule); flex-shrink: 0; }

/* 카테고리 2-COL */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.sec {
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r); min-width: 0; overflow: hidden;
  box-shadow: var(--lift-1); padding: 20px 24px;
}
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--green);
}
.sec-hd h3 { font-size: 13px; font-weight: 700; color: var(--text-2); }
.sec-hd .cnt {
  font-size: 10px; color: var(--text-3); background: var(--bg-page);
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600;
}
.sec-hd .more { font-size: 11px; color: var(--text-3); font-weight: 600; }
.sec-hd .more:hover { color: var(--text); }
.pl { display: flex; flex-direction: column; }
.pi {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; border-radius: 6px; transition: background .1s;
  border-bottom: 1px solid var(--rule-light);
}
.pi:last-child { border-bottom: none; }
.pi:hover { background: var(--bg-page); }
.pi-l { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.pi h4 {
  font-size: 13.5px; font-weight: 500; color: var(--text); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pi .new-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px; background: #fef2f2; color: #b91c1c; flex-shrink: 0;
}
.pi .dt { font-size: 11px; color: var(--text-3); white-space: nowrap; margin-left: 10px; }

/* 에세이 */
.essay-sec {
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--lift-1); padding: 20px 24px; margin-bottom: 20px;
}
.eg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ec {
  padding: 20px; border: 1px solid var(--rule-light); border-radius: var(--r);
  transition: all .18s; display: block; background: var(--bg-subtle);
}
.ec:hover { border-color: var(--text-3); box-shadow: var(--lift-2); transform: translateY(-1px); background: #fff; }
.ec h4 {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45; margin-bottom: 8px;
}
.ec .new-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; background: #fef2f2; color: #b91c1c;
}

/* 홈페이지 반응형 */
@media (max-width: 900px) {
  .top-row { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; }
  .cols { grid-template-columns: 1fr; }
  .eg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .eg { grid-template-columns: 1fr; }
  .bar { flex-direction: column; align-items: stretch; }
  .bar input { width: 100%; }
  .bar-sep { display: none; }
  .btmr-home { padding: 20px 16px 40px; }
}



/* ═══════════════════════════════════════
   CATEGORY ARCHIVE PAGE
   ═══════════════════════════════════════ */

/* Breadcrumb */
.btmr-breadcrumb { font-size: 12px; color: var(--text-3); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.btmr-breadcrumb a { color: var(--text-3); transition: color .12s; }
.btmr-breadcrumb a:hover { color: var(--text); }
.btmr-breadcrumb .sep { color: var(--rule); }
.btmr-breadcrumb .current { color: var(--text-2); font-weight: 600; }

/* Category Header */
body.archive .page-header { margin-bottom: 28px; padding: 0; background: none; }
body.archive .page-header .page-title {
  font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px;
  margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
body.archive .page-header .page-title::before {
  content: ''; width: 3px; height: 18px; background: var(--green); border-radius: 2px; flex-shrink: 0;
}
.cat-count-badge {
  font-size: 11px; color: var(--text-3); background: var(--bg); border: 1px solid var(--rule);
  padding: 2px 10px; border-radius: 4px; font-weight: 600; margin-left: 8px;
}
.cat-desc-text { font-size: 13.5px; color: var(--text-3); line-height: 1.6; padding-left: 13px; }

/* Archive article cards */
body.archive .inside-article {
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--lift-1); padding: 14px 26px; transition: all .2s; margin-bottom: 12px;
}
body.archive .inside-article:hover { box-shadow: var(--lift-2); transform: translateY(-1px); border-color: var(--text-3); }
body.archive article { background: none; border: none; box-shadow: none; padding: 0; margin-bottom: 0; }

/* Hide featured image on archive */
body.archive .post-image { display: none; }

/* Entry title in archive */
body.archive .entry-title {
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.5;
  letter-spacing: -0.2px; margin-bottom: 0;
}
body.archive .entry-title a { color: var(--text); }
body.archive .entry-title a:hover { color: var(--green); }

/* Entry header — date to upper-right */
body.archive .entry-header {
  position: relative;
  padding-right: 110px;
}
body.archive .entry-header .entry-meta {
  position: absolute;
  top: 4px;
  right: 0;
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
  white-space: nowrap;
}

/* Entry summary (excerpt) */
body.archive .entry-summary {
  font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin-top: 4px; margin-bottom: 0;
  max-height: 3.3em; overflow: hidden; position: relative;
}
body.archive .entry-summary p {
  margin: 0;
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Entry meta */
body.archive .entry-meta { font-size: 11.5px; color: var(--text-3); }
body.archive .entry-meta a { color: var(--text-3); }

/* Entry footer (category/tags) */
body.archive .entry-footer, body.archive footer.entry-meta { font-size: 11.5px; color: var(--text-3); }
body.archive .cat-links, body.archive .tags-links { display: none; }
body.archive .comments-link { display: none; }

/* Hide more-link / read-more */
body.archive .more-link, body.archive .read-more { display: none; }

/* Hide entry footer completely */
body.archive .entry-footer { display: none; }
body.archive footer.entry-meta { display: none; }

/* Hide author in entry meta */
body.archive .byline, body.archive .author { display: none; }

/* NEW badge for recent posts */
.btmr-new-badge {
  display: inline-block; font-size: 10px; font-weight: 700; color: #fff;
  background: var(--green); border-radius: 3px; padding: 1px 6px; margin-left: 8px;
  letter-spacing: 0.5px; vertical-align: middle; line-height: 1.6;
}

/* Date format override for archive meta */
body.archive .posted-on .updated { display: none; }

/* Pagination */
body.archive .nav-links {
  display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 36px;
}
body.archive .nav-links a, body.archive .nav-links span {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 13px; font-weight: 600; transition: all .12s;
}
body.archive .nav-links a {
  color: var(--text-3); background: var(--bg); border: 1px solid var(--rule);
}
body.archive .nav-links a:hover { color: var(--text); border-color: var(--text-3); }
body.archive .nav-links .current {
  color: #fff; background: var(--green); border: 1px solid var(--green);
}
body.archive .nav-links .dots { border: none; background: none; color: var(--text-3); }

@media (max-width: 640px) {
  body.archive .inside-article { padding: 16px 18px; }
  body.archive .entry-title { font-size: 14.5px; }
}

/* ═══════════════════════════════════════
   SINGLE POST PAGE
   ═══════════════════════════════════════ */

/* Single post article card */
body.single .inside-article {
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--lift-1); padding: 40px 36px;
}
body.single article { background: none; border: none; box-shadow: none; }

/* Category tag */
body.single .cat-links {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 14px;
}
body.single .cat-links a {
  border: 1.5px solid var(--green); border-radius: 4px; padding: 2px 10px;
  color: var(--green-deep); transition: all .15s;
}
body.single .cat-links a:hover { background: var(--green); color: #fff; }

/* Post title */
body.single .entry-title {
  font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.45;
  letter-spacing: -0.4px; margin-bottom: 14px;
}

/* Post meta */
body.single .entry-meta {
  font-size: 12.5px; color: var(--text-3);
  padding-bottom: 20px; border-bottom: 1px solid var(--rule-light); margin-bottom: 28px;
}
body.single .entry-meta a { color: var(--text-3); }

/* Featured image inside post */
body.single .post-image { margin-bottom: 24px; border-radius: var(--r); overflow: hidden; }
body.single .post-image img { width: 100%; height: auto; display: block; border-radius: var(--r); }

/* Article body content */
body.single .entry-content { font-size: 15.5px; line-height: 1.85; color: var(--text); }
body.single .entry-content h2 {
  font-size: 19px; font-weight: 800; color: var(--ink); margin: 36px 0 14px;
  padding-left: 14px; border-left: 3px solid var(--green);
}
body.single .entry-content h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
body.single .entry-content p { margin-bottom: 18px; }
body.single .entry-content blockquote {
  border-left: 3px solid var(--green); background: var(--bg-subtle);
  padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--r) var(--r) 0;
  font-size: 14.5px; color: var(--text-2);
}
body.single .entry-content ul, body.single .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
body.single .entry-content li { margin-bottom: 6px; }

/* Callout boxes */
body.single .entry-content .btmr-callout-info {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--r);
  padding: 16px 20px; margin: 20px 0; font-size: 14px; color: var(--text-2);
}
body.single .entry-content .btmr-callout-warning {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r);
  padding: 16px 20px; margin: 20px 0; font-size: 14px; color: var(--text-2);
}

/* FAQ items */
body.single .btmr-faq-item { border-bottom: 1px solid var(--rule-light); padding: 14px 0; }
body.single .btmr-faq-item summary {
  font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; align-items: center; gap: 8px;
}
body.single .btmr-faq-item summary::before { content: 'Q.'; color: var(--green); font-weight: 800; }
body.single .btmr-faq-item p { padding-top: 10px; font-size: 14.5px; color: var(--text-2); }

/* Post navigation */
body.single .post-navigation .nav-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px;
}
body.single .post-navigation .nav-previous a,
body.single .post-navigation .nav-next a {
  display: block; background: var(--bg-subtle); border: 1px solid var(--rule-light);
  border-radius: var(--r); padding: 16px 20px; transition: all .15s;
  font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4;
}
body.single .post-navigation .nav-previous a:hover,
body.single .post-navigation .nav-next a:hover { border-color: var(--text-3); background: #fff; }
body.single .post-navigation .nav-next { text-align: right; }

/* Sidebar cards for single post */
body.single .widget { 
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--lift-1); padding: 20px; margin-bottom: 16px;
}
body.single .widget-title {
  font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: -0.1px;
  padding-bottom: 10px; border-bottom: 1.5px solid var(--green); margin-bottom: 12px;
}

@media (max-width: 900px) {
  body.single .inside-article { padding: 28px 22px; }
  body.single .entry-title { font-size: 20px; }
  body.single .entry-content h2 { font-size: 17px; }
}
@media (max-width: 640px) {
  body.single .inside-article { padding: 22px 16px; }
  body.single .entry-title { font-size: 18px; }
  body.single .post-navigation .nav-links { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   STATIC PAGES (About, Contact, Privacy)
   ═══════════════════════════════════════ */

body.page .inside-article {
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--lift-1); padding: 40px 36px;
}
body.page article { background: none; border: none; box-shadow: none; }
body.page .entry-title {
  font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px;
  margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
body.page .entry-title::before {
  content: ''; width: 3px; height: 18px; background: var(--green); border-radius: 2px; flex-shrink: 0;
}
body.page .entry-content { font-size: 15px; line-height: 1.8; color: var(--text); }
body.page .entry-content h2 {
  font-size: 18px; font-weight: 800; color: var(--ink); margin: 32px 0 12px;
  padding-left: 14px; border-left: 3px solid var(--green);
}
body.page .entry-content h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
body.page .entry-content p { margin-bottom: 16px; }
body.page .entry-content ul, body.page .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
body.page .entry-content li { margin-bottom: 4px; font-size: 14.5px; color: var(--text-2); }
body.page .entry-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
}
body.page .entry-content table th {
  background: var(--bg-subtle); font-weight: 700; color: var(--ink); text-align: left;
  padding: 10px 14px; border: 1px solid var(--rule);
}
body.page .entry-content table td {
  padding: 10px 14px; border: 1px solid var(--rule); color: var(--text-2);
}

/* Contact form styling */
body.page .entry-content input[type="text"],
body.page .entry-content input[type="email"],
body.page .entry-content input[type="tel"],
body.page .entry-content textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--rule);
  border-radius: 6px; font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--bg); outline: none; transition: border-color .2s;
}
body.page .entry-content input:focus, body.page .entry-content textarea:focus {
  border-color: var(--green);
}
body.page .entry-content input[type="submit"], body.page .entry-content button[type="submit"] {
  background: var(--green); color: #fff; border: none; border-radius: 6px;
  padding: 10px 28px; font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .15s;
}
body.page .entry-content input[type="submit"]:hover, body.page .entry-content button[type="submit"]:hover {
  background: var(--green-deep);
}

    /* ═══════════════════════════════════════
       HOMEPAGE SPECIFICITY OVERRIDES
       (beat body.page .entry-content h2/h3)
       ═══════════════════════════════════════ */
    body.page .entry-content .btmr-home .stitle {
      font-size: 15px; font-weight: 800; letter-spacing: -0.1px;
      color: var(--ink); margin: 0 0 14px 0; padding: 0; border: none;
      display: flex; align-items: center; gap: 10px;
    }
    body.page .entry-content .sec-hd h3 {
      font-size: 13px; font-weight: 700; color: var(--text-2);
      letter-spacing: -0.1px; margin: 0; padding: 0; border: none;
    }
    body.page .entry-content .top-card h3.card-title {
      font-size: 16px; font-weight: 700; color: var(--text);
      line-height: 1.45; letter-spacing: -0.2px; margin: 0 0 8px 0;
      padding: 0; border: none;
    }
    /* Remove extra top margin from GeneratePress .inside-page on homepage */
    body.page.page-template-default .inside-page { margin-top: 0; }
    body.page .site-main > article { margin-bottom: 0; }
    /* Remove all link underlines in homepage (match mockup: a { text-decoration: none }) */
    .entry-content .btmr-home a { text-decoration: none; color: inherit; }
    .entry-content .btmr-home a:hover { text-decoration: none; }
    /* Remove link underlines in footer */
    .btmr-ft a { text-decoration: none; }
    /* Fix GeneratePress padding/margin on homepage */
    body.page .inside-article { padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
    body.page .entry-content { margin-top: 0; }
    /* Fix footer gap on pages */
    .site-footer { margin-top: 0; }
    /* Nav link underline to match mockup (1.5px solid rule-light, green on hover) */
    .main-navigation .main-nav > ul > li > a {
      border-bottom: 1.5px solid var(--rule-light);
      padding: 8px 18px 5px;
      transition: all .12s;
    }
    .main-navigation .main-nav > ul > li > a:hover {
      border-bottom-color: var(--green);
    }

    /* ═══ GLOBAL PAGE WIDTH — all pages 1080px centered ═══ */
    .site-main {
      max-width: 1080px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    body.archive .site-main,
    body.single .site-main,
    body.search .site-main,
    body.error404 .site-main {
      padding-left: 32px;
      padding-right: 32px;
    }
    body.archive .page-header {
      max-width: 1080px;
      margin: 0 auto !important;
      padding: 20px 32px;
    }
    /* Remove inside-article side padding on homepage (btmr-home has own padding) */
    body.page .inside-article {
      padding-left: 0;
      padding-right: 0;
    }


@media (max-width: 640px) {
  body.page .inside-article { padding: 0 18px 24px; }
  body.page .entry-title { font-size: 19px; }
}
