:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --ink: #17211b;
  --muted: #68746c;
  --line: #dfe7e1;
  --brand: #1d6a50;
  --brand-2: #e0f1e8;
  --warn: #b66a1d;
  --warn-bg: #fff2dc;
  --danger: #b42318;
  --danger-bg: #fff0ed;
  --success: #1d7f48;
  --success-bg: #e8f6ee;
  --shadow: 0 18px 50px rgba(27, 48, 38, 0.09);
  font-family: Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(29, 106, 80, 0.10), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(232, 241, 235, 0.65));
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 22px 16px;
  background: linear-gradient(180deg, #12372b 0%, #173f31 100%);
  color: #f4fff9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
}

.brand-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: #d6f5e6;
  color: #123026;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: #b9d2c7;
  font-size: 15px;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 16px 16px;
  background: transparent;
  color: #dcebe4;
  font-size: 19px;
  font-weight: 800;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: #eaf8f0;
  color: #123026;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer span,
.sidebar-footer strong {
  display: block;
}

.sidebar-footer span {
  color: #b9d2c7;
  font-size: 15px;
}

.main {
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 36px;
}

h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

p {
  font-size: 17px;
  line-height: 1.45;
}

.topbar-actions,
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 22px;
}

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

.stat,
.panel,
.item-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat {
  padding: 22px;
}

.stat span,
.stat small {
  color: var(--muted);
}

.stat strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 36px;
}

.stat span {
  font-size: 18px;
  font-weight: 800;
}

.stat small {
  font-size: 15px;
}

.stat.warning {
  background: var(--warn-bg);
  border-color: #f0c88f;
}

.stat.success {
  background: var(--success-bg);
  border-color: #bfe7ce;
}

.panel {
  min-width: 0;
  padding: 24px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  min-height: 250px;
  padding: 28px;
  border: 1px solid #d9e5dd;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 246, 238, 0.88)),
    #fff;
  box-shadow: var(--shadow);
}

.dashboard-hero h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.18;
}

.dashboard-hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(18, 55, 43, 0.18);
}

.pay-week-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-2);
  color: var(--brand);
  white-space: nowrap;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header p,
.muted {
  color: var(--muted);
}

.content-grid {
  display: grid;
  gap: 18px;
}

.content-grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
}

textarea {
  resize: vertical;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 56px;
  border-radius: 6px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 750;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.danger-button {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 12px;
  font-size: 17px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.checklist,
.insight-list,
.attendance-list,
.cards-grid {
  display: grid;
  gap: 14px;
}

.check-row,
.insight,
.attendance-row,
.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 6px;
  background: var(--surface-2);
}

.check-row.done {
  background: var(--success-bg);
}

.check-dot {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.check-row.done .check-dot {
  background: var(--success);
  color: #fff;
}

.insight {
  align-items: flex-start;
  background: #f7faf8;
}

.insight strong,
.insight span {
  display: block;
}

.insight span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 17px;
}

.attendance-row {
  align-items: stretch;
}

.attendance-person {
  min-width: 210px;
}

.attendance-person strong,
.attendance-person span {
  display: block;
}

.attendance-person span {
  color: var(--muted);
  font-size: 16px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
  flex: 1;
}

.segmented button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 52px;
  font-size: 17px;
}

.segmented button.active {
  border-color: var(--brand);
  background: var(--brand-2);
  color: var(--brand);
  font-weight: 800;
}

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

.item-card {
  display: grid;
  align-items: start;
  background: #fff;
}

.item-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.item-card h3 {
  margin: 0;
  font-size: 21px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--brand-2);
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.meta-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 17px;
}

.delete-link {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 800;
  text-align: left;
  font-size: 17px;
}

.public-page,
.login-page,
.admin-page {
  background: var(--bg);
}

.public-shell,
.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.public-hero,
.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  min-height: 340px;
}

.hero-copy {
  max-width: 680px;
}

.public-hero-image {
  min-height: 260px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15)),
    url("assets/business-hero.png") center / cover;
  box-shadow: 0 22px 55px rgba(18, 55, 43, 0.16);
}

