:root {
	--t-primary: rgba(0, 0, 0, .85);
	--t-secondary: rgba(0, 0, 0, .6);
	--t-tertiary: rgba(0, 0, 0, .45);
	--t-disabled: rgba(0, 0, 0, .25);
	--border1: rgba(0, 0, 0, .06);
	--border2: rgba(0, 0, 0, .11);
	--border3: rgba(0, 0, 0, .18);
	--bg1: rgba(0, 0, 0, .02);
	--bg2: rgba(0, 0, 0, .04);
	--bg3: rgba(0, 0, 0, .06);
	--bg4: rgba(0, 0, 0, .11);
	--base: #fff;
	--brand: #f2795a;
	--brand-hover: #df684b;
	--brand-pressed: #cc5a3f;
	--link: #d85e40;
	--danger: #f5222d;
	--r4: 4px;
	--r6: 6px;
	--r8: 8px;
	--r10: 10px;
}

.sunday-layout,
.sunday-layout * { box-sizing: border-box; }

.sunday-layout {
	min-width: 0;
	margin: 0;
	color: var(--t-primary);
	background: var(--base);
	font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.sunday-layout a { color: inherit; text-decoration: none; }
.sunday-layout img { max-width: 100%; border: 0; }
.sunday-layout button,
.sunday-layout input { font: inherit; }

.sunday-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 8px 14px;
	border-radius: var(--r4);
	color: #fff !important;
	background: var(--brand);
	transform: translateY(-150%);
}
.sunday-skip:focus { transform: translateY(0); }

.sunday-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 56px;
	border-bottom: 1px solid var(--border2);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
}
.sunday-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1440px, 100%);
	height: 55px;
	margin: 0 auto;
	padding: 0 24px;
	gap: 24px;
}
.sunday-brand { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.sunday-brand a { display: inline-flex; align-items: center; height: 44px; color: var(--t-primary); }
.sunday-brand span::after { display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-radius: 50%; background: var(--brand); content: ""; vertical-align: .15em; }
.sunday-brand img { display: block; width: auto; max-width: 220px; max-height: 36px; }
.sunday-header__account { display: flex; align-items: center; min-height: 44px; gap: 12px; color: var(--t-secondary); }
.sunday-header__member { color: var(--t-primary) !important; font-weight: 600; }
.sunday-logout-form { display: inline-flex; margin: 0; }
.sunday-text-button { min-height: 32px; padding: 0 8px; border: 0; border-radius: var(--r6); color: var(--link) !important; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.sunday-text-button:hover { background: var(--bg2); color: var(--brand-hover) !important; }

.sunday-shell {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr) 248px;
	align-items: stretch;
	width: min(1440px, 100%);
	min-height: calc(100vh - 111px);
	margin: 0 auto;
}
.sunday-sidebar { min-width: 0; padding: 24px 16px 40px; }
.sunday-sidebar--menu { border-right: 1px solid var(--border1); background: var(--bg1); }
.sunday-sidebar--account { border-left: 1px solid var(--border1); background: var(--base); }
.sunday-sidebar__eyebrow { margin: 0 8px 12px; color: var(--t-tertiary); font-size: 12px; font-weight: 600; line-height: 1.5; }

.sunday-nav ul { margin: 0; padding: 0; list-style: none; }
.sunday-nav > ul > li { position: relative; }
.sunday-nav a { display: flex; align-items: center; min-height: 32px; padding: 5px 12px; border-radius: var(--r6); color: var(--t-secondary); font-size: 14px; font-weight: 600; line-height: 1.5; }
.sunday-nav a:hover,
.sunday-nav a:focus { background: var(--bg2); color: var(--t-primary); }
.sunday-nav > ul > li.is-selected::before { position: absolute; top: 5px; bottom: 5px; left: -16px; width: 3px; border-radius: 0 2px 2px 0; background: var(--brand); content: ""; }
.sunday-nav li.is-selected > a { color: var(--brand); }
.sunday-nav li ul { padding: 2px 0 6px 12px; }
.sunday-nav li li a { min-height: 32px; color: var(--t-tertiary); font-size: 13px; font-weight: 400; }
.sunday-nav li li.is-selected a { color: var(--brand); font-weight: 600; }

.sunday-content { min-width: 0; max-width: 960px; width: 100%; margin: 0 auto; padding: 32px clamp(24px, 4vw, 56px) 72px; background: var(--base); }
.sunday-hero { margin: 0 0 32px; overflow: hidden; border: 1px solid var(--border2); border-radius: var(--r8); background: var(--bg1); }
.sunday-hero img { display: block; width: 100%; height: auto; }

.sunday-login { scroll-margin-top: 72px; }
.sunday-login__label { margin: 0 0 2px; color: var(--t-tertiary); font-size: 12px; }
.sunday-login__name { display: block; overflow: hidden; margin-bottom: 18px; color: var(--t-primary); font-size: 16px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.sunday-login__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sunday-login__actions > :only-child { grid-column: 1 / -1; }
.sunday-login__help { display: flex; align-items: center; justify-content: center; margin-top: 14px; color: var(--t-tertiary); font-size: 12px; gap: 16px; }
.sunday-login__help a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.sunday-field { margin-bottom: 12px; }
.sunday-field label { display: block; margin-bottom: 6px; color: var(--t-secondary); font-size: 13px; font-weight: 600; }
.sunday-field input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--border3);
	border-radius: var(--r6);
	outline: 0;
	color: var(--t-primary);
	background: var(--base);
}
.sunday-field input:hover { border-color: var(--t-tertiary); }
.sunday-field input:focus { border-color: var(--brand); }
.sunday-check { display: inline-flex; align-items: center; min-height: 32px; margin: 0 0 12px; color: var(--t-secondary); cursor: pointer; gap: 8px; }
.sunday-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.sunday-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--border3);
	border-radius: var(--r6);
	color: var(--t-primary) !important;
	background: var(--base);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.sunday-button:hover { background: var(--bg2); }
