body { margin:0; min-width:0; }
p,h1,h2,h3,figure { margin:0; }
a { color:var(--nn-text); }
.fs-band { padding:var(--nn-space-12) var(--nn-space-24); text-align:center; font-size:var(--nn-font-body-sm); border-bottom:var(--nn-stroke-default) solid var(--nn-border); }
.fs-masthead { max-width:1120px; margin-inline:auto; padding:var(--nn-space-24); display:flex; gap:var(--nn-space-12); align-items:center; flex-wrap:wrap; }
.fs-masthead a { margin-left:auto; font-size:var(--nn-font-body-sm); }
.fs-main { width:100%; max-width:1120px; margin-inline:auto; padding:var(--nn-space-16) var(--nn-space-24) var(--nn-space-48); display:grid; gap:var(--nn-space-32); }
.fs-main > section { min-width:0; }
.fs-footer { padding:var(--nn-space-32) var(--nn-space-24); text-align:center; font-size:var(--nn-font-body-sm); border-top:var(--nn-stroke-default) solid var(--nn-border); }
.fs-error { padding:var(--nn-space-24); }
.fs-catalog { display:grid; gap:var(--nn-space-16); grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); list-style:none; padding:0; }
.fs-catalog a { display:grid; gap:var(--nn-space-12); padding:var(--nn-space-24); text-decoration:none; border:var(--nn-stroke-default) solid var(--nn-border); border-radius:var(--nn-radius-sm); }
.fs-catalog h2 { font-size:var(--nn-font-wide-subtitle_sm); }
.fs-catalog p { color:var(--nn-text); }
@media(max-width:600px) { .fs-main { padding:var(--nn-space-8) var(--nn-space-16) var(--nn-space-32); } .fs-masthead { padding:var(--nn-space-20) var(--nn-space-16); } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

body[style*="--nn-theme-dark"] .fs-band, body[style*="--nn-theme-dark"] .fs-footer { background-color:var(--nn-theme-dark); color:var(--nn-text); }

body[data-store-theme] .nn-button--secondary, body[data-store-theme] .nn-button--text, body[data-store-theme] .nn-tab[aria-selected=true], body[data-store-theme] .nn-controls--compact .nn-button[aria-pressed=true], body[data-store-theme] .nn-notice-band--status .nn-badge { color:var(--nn-text); }
body[data-store-theme] .nn-select, body[data-store-theme] .nn-input { border-color:var(--nn-border); }
body[data-store-theme] .nn-button:active:not(:disabled) { background:var(--nn-accent); }
body[data-store-theme] .nn-button--secondary:active:not(:disabled), body[data-store-theme] .nn-button--text:active:not(:disabled) { background:var(--nn-selected); }
body[data-store-theme] { --nn-disabled-text:var(--nn-muted); --nn-disabled-bg:var(--nn-subtle); }
body[data-store-theme] .menu-board-nav [aria-current=true] { background-color:var(--nn-accent); color:var(--nn-inverse); }
.search-filter .nn-button--secondary, .search-filter .nn-button--text { color:var(--nn-text); }

/* 가게 역할 색을 페이지에서 연결하며 공통 부품 원본은 보존합니다. */
body[data-store-theme] {
 --nn-texture-paper:url("../design-system/textures/paper.svg");
 --nn-kraft-bg:var(--nn-theme-dark);
 --nn-texture-kraft:var(--nn-texture-paper);
 --nn-kraft-texture:var(--nn-texture-paper);
 --nn-color-action-default:var(--nn-accent);
 --nn-color-text-inverse:var(--nn-inverse);
}
body[data-store-theme] .fs-band { background-color:var(--nn-band); color:var(--nn-on-band); background-image:var(--nn-texture-paper); }
body[data-store-theme] .fs-masthead { background-color:var(--nn-theme-dark); background-image:var(--nn-texture-paper); }
body[data-store-theme] .fs-store-intro { background-color:var(--nn-theme-dark); background-image:var(--nn-texture-paper); }
body[data-store-theme] .fs-footer { background-color:var(--nn-theme-dark); background-image:var(--nn-texture-paper); }
body[data-store-theme] .nn-badge { background-color:var(--nn-accent); color:var(--nn-inverse); }
body[data-store-theme] .nn-notice-band--status .nn-badge { color:var(--nn-inverse); }
body[data-store-theme] progress { accent-color:var(--nn-accent); }
body[data-store-theme] .fs-main > section:nth-child(even) > .nn-surface-sheet { background-color:var(--nn-theme-dark); }
