/* Miami Home Cleaning Guide: blog index, topic pages and articles, in the landing's type and controls.
   The card, grid and chip also serve the landing's blog section. */

/* Shared: chip, card, grid */
.g-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--celeste-soft); color: var(--celeste-ink); font-size: 12px; font-weight: 600; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.g-card a { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.g-card-img { display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 3 / 2; background: var(--mist); }
.g-card-img img, .g-lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-card a:hover img, .g-lead:hover img { transform: scale(1.04); }
.g-card-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.g-card h2, .g-card h3 { font-size: clamp(1.1875rem, 1.05rem + .4vw, 1.375rem); font-weight: 620; line-height: 1.2; letter-spacing: -0.022em; text-wrap: balance; transition: color .2s; }
.g-card p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.g-card a:hover :is(h2, h3) { color: var(--celeste-ink); }
.g-card a:focus-visible, .g-lead:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 6px; border-radius: 24px; }

/* Landing: the newest guide's photo grows to full bleed; the section title and three guides sit on it.
   Without motion the photo and the cards simply stack. */
.blog-cap { padding-inline: 0; text-align: left; font-size: 17px; font-weight: 400; letter-spacing: -0.012em; line-height: 1.5; }
.blog-kicker { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--celeste-ink); }
.blog-cap h2 { margin: 6px 0 clamp(16px, 3svh, 28px); max-width: 18ch; font-size: clamp(1.875rem, min(1.1rem + 2.6vw, 5.6svh), 3.25rem); font-weight: 650; line-height: 1.05; letter-spacing: -0.036em; text-wrap: balance; }
.blog-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 10px 10px 18px; border-radius: 24px; background: var(--mist); color: inherit; text-decoration: none; transition: background-color .3s, transform .5s var(--ease); }
.blog-cards a:hover { transform: translateY(-3px); }
.blog-cards a:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 3px; }
.blog-thumb { display: block; overflow: hidden; width: 100%; height: clamp(96px, 21svh, 210px); border-radius: 16px; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-meta { padding: 4px 8px 0; font-size: 12px; color: var(--ink-2); }
.blog-cards h3 { padding: 0 8px; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.018em; text-wrap: balance; }
.blog-all { display: inline-flex; margin-top: clamp(14px, 2.5svh, 24px); font-size: 16px; }
@media (max-width: 699px) {
  /* Phones: the cards slide sideways so the whole section still fits one screen */
  .blog-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .blog-cards::-webkit-scrollbar { display: none; }
  .blog-cards li { scroll-snap-align: start; }
  .motion .blog .unveil-caption.blog-cap { bottom: calc(96px + env(safe-area-inset-bottom)); } /* clear of the dock */
}
.motion .blog .unveil-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 15, .8), rgba(11, 11, 15, .4) 60%, rgba(11, 11, 15, .2)); opacity: var(--p, 0); }
.motion .blog .unveil-caption { top: calc(var(--nav-h) + 2svh); bottom: clamp(20px, 5svh, 56px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.motion .blog .blog-kicker { color: var(--celeste); }
.motion .blog .blog-cards a { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.motion .blog .blog-cards a:hover { background: rgba(255, 255, 255, .22); }
.motion .blog .blog-meta { color: rgba(255, 255, 255, .78); }
.motion .blog .blog-all { color: #fff; }

/* Page frame */
.g-page { background: var(--paper); }
.g-skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.g-skip:focus { top: 12px; }
.g-bar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--mist-2); }
.g-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.g-logo img { display: block; height: 30px; width: auto; }
.g-bar-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.g-bar-nav > a:not(.btn) { color: var(--ink-soft); text-decoration: none; }
.g-bar-nav > a:not(.btn):hover { color: var(--ink); }
.g-main { padding-bottom: clamp(72px, 9vw, 120px); }

.g-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); }
.g-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.g-crumbs a { color: var(--ink-2); text-decoration: none; }
.g-crumbs a:hover { color: var(--ink); }
.g-crumbs [aria-current] { color: var(--ink); }

