/**
 * PropGlen — SEO Guide Pages V1 (+ D8 hub polish)
 * Long-form rental guides. Load AFTER css/style.css and css/legal-pages.css.
 * Scoped to .guide-body / .pg-guides-index only. Article bodies stay English (no i18n keys).
 */

.guide-body.bayut-serp-page .guide-page > .container {
  width: min(100% - 32px, 720px);
  max-width: 720px;
}

/* ------------------------------------------------------------------ */
/* Guides hub                                                         */
/* ------------------------------------------------------------------ */

body.pg-guides-index.guide-body main {
  padding-bottom: 12px;
}

body.pg-guides-index.guide-body .guide-page > .container {
  width: min(100% - 32px, 920px);
  max-width: 920px;
}

body.pg-guides-index .pg-guides-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

@media (min-width: 768px) {
  body.pg-guides-index .pg-guides-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body.pg-guides-index .pg-guides-card {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid rgba(6, 43, 91, 0.12);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.pg-guides-index .pg-guides-card:hover,
body.pg-guides-index .pg-guides-card:focus-visible {
  border-color: rgba(11, 163, 96, 0.45);
  box-shadow: 0 8px 24px rgba(6, 43, 91, 0.06);
  outline: none;
}

body.pg-guides-index .pg-guides-card:focus-visible {
  outline: 2px solid #0ba360;
  outline-offset: 3px;
}

body.pg-guides-index .pg-guides-card__eyebrow {
  margin: 0 0 8px;
  color: #0ba360;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.pg-guides-index .pg-guides-card h2 {
  margin: 0 0 8px;
  color: #062b5b;
  font-size: 1.2rem;
  line-height: 1.3;
}

body.pg-guides-index .pg-guides-card p {
  margin: 0;
  color: #3d4d60;
  line-height: 1.55;
}

.guide-body.bayut-serp-page .guide-intro {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.guide-body.bayut-serp-page .guide-intro .bayut-serp__title,
.guide-body.bayut-serp-page .guide-intro h1.bayut-serp__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: var(--weight-title, 700);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #161b26;
}

.guide-body.bayut-serp-page .guide-intro .bayut-serp__subtitle {
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c6575;
}

.guide-body.bayut-serp-page .guide-article.legal-document > .guide-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid #e2e6ee;
  border-radius: 999px;
  background: #f8f9fc;
  color: #6a7384;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.guide-body.bayut-serp-page .guide-article h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: var(--weight-title, 700);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #161b26;
}

.guide-body.bayut-serp-page .guide-article ol.guide-steps {
  margin: 0.35rem 0 0.15rem;
  padding: 0 0 0 1.35rem;
  list-style: decimal;
}

.guide-body.bayut-serp-page .guide-article ol.guide-steps > li {
  margin: 0.55rem 0;
  padding-left: 0.2rem;
  color: #2a3140;
  font-size: 1rem;
  line-height: 1.72;
}

.guide-body.bayut-serp-page .guide-article .guide-table-wrap {
  width: 100%;
  margin: 0.85rem 0 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e8ef;
  border-radius: 8px;
  background: #fff;
}

.guide-body.bayut-serp-page .guide-article table.guide-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.guide-body.bayut-serp-page .guide-article table.guide-table th,
.guide-body.bayut-serp-page .guide-article table.guide-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #eceff4;
  text-align: left;
  vertical-align: top;
  color: #2a3140;
}

.guide-body.bayut-serp-page .guide-article table.guide-table th {
  background: #f7f8fb;
  font-weight: 700;
  color: #161b26;
}

.guide-body.bayut-serp-page .guide-article table.guide-table td:last-child,
.guide-body.bayut-serp-page .guide-article table.guide-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.guide-body.bayut-serp-page .guide-article table.guide-table--compare td:last-child,
.guide-body.bayut-serp-page .guide-article table.guide-table--compare th:last-child,
.guide-body.bayut-serp-page .guide-article table.guide-table--compare td:nth-child(2),
.guide-body.bayut-serp-page .guide-article table.guide-table--compare th:nth-child(2) {
  text-align: left;
  white-space: normal;
  min-width: 5.5rem;
}

.guide-body.bayut-serp-page .guide-article table.guide-table tr:last-child th,
.guide-body.bayut-serp-page .guide-article table.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-body.bayut-serp-page .guide-article .guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1.25rem;
}

.guide-body.bayut-serp-page .guide-article .guide-cta-row a {
  font-weight: 600;
  color: #0a7d57;
  text-underline-offset: 0.14em;
}

.guide-body.bayut-serp-page .guide-article .guide-cta-row a:focus-visible {
  outline: 2px solid #0ba360;
  outline-offset: 3px;
  border-radius: 3px;
}

.guide-body.bayut-serp-page .guide-article .guide-disclaimer {
  margin-top: 1.35rem;
  padding: 0.95rem 1.05rem;
  background: #f5f7fb;
  border: 1px solid #e3e7f0;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3a4252;
}

@media (max-width: 900px) {
  .guide-body.bayut-serp-page .guide-page > .container {
    width: min(100% - 28px, 720px);
  }

  body.pg-guides-index.guide-body .guide-page > .container {
    width: min(100% - 28px, 920px);
  }

  .guide-body.bayut-serp-page .guide-article table.guide-table th,
  .guide-body.bayut-serp-page .guide-article table.guide-table td {
    padding: 0.6rem 0.7rem;
  }
}
