@layer base {
/* NSFWON readable defaults. Explicit Inspector overrides remain user-controlled. */
:root { --nsfwon-body-font: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
body { font-family: var(--nsfwon-body-font); font-size: 16px; line-height: 1.7; }
:where(h1,h2,h3,h4,h5,h6,p,li,a,button) { word-break: keep-all; overflow-wrap: anywhere; }
:where(h1,h2,h3,h4,h5,h6) { line-height: 1.35; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.375rem, 1.8vw, 1.625rem); }
h4 { font-size: clamp(1.1875rem, 1.5vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
:where(.grid,.flex,.inline-flex) > * { min-width: 0; }
:where(img,video) { max-width: 100%; }
@media (max-width: 767px) {
 h1 { font-size: clamp(1.75rem, 7.8vw, 2.125rem); }
 h2 { font-size: 1.5rem; }
 h3 { font-size: 1.25rem; }
 h4 { font-size: 1.125rem; }
 h5,h6 { font-size: 1rem; }
 :where(.inline-flex) { max-width: 100%; }
 p.text-lg,p.text-xl { font-size: 1rem; line-height: 1.75; }
}
}

/* Shared mobile section and hero layout contract. */
@media (max-width: 767px) {
 html main > section, html [data-site-section] { padding-block: 28px; }
 html section[data-site-section="hero"] { padding-top: max(36px, calc(var(--nsfwon-fixed-header-offset, 0px) + 24px)); padding-bottom: 24px; }
 [data-site-field="phone"] { white-space: nowrap; }
}

/* Shared editable gallery: two columns on phones, four on desktop. */
html [data-site-layout="gallery"] { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
html [data-site-layout="gallery"] img { width:100%; aspect-ratio:4/3; object-fit:cover; }
@media(max-width:767px) { html [data-site-layout="gallery"] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }

@media (max-width:767px) {
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="actions"]:not([data-site-mobile-layout="custom"]):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:10px; align-items:stretch;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="actions"][data-site-mobile-stack="false"]:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="actions"][data-site-mobile-stack="true"]:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { grid-template-columns:minmax(0,1fr); }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="actions"]:not([data-site-mobile-layout="custom"]) > :is(a,button):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   box-sizing:border-box; min-width:0; max-width:100%; width:100%; min-height:48px; height:auto;
   padding:12px 12px; display:flex; justify-content:center; align-items:center; gap:8px;
   white-space:normal; font-size:14px; line-height:1.5; text-align:center; overflow-wrap:anywhere;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="actions"]:not([data-site-mobile-layout="custom"]) > :is(a,button) :where(span,strong,em):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="actions"] svg:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { flex-shrink:0; width:16px; height:16px; }
 html :is([data-site-layout="badges"],[data-site-layout="facts"]):not([data-site-mobile-layout="custom"]):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),1fr)); gap:8px; align-items:stretch;
 }
 html :is([data-site-layout="badges"],[data-site-layout="facts"]):not([data-site-mobile-layout="custom"]) > *:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   box-sizing:border-box; min-width:0; max-width:100%; min-height:44px; height:auto; padding:10px 8px;
   display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
   white-space:normal; text-align:center; font-size:13px; line-height:1.5; overflow-wrap:anywhere;
 }
 html :is([data-site-layout="badges"],[data-site-layout="facts"]) > * > :where(span,p,strong,div):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="badges"] > [data-site-mobile-item="badge"]:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { flex-direction:row; flex-wrap:wrap; }
 html :is([data-site-layout="badges"],[data-site-layout="facts"]) svg:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { width:14px; height:14px; flex-shrink:0; }
 html:not([data-site-mobile-layout="custom"]) [data-site-mobile-kind="facts"] > [data-site-mobile-item="fact"] > :first-child:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { font-size:16px; line-height:1.4; }
 html:not([data-site-mobile-layout="custom"]) [data-site-mobile-kind="facts"][data-site-mobile-columns="1"]:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { grid-template-columns:minmax(0,1fr); }
 html:not([data-site-mobile-layout="custom"]) [data-site-mobile-kind="facts"][data-site-mobile-columns="2"]:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 html:not([data-site-mobile-layout="custom"]) [data-site-mobile-kind="facts"][data-site-mobile-columns="3"]:where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { grid-template-columns:repeat(3,minmax(0,1fr)); }
 html:not([data-site-mobile-layout="custom"]) [data-site-mobile-kind="facts"][data-site-mobile-columns="2"] > :last-child:nth-child(odd):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   grid-column:1/-1; width:calc((100% - 8px)/2); justify-self:center;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="section-intro"]:not([data-site-mobile-layout="custom"]):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   width:100%; min-width:0; margin-inline:auto; text-align:center; align-items:center;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="section-intro"]:not([data-site-mobile-layout="custom"]) > :is(h2,h3,p,span,div):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   max-width:100%; margin-inline:auto; text-align:center;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="tabs"]:not([data-site-mobile-layout="custom"]):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; min-width:0; margin-inline:auto; justify-content:center;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="tabs"]:not([data-site-mobile-layout="custom"]) > :is(button,a,[role="tab"]):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) {
   box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:44px; height:auto;
   padding:10px 8px; white-space:normal; overflow-wrap:anywhere; text-align:center; line-height:1.5;
 }
 html:not([data-site-mobile-layout="custom"]) [data-site-layout="tabs"] > :last-child:nth-child(odd):where(:not([data-site-mobile-layout="custom"], [data-site-mobile-layout="custom"] *)) { grid-column:1/-1; width:calc((100% - 8px)/2); justify-self:center; }
}

