.content-page:has(.ip-diagnostics) .breadcrumb {
  display: none;
}
.ip-diagnostics {
  padding: 0;
}
.ip-diagnostics .heading {
  display: flex;
  padding: 0;
  margin: 0 0 20px;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ip-diagnostics h1 {
  margin: 0;
}
.diag-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.diag-toolbar,
.diag-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.diag-actions {
  justify-content: flex-end;
}
.diag-toolbar label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.diag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.diag-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: #fff;
  min-width: 0;
}
.diag-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.diag-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.diag-brand {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}
.diag-link {
  font-size: 12px;
  color: var(--muted);
}
.diag-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.diag-latency {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.diag-small-flag {
  width: 20px;
  height: 15px;
  object-fit: contain;
  border-radius: 2px;
  vertical-align: middle;
}
.diag-ip {
  font: 600 19px/1.5 monospace;
  overflow-wrap: anywhere;
  min-height: 29px;
}
.diag-ip-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.diag-ip-line .diag-ip {
  min-width: 0;
}
.diag-flag {
  flex: 0 0 auto;
  display: inline-flex;
}
.diag-flag img {
  width: 24px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
}
.diag-flag[hidden],
.diag-family[hidden],
.diag-ipv6-note[hidden] {
  display: none;
}
.diag-family {
  font-size: 11px;
  line-height: 1.4;
  flex-shrink: 0;
}
.diag-ipv6-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #dfc899;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.diag-ipv6-note .ph-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  color: #9c742c;
}
.diag-ipv6-note .diag-link {
  white-space: normal;
}
.diag-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  min-height: 18px;
}
.diag-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.diag-row:last-child {
  border-bottom: 0;
}
.diag-row > span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}
.diag-value {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.diag-chip {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 7px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}
.diag-chip.good {
  background: #edf5ef;
  color: #378264;
}
.diag-chip.warn {
  background: #fbf4e6;
  color: #9c742c;
}
.diag-chip.bad {
  background: #fcf0ed;
  color: #b3523c;
}
.diag-score-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  min-height: 54px;
}
.diag-score {
  font-size: 44px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin: 0;
  color: var(--diag-score-color, var(--muted));
}
.diag-chip.diag-score-status {
  color: color-mix(in srgb, var(--diag-score-color) 70%, #000);
  background: color-mix(in srgb, var(--diag-score-color) 12%, #fff);
}
.diag-score-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 22px;
  text-align: center;
  min-height: 21px;
}
.diag-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--diag-score-gradient);
}
.diag-meter[data-unknown='true'] {
  background: var(--line);
}
.diag-meter-marker {
  position: absolute;
  top: -6px;
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 2px #fff;
  transform: translateX(-50%);
}
.diag-scale {
  position: relative;
  height: 18px;
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 24px;
}
.diag-scale span {
  position: absolute;
  white-space: nowrap;
}
.diag-scale span:nth-child(1) {
  left: 0;
}
.diag-scale span:nth-child(2) {
  left: 25%;
  transform: translateX(-50%);
}
.diag-scale span:nth-child(3) {
  left: 50%;
  transform: translateX(-50%);
}
.diag-scale span:nth-child(4) {
  left: 75%;
  transform: translateX(-50%);
}
.diag-scale span:nth-child(5) {
  right: 0;
}
.diag-history-score {
  font-variant-numeric: tabular-nums;
  color: var(--diag-score-color, var(--ink));
}
.diag-alerts[hidden] {
  display: none;
}
.diag-alerts {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
}
.diag-alerts[data-severity='warn'] {
  background: #fff9ee;
  border-color: #e1c99e;
  color: #795919;
}
.diag-alerts[data-severity='bad'] {
  background: #fff4f2;
  border-color: #e0b0a9;
  color: #a33c31;
}
.diag-alert-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding-top: 3px;
}
.diag-alert-heading .ph-icon {
  width: 18px;
  height: 18px;
}
.diag-alert-items {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.diag-alert-item {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 3px 0;
  cursor: pointer;
  text-align: left;
  text-underline-offset: 3px;
}
.diag-alert-item:hover {
  text-decoration: underline;
}
.diag-alert-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
.diag-alert-item.info {
  color: var(--muted);
}
.diag-alert-item.bad {
  color: #a33c31;
  font-weight: 600;
}
.diag-card[data-severity='warn'],
.diag-card[data-severity='bad'] {
  border-color: #dfc899;
}
.diag-card:focus {
  outline: none;
}
.diag-half {
  grid-column: span 1;
}
.diag-device {
  grid-column: 1 / -1;
}
.diag-device .diag-row {
  align-items: flex-start;
  padding: 16px 0;
  line-height: 1.7;
}
.diag-device-lines {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.diag-fingerprint {
  font-family: monospace;
  letter-spacing: 0.06em;
}
.diag-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0 0;
}
.diag-help {
  cursor: help;
  color: var(--muted);
  font-size: 13px;
}
.diag-history {
  margin-top: 18px;
}
.diag-history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.diag-history-heading h2 {
  margin: 0;
}
.diag-history table {
  width: 100%;
  font-size: 13px;
}
.diag-history td,
.diag-history th {
  padding: 14px;
  text-align: left;
}
.diag-history .diag-ip {
  font-size: 13px;
}
.diag-history .table-wrap:has(> p) {
  border: 0;
}
.diag-history .table-wrap > p {
  margin: 16px 0 0;
}
.diag-ip-hidden [data-private-ip] {
  filter: blur(6px);
  user-select: none;
}
@media (max-width: 1100px) {
  .diag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diag-device {
    grid-column: span 2;
  }
}
@media (max-width: 650px) {
  .diag-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .diag-device {
    grid-column: auto;
  }
  .diag-card {
    padding: 18px;
  }
  .diag-actions {
    justify-content: flex-start;
  }
  .diag-row {
    font-size: 12px;
  }
  .diag-ip {
    font-size: 18px;
  }
}

@media (max-width: 650px) {
  .diag-alerts {
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
  }
  .diag-alert-heading {
    padding-top: 0;
  }
  .diag-alert-items {
    gap: 4px 12px;
  }
}

.diag-checklist {
  grid-column: 1 / -1;
}
.diag-checklist > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}
.diag-checklist > summary::-webkit-details-marker {
  display: none;
}
.diag-checklist > summary > strong {
  font-size: 15px;
  font-weight: 600;
}
.diag-checklist > summary > span:not(.ph-icon) {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.diag-checklist > summary .ph-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.diag-checklist[open] > summary .ph-icon {
  transform: rotate(45deg);
}
.diag-checklist[open] > summary {
  margin-bottom: 20px;
}
.diag-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.diag-check-row strong {
  font-weight: 550;
}
.diag-check-row p {
  margin: 5px 0 0;
  line-height: 1.6;
  font-size: 12px;
  color: var(--muted);
}
.diag-check-evidence {
  display: block;
  overflow-wrap: anywhere;
}
.diag-check-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 16px;
}
.diag-check-deduction {
  width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.diag-check-row[data-status='fail'] .diag-check-deduction {
  color: #916723;
}
.diag-check-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
}
.diag-score-details {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-underline-offset: 3px;
}
.diag-score-details:hover {
  text-decoration: underline;
}
.diag-legacy-score {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
@media (max-width: 650px) {
  .diag-checklist > summary {
    flex-wrap: wrap;
    gap: 8px;
  }
  .diag-checklist > summary > span:not(.ph-icon) {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .diag-checklist > summary > .ph-icon {
    margin-left: auto;
  }
  .diag-check-row {
    align-items: flex-start;
    gap: 12px;
  }
  .diag-check-status {
    gap: 6px;
  }
}

/* The article uses the shared shell width, without a second narrow column. */
.content-page:has(.ipv6-guide) .breadcrumb {
  display: none;
}
.ipv6-guide {
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 3vw, 40px);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.ipv6-guide h1 {
  margin: 26px 0 18px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.ipv6-guide h1 + p {
  color: var(--muted);
}
.ipv6-guide h2 {
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 21px;
  line-height: 1.5;
}
.ipv6-guide h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 1.6;
}
.ipv6-guide p {
  margin: 16px 0;
}
.ipv6-guide ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style: disc;
}
.ipv6-guide li + li {
  margin-top: 10px;
}
.ipv6-guide a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ipv6-guide .ipv6-back {
  text-decoration: none;
}
.ipv6-guide .ipv6-callout {
  padding: 20px 24px;
  border: 1px solid;
  border-radius: 10px;
}
.ipv6-guide .ipv6-callout-warning {
  background: #fef3c7;
  border-color: #fbbf24;
}
.ipv6-guide .ipv6-callout-success {
  background: #d1fae5;
  border-color: #4ade80;
}
.ipv6-guide .ipv6-callout-info {
  background: #eff6ff;
  border-color: #93c5fd;
}
.ipv6-route-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.ipv6-guide .ipv6-route {
  margin: 0;
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
}
.ipv6-guide .ipv6-route-v4 {
  background: #f0fdf4;
  border-color: #86efac;
}
.ipv6-guide .ipv6-route-v6 {
  background: #fef2f2;
  border-color: #fca5a5;
}
.ipv6-route-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.8;
}
.ipv6-route-badge-success {
  color: #047857;
  background: #d1fae5;
}
.ipv6-route-badge-warning {
  color: #92400e;
  background: #fef3c7;
}
.ipv6-guide blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid #d1d5db;
  background: #f8fafc;
  color: #5b6470;
}
.ipv6-guide blockquote strong {
  color: var(--ink);
}
.ipv6-guide code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f3f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .ipv6-route-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
  .ipv6-guide .ipv6-callout {
    padding: 16px;
  }
  .ipv6-guide h2 {
    margin-top: 32px;
    font-size: 20px;
  }
}
