/* Almeers Living — Window Shade Measuring Guide. All selectors are scoped to .sg-page. */
.sg-page {
  --sg-ink: #2e2823;
  --sg-muted: #6c625a;
  --sg-brown: #704b37;
  --sg-brown-dark: #513626;
  --sg-tan: #cdb69e;
  --sg-cream: #f8f4ef;
  --sg-pale: #fffdf9;
  --sg-line: #e5d9cd;
  color: var(--sg-ink);
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(14px, 2.4vw, 32px) clamp(12px, 2.4vw, 28px) 64px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.sg-page *, .sg-page *::before, .sg-page *::after { box-sizing: border-box; }
.sg-page img { display: block; width: 100%; max-width: 100%; height: auto; }
.sg-page h1, .sg-page h2, .sg-page h3, .sg-page p, .sg-page figure { margin-top: 0; }
.sg-page h1, .sg-page h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.sg-page h1 { font-size: clamp(2.25rem, 5.1vw, 4.5rem); margin-bottom: 18px; max-width: 700px; }
.sg-page h2 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); margin-bottom: 12px; }
.sg-page h3 { font-size: clamp(1.04rem, 1.5vw, 1.2rem); line-height: 1.35; margin-bottom: 10px; }
.sg-page p { color: var(--sg-muted); margin-bottom: 14px; }
.sg-page a { text-underline-offset: 3px; }
.sg-page a:focus-visible, .sg-page button:focus-visible, .sg-page input:focus-visible, .sg-page select:focus-visible, .sg-page textarea:focus-visible, .sg-page summary:focus-visible { outline: 3px solid #b38b6b; outline-offset: 3px; }
.sg-eyebrow, .sg-kicker { color: var(--sg-brown) !important; font-size: .74rem; font-weight: 800; letter-spacing: .16em; line-height: 1.5; margin-bottom: 12px; text-transform: uppercase; }
.sg-eyebrow span { margin-inline: 6px; color: #b59a80; }
.sg-lead { font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 600px; }
.sg-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(460px, 46vw, 660px); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--sg-line); border-radius: 26px; background: #46372d; }
.sg-hero::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(25,19,15,.82) 0%, rgba(35,26,20,.69) 36%, rgba(35,26,20,.24) 68%, rgba(35,26,20,.06) 100%), linear-gradient(0deg, rgba(25,19,15,.22), transparent 45%); }
.sg-hero .sg-eyebrow { color: #f0d9c0 !important; }
.sg-hero h1 { color: #fffaf5; text-wrap: balance; }
.sg-hero .sg-lead { color: rgba(255,250,245,.92); max-width: 620px; font-size: clamp(1.02rem, 1.45vw, 1.2rem); }
.sg-hero-copy { position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(760px, 72%); padding: clamp(30px, 5.2vw, 76px); }
.sg-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.sg-hero-pills span { display: inline-flex; align-items: center; border: 1px solid rgba(255,250,245,.48); border-radius: 999px; background: rgba(255,250,245,.12); padding: 6px 11px; color: #fffaf5; font-size: .8rem; line-height: 1.4; backdrop-filter: blur(5px); }
.sg-tags span { display: inline-flex; align-items: center; border: 1px solid #ddcbbb; border-radius: 999px; background: #fffaf5; padding: 6px 11px; color: #5d4838; font-size: .8rem; line-height: 1.4; }
.sg-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--sg-brown); border-radius: 9px; background: var(--sg-brown); padding: 11px 18px; color: #fff !important; font: inherit; font-size: .94rem; font-weight: 750; text-align: center; text-decoration: none !important; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.sg-button:hover { background: var(--sg-brown-dark); transform: translateY(-1px); }
.sg-button-secondary { background: #fffaf5; color: var(--sg-brown) !important; }
.sg-button-secondary:hover, .sg-button-quiet:hover { background: #f0e4d8; }
.sg-button-quiet { background: transparent; color: var(--sg-brown) !important; }
.sg-hero-media { position: absolute; z-index: -1; inset: 0; min-width: 0; background: #8d7763; }
.sg-hero-media img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 52%; }
.sg-image-caption { display: none; }
.sg-roadmap { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 6px 2px 18px; margin-bottom: 12px; scrollbar-width: thin; scrollbar-color: #cbb39a #f4ece4; }
.sg-roadmap a { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; border: 1px solid var(--sg-line); border-radius: 999px; background: #fff; padding: 9px 13px; color: var(--sg-brown); font-size: .86rem; font-weight: 750; text-decoration: none; }
.sg-roadmap a:hover { border-color: #c2a387; background: #f9f0e7; }
.sg-roadmap a span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: var(--sg-brown); color: #fff; font-size: .7rem; }
.sg-section { padding: clamp(28px, 4.5vw, 54px) 0; scroll-margin-top: 30px; }
.sg-section-soft { margin-block: 8px; border: 1px solid #f0e7de; border-radius: 22px; background: #faf7f3; padding: clamp(22px, 3.5vw, 38px); }
.sg-section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.sg-section-heading > div { min-width: 0; }
.sg-section-heading h2 { margin-bottom: 10px; }
.sg-section-heading p:last-child { max-width: 850px; margin-bottom: 0; }
.sg-step { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--sg-brown); color: #fff; font-size: 1.02rem; font-weight: 800; }
.sg-kicker { margin-bottom: 7px !important; }
.sg-card-grid { display: grid; gap: 16px; min-width: 0; }
.sg-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sg-card, .sg-mini-card { min-width: 0; border: 1px solid var(--sg-line); border-radius: 16px; background: #fff; padding: clamp(16px, 2.2vw, 24px); }
.sg-card-index { display: inline-grid; width: 31px; height: 31px; place-items: center; margin-bottom: 14px; border-radius: 50%; background: #f0e4d8; color: var(--sg-brown); font-weight: 800; }
.sg-card ul, .sg-copy-block ol { padding-left: 22px; color: var(--sg-muted); }
.sg-card li, .sg-copy-block li { margin-block: 7px; padding-left: 2px; }
.sg-card li::marker, .sg-copy-block li::marker { color: var(--sg-brown); }
.sg-note { margin: 18px 0 0 !important; border-left: 4px solid #b48b68; border-radius: 0 10px 10px 0; background: #f7eee5; padding: 13px 15px; color: #59483a !important; font-size: .92rem; }
.sg-figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--sg-line); border-radius: 16px; background: var(--sg-pale); }
.sg-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fbf8f4; }
.sg-figure-wide img { aspect-ratio: 4 / 3; }
.sg-figure figcaption { border-top: 1px solid #eee4da; padding: 10px 14px; color: #796d63; font-size: .8rem; line-height: 1.5; }
.sg-feature-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: clamp(18px, 3vw, 30px); }
.sg-copy-block { min-width: 0; }
.sg-copy-block h3:not(:first-child) { margin-top: 22px; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sg-sizing-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.sg-definitions { display: grid; grid-template-columns: minmax(130px, .6fr) minmax(0, 1.4fr); gap: 12px 16px; margin: 0; }
.sg-definitions dt { color: var(--sg-brown); font-weight: 800; }
.sg-definitions dd { margin: 0; color: var(--sg-muted); }
.sg-mini-card { padding: 18px 16px; }
.sg-mini-card h3 { color: var(--sg-brown); font-size: 1rem; }
.sg-mini-card p { margin-bottom: 0; font-size: .9rem; }
.sg-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-checklist label { display: flex; align-items: flex-start; gap: 10px; min-width: 0; border: 1px solid var(--sg-line); border-radius: 10px; background: #fff; padding: 13px; color: #544940; font-size: .92rem; }
.sg-checklist input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 4px; accent-color: var(--sg-brown); }
.sg-progress-wrap { margin-top: 20px; }
.sg-progress-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--sg-muted); font-size: .88rem; }
.sg-progress-label strong { color: var(--sg-brown); }
.sg-progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8ddd2; }
.sg-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--sg-brown); transition: width .2s ease; }
.sg-worksheet { border: 1px solid var(--sg-line); border-radius: 18px; background: #fff; padding: clamp(16px, 3vw, 28px); }
.sg-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sg-page label { display: block; min-width: 0; color: #44382e; font-size: .91rem; font-weight: 750; }
.sg-page input:not([type="checkbox"]), .sg-page select, .sg-page textarea { display: block; width: 100%; min-width: 0; margin-top: 6px; border: 1px solid #d7c9bc; border-radius: 8px; background: #fff; padding: 11px 12px; color: var(--sg-ink); font: inherit; font-weight: 400; }
.sg-page textarea { resize: vertical; }
.sg-page input::placeholder, .sg-page textarea::placeholder { color: #9a8c80; }
.sg-measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.sg-measure-block { min-width: 0; border: 1px solid #e9ddd1; border-radius: 14px; background: #faf7f3; padding: 18px; }
.sg-measure-block h3 { margin-bottom: 14px; }
.sg-measure-block label { margin-top: 12px; }
.sg-result { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 16px 0 0 !important; border-top: 1px solid var(--sg-line); padding-top: 12px; color: var(--sg-muted); font-size: .91rem; }
.sg-result strong { color: var(--sg-brown); }
.sg-notes-label { margin-top: 18px; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sg-actions .sg-button { min-width: 0; }
.sg-status { min-height: 1.5em; margin: 10px 0 0 !important; color: var(--sg-brown) !important; font-size: .9rem; font-weight: 750; }
.sg-consultation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(20px, 4vw, 42px); overflow: hidden; margin-top: 26px; border: 1px solid var(--sg-line); border-radius: 22px; background: #f1e5d9; }
.sg-consultation-media { min-width: 0; height: 100%; min-height: 320px; background: #e1d1c1; }
.sg-consultation-media img { width: 100%; height: 100%; min-height: 320px; aspect-ratio: 4 / 3; object-fit: cover; }
.sg-consultation-copy { padding: clamp(22px, 4vw, 46px) clamp(18px, 3vw, 34px) clamp(22px, 4vw, 46px) 0; }
.sg-consultation-copy h2 { max-width: 560px; }
.sg-faq { max-width: 1040px; margin-inline: auto; }
.sg-faq-list { display: grid; gap: 10px; }
.sg-faq-list details { border: 1px solid var(--sg-line); border-radius: 12px; background: #fff; padding: 16px 18px; }
.sg-faq-list summary { color: #3e3229; font-weight: 800; cursor: pointer; }
.sg-faq-list details p { margin: 12px 0 0; }
.sg-host-main { min-width: 0; }

@media (max-width: 1000px) {
  .sg-hero { min-height: 540px; }
  .sg-hero-copy { width: min(760px, 84%); }
  .sg-feature-grid, .sg-sizing-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-consultation { grid-template-columns: minmax(0, 1fr); }
  .sg-consultation-media, .sg-consultation-media img { min-height: 0; max-height: 400px; }
  .sg-consultation-copy { padding: 0 26px 28px; }
}
@media (max-width: 640px) {
  .sg-page { padding: 10px 10px 40px; font-size: 15px; }
  .sg-hero { min-height: 620px; align-items: flex-end; border-radius: 16px; }
  .sg-hero::after { background: linear-gradient(0deg, rgba(25,19,15,.9) 0%, rgba(35,26,20,.72) 44%, rgba(35,26,20,.16) 100%); }
  .sg-hero-copy { width: 100%; padding: 28px 20px 30px; }
  .sg-page h1 { font-size: clamp(2.15rem, 10vw, 3.1rem); }
  .sg-hero-pills { gap: 6px; margin: 17px 0 20px; }
  .sg-hero-pills span { font-size: .74rem; padding: 6px 9px; }
  .sg-roadmap { margin-right: -10px; padding-bottom: 14px; }
  .sg-roadmap a { padding: 7px 10px; font-size: .8rem; }
  .sg-section { padding: 28px 0; }
  .sg-section-soft { border-radius: 16px; padding: 21px 13px; }
  .sg-section-heading { gap: 11px; margin-bottom: 20px; }
  .sg-step { flex-basis: 36px; width: 36px; height: 36px; font-size: .88rem; }
  .sg-two, .sg-five, .sg-measure-grid, .sg-checklist, .sg-form-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-card, .sg-mini-card { padding: 16px; }
  .sg-figure { border-radius: 12px; }
  .sg-figure img { aspect-ratio: 4 / 3; object-fit: contain; }
  .sg-definitions { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sg-definitions dd { margin-bottom: 10px; }
  .sg-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sg-actions .sg-button, .sg-worksheet > .sg-actions .sg-button { width: 100%; }
  .sg-consultation { border-radius: 16px; }
  .sg-consultation-copy { padding: 0 18px 22px; }
  .sg-faq-list details { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-page *, .sg-page *::before, .sg-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  body * { visibility: hidden !important; }
  .sg-page, .sg-page * { visibility: visible !important; }
  .sg-page { max-width: none; padding: 0; color: #000; }
  .sg-hero, .sg-roadmap, .sg-section:not(#sg-worksheet), .sg-consultation, .sg-faq { display: none !important; }
  #sg-worksheet { display: block !important; padding: 0; }
  #sg-worksheet .sg-section-heading { display: block; }
  #sg-worksheet .sg-actions, #sg-worksheet .sg-status { display: none !important; }
  #sg-worksheet .sg-worksheet { border: 0; padding: 0; }
  #sg-worksheet input, #sg-worksheet select, #sg-worksheet textarea { border-color: #777; }
}
