/* StorageGuide article renderer v0.4 */
.sg-article {
  --sg-ink: #101412;
  --sg-muted: #65716b;
  --sg-line: #dfe6df;
  --sg-soft: #f6f9f4;
  --sg-accent: #16824f;
  --sg-accent-dark: #0b5f3c;
  --sg-accent-soft: #eaf7f0;
  --sg-accent-line: #bfe4cf;
  --sg-panel: #ffffff;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: var(--sg-ink);
  background: var(--sg-panel);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  container-type: inline-size;
  overflow: visible;
}
.sg-article *, .sg-article *::before, .sg-article *::after { box-sizing: border-box; min-width: 0; }
.sg-article :where(p,h1,h2,h3,h4,ul,ol,figure,table,section,div) { max-width: none; }
.sg-article p { font-size: 18px; color: #27312d; margin: 0 0 1rem; }
.sg-article h1, .sg-article h2, .sg-article h3 { line-height: 1.02; letter-spacing: -0.048em; margin: 0; color: var(--sg-ink); }
.sg-kicker, .sg-section-kicker, .sg-card-label, .sg-article .sg-watch-card span, .sg-related span, .sg-cta-band span, .sg-sidebar-card span { color: var(--sg-accent); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 950; }

.sg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .85fr); gap: clamp(24px, 4vw, 46px); align-items: stretch; padding: clamp(34px, 6vw, 76px); background: radial-gradient(circle at 12% 10%, rgba(22,130,79,.24), transparent 35%), linear-gradient(135deg, #101611, #0b0f0d 62%, #111111); color: #f5f8f2; overflow: hidden; }
.sg-hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.sg-hero h1 { color: #f7faf4 !important; opacity: 1 !important; font-size: clamp(46px, 7.2vw, 98px); max-width: 1000px; font-weight: 950; text-shadow: 0 2px 18px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.05); }
.sg-dek { max-width: 900px; color: #edf2ec !important; opacity: .96 !important; font-size: clamp(19px, 2vw, 25px) !important; line-height: 1.55 !important; }
.sg-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #c2d1c7; font-size: 13px; font-weight: 750; }
.sg-hero-image { margin: 0; min-height: 360px; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #344138, #151f19); border: 1px solid rgba(255,255,255,.12); }
.sg-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-hero-image figcaption, .sg-wide-image figcaption, .sg-image-frame figcaption, .sg-list-item-image figcaption { color: var(--sg-muted); font-size: 13px; padding: 9px 12px 12px; }

.sg-watch-card, .sg-at-a-glance, .sg-layout, .sg-cta-band, .sg-location-images { width: calc(100% - 40px); max-width: 1120px; margin-left: auto; margin-right: auto; }
.sg-watch-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-top: -28px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--sg-line); border-radius: 28px; padding: 24px; box-shadow: 0 22px 70px rgba(0,0,0,.14); }
.sg-watch-card h2 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 36px); }
.sg-watch-card p { margin: 0; max-width: 820px; }
.sg-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: 999px; padding: 13px 18px; background: var(--sg-accent); color: #fff !important; font-weight: 900; text-decoration: none !important; border: 1px solid var(--sg-accent); }
.sg-button:hover { background: var(--sg-accent-dark); border-color: var(--sg-accent-dark); }
.sg-button-dark { background: #111; border-color: #111; }
.sg-button-outline { background: #fff; color: var(--sg-accent) !important; border-color: var(--sg-accent-line); }
.sg-button-outline:hover { background: var(--sg-accent-soft); color: var(--sg-accent-dark) !important; border-color: var(--sg-accent); }

.sg-at-a-glance { margin-top: 28px; margin-bottom: 28px; padding: 24px; border: 1px solid var(--sg-line); border-radius: 28px; background: var(--sg-soft); }
.sg-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.sg-metric { background: #fff; border: 1px solid var(--sg-line); border-radius: 20px; padding: 18px; display: grid; gap: 8px; min-height: 124px; }
.sg-metric span { color: var(--sg-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .11em; font-weight: 900; }
.sg-metric strong { display: block; font-size: clamp(24px, 3vw, 38px); line-height: .95; letter-spacing: -.06em; }
.sg-metric em { color: var(--sg-muted); font-style: normal; font-size: 13px; }

.sg-location-images { margin-top: 28px; margin-bottom: 28px; padding: 24px; border: 1px solid var(--sg-line); border-radius: 28px; background: #fff; }
.sg-location-images h2 { font-size: clamp(28px, 4vw, 46px); margin: 8px 0; }
.sg-location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.sg-store-image { margin: 0; border-radius: 22px; overflow: hidden; background: var(--sg-soft); border: 1px solid var(--sg-line); }
.sg-store-image img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; }

/* v0.4: Bricks-safe body layout. Sidebar stacks above the article body to prevent squeeze inside WordPress Content blocks. */
.sg-layout { display: block !important; padding: 38px 0 72px; }
.sg-layout > .sg-main { display: block; width: 100%; max-width: none; min-width: 0; }
.sg-sidebar { position: relative !important; top: auto !important; display: grid !important; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr); gap: 16px; width: 100%; margin: 0 0 44px; align-items: stretch; }
.sg-toc, .sg-sidebar-card { border: 1px solid var(--sg-line); background: var(--sg-soft); border-radius: 22px; padding: 18px; }
.sg-toc span { display: block; color: var(--sg-muted); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.sg-toc a { display: block; padding: 10px 0; color: #1f2723; text-decoration: none; font-size: 15px; font-weight: 750; border-top: 1px solid var(--sg-line); line-height: 1.45; }
.sg-sidebar-card p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }

.sg-section { width: 100%; max-width: none; padding: 52px 0; border-bottom: 1px solid var(--sg-line); }
.sg-section:first-child { padding-top: 0; }
.sg-section h2 { width: 100%; max-width: none; font-size: clamp(34px, 5vw, 64px); margin: 8px 0 20px; color: #0d0f0e; }
.sg-section-body { max-width: 820px; }
.sg-section-body p:first-child { margin-top: 0; }
.sg-list-item { padding-top: 64px; padding-bottom: 64px; }
.sg-list-item h2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: baseline; max-width: 980px; }
.sg-list-item h2 span { color: var(--sg-accent); font-size: .95em; flex: 0 0 auto; font-weight: 950; }
.sg-bullet-list, .sg-check-list, .sg-x-list { padding: 0; margin: 16px 0; list-style: none; display: grid; gap: 9px; }
.sg-bullet-list li, .sg-check-list li, .sg-x-list li { position: relative; padding-left: 26px; font-size: 17px; }
.sg-check-list li::before, .sg-bullet-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sg-accent); font-weight: 900; }
.sg-x-list li::before { content: "—"; position: absolute; left: 0; color: #5d7469; font-weight: 900; }
.sg-tip, .sg-stat-card { margin: 22px 0 0; border-radius: 22px; border: 1px solid var(--sg-line); background: var(--sg-soft); padding: 18px; }
.sg-tip strong, .sg-stat-card span { color: var(--sg-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 950; }
.sg-tip p, .sg-stat-card p { margin: 8px 0 0; font-size: 16px; }
.sg-stat-card strong { display: block; margin-top: 8px; font-size: clamp(32px, 5vw, 58px); line-height: .9; letter-spacing: -.07em; }
.sg-best-for { border: 1px solid var(--sg-accent-line); background: var(--sg-accent-soft); border-radius: 18px; padding: 16px 18px; margin: 0 0 20px; }
.sg-best-for strong { display: block; color: var(--sg-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 950; }
.sg-best-for p { margin: 6px 0 0; font-size: 16px; }
.sg-item-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sg-text-link { display: inline-flex; margin-top: 18px; color: var(--sg-accent) !important; font-weight: 900; text-decoration: none !important; border-bottom: 2px solid var(--sg-accent-line); }

.sg-wide-image, .sg-list-item-image { margin: 32px 0; border-radius: 28px; overflow: hidden; background: var(--sg-soft); border: 1px solid var(--sg-line); }
.sg-wide-image img, .sg-list-item-image img { width: 100%; display: block; object-fit: cover; }
.sg-wide-image img { max-height: 520px; }
.sg-list-item-image img { aspect-ratio: 16 / 9; max-height: 480px; }
.sg-supporting-image { box-shadow: 0 16px 44px rgba(0,0,0,.07); }

.sg-table-wrap { overflow-x: auto; border: 1px solid var(--sg-line); border-radius: 20px; background: #fff; }
.sg-table { width: 100%; border-collapse: collapse; min-width: 650px; background: #fff; }
.sg-table th, .sg-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--sg-line); vertical-align: top; }
.sg-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--sg-muted); }

.sg-stats-section { background: linear-gradient(135deg, #fbfdfb, #f2f8f4); border: 1px solid var(--sg-line); border-radius: 30px; padding: clamp(28px, 4vw, 44px); margin: 42px 0; }
.sg-stats-section h2 { font-size: clamp(34px, 5vw, 62px); }
.sg-stats-section > p { max-width: 840px; }
.sg-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.sg-stat-tile { border: 1px solid var(--sg-accent-line); background: #fff; border-radius: 22px; padding: 18px; min-height: 142px; }
.sg-stat-tile span { display: block; color: var(--sg-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 950; margin-bottom: 10px; }
.sg-stat-tile strong { display: block; font-size: clamp(30px, 4vw, 48px); line-height: .95; letter-spacing: -.06em; }
.sg-stat-tile p { margin: 10px 0 0; font-size: 14px; color: var(--sg-muted); }
.sg-price-table { margin-top: 16px; }

.sg-two-col, .sg-pro-con-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sg-panel, .sg-pro-con-grid > div { border: 1px solid var(--sg-line); border-radius: 22px; padding: 20px; background: var(--sg-soft); }
.sg-panel h3, .sg-pro-con-grid h3 { font-size: 24px; margin-bottom: 10px; }
.sg-pro-con-grid { margin-top: 16px; }
.sg-verdict { background: #101815; color: #fff; padding: 32px; border-radius: 28px; margin-top: 34px; }
.sg-verdict h2 { color: #fff; }
.sg-verdict p { color: #e6eee9; }
.sg-faq-list { display: grid; gap: 10px; }
.sg-faq { border: 1px solid var(--sg-line); border-radius: 18px; padding: 16px 18px; background: var(--sg-soft); }
.sg-faq summary { cursor: pointer; font-weight: 900; font-size: 18px; }
.sg-faq p { margin-bottom: 0; font-size: 16px; }
.sg-related { padding: 38px 0; }
.sg-related h2 { font-size: 36px; margin: 8px 0 16px; }
.sg-related div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-related a, .sg-related-missing { border: 1px solid var(--sg-line); background: var(--sg-soft); border-radius: 999px; padding: 10px 13px; font-weight: 850; text-decoration: none !important; }
.sg-related-missing { border-style: dashed; color: var(--sg-muted); }
.sg-cta-band { margin-bottom: 72px; border-radius: 32px; padding: clamp(26px, 5vw, 46px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; background: #e9f5ef; border: 1px solid #cbe8d8; }
.sg-cta-band h2 { font-size: clamp(30px, 5vw, 58px); margin: 8px 0; }
.sg-cta-band p { max-width: 760px; margin: 0; }
.sg-image-pending { min-height: 260px; display: grid; place-items: center; border: 1px dashed var(--sg-line); background: repeating-linear-gradient(135deg, #f7faf5, #f7faf5 12px, #eef3ec 12px, #eef3ec 24px); color: var(--sg-muted); }
.sg-image-pending div { text-align: center; padding: 24px; }
.sg-image-pending span { display: block; color: var(--sg-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 950; }
.sg-image-pending strong { display: block; margin-top: 6px; color: var(--sg-ink); font-size: 22px; line-height: 1.1; }
.sg-image-pending small { display: block; margin-top: 8px; font-size: 13px; }

@container (max-width: 900px) {
  .sg-hero, .sg-watch-card, .sg-cta-band { grid-template-columns: 1fr; }
  .sg-sidebar { grid-template-columns: 1fr; }
  .sg-metric-grid, .sg-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-two-col, .sg-pro-con-grid { grid-template-columns: 1fr; }
}
@container (max-width: 680px) {
  .sg-hero { padding: 28px 20px; }
  .sg-hero h1 { font-size: 42px; }
  .sg-list-item h2 { display: block; }
  .sg-list-item h2 span { display: block; margin-bottom: 8px; }
  .sg-metric-grid, .sg-stats-grid { grid-template-columns: 1fr; }
  .sg-table { min-width: 560px; }
}
@media (max-width: 900px) {
  .sg-hero, .sg-watch-card, .sg-cta-band { grid-template-columns: 1fr; }
  .sg-sidebar { grid-template-columns: 1fr; }
  .sg-metric-grid, .sg-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-two-col, .sg-pro-con-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sg-metric-grid, .sg-stats-grid { grid-template-columns: 1fr; }
  .sg-hero { padding: 28px 20px; }
  .sg-hero h1 { font-size: 42px; }
  .sg-list-item h2 { display: block; }
  .sg-list-item h2 span { display: block; margin-bottom: 8px; }
  .sg-table { min-width: 560px; }
}

/* v0.3.1 final layout fixes for Bricks WordPress Content + ranked listicles */
body .brxe-post-content:has(.sg-article),
body .entry-content:has(.sg-article),
body .wp-block-post-content:has(.sg-article) {
  max-width: none !important;
  width: 100% !important;
}
.sg-article {
  --sg-accent: #16824f;
  --sg-accent-dark: #075c3b;
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
  overflow: visible !important;
  container-type: inline-size;
}
.sg-article .sg-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(calc(100% - 40px), 980px) !important;
  max-width: 980px !important;
  margin-inline: auto !important;
  justify-content: stretch !important;
  gap: 28px !important;
  align-items: start !important;
  padding-top: 34px !important;
}
.sg-article .sg-main,
.sg-article .sg-layout > .sg-main {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}
.sg-article .sg-sidebar {
  position: static !important;
  top: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
  width: 100% !important;
}
.sg-article .sg-toc,
.sg-article .sg-sidebar-card {
  max-width: none !important;
}
.sg-article .sg-section,
.sg-article .sg-section-body,
.sg-article .sg-section-body p,
.sg-article .sg-section-body ul,
.sg-article .sg-section-body ol,
.sg-article .sg-section h2 {
  min-width: 0 !important;
  width: 100% !important;
}
.sg-article .sg-section-body,
.sg-article .sg-section-body p,
.sg-article .sg-section-body ul,
.sg-article .sg-section-body ol,
.sg-article .sg-numbers-section > p {
  max-width: 800px !important;
}
.sg-article .sg-section h2 {
  max-width: 980px !important;
}
.sg-article .sg-list-item h2 {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
}
.sg-article .sg-rank-number {
  color: var(--sg-accent);
  white-space: nowrap;
}
.sg-article .sg-list-title-text {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.sg-article .sg-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.sg-article .sg-button-light {
  background: #eef7f2 !important;
  color: var(--sg-accent) !important;
  border: 1px solid rgba(22,130,79,.25);
}
.sg-article .sg-stats-section,
.sg-article .sg-numbers-section {
  background: linear-gradient(180deg, #ffffff, #f4faf6);
  border: 1px solid rgba(22,130,79,.16);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 36px);
  margin: 34px 0;
}
.sg-article .sg-stats-grid,
.sg-article .sg-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.sg-article .sg-stat-tile,
.sg-article .sg-number-card {
  border: 1px solid rgba(22,130,79,.22);
  background: #fff;
  border-radius: 22px;
  padding: 18px;
}
.sg-article .sg-stat-tile span,
.sg-article .sg-number-card span {
  display: block;
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sg-article .sg-stat-tile strong,
.sg-article .sg-number-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: .95;
  letter-spacing: -.06em;
}
.sg-article .sg-stat-tile p,
.sg-article .sg-number-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--sg-muted);
}
.sg-article .sg-price-table,
.sg-article .sg-price-table-wrap {
  margin-top: 18px;
}
.sg-article .sg-price-table table,
.sg-article table.sg-price-table {
  width: 100%;
}
@container (max-width: 760px) {
  .sg-article .sg-sidebar,
  .sg-article .sg-stats-grid,
  .sg-article .sg-numbers-grid {
    grid-template-columns: 1fr;
  }
  .sg-article .sg-layout {
    width: min(calc(100% - 28px), 920px) !important;
  }
}
@media (max-width: 760px) {
  .sg-article .sg-sidebar,
  .sg-article .sg-stats-grid,
  .sg-article .sg-numbers-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .sg-article .sg-list-item h2 {
    display: block !important;
  }
  .sg-article .sg-rank-number {
    display: block;
    margin-bottom: 8px;
  }
}

/* v0.4.1 Bricks Content block hardening: avoid nested main/theme width rules and keep lower article body readable. */
.brxe-post-content .sg-article,
.sg-article {
  width: 100% !important;
  max-width: none !important;
}
.sg-article .sg-layout {
  display: block !important;
  width: min(100% - 40px, 1120px) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.sg-article .sg-layout > .sg-main,
.sg-article .sg-main {
  display: block !important;
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.sg-article .sg-section,
.sg-article .sg-list-item,
.sg-article .sg-section > *,
.sg-article .sg-section-body {
  min-width: 0 !important;
}
.sg-article .sg-section-body {
  width: 100% !important;
  max-width: 820px !important;
}
.sg-article .sg-list-item h2 {
  width: 100% !important;
  max-width: 920px !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
}
.sg-article .sg-list-title-text {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .sg-article .sg-layout { width: calc(100% - 28px) !important; }
  .sg-article .sg-main { width: 100% !important; }
  .sg-article .sg-list-item h2 { display: block !important; }
}

/* v0.4 Bricks wrapper fix for div.sg-main renderer */
.sg-article .sg-main {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 980px !important;
}
.sg-article .sg-main > .sg-section,
.sg-article .sg-main .sg-section-body {
  width: 100% !important;
}

/* StorageGuide v0.5: hub pages, finder, badges, comparison tables */
.sg-article .sg-best-for-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid #b8dfca;
  background: #e9f7ef;
  color: #0a7048;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sg-article .sg-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.sg-article .sg-button-light {
  background: #eef8f3;
  color: #0a7048 !important;
  border: 1px solid #b8dfca;
}
.sg-article .sg-button-light:hover {
  background: #dff2e9;
}
.sg-article .sg-ranked-comparison .sg-table a,
.sg-article .sg-price-table a {
  color: #0a7048;
  font-weight: 900;
  text-decoration: none;
}
.sg-article .sg-stats-section {
  background: linear-gradient(135deg, #f4faf6, #ffffff);
  border: 1px solid var(--sg-line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 38px);
  margin: 44px 0;
}
.sg-article .sg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.sg-article .sg-stat-tile {
  border: 1px solid #cfe8db;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
}
.sg-article .sg-stat-tile span {
  color: #0a7048;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 950;
}
.sg-article .sg-stat-tile strong {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: .98;
  letter-spacing: -.05em;
}
.sg-article .sg-stat-tile p {
  margin: 0;
  font-size: 14px;
  color: var(--sg-muted);
}
.sg-home-page .sg-home-hero-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  border-radius: 30px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.sg-home-page .sg-home-hero-card span,
.sg-hub-card span {
  color: #7bd2a5;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 950;
}
.sg-home-page .sg-home-hero-card strong {
  display: block;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.045em;
}
.sg-home-page .sg-home-hero-card p {
  color: #dde9e1;
  margin: 0 0 4px;
}
.sg-finder-section {
  max-width: 1180px;
  width: calc(100% - clamp(32px, 8vw, 128px));
  margin: clamp(26px, 5vw, 58px) auto;
  padding: clamp(26px, 5vw, 46px);
  border-radius: 34px;
  border: 1px solid #b8dfca;
  background: linear-gradient(135deg, #e7f6ed, #ffffff 58%, #f4faf6);
  box-shadow: 0 22px 70px rgba(11, 88, 60, .10);
}
.sg-finder-heading h2 {
  font-size: clamp(34px, 6vw, 70px);
  margin: 8px 0 10px;
}
.sg-finder-heading p {
  max-width: 820px;
}
.sg-finder {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.sg-finder-form,
.sg-finder-results {
  border: 1px solid #d8e7de;
  background: #fff;
  border-radius: 26px;
  padding: 22px;
}
.sg-finder-form {
  display: grid;
  gap: 14px;
}
.sg-finder-form label {
  display: grid;
  gap: 7px;
  color: #44524c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sg-finder-form select {
  width: 100%;
  border: 1px solid #cbd8d0;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 15px;
  color: #111;
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.sg-finder-result-list {
  display: grid;
  gap: 14px;
}
.sg-finder-card {
  border: 1px solid #d8e7de;
  background: #f8fbf8;
  border-radius: 22px;
  padding: 18px;
}
.sg-finder-card span {
  color: #0a7048;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 950;
}
.sg-finder-card h3 {
  font-size: clamp(23px, 3vw, 34px);
  margin: 7px 0;
}
.sg-finder-card p {
  font-size: 15px;
  margin: 0 0 12px;
  color: #44524c;
}
.sg-finder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.sg-muted-note { color: var(--sg-muted); margin: 0; }
.sg-hub-links {
  max-width: 1180px;
  width: calc(100% - clamp(32px, 8vw, 128px));
  margin: 18px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sg-hub-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7e3d4;
  background: #eef8f3;
  color: #0a7048 !important;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 950;
  text-decoration: none !important;
}
.sg-hub-section {
  max-width: 1180px;
  width: calc(100% - clamp(32px, 8vw, 128px));
  margin-left: auto;
  margin-right: auto;
}
.sg-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.sg-hub-card {
  display: grid;
  gap: 9px;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--sg-line);
  border-radius: 24px;
  background: #fff;
  color: var(--sg-ink) !important;
  text-decoration: none !important;
}
.sg-hub-card strong {
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.sg-hub-card p {
  font-size: 14px;
  margin: 0;
  color: var(--sg-muted);
}
@container (max-width: 880px) {
  .sg-finder { grid-template-columns: 1fr; }
  .sg-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 620px) {
  .sg-stats-grid { grid-template-columns: 1fr; }
  .sg-finder-section, .sg-hub-links, .sg-hub-section { width: calc(100% - 32px); padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 880px) {
  .sg-finder { grid-template-columns: 1fr; }
  .sg-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sg-stats-grid { grid-template-columns: 1fr; }
}


.sg-shortcode-slot {
  margin-top: 24px;
  border: 1px dashed #93caae;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  padding: clamp(20px, 4vw, 30px);
  color: #0b5f3c;
  font-weight: 900;
  text-align: center;
}
.sg-shortcode-slot::before {
  content: "WordPress shortcode slot";
  display: block;
  margin-bottom: 8px;
  color: #65716b;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 950;
}


/* v0.9 homepage finder placement: put the finder where the old "Answer a few questions" card lived. */
.sg-home-page .sg-home-hero {
  grid-template-columns: minmax(0, .78fr) minmax(430px, 1.12fr);
  align-items: center;
}
.sg-home-page .sg-home-finder-card {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
  align-content: stretch !important;
  overflow: visible !important;
}
.sg-home-page .sg-home-finder-card .sg-shortcode-slot {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  text-align: left !important;
  font-weight: inherit !important;
}
.sg-home-page .sg-home-finder-card .sg-shortcode-slot::before {
  content: none !important;
  display: none !important;
}
@container (max-width: 980px) {
  .sg-home-page .sg-home-hero { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .sg-home-page .sg-home-hero { grid-template-columns: 1fr; }
}


/* v1.0: flatten shortcode wrappers so the Finder plugin controls the entire visual. */
.sg-shortcode-slot,
.sg-home-page .sg-home-finder-card .sg-shortcode-slot,
.sg-home-shortcode-slot {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  text-align: left !important;
  font-weight: inherit !important;
  outline: 0 !important;
}
.sg-shortcode-slot::before,
.sg-home-page .sg-home-finder-card .sg-shortcode-slot::before,
.sg-home-shortcode-slot::before {
  content: none !important;
  display: none !important;
}


/* v1.1: remove the remaining dark frame around the homepage finder when used in the hero card. */
.sg-home-page .sg-home-hero:has(.sgf-finder),
.sg-home-page .sg-home-hero:has(.sg-shortcode-slot),
.sg-home-page .sg-hero:has(.sgf-finder),
.sg-home-page .sg-hero:has(.sg-shortcode-slot) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: clamp(18px, 4vw, 42px) !important;
  color: inherit !important;
  overflow: visible !important;
}
.sg-home-page .sg-home-hero-card:has(.sgf-finder),
.sg-home-page .sg-home-finder-card:has(.sgf-finder),
.sg-home-page .sg-home-hero-card,
.sg-home-page .sg-home-finder-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* v1.2: restore the homepage hero background and tighten finder placement. */
.sg-home-page {
  background: #ffffff !important;
}
.sg-home-page .sg-home-hero:has(.sgf-finder),
.sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot),
.sg-home-page .sg-hero:has(.sgf-finder),
.sg-home-page .sg-hero:has(.sg-home-shortcode-slot) {
  display: grid !important;
  grid-template-columns: minmax(320px, .78fr) minmax(520px, 1.16fr) !important;
  gap: clamp(26px, 4.5vw, 64px) !important;
  align-items: center !important;
  padding: clamp(34px, 5.5vw, 68px) clamp(24px, 5vw, 72px) !important;
  min-height: 0 !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(22,130,79,.27), transparent 35%),
    linear-gradient(135deg, #101611, #0b0f0d 62%, #111111) !important;
  color: #f7faf4 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.sg-home-page .sg-home-hero:has(.sgf-finder) .sg-hero-copy,
.sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot) .sg-hero-copy {
  color: #f7faf4 !important;
}
.sg-home-page .sg-home-hero:has(.sgf-finder) .sg-hero-copy h1,
.sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot) .sg-hero-copy h1 {
  color: #f7faf4 !important;
  font-size: clamp(50px, 6.8vw, 94px) !important;
  text-shadow: 0 3px 28px rgba(0,0,0,.42) !important;
}
.sg-home-page .sg-home-hero:has(.sgf-finder) .sg-dek,
.sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot) .sg-dek {
  color: #dfece4 !important;
  opacity: 1 !important;
  font-size: clamp(17px, 1.6vw, 22px) !important;
}
.sg-home-page .sg-home-hero:has(.sgf-finder) .sg-meta,
.sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot) .sg-meta {
  color: #b9d2c4 !important;
}
.sg-home-page .sg-home-finder-card,
.sg-home-page .sg-home-hero-card.sg-home-finder-card {
  width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: inherit !important;
}
.sg-home-page .sg-home-finder-card .sg-shortcode-slot,
.sg-home-page .sg-home-shortcode-slot {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.sg-home-page .sg-home-finder-card .sg-shortcode-slot::before,
.sg-home-page .sg-home-shortcode-slot::before {
  content: none !important;
  display: none !important;
}
.sg-home-page .sg-home-finder-card .sgf-finder.sgf-compact,
.sg-home-page .sg-home-shortcode-slot .sgf-finder.sgf-compact {
  width: 100% !important;
}
.sg-home-page .sg-home-finder-card .sgf-finder.sgf-compact .sgf-shell,
.sg-home-page .sg-home-shortcode-slot .sgf-finder.sgf-compact .sgf-shell {
  max-width: none !important;
}
@container (max-width: 980px) {
  .sg-home-page .sg-home-hero:has(.sgf-finder),
  .sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot),
  .sg-home-page .sg-hero:has(.sgf-finder),
  .sg-home-page .sg-hero:has(.sg-home-shortcode-slot) {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 980px) {
  .sg-home-page .sg-home-hero:has(.sgf-finder),
  .sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot),
  .sg-home-page .sg-hero:has(.sgf-finder),
  .sg-home-page .sg-hero:has(.sg-home-shortcode-slot) {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 680px) {
  .sg-home-page .sg-home-hero:has(.sgf-finder),
  .sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot),
  .sg-home-page .sg-hero:has(.sgf-finder),
  .sg-home-page .sg-hero:has(.sg-home-shortcode-slot) {
    padding: 28px 18px !important;
  }
  .sg-home-page .sg-home-hero:has(.sgf-finder) .sg-hero-copy h1,
  .sg-home-page .sg-home-hero:has(.sg-home-shortcode-slot) .sg-hero-copy h1 {
    font-size: 44px !important;
  }
}

/* v1.3: featured hub cards + natural location images. */
.sg-location-images { display: none !important; }
.sg-hub-grid { align-items: stretch; }
.sg-hub-card.sg-hub-card-with-image {
  min-height: 0 !important;
  align-content: start !important;
  overflow: hidden;
}
.sg-hub-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 12px;
  border: 1px solid #cbe8d8;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #dff1e7, #f7fbf8);
}
.sg-hub-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sg-hub-card-image figcaption { display: none; }
.sg-hub-card-with-image .sg-image-pending {
  min-height: 0 !important;
  display: grid;
  place-items: center;
}
.sg-hub-card-with-image .sg-image-pending div { padding: 16px; }
.sg-hub-card-with-image .sg-image-pending span { font-size: 10px; }
.sg-hub-card-with-image .sg-image-pending strong { font-size: 15px; line-height: 1.12; }
.sg-storage-finder-page .sg-finder-section {
  margin-top: clamp(28px, 5vw, 58px);
}
.sg-storage-finder-page .sg-finder-page-tool {
  max-width: 1180px;
  width: calc(100% - clamp(32px, 8vw, 128px));
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sg-article .sg-store-image.sg-wide-image img,
.sg-article .sg-wide-image.sg-store-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  object-fit: cover;
}

/* v1.4: hub card label/order, hidden image captions, and fully natural image sections. */
.sg-location-images { display: none !important; }
.sg-article .sg-hub-card-kicker,
.sg-article .sg-hub-card > span {
  display: block !important;
  width: max-content;
  max-width: 100%;
  margin: 0 0 8px !important;
  color: #74cca0 !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}
.sg-article .sg-hub-card > strong {
  display: block !important;
  clear: both;
  margin: 0 0 8px !important;
}
.sg-article .sg-hub-card p { margin-top: 0 !important; }
.sg-article .sg-hero-image figcaption,
.sg-article .sg-wide-image figcaption,
.sg-article .sg-list-item-image figcaption,
.sg-article .sg-store-image figcaption,
.sg-article .sg-hub-card-image figcaption {
  display: none !important;
}


/* v1.5 hardening for WordPress/Bricks editor changes */
.sg-article .sg-tip strong,
.sg-article .sg-tip b,
.sg-article .sg-tip > span:first-child {
  display: block !important;
  margin: 0 0 8px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}
.sg-article .sg-tip p {
  display: block !important;
  margin-top: 0 !important;
  clear: both !important;
}
.sg-article .sg-tip {
  overflow: hidden !important;
}
.sg-article a[href="https://www.myustorage.com/locations"],
.sg-article a[href="https://www.myustorage.com/locations/"] {
  /* Existing old links are visually unchanged; regenerate/repush to change URL to Storage Finder. */
}


/* v1.6 query-grid hub pages: Studio hub posts now keep the existing hero, then render dynamic WP query-grid shortcodes. */
.sg-article .sg-query-grid-shortcodes {
  width: min(calc(100% - 40px), 1180px);
  margin: clamp(32px, 5vw, 72px) auto;
  display: grid;
  gap: clamp(38px, 5vw, 72px);
}
.sg-article.sg-query-hub-page .sg-hub-section .sg-hub-grid,
.sg-article.sg-query-hub-page .sg-location-images {
  display: none !important;
}
.sg-article.sg-query-hub-page .sg-section.sg-hub-section:empty {
  display: none !important;
}
@media (max-width: 680px) {
  .sg-article .sg-query-grid-shortcodes {
    width: calc(100% - 28px);
  }
}