.g-head { padding-top: clamp(24px, 4vw, 40px); }
.g-head .g-chip-lg { margin-top: 28px; padding: 6px 12px; font-size: 13px; }
.g-head h1 { margin: 16px 0 0; max-width: 22ch; font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4rem); font-weight: 650; line-height: 1.04; letter-spacing: -0.038em; text-wrap: balance; }
.g-dek { margin-top: 18px; max-width: 54ch; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.42; letter-spacing: -0.016em; color: var(--ink-soft); }
.g-meta { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.g-kicker { margin-top: 32px; font-size: 14px; font-weight: 600; color: var(--celeste-ink); }
.g-head-list h1 { margin-top: 10px; }
.g-head-list { padding-bottom: clamp(40px, 5vw, 64px); }

/* Topic pills */
.g-cats { display: flex; gap: 8px; margin-top: 32px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.g-cats::-webkit-scrollbar { display: none; }
.g-cats a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.g-cats a:hover { background: var(--mist-2); color: var(--ink); }
.g-cats a[aria-current] { background: var(--ink); color: #fff; }

/* Blog index */
.g-lead { display: grid; gap: 20px; color: inherit; text-decoration: none; }
.g-lead-img { display: block; overflow: hidden; border-radius: 28px; aspect-ratio: 3 / 2; background: var(--mist); }
.g-lead h2 { margin-top: 4px; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); font-weight: 650; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; transition: color .2s; }
.g-lead:hover h2 { color: var(--celeste-ink); }
.g-lead-copy { display: grid; gap: 12px; align-content: center; }
.g-lead-copy p { max-width: 46ch; font-size: 17px; color: var(--ink-soft); }
.g-lead .link { margin-top: 6px; }
.g-topic { margin-top: clamp(72px, 9vw, 120px); }
.g-topic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.g-topic-head h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); font-weight: 650; letter-spacing: -0.03em; }
@media (min-width: 900px) {
  .g-lead { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
}

/* Article */
.g-hero { margin-top: clamp(32px, 5vw, 56px); }
.g-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; background: var(--mist); }
.g-layout { display: grid; gap: 56px; margin-top: clamp(40px, 5vw, 64px); }
.g-body { min-width: 0; max-width: 700px; }
.g-body > p, .g-body li { font-size: 17px; line-height: 1.62; color: var(--ink-soft); }
.g-body > p { margin-top: 18px; }
.g-body > h2 { margin: 56px 0 0; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); font-weight: 650; line-height: 1.12; letter-spacing: -0.03em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.g-body > ul { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.g-body li::marker { color: var(--celeste-ink); }
.g-body strong { color: var(--ink); font-weight: 600; }
.g-body a:not(.btn) { color: var(--celeste-ink); }

.g-quick { padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: linear-gradient(135deg, var(--celeste-soft), var(--rosa-soft)); }
.g-quick h2, .g-keys h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--celeste-ink); }
.g-quick p { margin-top: 10px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.55; color: var(--ink); }
.g-keys { margin-top: 28px; padding: 4px 0 4px 20px; border-left: 3px solid var(--rosa-line); }
.g-keys ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.g-keys li { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

.g-toc-m { margin-top: 32px; border-radius: 16px; background: var(--mist); }
.g-toc-m summary { padding: 14px 18px; font-size: 15px; font-weight: 600; cursor: pointer; }
.g-toc-m ol, .g-toc ol { margin: 0; padding: 0 18px 16px 2.2em; display: grid; gap: 8px; font-size: 15px; }
.g-toc-m a, .g-toc a { color: var(--ink-soft); text-decoration: none; }
.g-toc-m a:hover, .g-toc a:hover { color: var(--celeste-ink); }

.g-table { margin-top: 18px; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.g-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.g-table th, .g-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--mist-2); white-space: nowrap; }
.g-table thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--mist); }
.g-table tbody th { font-weight: 500; color: var(--ink); }
.g-table tbody tr:last-child > * { border-bottom: 0; }

.g-sources { margin: 16px 0 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 15px; }
.g-sources li { font-size: 15px; }

.g-faq { margin-top: 20px; border-top: 1px solid var(--line); }
.g-faq details { border-bottom: 1px solid var(--line); }
.g-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.g-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--rosa-soft); }
.g-faq summary:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 4px; border-radius: 8px; }
.g-faq h3 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.g-faq p { padding: 0 46px 20px 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.g-about { display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding: 24px; border-radius: 22px; background: var(--mist); }
.g-about img { flex: none; }
.g-about h2 { font-size: 16px; font-weight: 600; }
.g-about p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.g-side { display: none; }
@media (min-width: 1000px) {
  .g-layout { grid-template-columns: minmax(0, 700px) minmax(220px, 280px); justify-content: space-between; }
  .g-side { display: block; align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
  .g-toc-m { display: none; }
  .g-toc h2 { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .g-toc ol { padding: 0 0 0 1.2em; font-size: 14px; }
  .g-side-cta { margin-top: 32px; padding: 20px; border-radius: 22px; background: var(--mist); }
  .g-side-cta p { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
}

.g-cta { margin-top: clamp(64px, 8vw, 96px); padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: linear-gradient(135deg, var(--rosa-soft), var(--celeste-soft)); }
.g-cta h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.g-cta p { margin: 12px 0 24px; max-width: 52ch; color: var(--ink-soft); }
.g-related { margin-top: clamp(72px, 9vw, 112px); }
.g-related > h2 { margin-bottom: 28px; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); font-weight: 650; letter-spacing: -0.03em; }

.g-foot { padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--mist); font-size: 14px; color: var(--ink-2); }
.g-foot-in { display: grid; gap: 36px; }
.g-foot-in img { height: 28px; width: auto; }
.g-foot-in p { margin-top: 12px; max-width: 40ch; line-height: 1.55; }
.g-foot h2 { font-size: 13px; font-weight: 600; color: var(--ink); }
.g-foot ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.g-foot a { color: var(--ink-2); text-decoration: none; }
.g-foot a:hover { color: var(--ink); }
.g-foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
@media (min-width: 760px) { .g-foot-in { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 599px) {
  .g-cta .btn { width: 100%; }
  .g-bar-hide { display: none; }
  .g-bar-nav { gap: 16px; }
}
