/* Shared editorial chrome for all Floors Toronto guide skins (.guide-editorial on <body>) */
.guide-editorial {
  --bg1: #0e0f12;
  --bg2: #15171c;
  --bg3: #1e2128;
  --text: #ecebef;
  --muted: #aeb4bf;
  --oak: #c8945a;
  --oak-dim: rgba(200, 148, 90, 0.22);
  background: var(--bg1);
  color: var(--text);
  /* System stack avoids Inter late-swap CLS in the hero (Lighthouse mobile) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Links site-wide on guides: light/white — never browser default blue */
.guide-editorial .site-header a:not(.btn-primary),
.guide-editorial .mobile-menu a,
.guide-editorial .mobile-menu-phone,
.guide-editorial .mobile-menu-home,
.guide-editorial .mobile-acc-summary,
.guide-editorial .phone {
  color: #ecebef;
}
.guide-editorial .site-header a:not(.btn-primary):hover,
.guide-editorial .mobile-menu a:hover,
.guide-editorial .mobile-menu-phone:hover,
.guide-editorial .mobile-menu-home:hover,
.guide-editorial .phone:hover {
  color: #ffffff;
}
.guide-editorial .mobile-menu-btn--primary {
  color: #1a1b1f !important;
}
.guide-editorial .site-footer a {
  color: #ecebef;
}
.guide-editorial .site-footer a:hover {
  color: #ffffff;
}
.guide-editorial .brand {
  color: #ffffff;
}

.guide-editorial main a {
  color: var(--oak);
  text-decoration: underline;
  text-decoration-color: rgba(200, 148, 90, 0.45);
  text-underline-offset: 2px;
}
.guide-editorial main a:hover {
  color: #e0b07a;
  text-decoration-color: rgba(200, 148, 90, 0.8);
}

.guide-editorial .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}
.guide-editorial .guide-hero--editorial {
  padding: 64px 0 52px;
  background: radial-gradient(ellipse 80% 60% at 85% 10%, var(--oak-dim), transparent 55%),
    linear-gradient(165deg, #14161d 0%, var(--bg1) 45%, #12151a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.guide-editorial .guide-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: end;
}
@media (max-width: 880px) {
  .guide-editorial .guide-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }
  .guide-editorial .guide-hero-panel {
    order: 2;
  }
  .guide-editorial .guide-hero-copy {
    order: 1;
  }
  .guide-editorial .guide-hero--editorial {
    padding: 40px 0 36px;
  }
  .guide-editorial .guide-toc a {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.78rem;
  }
}
.guide-editorial .guide-hero-copy {
  text-align: left;
}
.guide-editorial .guide-hero-copy h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0;
  max-width: 30ch;
}
.guide-editorial .guide-label {
  margin: 0 0 12px;
}
.guide-editorial .guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: flex-start;
  align-items: center;
}
.guide-editorial .guide-toc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f5f5f7 !important;
  text-decoration: none !important;
  border: 1px solid #545454;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.85);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.guide-editorial .guide-toc a:hover {
  color: #ffffff !important;
  border-color: var(--oak);
  background: rgba(200, 148, 90, 0.14);
}
.guide-editorial .guide-hero-panel {
  position: relative;
  border-radius: 20px;
  padding: 22px 22px 18px;
  background: linear-gradient(145deg, rgba(30, 33, 40, 0.95), rgba(18, 20, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  /* Reserve layout so late CSS/font paint does not shift the hero (CLS) */
  contain: layout;
  min-height: 220px;
}
.guide-editorial .guide-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
}
.guide-editorial .guide-hero-panel > svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 120;
  margin-bottom: 18px;
  opacity: 0.93;
  position: relative;
  z-index: 1;
}
.guide-editorial .guide-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
  /* Keep 3 columns on small screens to avoid CLS from grid reflow */
}
@media (max-width: 520px) {
  .guide-editorial .guide-stat-strip {
    gap: 6px;
  }
  .guide-editorial .guide-stat-strip > div {
    padding: 10px 8px;
  }
  .guide-editorial .guide-stat-strip .v {
    font-size: 1.05rem;
  }
  .guide-editorial .guide-stat-strip .l {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
  .guide-editorial .guide-hero-panel {
    min-height: 200px;
    padding: 16px 14px 14px;
  }
}
.guide-editorial .guide-stat-strip > div {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(200, 148, 90, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
}
.guide-editorial .guide-stat-strip .v {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--oak);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.guide-editorial .guide-stat-strip .l {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}
.guide-editorial .guide-section {
  padding: 56px 0;
}
.guide-editorial .guide-section.alt {
  background: linear-gradient(180deg, var(--bg2) 0%, #13151a 100%);
}
.guide-editorial .guide-section > .container > h2,
.guide-editorial .guide-split-main h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  text-align: left;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.guide-editorial .guide-lead {
  text-align: left;
  max-width: 62ch;
  margin-top: 0;
}
.guide-editorial .guide-split-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .guide-editorial .guide-split-wrap {
    grid-template-columns: 1fr;
  }
}
.guide-editorial .guide-split-main.guide-prose {
  max-width: none;
}
.guide-editorial .guide-prose p {
  text-align: left;
  color: var(--muted);
}
.guide-editorial .guide-prose strong {
  color: var(--text);
}
.guide-editorial .guide-callout {
  border-left: 4px solid var(--oak);
  background: linear-gradient(90deg, rgba(200, 148, 90, 0.08), transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  border-radius: 0 14px 14px 0;
  padding: 18px 20px;
}
.guide-editorial .guide-table-shell {
  border-radius: 16px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(200, 148, 90, 0.2), rgba(255, 255, 255, 0.06));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.guide-editorial .guide-table-shell .guide-table {
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 14, 0.92);
}
.guide-editorial .guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.guide-editorial .guide-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.guide-editorial .guide-grid {
  display: grid;
  margin-top: 8px;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .guide-editorial .guide-grid {
    grid-template-columns: 1fr;
  }
}
.guide-editorial .guide-card {
  position: relative;
  padding: 20px 20px 20px 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(36, 39, 48, 0.9), rgba(22, 24, 30, 0.95));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, border-color 0.2s;
}
.guide-editorial .guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 148, 90, 0.35);
}
.guide-editorial .guide-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--oak-dim);
  border: 1px solid rgba(200, 148, 90, 0.4);
}
.guide-editorial .guide-card:nth-child(1)::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8945a' stroke-width='1.8'%3E%3Cpath d='M4 20h16M6 16l4-8 4 6 4-10 4 12'/%3E%3C/svg%3E")
      center/14px no-repeat,
    var(--oak-dim);
}
.guide-editorial .guide-card:nth-child(2)::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8945a' stroke-width='1.8'%3E%3Cpath d='M12 3l9 6v12H3V9l9-6z'/%3E%3C/svg%3E")
      center/13px no-repeat,
    var(--oak-dim);
}
.guide-editorial .guide-card:nth-child(3)::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8945a' stroke-width='1.8'%3E%3Cpath d='M12 2v4M12 18v4M4 12h4M16 12h4'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3C/svg%3E")
      center/13px no-repeat,
    var(--oak-dim);
}
.guide-editorial .guide-card:nth-child(4)::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8945a' stroke-width='1.8'%3E%3Cpath d='M4 19h16M8 15l3-6 3 4 3-8 3 10'/%3E%3C/svg%3E")
      center/14px no-repeat,
    var(--oak-dim);
}
.guide-editorial .guide-card h3 {
  font-size: 1.08rem;
  margin: 0 0 10px;
  color: var(--text);
}
.guide-editorial .guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}
.guide-editorial .guide-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.guide-editorial #faq .container > h2 {
  text-align: left;
}
.guide-editorial #faq .faq-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: none;
}
.guide-editorial #faq .faq-item {
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #111;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.guide-editorial #faq .faq-item.open {
  border-left: 3px solid #a0724a;
}
.guide-editorial #faq .faq-btn {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.guide-editorial #faq .faq-btn h3 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.guide-editorial #faq .faq-mark {
  color: #a0724a;
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}
.guide-editorial #faq .faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.guide-editorial #faq .faq-item.open .faq-panel {
  max-height: 1200px;
}
.guide-editorial #faq .faq-panel p {
  margin: 0;
  padding: 0 18px 16px;
  color: #c4c7c8;
  line-height: 1.68;
}
.guide-editorial #faq .faq-panel a {
  color: #f5f5f7 !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.guide-editorial #faq .faq-panel a:hover {
  color: #ffffff !important;
}
.guide-editorial .guide-section--next .container {
  text-align: left;
}
.guide-editorial .guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}
.guide-editorial .guide-cta-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.guide-editorial .guide-cta-link:hover {
  transform: translateY(-1px);
}
.guide-editorial .btn-oak.guide-cta-link {
  background: #c8945a;
  color: #111 !important;
}
.guide-editorial .btn-oak.guide-cta-link:hover {
  background: #d4a566;
  color: #111 !important;
}
.guide-editorial .btn-outline.guide-cta-link {
  border-color: #545454;
  color: #f5f5f7 !important;
  background: transparent;
}
.guide-editorial .btn-outline.guide-cta-link:hover {
  border-color: var(--oak);
  color: #ffffff !important;
}
.guide-editorial .guide-section > .container.guide-prose {
  text-align: left;
}
.guide-editorial .guide-prose > h2 {
  text-align: left;
}
.guide-editorial .guide-section .container > h2 {
  text-align: left;
}
.guide-editorial .guide-label {
  margin: 0 0 10px;
  color: var(--oak);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}
.guide-editorial .guide-table caption {
  text-align: left;
  color: var(--oak);
  font-weight: 600;
  padding: 12px 4px 10px;
}
.guide-editorial .guide-table th,
.guide-editorial .guide-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.guide-editorial .guide-table th {
  color: var(--oak);
}

/* Rail chart titles (humidity, RH target, etc.) */
.guide-editorial .chart-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--oak);
  font-weight: 700;
  margin: 0 0 14px;
}