.public-hero h1,
.admin-top h1,
.login-card h1 {
  margin-bottom: 8px;
  font-size: 38px;
}

.login-link,
.plain-link {
  color: var(--brand);
  font-size: 17px;
  font-weight: 800;
}

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

.blog-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.blog-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--brand-2);
}

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

.placeholder-thumb {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dceee6, #fff2dc);
}

.placeholder-thumb span {
  color: var(--brand);
  font-size: 56px;
  font-weight: 900;
}

.blog-card-body {
  padding: 22px;
}

.blog-card-body > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.blog-card h2 {
  font-size: 24px;
  line-height: 1.25;
}

.blog-content {
  margin-top: 16px;
  color: #26342b;
  font-size: 18px;
  line-height: 1.65;
}

.read-more,
.article-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.discreet-login {
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
}

.article-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.article-card {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-header span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.article-header h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 44px;
  line-height: 1.12;
}

.article-image {
  width: 100%;
  max-height: 460px;
  margin: 18px 0 8px;
  border-radius: 8px;
  object-fit: cover;
}

.article-content {
  margin-top: 20px;
  color: #26342b;
  font-size: 19px;
  line-height: 1.75;
}

.article-content a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
}

.login-card {
  width: min(460px, calc(100% - 32px));
  margin: 70px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.form-error,
.form-success {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 800;
}

.form-error {
  border: 1px solid #f1bbb6;
  background: var(--danger-bg);
  color: var(--danger);
}

.form-success {
  border: 1px solid #bfe7ce;
  background: var(--success-bg);
  color: var(--success);
}

.admin-links,
.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.current-image {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.current-image img {
  width: 110px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
}

.small {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
}

.row-actions form {
  margin: 0;
}

.amount-plus {
  color: var(--success);
  font-weight: 800;
}

.amount-minus {
  color: var(--danger);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .stats-grid,
  .cards-grid,
  .content-grid.two,
  .blog-list,
  .public-hero,
  .dashboard-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .main {
    padding: 18px;
  }

  .topbar,
  .attendance-row,
  .public-hero,
  .admin-top {
    display: grid;
  }

  .stats-grid,
  .cards-grid,
  .content-grid.two,
  .entry-form,
  .blog-list,
  .public-hero,
  .dashboard-hero,
  .form-split {
    grid-template-columns: 1fr;
  }

  .public-hero-image,
  .dashboard-hero img {
    min-height: 220px;
  }

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

/* Professional rebuild */
:root {
  --gold: #c4872d;
  --graphite: #24302a;
  --soft-gold: #fff5e3;
  --soft-blue: #edf5fb;
}

.panel-body {
  background: #f4f6f0;
}

.pro-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.pro-sidebar {
  background:
    linear-gradient(180deg, rgba(18, 55, 43, 0.96), rgba(22, 64, 49, 0.96)),
    url("assets/editorial-hero.png") center / cover;
}

.sidebar-link {
  display: block;
  margin-top: 12px;
  color: #d6f5e6;
  font-weight: 800;
}

.pro-main {
  padding: 34px;
}

.pro-topbar {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.pro-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 330px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 246, 0.92)),
    #fff;
}

.pro-hero h2 {
  font-size: 40px;
}

.pro-hero img {
  aspect-ratio: 16 / 11;
}

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

.finance-stats .stat {
  position: relative;
  overflow: hidden;
}

.finance-stats .stat::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(196, 135, 45, 0.13);
}

.calendar-layout {
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
}

.calendar-title {
  margin-bottom: 12px;
  color: var(--graphite);
  font-size: 22px;
  font-weight: 900;
  text-transform: capitalize;
}

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

.calendar-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  display: grid;
  gap: 4px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.calendar-day strong {
  font-size: 18px;
}

.calendar-day span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.calendar-day.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.calendar-day.selected span,
.calendar-day.selected .positive,
.calendar-day.selected .negative {
  color: #fff;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(196, 135, 45, 0.65);
}

.muted-day {
  opacity: 0.42;
}

.positive {
  color: var(--success) !important;
}

.negative {
  color: var(--danger) !important;
}

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

