/* S1 small preview: scoped components alongside the existing Tailwind utilities. */
:root {
  --dm-ink: #173332;
  --dm-muted: #526866;
  --dm-brand: #087e83;
  --dm-brand-hover: #066267;
  --dm-mint: #edf8f5;
}
html { scroll-padding-top: 100px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
.site-container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.site-header, .site-footer, .redesign-home { color: var(--dm-ink); }
.site-header a, .site-footer a, .redesign-home a { text-decoration: none; }
.site-header :focus-visible, .site-footer :focus-visible, .redesign-home :focus-visible, .consultation-page :focus-visible {
  outline: 3px solid var(--dm-brand); outline-offset: 5px;
}
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 14px 20px; background: white; color: var(--dm-ink); border: 2px solid var(--dm-brand); border-radius: 8px; }
.skip-link:focus { top: 10px; }
.preview-notice { background: #f7efda; color: #6b582d; padding: 8px 20px; text-align: center; font-size: 11px; line-height: 1.5; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 97%); border-bottom: 1px solid #e9eeec; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--dm-ink); font-size: 23px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.brand-mark { width: 40px; height: 40px; color: var(--dm-brand); }
.brand-subtitle { display: block; margin-top: 5px; font-size: 9px; font-weight: 600; letter-spacing: 2.35px; }
.desktop-navigation { display: flex; gap: 38px; margin-left: auto; margin-right: 32px; }
.desktop-navigation a { padding: 14px 0; font-size: 15px; font-weight: 600; color: #425956; }
.desktop-navigation a:hover { color: var(--dm-brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 58px; padding: 16px 26px; background: var(--dm-brand); color: white; border-radius: 12px; font-size: 16px; line-height: 1.4; font-weight: 700; transition: background 150ms, box-shadow 150ms; }
.button:hover { background: var(--dm-brand-hover); box-shadow: 0 4px 14px rgb(8 126 131 / 12%); }
.button-small { min-height: 44px; padding: 12px 18px; border-radius: 9px; gap: 17px; font-size: 14px; }
.arrow-icon { flex-shrink: 0; }
.mobile-navigation { display: none; }
.hero { background: linear-gradient(110deg, #fff 18%, #fafcf9 100%); padding: 66px 0 65px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 46px; }
.hero-copy { padding-bottom: 12px; }
.eyebrow { font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 100%; background: var(--dm-brand); }
.hero h1 { margin-top: 23px; font-size: clamp(44px, 4.35vw, 62px); font-weight: 800; line-height: 1.22; letter-spacing: -3.4px; word-break: keep-all; }
.hero-emphasis { color: var(--dm-brand); position: relative; display: inline-block; z-index: 0; }
.hero-emphasis::after { content: ""; position: absolute; left: -3px; right: -9px; bottom: 2px; height: 15px; background: #d3eee8; border-radius: 50%; transform: rotate(-3deg); z-index: -1; }
.hero-description { margin-top: 25px; color: var(--dm-muted); font-size: 16px; line-height: 1.85; letter-spacing: -.45px; word-break: keep-all; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; flex-wrap: wrap; gap: 21px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--dm-ink); font-size: 14px; font-weight: 600; border-bottom: 1px solid #bdcfca; }
.text-link:hover { color: var(--dm-brand); border-color: var(--dm-brand); }
.hero-note { display: flex; gap: 7px; align-items: center; margin-top: 17px; font-size: 12px; color: #5a706b; }
.hero-note span { font-weight: 700; color: var(--dm-brand); }
.hero-visual { background: #eaf5ef; border-radius: 28px 28px 100px 28px; padding: 24px 26px 22px; position: relative; margin-bottom: 26px; }
.visual-heading { display: flex; justify-content: space-between; align-items: center; color: #4d7665; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.visual-star { color: var(--dm-brand); font-size: 28px; line-height: 1; }
.equipment-art { display: block; width: calc(100% + 40px); max-width: none; height: auto; margin: -10px -20px -5px; }
.visual-caption { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; letter-spacing: -.5px; }
.visual-caption > span:last-child { font-size: 24px; color: var(--dm-brand); }
.hero-visual figcaption { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; font-size: 10px; line-height: 1.5; color: #66766e; word-break: keep-all; }
.mobile-break { display: none; }
.services-section { padding-top: 78px; padding-bottom: 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-eyebrow { color: var(--dm-brand); letter-spacing: 1.4px; font-size: 10px; margin-bottom: 12px; }
.section-heading h2 { font-size: 35px; line-height: 1.3; font-weight: 750; letter-spacing: -1.6px; word-break: keep-all; }
.section-heading > p { color: var(--dm-muted); font-size: 14px; line-height: 1.8; letter-spacing: -.35px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { display: flex; flex-direction: column; border: 1px solid #dce9e4; border-radius: 22px; padding: 27px 28px 23px; background: #f5faf7; transition: border-color 150ms, box-shadow 150ms; }
.service-card--installation { background: #f7f8fc; border-color: #e2e6f0; }
.service-card--repair { background: #fdf9f2; border-color: #eee5d8; }
.service-card:hover { border-color: var(--dm-brand); box-shadow: 0 9px 25px rgb(23 51 50 / 6%); }
.service-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; color: #536b5e; }
.service-card--installation .service-card-top { color: #596281; }
.service-card--repair .service-card-top { color: #806c4e; }
.service-number { font-size: 11px; letter-spacing: 1px; opacity: .8; }
.service-art { display: flex; align-items: center; justify-content: center; height: 128px; margin-top: 12px; margin-bottom: 13px; }
.service-art svg { width: 180px; height: 122px; }
.service-card h3 { font-size: 23px; font-weight: 750; letter-spacing: -1px; line-height: 1.4; margin-bottom: 12px; }
.service-card > p { color: var(--dm-muted); font-size: 14px; line-height: 1.8; word-break: keep-all; letter-spacing: -.3px; margin-bottom: 27px; }
.service-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 19px; border-top: 1px solid rgb(23 51 50 / 12%); font-size: 13px; font-weight: 700; margin-top: auto; }
.service-introduction { padding: 36px; border-radius: 22px; background: var(--dm-mint); }
.service-introduction h3 { font-size: 23px; font-weight: 700; margin-bottom: 15px; }
.service-introduction p { line-height: 1.8; color: var(--dm-muted); margin-bottom: 15px; }
.consultation-section { padding-bottom: 72px; }
.consultation-panel { position: relative; overflow: hidden; background: #164b49; border-radius: 24px; padding: 45px 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: white; }
.consultation-panel > div { position: relative; z-index: 1; }
.consultation-panel .eyebrow { color: #b7ded2; font-size: 10px; letter-spacing: 1.8px; margin-bottom: 16px; }
.consultation-panel h2 { font-size: 31px; font-weight: 700; line-height: 1.45; letter-spacing: -1.4px; }
.consultation-panel h2 + p { color: #c6dfd8; margin-top: 15px; font-size: 14px; }
.button-light { color: #194b48; background: #fff; width: 100%; }
.button-light:hover { background: #e6f4ef; }
.consultation-action { width: 285px; flex-shrink: 0; }
.consultation-action > p { color: #c6dfd8; font-size: 11px; line-height: 1.8; margin-top: 14px; text-align: center; }
.consultation-action .consultation-unavailable { font-size: 16px; font-weight: 600; color: white; }
.consultation-decoration { position: absolute; top: -88px; right: 275px; color: #28605b; font-size: 330px; line-height: 1; transform: rotate(10deg); user-select: none; }
.site-footer { border-top: 1px solid #e7eeea; }
.footer-inner { display: flex; align-items: center; gap: 28px; padding-top: 32px; padding-bottom: 35px; }
.site-footer .brand { font-size: 19px; }
.site-footer .brand-mark { width: 34px; height: 34px; }
.site-footer .brand-subtitle { font-size: 7px; letter-spacing: 2px; }
.footer-inner > p { font-size: 12px; color: #61736c; }
.footer-meta { display: flex; align-items: center; gap: 22px; margin-left: auto; color: #61736c; font-size: 10px; }
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.mobile-consultation { display: none; }
/* Give the existing, unchanged consultation partial a usable surrounding shell. */
.consultation-page main { min-height: 65vh; color: var(--dm-ink); }
.consultation-page main > div { max-width: 680px; }
.consultation-page main > h1, .consultation-page main > p, .consultation-page main > a { display: block; max-width: 640px; margin: 24px auto; padding-inline: 24px; }
.consultation-page main > h1 { margin-top: 60px; font-size: 30px; font-weight: 700; }
.consultation-page form { margin-top: 28px; }
.consultation-page form label { display: inline-block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.consultation-page form input:not([type=hidden]):not([type=checkbox]):not([type=submit]), .consultation-page form select, .consultation-page form textarea {
  display: block; width: 100%; min-height: 48px; border: 1px solid #8ca39c; border-radius: 9px; padding: 12px; background: white; color: var(--dm-ink); font: inherit;
}
.consultation-page form textarea { min-height: 120px; }
.consultation-page form > p { font-size: 13px; color: var(--dm-muted); line-height: 1.8; }
.consultation-page form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--dm-brand); margin-right: 7px; vertical-align: middle; }
.consultation-page form input[type=checkbox] + label { padding-block: 12px; }
.consultation-page form a { text-decoration: underline; color: var(--dm-brand); font-size: 13px; padding-block: 12px; display: inline-block; }
.consultation-page form input[type=submit] { background: var(--dm-brand); color: white; width: 100%; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; }
.consultation-page [role=alert] { background: #fff3f0; color: #a33324; padding: 18px; border-radius: 10px; line-height: 1.7; }
@media (min-width: 1600px) { .hero { padding-block: 84px; } }
@media (max-width: 1100px) {
  .site-container { width: calc(100% - 56px); }
  .hero-grid { gap: 25px; }
  .hero h1 { font-size: 48px; letter-spacing: -2.5px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { padding-inline: 20px; gap: 15px; }
  .service-card { padding-inline: 22px; }
  .service-card h3 { font-size: 20px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 90px; }
  .site-container { width: calc(100% - 40px); }
  .hero { padding: 37px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 11px; }
  .hero h1 { font-size: clamp(37px, 10vw, 54px); line-height: 1.25; letter-spacing: -2px; margin-top: 17px; }
  .hero h1 br:nth-of-type(2) { display: none; }
  .hero-emphasis { margin-left: .14em; }
  .hero-emphasis::after { height: 11px; }
  .hero-description { font-size: 14px; margin-top: 21px; line-height: 1.8; }
  .mobile-break { display: initial; }
  .hero-actions { margin-top: 23px; flex-wrap: nowrap; gap: 16px; }
  .hero-actions .button { min-height: 52px; font-size: 14px; padding-inline: 18px; gap: 16px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-note { margin-top: 14px; font-size: 11px; }
  .hero-visual { border-radius: 20px 20px 65px 20px; padding: 18px 20px 17px; margin-bottom: 25px; }
  .visual-heading { font-size: 7px; letter-spacing: 1.1px; }
  .visual-star { font-size: 24px; }
  .equipment-art { margin-top: -9px; margin-bottom: -12px; }
  .visual-caption { font-size: 13px; }
  .hero-visual figcaption { font-size: 9px; bottom: -27px; }
  .services-section { padding-top: 45px; padding-bottom: 42px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-eyebrow { font-size: 9px; margin-bottom: 10px; }
  .section-heading h2 { font-size: 29px; letter-spacing: -1.1px; line-height: 1.4; }
  .section-heading > p { margin-top: 16px; font-size: 13px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px; position: relative; min-height: 242px; }
  .service-card-top { margin-bottom: 23px; }
  .service-number { margin-right: 2px; }
  .service-art { position: absolute; right: 16px; top: 40px; width: 102px; height: 90px; margin: 0; }
  .service-art svg { width: 110px; height: 90px; }
  .service-card h3 { font-size: 20px; max-width: calc(100% - 70px); }
  .service-card > p { font-size: 13px; max-width: calc(100% - 74px); margin-bottom: 22px; }
  .service-action { padding-top: 16px; font-size: 12px; }
  .service-introduction { padding: 26px; }
  .consultation-section { padding-bottom: 42px; }
  .consultation-panel { display: block; padding: 30px 25px; border-radius: 20px; }
  .consultation-panel h2 { font-size: 26px; letter-spacing: -1px; }
  .consultation-panel h2 + p { font-size: 13px; line-height: 1.8; }
  .consultation-action { width: 100%; margin-top: 27px; }
  .consultation-action > p { font-size: 10px; }
  .consultation-decoration { font-size: 260px; right: -100px; top: 0; opacity: .6; }
  .footer-inner { align-items: start; gap: 15px; padding-top: 27px; padding-bottom: 28px; flex-direction: column; }
  .footer-inner > p { font-size: 11px; }
  .footer-meta { width: 100%; margin-left: 0; justify-content: space-between; font-size: 9px; gap: 14px; }
  body:has(.mobile-consultation) .site-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .mobile-consultation { display: flex; position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 97%); border-top: 1px solid #dce7e1; box-shadow: 0 -5px 20px rgb(23 51 50 / 4%); }
  .mobile-consultation > span { font-size: 11px; font-weight: 600; }
  .mobile-consultation .button { min-height: 44px; padding: 12px 18px; font-size: 13px; }
}
@media (max-width: 374px) {
  .hero-actions { gap: 12px; }
  .hero-actions .button { padding-inline: 14px; gap: 12px; }
  .hero-actions .text-link { font-size: 11px; }
  .service-card { padding-inline: 21px; }
  .service-card h3 { font-size: 18px; }
  .header-actions { gap: 2px; }
  .header-consultation { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .service-card { transition: none; }
}

/* 공간 이야기: 기존 시안 스타일을 유지하는 독립 갤러리 */
.space-stories { padding-block: 64px; color: var(--dm-ink); }
.space-stories h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.3; }
.space-stories-description { margin-block: 16px 40px; color: #52665e; line-height: 1.7; }
.space-stories.site-container { width: min(1600px, calc(100% - 40px)); }
.space-stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px 24px; }
.space-story-card { min-width: 0; }
.space-story-link { display: block; color: inherit; text-decoration: none; border-radius: 16px; overflow-wrap: anywhere; }
.space-story-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.space-story-link h2 { margin: 14px 0 6px; font-size: 20px; font-weight: 700; }
.space-story-link:focus-visible, .space-story-admin :focus-visible { outline: 3px solid #087d63; outline-offset: 4px; }
.space-stories-empty { padding: 64px 24px; text-align: center; background: #f0f9f5; border-radius: 16px; }
.footer-inner { flex-wrap: wrap; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-social a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.space-story-admin { max-width: 900px; line-height: 1.7; }
.space-story-admin p, .space-story-admin h1, .space-story-admin h2 { margin-block: 16px; }
.space-story-admin a { text-decoration: underline; margin-right: 16px; }
.space-story-admin-gallery { max-width: none; width: 100%; }
.space-story-admin-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 24px; padding: 0; list-style: none; }
.space-story-admin-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ccd9d2; border-radius: 12px; background: white; }
.space-story-admin-card:hover, .space-story-admin-card:focus-within { border-color: #087d63; box-shadow: 0 4px 16px rgb(23 51 50 / 8%); }
.space-story-admin .space-story-admin-card-link { display: block; margin: 0; color: #173332; text-decoration: none; border-radius: 12px; }
.space-story-admin-card-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px 11px 0 0; }
.space-story-admin .space-story-admin-card h2 { margin: 0; padding: 18px 18px 12px; font-size: 18px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.space-story-admin-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 0 18px 16px; }
.space-story-admin-card-footer time { color: #52665e; font-size: 13px; }
.space-story-admin .space-story-admin-card-footer .button { margin: 0; padding: 8px 14px; }
.space-story-field { margin-block: 24px; }
.space-story-field label { display: block; font-weight: 700; }
.space-story-field input, .space-story-field textarea { width: 100%; padding: 12px; border: 1px solid #778e83; border-radius: 8px; background: white; }
.space-story-field [aria-invalid="true"] { border-color: #b42318; }
.space-story-error { color: #b42318; }
.space-story-preview { max-width: 100%; max-height: 360px; object-fit: contain; }
.space-story-preview[hidden] { display: none; }
.space-story-note { white-space: pre-wrap; overflow-wrap: anywhere; }



.space-story-dropzone { padding: 20px; border: 3px dashed #778e83; border-radius: 12px; background: #f7fbf9; }
.space-story-dropzone.is-dragging { border-color: #087d63; background: #e1f4eb; }
.space-story-dropzone [role="status"] { overflow-wrap: anywhere; }

/* 관리자 공간 이야기의 조작 상태: 같은 테두리 폭으로 레이아웃 이동 방지 */
.space-story-dropzone:hover,
.space-story-dropzone:focus-within,
.space-story-dropzone:active,
.space-story-dropzone.is-dragging,
.space-story-dropzone.has-selection {
  border-style: dashed; border-color: #087d63; background: #edf8f2;
}
.space-story-dropzone:focus-visible { outline: 3px solid #087d63; outline-offset: 4px; }
.space-story-dropzone.has-selection [role="status"] { color: #075f4c; font-weight: 700; }
.space-story-field input[type="file"] { border: 2px solid #778e83; padding: 10px; cursor: pointer; }
.space-story-field input[type="file"]:hover,
.space-story-field input[type="file"]:focus-visible { border-color: #087d63; box-shadow: inset 0 0 0 1px #087d63; }
.space-story-field input[type="file"]::file-selector-button {
  min-height: 44px; margin-right: 12px; padding: 8px 18px; border: 2px solid #087d63;
  border-radius: 8px; background: #fff; color: #075f4c; font-weight: 700; cursor: pointer;
}
.space-story-field input[type="file"]:hover::file-selector-button,
.space-story-field input[type="file"]:focus-visible::file-selector-button { background: #e1f4eb; box-shadow: inset 0 0 0 1px #087d63; }
.space-story-field input[type="file"]:active::file-selector-button { background: #087d63; color: white; }
.space-story-admin .button {
  min-height: 44px; border: 2px solid #087d63; border-radius: 8px;
  padding: 10px 20px; margin: 8px 8px 8px 0; text-decoration: none; font-weight: 700;
  background: #087d63; color: white; cursor: pointer;
}
.space-story-admin .button:hover { background: #065e4b; border-color: #065e4b; }
.space-story-admin .button:active { box-shadow: inset 0 0 0 2px currentColor; }
.space-story-admin .button-secondary { background: white; color: #075f4c; }
.space-story-admin .button-secondary:hover { background: #e1f4eb; }
.space-story-admin .button-danger { background: white; color: #b42318; border-color: #b42318; }
.space-story-admin .button-danger:hover { background: #fff0ed; border-color: #b42318; }
.space-story-admin .button:disabled { opacity: .55; cursor: wait; }
.space-story-admin .button_to { display: inline-block; }

/* 메인 노출 사진: 자동 전환 중에도 히어로 크기를 유지한다. */
.hero-carousel { min-width: 0; }
.hero-carousel-viewport { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 28px; background: #eaf5ef; isolation: isolate; }
.hero-carousel-slide { position: absolute; inset: 0; }
.hero-carousel-slide[hidden], .hero-carousel-controls[hidden] { display: none; }
.hero-carousel-slide > img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel-caption { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 48px 20px 20px; color: white; background: linear-gradient(transparent, rgb(0 0 0 / 80%)); }
.hero-carousel-caption > span { flex: 1 1 180px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hero-carousel-caption a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: auto; padding: 8px 12px; font-size: 12px; color: white; background: rgb(0 0 0 / 60%); border-radius: 8px; text-decoration: underline; text-underline-offset: 4px; }
.hero-carousel-controls { display: flex; align-items: center; justify-content: end; gap: 10px; margin-top: 12px; color: #173332; font-size: 12px; }
.hero-carousel-controls button { min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #778e83; border-radius: 8px; cursor: pointer; background: white; }
.hero-carousel-controls button:hover { background: #e1f4eb; }
.hero-carousel-controls button:disabled { color: #52665e; cursor: default; }
.hero-carousel :focus-visible { outline: 3px solid #087d63; outline-offset: 3px; }
.hero-carousel-caption a:focus-visible { outline-color: white; outline-offset: -3px; }
.hero-carousel-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.space-story-feature-toggle, .space-story-card-selection { padding: 16px; background: #f0f9f5; border-radius: 12px; }
.space-story-feature-toggle input, .space-story-card-selection input[type="checkbox"] { width: 20px; height: 20px; accent-color: #087d63; vertical-align: middle; }
.space-story-feature-toggle label, .space-story-card-selection label { display: inline-flex; align-items: center; min-height: 44px; padding-left: 8px; font-weight: 700; cursor: pointer; }
.space-story-bulk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Public home A: explicit component tokens, independent of administrator buttons. */
.site-header, .redesign-home {
  --dm-radius-control: 8px;
  --dm-radius-card: 12px;
  --dm-radius-feature: 16px;
}
.site-header .header-consultation { border-radius: var(--dm-radius-control); }
.redesign-home .hero-primary-cta { border-radius: var(--dm-radius-control); min-height: 56px; }
.redesign-home .hero-carousel-viewport, .redesign-home .consultation-panel { border-radius: var(--dm-radius-feature); }
.redesign-home .service-introduction, .redesign-home .service-card { border-radius: var(--dm-radius-card); }
.redesign-home .hero-actions { gap: 24px; }
.redesign-home .hero-note, .redesign-home .consultation-action > p { font-size: 14px; }
.redesign-home .eyebrow { font-size: 12px; }
.redesign-home .hero-copy, .redesign-home .hero-carousel { min-width: 0; }
.redesign-home { overflow-wrap: anywhere; }
.redesign-home p { word-break: keep-all; }
@media (max-width: 767px) {
  .redesign-home .hero-description { font-size: 16px; line-height: 1.625; }
  .redesign-home .hero-actions { gap: 16px; flex-wrap: wrap; }
  .redesign-home .hero-primary-cta { min-height: 52px; }
  .redesign-home .hero-actions .text-link { font-size: 14px; }
}

@media (max-width: 1023px) {
  .header-inner { min-height: 72px; gap: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-subtitle { font-size: 7px; letter-spacing: 2.1px; margin-top: 4px; }
  .desktop-navigation { display: none; }
  .header-actions { gap: 7px; }
  .header-consultation { padding: 11px 13px; min-height: 44px; font-size: 12px; }
  .header-consultation .arrow-icon { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; list-style: none; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .menu-lines { width: 20px; height: 14px; border-top: 1.8px solid var(--dm-ink); border-bottom: 1.8px solid var(--dm-ink); position: relative; }
  .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1.8px solid var(--dm-ink); }
  .mobile-navigation[open] summary { background: #edf5f0; }
  .mobile-navigation nav { position: absolute; top: 100%; left: 0; right: 0; background: white; border-top: 1px solid #e7eeea; border-bottom: 1px solid #d5e2dc; box-shadow: 0 15px 20px rgb(23 51 50 / 6%); padding: 12px 20px; }
  .mobile-navigation nav a { display: block; padding: 16px 10px; font-size: 15px; font-weight: 600; }
}

/* Preserve full story text in markup/data while keeping the hero link reachable. */
.redesign-home .hero-carousel-caption > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.redesign-home .hero-carousel-caption {
  background: linear-gradient(transparent, rgb(0 0 0 / 70%) 40px);
}

/* Public business footer: local social assets and user-supplied contact details. */
.site-footer { background: #112b2b; color: #d5e3e0; border-top: 1px solid #284543; }
.site-footer .brand { color: white; }
.site-footer .brand-mark { color: #62d3c7; }
.footer-business-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px 80px; padding-block: 48px 28px; }
.footer-company > p { margin-block: 20px; font-size: 16px; line-height: 1.7; }
.site-footer .footer-social { gap: 12px; }
.site-footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #57726c; border-radius: 8px; background: #fff; }
.site-footer .footer-social a:hover { background: #d9f3ec; border-color: #8de0d2; }
.footer-social img { width: 32px; height: 32px; object-fit: contain; }
.footer-accessible-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.footer-contact h2 { margin-bottom: 12px; color: white; font-size: 18px; font-weight: 700; }
.footer-contact address { font-style: normal; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-contact a { display: flex; align-items: center; min-height: 44px; width: fit-content; color: #d5e3e0; }
.footer-contact a:hover, .site-footer .footer-policy:hover { color: white; text-decoration: underline; }
.footer-contact p { margin-top: 8px; word-break: keep-all; }
.footer-business-bottom { grid-column: 1 / -1; border-top: 1px solid #38514d; padding-top: 24px; }
.footer-business-details { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 1.7; }
.footer-business-details > div { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-business-details dt { color: #abc5bf; }
.footer-business-details dd { margin: 0; }
.site-footer .footer-policy { display: inline-flex; align-items: center; min-height: 44px; color: #d5e3e0; font-size: 14px; }
.footer-copyright { margin-top: 16px; font-size: 12px; line-height: 1.6; color: #abc5bf; }
.site-footer :focus-visible { outline-color: #8de0d2; }
@media (max-width: 767px) {
  .footer-business-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 28px; }
  .footer-business-details { flex-direction: column; gap: 6px; }
}

/* Public and admin gallery: fluid columns with a shared external-link cue. */
.space-story-thumbnail { display: block; position: relative; overflow: hidden; border-radius: 12px; }
.space-story-thumbnail img { max-height: 520px; }
.space-story-hover-layer { position: absolute; inset: auto 0 0; padding: 20px; background: rgb(10 32 32 / 88%); color: #fff; font-size: 15px; line-height: 1.6; text-align: center; word-break: keep-all; opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.space-story-link:hover .space-story-hover-layer,
.space-story-link:focus-visible .space-story-hover-layer,
.space-story-blog-link:hover .space-story-hover-layer,
.space-story-blog-link:focus-visible .space-story-hover-layer { opacity: 1; }
@media (hover: none) { .space-story-hover-layer { opacity: 1; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .space-story-hover-layer { transition: none; } }
