:root {
  --md-bg: #e9edf1;
  --md-paper: #f8fafb;
  --md-ink: #14202b;
  --md-muted: #5f707e;
  --md-line: #c7d0d7;
  --md-accent: #0e5b7f;
  --md-accent-soft: #dbeaf2;
  --md-dark: #0d1821;
  --md-warm: #c98c49;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background: linear-gradient(180deg, #e6ebef 0%, #f2f5f7 100%);
  color: var(--md-ink);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.md-skip {
  position: absolute;
  top: -80px;
  left: 1rem;
  background: #fff;
  color: #000;
  padding: 0.7rem 0.95rem;
  z-index: 20;
}

.md-skip:focus {
  top: 1rem;
}

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

.md-ribbon {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  color: var(--md-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.md-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid var(--md-line);
}

.md-mark img {
  width: 280px;
}

.md-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.md-nav a,
.md-footer a {
  text-decoration: none;
}

.md-nav a:hover,
.md-footer a:hover,
.md-help-card a:hover {
  color: var(--md-accent);
}

.md-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  padding: 1.8rem 0 1.6rem;
}

.md-kicker {
  margin: 0 0 0.7rem;
  color: var(--md-accent);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
}

.md-intro h1,
.md-titlebar h2,
.md-panel-copy h2,
.md-help h2,
.md-page h1 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.md-intro h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
}

.md-intro p,
.md-disclosure p,
.md-panel-copy p,
.md-row p,
.md-help p,
.md-article p,
.md-article li {
  line-height: 1.75;
}

.md-intro-meta {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.md-intro-meta div,
.md-disclosure,
.md-help-card,
.md-article,
.md-footer {
  background: rgba(248, 250, 251, 0.84);
  border: 1px solid var(--md-line);
}

.md-intro-meta div {
  padding: 1rem;
}

.md-intro-meta strong,
.md-row strong,
.md-article h2,
.md-footer h3 {
  display: block;
}

.md-intro-meta span {
  color: var(--md-muted);
}

.md-ranking {
  padding: 1rem 0 0.8rem;
}

.md-titlebar h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.md-compare {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(248, 250, 251, 0.84);
  border: 1px solid var(--md-line);
}

.md-compare--lead {
  border-left: 4px solid var(--md-accent);
}

.md-brandline {
  display: grid;
  grid-template-columns: 78px 146px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.md-order {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  background: var(--md-dark);
  color: #fff;
  font-weight: 800;
}

.md-brandline img {
  width: 142px;
}

.md-brandline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.38rem;
}

.md-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--md-line);
}

.md-grid strong {
  display: block;
  margin-bottom: 0.4rem;
}

.md-cta {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.md-cta span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--md-accent);
}

.md-cta a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background: var(--md-dark);
  color: #fff;
  text-decoration: none;
}

.md-disclosure {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-top: 1.2rem;
}

.md-side-label {
  color: var(--md-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.md-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  padding: 1.8rem 0;
}

.md-panel-copy h2,
.md-help h2,
.md-page h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.md-media-stack {
  display: grid;
  gap: 0.8rem;
}

.md-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.md-media {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--md-line);
}

.md-media-stack > .md-media {
  min-height: 220px;
}

.md-method {
  padding-bottom: 1.8rem;
}

.md-rows {
  margin-top: 1rem;
}

.md-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--md-line);
}

.md-row:last-child {
  border-bottom: 1px solid var(--md-line);
}

.md-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.md-help-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.2rem;
  background: linear-gradient(180deg, #0f1d28, #12293a);
  color: #e9f1f6;
  border-color: transparent;
}

.md-help-card strong {
  font-size: 2rem;
  color: var(--md-warm);
}

.md-help-card a {
  color: #fff;
}

.md-footer {
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.md-footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.md-footer-top img {
  width: 258px;
}

.md-tags {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.md-tags span {
  padding: 0.6rem 0.8rem;
  background: var(--md-accent-soft);
  color: var(--md-accent);
}

.md-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.md-footer-grid a {
  display: block;
  margin: 0.5rem 0;
}

.md-subpage {
  background: linear-gradient(180deg, #edf1f4 0%, #f6f8fa 100%);
}

.md-page {
  padding: 1.6rem 0 0.5rem;
}

.md-date {
  margin: 0.6rem 0 1rem;
  color: var(--md-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.md-article {
  padding: 1.3rem;
}

.md-article h2 {
  margin-top: 1.8rem;
  font-family: "Source Serif 4", serif;
  font-size: 1.7rem;
}

.md-footer--sub {
  margin-top: 1.2rem;
}

@media (max-width: 980px) {
  .md-head,
  .md-intro,
  .md-grid,
  .md-disclosure,
  .md-panels,
  .md-row,
  .md-help,
  .md-footer-top,
  .md-footer-grid {
    grid-template-columns: 1fr;
  }

  .md-nav {
    justify-content: flex-start;
  }

  .md-brandline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .md-shell {
    width: min(100%, calc(100% - 1.2rem));
  }

  .md-media-row {
    grid-template-columns: 1fr;
  }

  .md-article,
  .md-footer,
  .md-compare,
  .md-disclosure {
    padding: 1rem;
  }
}