.sunday-button:focus { border-color: var(--brand); outline: 0; }
.sunday-button--primary { border-color: var(--brand); color: #fff !important; background: var(--brand); }
.sunday-button--primary:hover { border-color: var(--brand-hover); background: var(--brand-hover); }
.sunday-button--primary:active { border-color: var(--brand-pressed); background: var(--brand-pressed); }
.sunday-logout-form--block { display: flex; margin-top: 8px; }

.sunday-footer { padding: 18px 24px; border-top: 1px solid var(--border2); color: var(--t-tertiary); background: var(--base); text-align: center; }
.sunday-footer p { margin: 0; font-size: 12px; }
.sunday-menu-toggle,
.sunday-mobile-drawer { display: none; }

.sunday-layout a:focus-visible,
.sunday-layout button:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--brand); }

@media (max-width: 1100px) {
	.sunday-shell { grid-template-columns: 232px minmax(0, 1fr); }
	.sunday-sidebar--account { display: none; }
}

@media (max-width: 768px) {
	.sunday-header__inner { padding: 0 16px; }
	.sunday-header__account,
	.sunday-sidebar { display: none; }
	.sunday-menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border3); border-radius: var(--r6); background: var(--base); cursor: pointer; gap: 4px; }
	.sunday-menu-toggle:hover { background: var(--bg2); }
	.sunday-menu-toggle span { display: block; width: 18px; height: 1px; background: var(--t-primary); }
	.sunday-shell { display: block; width: 100%; min-height: 0; }
	.sunday-content { max-width: none; padding: 24px 16px 52px; }
	.sunday-hero { margin-bottom: 24px; }
	.sunday-mobile-drawer { position: fixed; inset: 0; z-index: 900; display: block; visibility: hidden; pointer-events: none; }
	.sunday-mobile-drawer__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0, 0, 0, .45); opacity: 0; cursor: pointer; transition: opacity .15s ease; }
	.sunday-mobile-drawer__panel { position: absolute; top: 0; right: 0; width: min(86vw, 360px); height: 100%; padding: 16px; overflow-y: auto; border-left: 1px solid var(--border2); background: var(--base); transform: translateX(102%); transition: transform .18s ease; }
	.sunday-mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 12px; padding: 0 0 12px 12px; border-bottom: 1px solid var(--border2); font-size: 14px; font-weight: 600; }
	.sunday-menu-close { width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--r6); color: var(--t-secondary); background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
	.sunday-menu-close:hover { background: var(--bg2); }
	.sunday-nav--mobile > ul > li.is-selected::before { left: -16px; }
	.sunday-mobile-login { display: flex; flex-wrap: wrap; align-items: center; margin-top: 24px; padding: 16px 12px 0; border-top: 1px solid var(--border2); color: var(--t-secondary); gap: 8px 16px; }
	.sunday-mobile-login strong { width: 100%; color: var(--t-primary); }
	.sunday-mobile-login a { color: var(--link); font-weight: 600; }
	.sunday-menu-open { overflow: hidden; }
	.sunday-menu-open .sunday-mobile-drawer { visibility: visible; pointer-events: auto; }
	.sunday-menu-open .sunday-mobile-drawer__backdrop { opacity: 1; }
	.sunday-menu-open .sunday-mobile-drawer__panel { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.sunday-layout *,
	.sunday-layout *::before,
	.sunday-layout *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 샘플 로고 이미지 (텍스트 대체) */
.sunday-brand img, .sunday-brand__img { height: 26px; width: auto; display: block; }
