:root {
  color-scheme: light;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-subtle: #eef6fb;
  --text: #101828;
  --muted: #475467;
  --line: #e4e7ec;
  --accent: #0084d4;
  --accent-soft: rgba(0, 132, 212, 0.12);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbfe 0%, var(--bg) 100%);
}

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

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-10);
}

body.page-home .page-shell {
  width: min(100%, 880px);
}

body.page-category .page-shell,
body.page-contact .page-shell {
  width: min(100%, 800px);
}

.utility-header {
  margin-bottom: var(--space-6);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 28px;
}

.utility-title,
.back-link {
  min-width: 0;
}

.page-title {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.18;
  font-weight: 700;
}

.utility-title {
  font-size: 1.25rem;
  color: var(--accent);
}

.page-title--article {
  font-size: clamp(1.85rem, 4vw, 2.4rem);
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.breadcrumb-row a {
  color: var(--accent);
}

.breadcrumb-current {
  color: var(--muted);
}

.breadcrumb-separator {
  color: #98a2b3;
}

.section-title {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1.22;
  font-weight: 700;
}

.lead,
p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.lead {
  margin: var(--space-3) 0 0;
  max-width: 66ch;
}

.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;
}

.language-select-wrap {
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.language-select {
  min-height: 24px;
  max-width: 92px;
  padding: 0 14px 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 500;
  font-family: inherit;
  appearance: auto;
}

.content-section,
.page-footer {
  margin-top: var(--space-8);
}

.content-column {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: var(--space-5);
}

body.page-home .content-column {
  max-width: 820px;
}

body.page-category .content-column,
body.page-contact .content-column {
  max-width: 760px;
}

.article-column {
  width: 100%;
}

.article-body p + p,
.content-block p + p {
  margin-top: var(--space-3);
}

.content-block {
  margin-top: var(--space-6);
}

.content-block h2 {
  margin: 0 0 var(--space-2);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 700;
}

.body-list,
.row-list {
  margin: 0;
  padding: 0;
}

.body-list {
  padding-inline-start: 22px;
}

.body-list li + li {
  margin-top: 8px;
}

.row-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.row-list-item {
  margin: 0;
}

.list-row,
.action-row {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 16px 18px;
}

.list-row-title,
.action-row h3 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

.list-row:hover,
.action-row:hover {
  border-color: rgba(0, 132, 212, 0.22);
}

.list-row-chevron {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 1.1rem;
}

.action-row {
  align-items: flex-start;
}

.action-row h3,
.note-panel h2 {
  margin: 0;
}

.action-row-copy {
  flex: 1;
}

.action-row p,
.note-panel p {
  margin: 6px 0 0;
}

.article-media {
  margin: 0 0 var(--space-5);
}

.article-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.note-panel {
  padding-top: 0;
  border-top: 0;
}

.note-panel--support {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.note-panel h2 {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
}

.note-panel p {
  font-size: 0.95rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.note-panel--support .text-link {
  margin-inline-start: auto;
  white-space: nowrap;
}

.page-footer {
  padding-bottom: var(--space-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
}

.entry-shell {
  padding-top: 56px;
}

.entry-surface {
  max-width: 720px;
  margin: 0 auto;
}

html[dir='rtl'] body {
  text-align: right;
}

html[dir='rtl'] .utility-bar,
html[dir='rtl'] .list-row,
html[dir='rtl'] .action-row,
html[dir='rtl'] .footer-links,
html[dir='rtl'] .breadcrumb-row {
  flex-direction: row-reverse;
}

@media (max-width: 720px) {
  .page-shell {
    padding: var(--space-3) var(--space-3) var(--space-8);
  }

  .utility-bar {
    gap: 8px;
  }

  .page-title {
    font-size: 1.15rem;
  }

  .page-title--article {
    font-size: 1.85rem;
  }

  .breadcrumb-row {
    font-size: 0.78rem;
  }

  .language-select {
    max-width: 84px;
  }

  .list-row,
  .action-row {
    padding: 14px 16px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .content-column {
    padding: var(--space-4);
  }

  .action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .note-panel--support {
    align-items: flex-start;
  }
}
