/* AddressScope Phase 15: High-Intent Massachusetts SEO Guides & Interactive Calculators */
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px 20px;
  background: #fdfbf7;
  border-bottom: 1px solid var(--line-main, #ded7c8);
}
@media (min-width: 981px) {
  .menu-toggle,
  .mobile-menu,
  .mobile-menu.active {
    display: none !important;
  }
}

.guide-hero {
  background: linear-gradient(180deg, #ede8dc 0%, #f6f3eb 100%);
  border-bottom: 1px solid var(--line-main, #ded7c8);
  padding: 36px 0 40px;
  max-width: 100%;
  overflow-x: clip;
}
.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted, #797163);
  margin-bottom: 12px;
}
.guide-breadcrumb a {
  color: var(--brand, #0f5c4d);
  font-weight: 700;
  text-decoration: none;
}
.guide-breadcrumb a:hover {
  text-decoration: underline;
}
.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e6f1ee;
  color: #0b4538;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.guide-h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15;
  color: var(--ink-primary, #181613);
  margin: 0 0 12px;
  max-width: 860px;
}
.guide-lead {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-secondary, #4a453c);
  max-width: 780px;
  margin: 0 0 18px;
}
.guide-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12.5px;
  color: var(--ink-muted, #797163);
}

/* Guides Hub Cards */
.guide-hub-section {
  padding: 40px 0 64px;
  background: var(--bg-main, #f6f3eb);
  max-width: 100%;
  overflow-x: clip;
}
.guide-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.guide-hub-card {
  background: #ffffff;
  border: 1px solid var(--line-main, #ded7c8);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(24, 22, 19, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.guide-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 22, 19, 0.09);
}
.guide-hub-card h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink-primary, #181613);
  margin: 0 0 8px;
}
.guide-hub-card p {
  font-size: 14px;
  color: var(--ink-secondary, #4a453c);
  line-height: 1.55;
  margin: 0;
}
.guide-hub-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f5c4d;
  background: #e6f1ee;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.guide-hub-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #ede7db;
}

/* Long-Form Article + Sticky Sidebar Layout */
.guide-body-wrap {
  padding: 36px 0 64px;
  background: var(--bg-main, #f6f3eb);
  max-width: 100%;
  overflow-x: clip;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}
.guide-layout > *,
.guide-article > *,
.guide-card,
.calc-card,
.calc-grid > *,
.calc-results-grid > * {
  min-width: 0;
  max-width: 100%;
}
.guide-article {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.guide-card {
  background: #ffffff;
  border: 1px solid var(--line-main, #ded7c8);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 14px rgba(24, 22, 19, 0.04);
}
.guide-card h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink-primary, #181613);
  margin: 0 0 12px;
}
.guide-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-primary, #181613);
  margin: 18px 0 8px;
}
.guide-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary, #4a453c);
  margin: 0 0 12px;
}
.guide-card ul,
.guide-card ol {
  padding-left: 20px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary, #4a453c);
}

/* Interactive Calculator Box */
.calc-card {
  background: #ffffff;
  border: 2px solid #0f5c4d;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(15, 92, 77, 0.1);
}
.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #0f5c4d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.calc-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 23px;
  color: var(--ink-primary, #181613);
  margin: 0 0 6px;
}
.calc-sub {
  font-size: 14px;
  color: var(--ink-secondary, #4a453c);
  margin: 0 0 18px;
  line-height: 1.5;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-field label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-primary, #181613);
}
.calc-input,
.calc-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5cf;
  background: #fdfbf7;
  color: var(--ink-primary, #181613);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
}
.calc-input:focus,
.calc-select:focus {
  outline: none;
  border-color: #0f5c4d;
  background: #ffffff;
}
.calc-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f8f6;
  border: 1px solid #d5e5de;
  font-size: 13.5px;
  font-weight: 700;
  color: #133c32;
  cursor: pointer;
}
.calc-toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: #0f5c4d;
}
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.calc-res-box {
  background: #f7f4ec;
  border: 1px solid #e2dacb;
  border-radius: 12px;
  padding: 14px 16px;
}
.calc-res-box.primary {
  background: #eaf5f1;
  border-color: #9ed0be;
}
.calc-res-box.warn {
  background: #fdf4f0;
  border-color: #e6b8a8;
}
.calc-res-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted, #797163);
}
.calc-res-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-primary, #181613);
  margin-top: 4px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.calc-res-box.primary .calc-res-val { color: #0b4538; }
.calc-res-box.warn .calc-res-val { color: #9e3f1b; }
.calc-res-note {
  font-size: 12px;
  color: var(--ink-secondary, #4a453c);
  margin-top: 4px;
  line-height: 1.4;
}
.calc-verdict {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f8f6;
  border-left: 4px solid #0f5c4d;
  font-size: 13.5px;
  line-height: 1.55;
  color: #16382f;
}
.calc-verdict.warn {
  background: #fdf4f0;
  border-left-color: #9e3f1b;
  color: #462115;
}

/* Data Tables inside Guides */
.guide-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  margin: 14px 0;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}
.guide-table th {
  text-align: left;
  background: #f5f1e8;
  color: var(--ink-secondary, #4a453c);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 1px solid #e2dacb;
}
.guide-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #efeae0;
  color: var(--ink-primary, #181613);
}
.guide-table tr:last-child td {
  border-bottom: none;
}
.guide-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tag-yes {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f4ee;
  color: #0b4538;
  font-size: 11.5px;
  font-weight: 800;
}
.tag-no {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f0eb;
  color: #6b6458;
  font-size: 11.5px;
  font-weight: 700;
}

/* FAQ Accordion */
.guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-faq-item {
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  background: #fdfbf7;
  overflow: hidden;
}
.guide-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-primary, #181613);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.guide-faq-item summary::-webkit-details-marker {
  display: none;
}
.guide-faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: #0f5c4d;
  font-weight: 800;
}
.guide-faq-item[open] summary::after {
  content: '−';
}
.guide-faq-body {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary, #4a453c);
}

/* Sticky Conversion Sidebar */
.guide-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-side-cta {
  background: linear-gradient(155deg, #0b4538 0%, #146353 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(11, 69, 56, 0.16);
}
.guide-side-cta h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 8px;
}
.guide-side-cta p {
  font-size: 13px;
  line-height: 1.55;
  color: #d6eee7;
  margin: 0 0 14px;
}
.guide-side-btn {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #0b4538;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 8px;
}
.guide-side-btn:hover {
  background: #f6f3eb;
}
.guide-side-btn-ghost {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.guide-side-card {
  background: #ffffff;
  border: 1px solid var(--line-main, #ded7c8);
  border-radius: 14px;
  padding: 18px;
}
.guide-side-card h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted, #797163);
  margin: 0 0 10px;
}
.guide-side-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.guide-side-links a {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f5c4d;
  text-decoration: none;
  line-height: 1.4;
}
.guide-side-links a:hover {
  text-decoration: underline;
}

.guide-legal {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-muted, #797163);
  background: #f5f1e8;
  border: 1px solid #e2dacb;
  border-radius: 12px;
  padding: 14px 16px;
}

.btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

@media (max-width: 980px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-sidebar {
    position: static;
  }
  .guide-hub-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .guide-card,
  .calc-card {
    padding: 18px;
  }
  .calc-grid,
  .calc-results-grid {
    grid-template-columns: 1fr;
  }
}
