/* Break My Plan (/break-my-plan/) Self-Hosted Stylesheet — v67 */
:root {
  color-scheme: light;
  --bmp-bg: #f7f8f4;
  --bmp-surface: #ffffff;
  --bmp-surface-alt: #f0f4ee;
  --bmp-ink: #0f172a;
  --bmp-muted: #334155;
  --bmp-border: #cbd5e1;
  --bmp-primary: #006c55;
  --bmp-primary-dark: #005240;
  --bmp-primary-soft: #e6f4f0;
  --bmp-accent: #1d4ed8;
  --bmp-accent-soft: #eff6ff;
  --bmp-warn-bg: #fef3c7;
  --bmp-warn-ink: #78350f;
  --bmp-warn-border: #f59e0b;
  --bmp-err-bg: #fef2f2;
  --bmp-err-ink: #991b1b;
  --bmp-err-border: #dc2626;
  --bmp-ok-bg: #ecfdf5;
  --bmp-ok-ink: #065f46;
  --bmp-ok-border: #10b981;
  --bmp-focus: #0f172a;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.sci-bmp-body {
  margin: 0;
  background: var(--bmp-bg);
  color: var(--bmp-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  background: var(--bmp-surface);
  color: var(--bmp-ink);
  border: 2px solid var(--bmp-primary);
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: var(--bmp-primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bmp-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--bmp-focus);
  outline-offset: 3px;
}

button, input, select, textarea {
  font: inherit;
}

button, .bmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--bmp-border);
  background: var(--bmp-surface);
  color: var(--bmp-ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .bmp-btn:hover {
  background: var(--bmp-surface-alt);
}

button.bmp-btn-primary, .bmp-btn.bmp-btn-primary,
button[aria-pressed="true"] {
  background: var(--bmp-primary);
  color: #ffffff;
  border-color: var(--bmp-primary);
}

button.bmp-btn-primary:hover, .bmp-btn.bmp-btn-primary:hover {
  background: var(--bmp-primary-dark);
}

button.bmp-btn-danger {
  background: var(--bmp-err-bg);
  color: var(--bmp-err-ink);
  border-color: var(--bmp-err-border);
}

.bmp-site-header {
  background: var(--bmp-surface);
  border-bottom: 1px solid var(--bmp-border);
  padding: 0.75rem 1rem;
}

.bmp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bmp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--bmp-ink);
  font-weight: 700;
  font-size: 1.08rem;
}

.bmp-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bmp-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
}

.bmp-brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bmp-muted);
}

.bmp-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.bmp-top-nav a {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--bmp-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.bmp-top-nav a:hover,
.bmp-top-nav a[aria-current="page"] {
  background: var(--bmp-primary-soft);
  color: var(--bmp-primary-dark);
  font-weight: 700;
}

.bmp-subnav-wrap {
  background: var(--bmp-surface-alt);
  border-bottom: 1px solid var(--bmp-border);
  padding: 0.5rem 1rem;
}

.bmp-subnav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.bmp-subnav a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--bmp-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.bmp-subnav a[aria-current="page"],
.bmp-subnav a:hover {
  background: var(--bmp-primary);
  color: #ffffff;
}

.bmp-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.bmp-breadcrumb {
  font-size: 0.85rem;
  color: var(--bmp-muted);
  margin-bottom: 0.85rem;
}

.bmp-hero {
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}

.bmp-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bmp-primary);
  background: var(--bmp-primary-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.bmp-hero h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  line-height: 1.25;
}

.bmp-hero-lead {
  margin: 0 0 1rem;
  color: var(--bmp-muted);
  max-width: 78ch;
}

.bmp-human-banner {
  background: var(--bmp-accent-soft);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--bmp-accent);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0.85rem 0;
  font-size: 0.92rem;
  color: var(--bmp-ink);
}

.bmp-notice-bar {
  background: var(--bmp-warn-bg);
  color: var(--bmp-warn-ink);
  border: 1px solid var(--bmp-warn-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0.85rem 0;
  font-size: 0.88rem;
}

.bmp-status-live {
  background: var(--bmp-ok-bg);
  color: var(--bmp-ok-ink);
  border: 1px solid var(--bmp-ok-border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin: 0.75rem 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.bmp-error-msg {
  background: var(--bmp-err-bg);
  color: var(--bmp-err-ink);
  border: 1px solid var(--bmp-err-border);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.bmp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.1rem;
  margin: 1rem 0;
}

.bmp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.bmp-card {
  background: var(--bmp-surface);
  border: 1px solid var(--bmp-border);
  border-radius: 12px;
  padding: 1.15rem;
}

.bmp-card h2, .bmp-card h3 {
  margin-top: 0;
  line-height: 1.3;
}

.bmp-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.bmp-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bmp-surface-alt);
  color: var(--bmp-ink);
  border: 1px solid var(--bmp-border);
}

.bmp-badge-ok {
  background: var(--bmp-ok-bg);
  color: var(--bmp-ok-ink);
  border-color: var(--bmp-ok-border);
}

.bmp-badge-warn {
  background: var(--bmp-warn-bg);
  color: var(--bmp-warn-ink);
  border-color: var(--bmp-warn-border);
}

.bmp-field-group {
  margin-bottom: 0.9rem;
}

.bmp-field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.bmp-field-unit {
  font-size: 0.8rem;
  color: var(--bmp-muted);
  font-weight: 400;
}

.bmp-input, .bmp-select, .bmp-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bmp-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--bmp-ink);
}

.bmp-textarea {
  min-height: 96px;
  resize: vertical;
}

.bmp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0.85rem 0;
}

.bmp-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0.85rem 0;
}

.bmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bmp-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--bmp-ink);
}

.bmp-table th, .bmp-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--bmp-border);
  text-align: left;
  overflow-wrap: anywhere;
}

.bmp-table th {
  background: var(--bmp-surface-alt);
  font-weight: 700;
}

.bmp-step-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0;
}

.bmp-step-item {
  border: 1px solid var(--bmp-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--bmp-surface);
}

.bmp-step-item[data-active="true"] {
  border: 2px solid var(--bmp-primary);
  background: var(--bmp-primary-soft);
}

.bmp-footer {
  background: var(--bmp-surface);
  border-top: 1px solid var(--bmp-border);
  padding: 1.5rem 1rem;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--bmp-muted);
}

.bmp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.bmp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  button, .bmp-btn {
    border: 1px solid ButtonText;
  }
}
