.article-page {
  background: #f3f6f3;
}

.article-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  color: #365057;
  border-radius: 5px;
  font-size: 14px;
}

.article-nav > a:hover {
  color: var(--teal-dark);
  background: #edf3f1;
}

.article-nav .nav-cta {
  color: #fff;
  background: var(--teal-dark);
}

.article-shell {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--teal);
}

.article-header {
  margin-top: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.article-header .text-link,
.article-body .text-link {
  color: var(--teal);
}

.article-header h1,
.articles-index h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-lead {
  max-width: 800px;
  margin: 20px 0 0;
  color: #4f666b;
  font-size: 18px;
  line-height: 1.8;
}

.article-meta {
  margin: 18px 0 0;
  color: #5e7277;
  font-size: 12px;
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
}

.article-header-meta .article-meta {
  margin: 0;
}

.article-share-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--teal);
  border: 1px solid #b9c9c6;
  border-radius: 5px;
  background: #edf3f1;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.article-share-button:hover {
  border-color: var(--teal);
  background: #e1ece9;
}

.article-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.article-quick-actions .text-link {
  margin-top: 0;
}

.article-body {
  padding-top: 24px;
}

.article-body > section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.25;
}

.article-body p {
  margin: 0 0 16px;
  color: #435b60;
  font-size: 16px;
  line-height: 1.9;
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: #435b60;
}

.article-video-embed {
  aspect-ratio: 16 / 9;
  margin: 22px 0 16px;
  overflow: hidden;
  border: 1px solid #b8c8c5;
  border-radius: 8px;
  background: #0f2528;
}

.article-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-faqs {
  border-top: 1px solid var(--line);
}

.article-mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 10px 0 24px;
  padding: 24px;
  border: 1px solid #b9d3cc;
  border-radius: var(--radius);
  background: #edf5f1;
}

.article-mid-cta strong {
  font-size: 18px;
}

.article-mid-cta p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.article-mid-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.article-mid-actions .text-link {
  justify-content: center;
  margin-top: 0;
  color: var(--teal);
  font-weight: 700;
}

.billing-calculator {
  margin: 28px 0;
  padding: 26px;
  border: 1px solid #b9d3cc;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 48, 55, 0.04), transparent 52%),
    #f7faf8;
}

.billing-calculator-heading h2 {
  margin: 8px 0 0;
}

.billing-calculator-heading > p:last-child {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.billing-calculator-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  margin-top: 22px;
}

.billing-calculator-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.billing-calculator-controls label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.billing-calculator-controls select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.billing-calculator-controls .billing-calculator-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #edf5f1;
  font-weight: 600;
  line-height: 1.55;
}

.billing-calculator-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.billing-calculator-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-calculator-result > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-top: 3px solid var(--teal);
  background: #fff;
}

.billing-calculator-result span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.billing-calculator-result strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.billing-calculator-result .is-saving {
  border-color: var(--orange);
  background: #fff7ef;
}

.billing-calculator-result .is-saving strong {
  color: var(--orange);
}

.billing-calculator-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.billing-calculator-cta {
  margin-top: 16px;
}

.article-faqs details {
  border-bottom: 1px solid var(--line);
}

.article-faqs summary {
  position: relative;
  padding: 20px 42px 20px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.article-faqs summary::-webkit-details-marker {
  display: none;
}

.article-faqs summary::after {
  position: absolute;
  right: 4px;
  content: "+";
  color: var(--teal);
}

.article-faqs details[open] summary::after {
  content: "−";
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding: 28px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: var(--radius);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.article-related-grid a {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease;
}

.article-related-grid a:hover {
  transform: translateY(-3px);
  border-color: #9eb9b6;
}

.article-related-grid span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.article-related-grid strong {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
}

.article-related-grid svg {
  margin-top: auto;
  color: var(--teal);
}

.article-cta p {
  margin: 8px 0 0;
  color: #c7ddde;
}

.articles-index .article-shell {
  padding-top: 70px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.articles-tool-row {
  margin-top: 24px;
}

.articles-tool-row .button {
  color: #fff;
  background: var(--teal-dark);
}

.article-search {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.article-search label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 800;
}

.article-search-row {
  display: flex;
  gap: 10px;
}

.article-search input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid #b9c9c6;
  border-radius: 6px;
  background: #fff;
}

.article-search input:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(11, 107, 117, 0.16);
  outline-offset: 1px;
}

.article-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.article-search-clear {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  color: var(--teal-dark);
  border: 1px solid #b9c9c6;
  border-radius: 6px;
  background: #edf3f1;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.article-search-status {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.article-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.article-search-chips > span {
  color: var(--muted);
  font-size: 12px;
}

.article-search-chips button {
  padding: 5px 9px;
  color: var(--teal-dark);
  border: 1px solid #c9d7d4;
  border-radius: 5px;
  background: #f5f8f6;
  cursor: pointer;
  font-size: 12px;
}

.article-search-chips button:hover,
.article-search-chips button.is-selected {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.article-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-card h2 {
  margin: 16px 0 0;
  font-size: 21px;
  line-height: 1.35;
}

.article-card p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.article-card strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--teal);
  font-size: 13px;
}

.article-footer {
  margin-top: 0;
}

@media (max-width: 700px) {
  .article-nav > a:not(.nav-cta) {
    display: none;
  }

  .article-shell {
    width: min(100% - 28px, 620px);
    padding-top: 34px;
  }

  .article-header h1,
  .articles-index h1 {
    font-size: 38px;
  }

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

  .article-search-row {
    flex-direction: column;
  }

  .article-search-clear {
    width: 100%;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-mid-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-mid-actions .button {
    width: 100%;
  }

  .billing-calculator {
    padding: 20px;
  }

  .billing-calculator-grid,
  .billing-calculator-result {
    grid-template-columns: 1fr;
  }

  .billing-calculator-result > div {
    min-height: 84px;
  }

  .billing-calculator-cta {
    width: 100%;
  }

  .article-cta .button {
    width: 100%;
  }
}
