/* Long-form layout for /guides/. Loaded after style.css, changes nothing on other pages. */

.guide {
  padding: 132px 0 72px;
}

.guide .container {
  max-width: 720px;
}

.guide-crumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.guide-crumb a {
  color: var(--text-muted);
  text-decoration: underline;
}

.guide h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.guide-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 20px;
}

.guide-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.guide h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 40px 0 12px;
}

.guide p,
.guide li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}

.guide p {
  margin-bottom: 16px;
}

.guide ul,
.guide ol {
  margin: 0 0 16px 22px;
}

.guide li {
  margin-bottom: 6px;
}

.guide a {
  color: var(--coral-deep);
  text-decoration: underline;
}

.guide-cta {
  margin-top: 44px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-cta p {
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 700;
}

.guide-cta .btn {
  text-decoration: none;
  color: var(--white);
}

.guide-sources {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.guide-sources h2 {
  font-size: 1rem;
  margin-top: 0;
}

.guide-sources li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.guide-list {
  list-style: none;
  margin-left: 0;
}

.guide-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.guide-list a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.guide-list a:hover {
  color: var(--coral-deep);
}

.guide-list p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .guide {
    padding: 108px 0 56px;
  }
}

.guide-related {
  margin-top: 36px;
}

.guide-related h2 {
  font-size: 1rem;
  margin-top: 0;
}

.guide-related li {
  margin-bottom: 8px;
}

.law-table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.law-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
  font-size: 0.85rem;
  background: var(--white);
}

.law-table th,
.law-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.law-table thead th {
  background: var(--bg);
  color: var(--navy);
  font-weight: 700;
  position: sticky;
  top: 0;
}

.law-table tbody th {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.law-table td.y { color: #047857; }
.law-table td.n { color: #B42318; }
.law-table td.u { color: var(--text-muted); }

.law-sources {
  margin-left: 0;
  list-style: none;
}

/* the law table page: the table gets the width, the text keeps its reading width */
.guide-wide .container {
  max-width: 1160px;
}

.guide-wide h1,
.guide-wide h2,
.guide-wide p,
.guide-wide ul,
.guide-wide .guide-cta {
  max-width: 720px;
}

.guide-wide .law-sources {
  max-width: none;
}

.law-table td:last-child {
  min-width: 220px;
}

/* keep the country name in view while the table scrolls sideways on a phone */
.law-table tbody th,
.law-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--white);
  z-index: 1;
}

.law-table thead th:first-child {
  background: var(--bg);
  z-index: 2;
}
