:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #eef4ff;
  --text: #172033;
  --muted: #55627a;
  --line: #d9e1ef;
  --brand: #1d4ed8;
  --brand-deep: #173ea6;
  --accent: #0f766e;
  --danger: #b91c1c;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #ebf2ff 0, #f4f7fb 220px, #f4f7fb 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 225, 239, 0.85);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 4rem 0 2.25rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  margin: 1rem 0 1rem;
  max-width: 11ch;
}

.hero-copy,
.section-copy,
.lead,
.rich-copy p,
.panel-card p,
.info-card p,
.notice,
.post-meta-row,
.detail-list,
.steps-list,
.panel-note,
.status-row {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.search-actions,
.editor-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-points span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 62, 166, 0.08);
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-panel,
.panel-card,
.search-panel,
.editor-card,
.auth-card,
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-panel,
.auth-card,
.panel-card,
.info-card {
  padding: 1.35rem;
}

.hero-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.steps-list {
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

.panel-note {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--panel-soft);
}

.section {
  padding: 1.75rem 0 3rem;
}

.section--muted {
  padding-top: 0;
}

.section-title {
  font-size: clamp(1.75rem, 2vw, 2.4rem);
  margin-bottom: 0.45rem;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.toolbar-actions,
#createPageUser {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-panel,
.editor-card {
  padding: 1rem;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) repeat(2, minmax(0, 1fr)) auto;
  gap: 0.9rem;
  align-items: end;
}

.field-grow {
  min-width: 0;
}

label {
  display: block;
}

label span {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(29, 78, 216, 0.18);
  border-color: rgba(29, 78, 216, 0.45);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.button--primary {
  background: var(--brand);
  color: white;
}

.button--secondary {
  background: var(--accent);
  color: white;
}

.button--ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--line);
}

.button--block {
  width: 100%;
}

.status-row {
  margin: 1rem 0 0.75rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.15rem;
  text-decoration: none;
}

.post-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.post-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.meta-chip {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-deep);
  background: #dbeafe;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
}

.post-card__summary {
  margin: 0;
}

.post-card__footer,
.tag-row,
.post-meta-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.post-card__footer {
  margin-top: auto;
}

.muted-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  margin: 1.6rem 0 0;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.info-grid,
.auth-grid,
.form-grid,
.post-layout {
  display: grid;
  gap: 1rem;
}

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

.auth-layout {
  padding: 2rem 0 3rem;
}

.auth-card {
  margin-bottom: 1rem;
}

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

.notice {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.notice--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

.editor-card {
  display: grid;
  gap: 1rem;
}

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

.post-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.85fr);
  align-items: start;
}

.post-main,
.post-sidebar {
  display: grid;
  gap: 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand-deep);
}

.detail-list,
.updates-list {
  margin: 0;
  padding-left: 1.15rem;
}

.updates-list {
  display: grid;
  gap: 0.85rem;
  padding-left: 0;
}

.update-card {
  list-style: none;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff8db;
  border: 1px solid #f5e3a5;
}

.update-date {
  display: block;
  margin-bottom: 0.35rem;
  color: #8a5b00;
  font-size: 0.9rem;
  font-weight: 800;
}

.rich-copy p {
  margin: 0 0 1rem;
}

@media (max-width: 900px) {
  .hero__grid,
  .post-layout,
  .search-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .site-header__inner {
    align-items: start;
    flex-direction: column;
  }

  .site-header__inner {
    padding: 0.7rem 0;
  }
}
