:root {
  --white: #ffffff;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --soft-2: #f2f4f7;
  --ink: #162033;
  --muted: #667085;
  --line: #e6e8ec;
  --navy: #132238;
  --navy-2: #1f314d;
  --gold: #c79a5b;
  --gold-soft: #f6efe5;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(18, 32, 56, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--white);
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(19,34,56,.12);
}

.brand-copy strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: .01em;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.desktop-nav a {
  font-size: 14px;
  color: #344054;
  padding: 9px 13px;
  border-radius: 999px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--gold-soft);
  color: var(--navy);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav div {
  position: absolute;
  right: 0;
  top: 48px;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #344054;
}

.mobile-nav a:hover {
  background: var(--soft);
}

.site-main {
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 22px;
  align-items: stretch;
}

.hero-text,
.hero-note,
.card,
.writing-panel,
.post-row,
.empty,
.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-text {
  padding: clamp(34px, 5vw, 62px);
  background:
    linear-gradient(180deg, #ffffff, #ffffff),
    radial-gradient(circle at top right, rgba(199,154,91,.14), transparent 44%);
}

.eyebrow {
  display: inline-flex;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1,
.page-head h1,
.article-head h1 {
  color: var(--navy);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  max-width: 850px;
}

.hero p {
  max-width: 710px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  font-size: 14px;
}

.btn.primary {
  background: var(--navy);
  color: white;
}

.btn.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.hero-note {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, #ffffff, #fafafa);
}

.soft-icon,
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--gold-soft);
  font-size: 23px;
  margin-bottom: 18px;
}

.hero-note h2,
.card h3,
.post-row h2 {
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-note p,
.card p,
.post-row p,
.page-head p,
.article-head p,
.empty p {
  color: var(--muted);
}

.section-label {
  margin: 34px 0 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-label span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.section-label h2 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  transition: .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #dbc5a5;
}

.writing-panel {
  margin-top: 22px;
  padding: 32px;
}

.writing-panel h2,
.article-body h2,
.article-body h3 {
  color: var(--navy);
  letter-spacing: -0.025em;
}

.writing-panel p,
.writing-panel li,
.article-body p,
.article-body li {
  color: #344054;
}

.page-head {
  max-width: 800px;
  margin-bottom: 24px;
}

.page-head h1,
.article-head h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-row {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  transition: .18s ease;
}

.post-row:hover {
  transform: translateY(-2px);
  border-color: #dbc5a5;
}

.post-label {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-side {
  color: #7b8493;
  font-size: 13px;
  text-align: right;
}

.post-side small {
  display: block;
  margin-top: 8px;
}

.empty {
  padding: 30px;
}

.article {
  padding: clamp(30px, 5vw, 58px);
}

.article-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 34px;
}

.back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-weight: 800;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #7b8493;
  font-size: 13px;
  margin-top: 14px;
}

.article-body {
  max-width: 780px;
  font-size: 17px;
}

.article-body a {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
}

.article-body code {
  background: var(--soft-2);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 7px;
}

.article-body pre {
  background: #111827;
  color: #f9fafb;
  border-radius: 16px;
  padding: 18px;
  overflow-x: auto;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: #fbf7f1;
  border-radius: 14px;
}

.site-footer {
  flex-shrink: 0;
  background: var(--navy);
  color: #dbe4ef;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.footer-brand strong {
  color: white;
  display: block;
}

.footer-brand p {
  color: #b7c4d4;
  max-width: 520px;
  margin: 8px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-links span {
  display: block;
  color: white;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-links a {
  display: block;
  color: #c5d1e0;
  margin: 7px 0;
}

.footer-links p {
  margin: 0;
  color: #b7c4d4;
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #a7b5c8;
  font-size: 13px;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .post-side {
    text-align: left;
  }

  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .site-main,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero-text,
  .hero-note,
  .writing-panel,
  .article {
    padding: 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* MI50 benchmark post additions */
.article-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 24px 0;
  background: #fff;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.article-body th,
.article-body td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
}

.article-body tr:last-child td {
  border-bottom: 0;
}