/* Brand-aware mobile header: wordmarks already contain their business name. */
header [data-site-brand="wordmark"] [data-site-field="businessName"], header [data-site-brand="wordmark"] [data-site-brand-caption] { display:none; }
@media(max-width:767px) {
 header [data-site-brand] { min-width:0; max-width:calc(100% - 56px); }
 header [data-site-brand] img[data-site-field="logo"] { max-width:100%; object-fit:contain; flex-shrink:1; }
 header [data-site-brand="wordmark"] [data-site-field="businessName"],
 header [data-site-brand="wordmark"] [data-site-brand-caption] { display:none; }
 header [data-site-brand="symbol"] [data-site-field="businessName"] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
 header [data-site-menu-toggle] { flex-shrink:0; min-width:44px; min-height:44px; }
}

/* Shared system Gothic defaults; saved typography overrides follow this sheet. */
:root { --font-sans: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --font-display: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --nsfwon-body-font: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
body { font-family: var(--nsfwon-body-font); }
.nsfwon-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0 0;padding:0;list-style:none;align-items:stretch}
.nsfwon-news-grid .nsfwon-news-card{position:relative;min-width:0;overflow:hidden;background:var(--color-surface,#fff);color:var(--color-fg,#18221e);border:1px solid var(--color-line,rgba(100,116,109,.18));border-radius:20px;box-shadow:0 4px 18px rgba(20,40,30,.035);transition:transform .2s,box-shadow .2s;margin:0;padding:0;display:flex}
.nsfwon-news-grid .nsfwon-news-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,40,30,.09)}
.nsfwon-news-grid .nsfwon-news-card>a{display:flex;flex-direction:column;width:100%;color:inherit;text-decoration:none}
.nsfwon-news-grid .nsfwon-news-card>a:focus-visible{outline:3px solid var(--color-accent,#047857);outline-offset:-4px;border-radius:20px}
.nsfwon-news-grid .nsfwon-news-image{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:0;margin:0;background:var(--color-soft,#eef2ef)}
.nsfwon-news-grid .nsfwon-news-content{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:24px;min-height:208px;box-sizing:border-box}
.nsfwon-news-grid .nsfwon-news-badge{display:inline-flex;align-items:center;border-radius:999px;background:var(--color-soft,#edf4ef);color:var(--color-accent,#065f46);font-size:12px;font-weight:650;line-height:1.5;padding:5px 11px;margin:0 0 16px}
.nsfwon-news-grid .nsfwon-news-title{font:inherit;font-size:18px;font-weight:700;line-height:1.5;letter-spacing:-.025em;margin:0 0 10px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nsfwon-news-grid .nsfwon-news-excerpt{font-size:14px;line-height:1.8;color:var(--color-fg-muted,#617169);margin:0 0 22px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nsfwon-news-grid .nsfwon-news-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin-top:auto;padding-top:16px;border-top:1px solid var(--color-line,rgba(100,116,109,.14))}
.nsfwon-news-grid .nsfwon-news-meta time{font-size:12px;line-height:1.5;color:var(--color-fg-muted,#617169)}
.nsfwon-news-grid .nsfwon-news-more{font-size:12px;font-weight:600;color:var(--color-accent,#065f46);white-space:nowrap}
.nsfwon-news-empty{padding:32px 24px;margin-top:24px;border:1px dashed var(--color-line,#d7ded9);border-radius:20px;color:var(--color-fg-muted,#617169);font-size:14px;text-align:center}
.cms-main .nsfwon-news-breadcrumb{font-size:13px;line-height:1.6;margin-bottom:24px;gap:10px;color:var(--color-fg-muted,#617169)}
.cms-main .nsfwon-news-heading{font-size:clamp(24px,3vw,32px);margin:0 0 12px;line-height:1.35;font-weight:750;letter-spacing:-.025em}
.cms-main .nsfwon-news-intro{font-size:15px;line-height:1.8;color:var(--color-fg-muted,#617169);margin:0}
.cms-main .nsfwon-news-pagination{margin:32px 0 0;align-items:center;justify-content:center;gap:12px;font-size:14px}
.cms-main .nsfwon-news-pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid var(--color-line,#d7ded9);border-radius:12px;background:var(--color-surface,#fff);text-decoration:none}
@media(max-width:1023px){.nsfwon-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:639px){.nsfwon-news-grid{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:24px}.nsfwon-news-grid .nsfwon-news-content{padding:22px;min-height:190px}.nsfwon-news-grid .nsfwon-news-title{font-size:17px}}
@media(prefers-reduced-motion:reduce){.nsfwon-news-grid .nsfwon-news-card{transition:none}.nsfwon-news-grid .nsfwon-news-card:hover{transform:none}}

/* Shared editorial article layout, independent of generated theme typography. */
html .cms-main{box-sizing:border-box;max-width:1152px;margin-inline:auto;padding:48px 24px;font-size:16px;line-height:1.8}
html .cms-main.cms-detail{max-width:808px;padding:48px 24px 64px;min-height:55vh}
html .cms-main .nsfwon-news-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px;font-size:13px;line-height:1.6}
html .cms-main .nsfwon-post-header{position:static;display:block;max-width:none;padding:0 0 24px;margin:0 0 28px;background:transparent;border:0;border-bottom:1px solid var(--color-line,#d7ded9);box-shadow:none;backdrop-filter:none}
html .cms-main .nsfwon-post-badge{display:inline-flex;align-items:center;font-size:12px;line-height:1.5;padding:4px 10px;border-radius:999px;background:var(--color-soft,#edf4ef);color:var(--color-accent,#065f46);margin:0 0 12px}
html .cms-main h1.nsfwon-post-title,html .cms-main h1.nsfwon-news-heading{font-size:32px!important;line-height:1.4;font-weight:700;letter-spacing:-.025em;margin:0 0 16px;word-break:keep-all;overflow-wrap:anywhere}
html .cms-main .nsfwon-post-meta{display:flex;align-items:center;flex-wrap:wrap;column-gap:18px;row-gap:6px;margin:0;color:var(--color-fg-muted,#617169);font-size:13px;line-height:1.7}
html .cms-main .nsfwon-post-meta time{font:inherit;color:inherit;white-space:nowrap}
html .cms-main .nsfwon-post-body{font-size:16px;line-height:1.7}
html .cms-main .nsfwon-post-body h2{font-size:22px!important;line-height:1.45;margin:32px 0 14px}
html .cms-main .nsfwon-post-body h3{font-size:19px!important;line-height:1.5;margin:26px 0 12px}
html .cms-main .nsfwon-post-body h4{font-size:17px!important;line-height:1.5;margin:22px 0 10px}
html .cms-main .nsfwon-post-body p{margin:0 0 18px}
html .cms-main .nsfwon-post-body>:first-child{margin-top:0}
html .cms-main .nsfwon-post-cover{display:block;width:100%;max-height:500px;object-fit:cover;border-radius:16px;margin:0 0 28px}
html .cms-main .nsfwon-post-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:36px 0 0;padding:24px 0 0;border-top:1px solid var(--color-line,#d7ded9)}
html .cms-main .nsfwon-cms-button,.nsfwon-news-grid .nsfwon-news-more{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;box-sizing:border-box;border:1px solid var(--color-line,#d7ded9);border-radius:10px;background:var(--color-soft,#edf4ef);color:var(--color-accent,#065f46);font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;white-space:nowrap;transition:background .2s}
.nsfwon-news-grid .nsfwon-news-more{min-height:36px;padding:0 12px;font-size:12px}
html .cms-main .nsfwon-cms-button:focus-visible{outline:2px solid var(--color-accent,#065f46);outline-offset:3px}
html .cms-main .nsfwon-post-neighbours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
html .cms-main .nsfwon-post-neighbours a{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid var(--color-line,#d7ded9);border-radius:12px;font-size:14px;line-height:1.6;text-decoration:none;color:var(--color-fg,#18221e)}
html .cms-main .nsfwon-post-neighbours span{font-size:12px;color:var(--color-fg-muted,#617169)}
@media(max-width:767px){html .cms-main{padding:28px 20px}html .cms-main.cms-detail{padding:28px 20px 44px}html .cms-main h1.nsfwon-post-title,html .cms-main h1.nsfwon-news-heading{font-size:26px!important;margin-bottom:12px}html .cms-main .nsfwon-post-meta{font-size:12px;column-gap:12px}html .cms-main .nsfwon-post-header{padding-bottom:20px;margin-bottom:24px}html .cms-main .nsfwon-post-body h2{font-size:20px!important}html .cms-main .nsfwon-post-body h3{font-size:18px!important}html .cms-main .nsfwon-post-body h4{font-size:16px!important}html .cms-main .nsfwon-post-neighbours{grid-template-columns:minmax(0,1fr)}}