.statement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7faf8;
}

.statement-row span {
  font-size: 17px;
  font-weight: 800;
}

.statement-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.total-row {
  border: 1px solid #cbe4d5;
  background: var(--success-bg);
}

.feature-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 251, 0.78)),
    #fff;
}

.sales-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.full-button {
  width: 100%;
  margin-top: 12px;
}

.pro-attendance {
  grid-template-columns: 220px minmax(300px, 1fr) 120px;
}

.attendance-cost {
  align-self: center;
  color: var(--danger);
  text-align: right;
}

.pro-card {
  min-height: 210px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.95)),
    #fff;
}

.profit-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(44px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 250px;
  padding: 18px 12px 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfb, #f1f5f2);
  overflow-x: auto;
}

.chart-column {
  display: grid;
  align-items: end;
  gap: 6px;
  min-width: 44px;
  text-align: center;
}

.chart-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.chart-track {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 160px;
  border-radius: 999px;
  background: #e9efe9;
}

.chart-bar {
  width: 22px;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
}

.positive-bar {
  background: linear-gradient(180deg, #2ca965, #1d7f48);
}

.negative-bar {
  background: linear-gradient(180deg, #d56b5f, #b42318);
}

.chart-column span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(223, 231, 225, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.site-logo span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.site-nav a:hover {
  background: var(--brand-2);
  color: var(--brand);
}

.pro-public-shell {
  width: min(1200px, calc(100% - 32px));
}

.pro-public-hero {
  grid-template-columns: minmax(0, 1fr) 470px;
  min-height: 380px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 227, 0.84)),
    #fff;
}

.pro-public-hero h1 {
  max-width: 720px;
  font-size: 48px;
  line-height: 1.08;
}

.editorial-hero-image {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08)),
    url("assets/editorial-hero.png") center / cover;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.blog-feed {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.horizontal-blog-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 174px;
}

.fixed-blog-thumb {
  width: 240px;
  height: 174px;
  aspect-ratio: auto;
}

.horizontal-blog-card .blog-card-body {
  display: grid;
  align-content: center;
  min-width: 0;
}

.horizontal-blog-card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.22;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horizontal-blog-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.post-meta-line a {
  color: var(--brand);
}

.blog-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sidebar-card h2 {
  font-size: 22px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7faf8;
  color: var(--graphite);
  font-weight: 850;
}

.category-list a.active,
.category-list a:hover {
  background: var(--brand);
  color: #fff;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.pro-article-shell {
  width: min(940px, calc(100% - 32px));
}

.pro-article-card {
  padding: 0;
  overflow: hidden;
}

.pro-article-card .article-header {
  padding: 34px 34px 8px;
}

.pro-article-card .article-header h1 {
  max-width: 820px;
  font-size: 50px;
}

.pro-article-card .article-image {
  width: calc(100% - 68px);
  height: 430px;
  margin: 18px 34px 10px;
}

.pro-article-card .article-content {
  padding: 12px 34px 34px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 34px 0;
}

.tag-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft-gold);
  color: #8a5c19;
  font-size: 14px;
  font-weight: 900;
}

.page-card .article-content {
  font-size: 20px;
}

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

.editorial-admin-top {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 251, 0.9)),
    #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.admin-side {
  display: grid;
  gap: 18px;
}

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

.category-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7faf8;
}

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

.category-admin-item span {
  color: var(--muted);
  font-size: 14px;
}

.page-editor-grid {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .pro-shell,
  .admin-grid,
  .blog-layout,
  .calendar-layout,
  .pro-public-hero {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .pro-attendance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .pro-main {
    padding: 16px;
  }

  .site-header,
  .horizontal-blog-card {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .fixed-blog-thumb {
    width: 100%;
    height: 220px;
  }

  .pro-public-hero h1,
  .pro-article-card .article-header h1,
  .pro-hero h2 {
    font-size: 34px;
  }

  .pro-article-card .article-header,
  .pro-article-card .article-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pro-article-card .article-image {
    width: calc(100% - 40px);
    height: 260px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    min-height: 58px;
    padding: 8px;
  }
}
