/*
Theme Name: 광주안과 라이트
Theme URI: https://goodmorningseouleye.com/
Author: 굿모닝서울안과
Description: 광주안과 SEO 랜딩페이지와 병원 건강정보 운영을 위한 빠르고 가벼운 전용 테마입니다. 전체폭 SEO 템플릿, 반응형 메뉴, 병원 정보 설정을 포함합니다.
Version: 1.0.2
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gwangju-eye-light
Tags: custom-logo, custom-menu, featured-images, one-column, blog, accessibility-ready
*/

:root {
	--gme-ink: #28374d;
	--gme-soft: #607083;
	--gme-deep: #3a5ba2;
	--gme-blue: #1598c5;
	--gme-sky: #eef8fb;
	--gme-mist: #f7fafc;
	--gme-line: #dce8ee;
	--gme-paper: #ffffff;
	--gme-header-height: 82px;
}

html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
	margin: 0;
	background: var(--gme-paper);
	color: var(--gme-ink);
	font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	word-break: keep-all;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; clip: rect(0, 0, 0, 0); border: 0; word-wrap: normal !important; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; display: block; width: auto; height: auto; padding: 12px 16px; clip: auto !important; background: #fff; color: var(--gme-deep); font-weight: 800; }

.gme-skip-link {
	position: fixed;
	z-index: 100000;
	top: 8px;
	left: 8px;
	padding: 11px 16px;
	transform: translateY(-160%);
	border-radius: 7px;
	background: var(--gme-deep);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}
.gme-skip-link:focus { transform: translateY(0); }

.gme-site-header {
	position: sticky;
	z-index: 9990;
	top: 0;
	height: var(--gme-header-height);
	border-bottom: 1px solid rgba(23, 33, 63, .1);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 8px 26px rgba(18, 42, 63, .035);
	backdrop-filter: blur(12px);
}
.admin-bar .gme-site-header { top: 32px; }
.gme-header-inner {
	display: flex;
	width: min(1200px, calc(100% - 48px));
	height: 100%;
	margin: 0 auto;
	align-items: center;
	gap: 28px;
}
.gme-brand { display: flex; min-width: 225px; align-items: center; gap: 11px; }
.gme-symbol-link, .custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.gme-symbol-link img { display: block; width: 48px; height: 48px; object-fit: contain; }
.custom-logo-link img { display: block; width: auto; max-width: 170px; height: 52px; object-fit: contain; }
.gme-brand-copy { display: flex; min-width: 0; flex-direction: column; text-decoration: none; line-height: 1.2; }
.gme-brand-copy strong { overflow: hidden; color: var(--gme-deep); font-size: 19px; font-weight: 850; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.gme-brand-copy span { overflow: hidden; margin-top: 4px; color: #7a8798; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }

.gme-primary-nav { margin-left: auto; }
.gme-menu, .gme-menu ul { margin: 0; padding: 0; list-style: none; }
.gme-menu { display: flex; align-items: center; gap: 2px; }
.gme-menu > li { position: relative; }
.gme-menu a {
	display: flex;
	min-height: 44px;
	padding: 0 14px;
	align-items: center;
	border-radius: 8px;
	color: #29364b;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
	transition: background-color .16s ease, color .16s ease;
}
.gme-menu a:hover, .gme-menu a:focus-visible, .gme-menu .current-menu-item > a, .gme-menu .current_page_item > a { background: var(--gme-sky); color: var(--gme-deep); }
.gme-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 190px;
	padding: 8px;
	visibility: hidden;
	transform: translateY(-5px);
	border: 1px solid var(--gme-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 38px rgba(17, 44, 64, .12);
	opacity: 0;
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.gme-menu li:hover > .sub-menu, .gme-menu li:focus-within > .sub-menu { visibility: visible; transform: translateY(0); opacity: 1; }
.gme-menu .sub-menu a { min-height: 40px; padding: 0 11px; font-size: 13px; }
.gme-header-phone {
	display: flex;
	min-width: 148px;
	min-height: 48px;
	padding: 7px 16px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	border-radius: 10px;
	background: var(--gme-deep);
	color: #fff;
	text-decoration: none;
	line-height: 1.2;
}
.gme-header-phone span { margin-bottom: 3px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; }
.gme-header-phone strong { font-size: 14px; letter-spacing: .01em; }
.gme-menu-toggle, .gme-mobile-phone { display: none; }

.gme-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.gme-site-main { min-height: 55vh; padding-top: 90px; padding-bottom: 110px; }
.gme-reading-container { width: min(820px, calc(100% - 48px)); }
.gme-landing-content { width: 100%; margin: 0; padding: 0; overflow-x: hidden; }
.gme-landing-content::after { display: table; clear: both; content: ""; }
.gme-landing-view .gme-landing-content #gse-main { left: auto !important; width: 100% !important; margin-left: 0 !important; }
.gme-entry-header { max-width: 920px; margin-bottom: 46px; }
.gme-entry-header h1, .gme-archive-header h1, .gme-error-page h1 {
	margin: 0;
	color: var(--gme-ink);
	font-size: clamp(38px, 5vw, 62px);
	font-weight: 850;
	letter-spacing: -.055em;
	line-height: 1.2;
}
.gme-entry-label { margin: 0 0 18px; color: var(--gme-blue); font-size: 11px; font-weight: 900; letter-spacing: .17em; }
.gme-entry-meta { margin: 18px 0 0; color: #8592a2; font-size: 13px; }
.gme-featured-image { overflow: hidden; margin: 0 0 48px; border-radius: 5px 28px 5px 28px; background: var(--gme-mist); }
.gme-featured-image img { display: block; width: 100%; }
.gme-entry-content { color: #3d4c61; }
.gme-entry-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.gme-entry-content > .alignwide { max-width: 1200px; }
.gme-entry-content > .alignfull { max-width: none; margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); }
.gme-entry-content h2 { margin-top: 2.2em; color: var(--gme-ink); font-size: clamp(27px, 3vw, 38px); line-height: 1.35; letter-spacing: -.04em; }
.gme-entry-content h3 { margin-top: 1.9em; color: var(--gme-ink); font-size: 22px; line-height: 1.45; letter-spacing: -.025em; }
.gme-entry-content p, .gme-entry-content li { font-size: 17px; line-height: 1.95; }
.gme-entry-content a { color: var(--gme-deep); text-underline-offset: 3px; }
.gme-entry-content blockquote { padding: 22px 28px; border-left: 4px solid var(--gme-blue); background: var(--gme-sky); }

.gme-archive-header { margin-bottom: 54px; }
.gme-archive-header > p, .gme-archive-header > div { max-width: 700px; margin: 18px 0 0; color: var(--gme-soft); }
.gme-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gme-post-card { overflow: hidden; border: 1px solid var(--gme-line); border-radius: 5px 22px 5px 22px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.gme-post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22, 55, 75, .08); }
.gme-post-card-image { display: flex; aspect-ratio: 16 / 10; overflow: hidden; align-items: center; justify-content: center; background: var(--gme-sky); color: var(--gme-blue); text-decoration: none; }
.gme-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gme-post-card:hover .gme-post-card-image img { transform: scale(1.025); }
.gme-post-card-image span { font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.gme-post-card-copy { padding: 27px; }
.gme-post-card-copy time { color: #8b98a8; font-size: 11px; }
.gme-post-card-copy h2 { margin: 12px 0; font-size: 21px; line-height: 1.45; letter-spacing: -.035em; }
.gme-post-card-copy h2 a { text-decoration: none; }
.gme-post-card-copy p { margin: 0 0 18px; color: var(--gme-soft); font-size: 14px; line-height: 1.75; }
.gme-text-link { color: var(--gme-deep); font-size: 13px; font-weight: 800; text-decoration: none; }
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--gme-line); border-radius: 7px; background: #fff; text-decoration: none; }
.page-numbers.current { border-color: var(--gme-deep); background: var(--gme-deep); color: #fff; }
.gme-post-navigation { margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--gme-line); }
.gme-post-navigation .nav-links { justify-content: space-between; }
.gme-post-navigation a { color: var(--gme-deep); font-weight: 750; text-decoration: none; }
.gme-empty-message { padding: 32px; border-radius: 12px; background: var(--gme-mist); color: var(--gme-soft); }
.gme-error-page { display: flex; max-width: 700px; text-align: center; align-items: center; flex-direction: column; justify-content: center; }
.gme-error-page > p:not(.gme-entry-label) { margin: 22px 0 30px; color: var(--gme-soft); }
.gme-button { display: inline-flex; min-height: 50px; padding: 0 22px; align-items: center; justify-content: center; border-radius: 9px; background: var(--gme-deep); color: #fff; font-weight: 800; text-decoration: none; }
.search-form { display: flex; max-width: 520px; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--gme-line); border-radius: 8px; }
.search-submit { min-height: 48px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--gme-deep); color: #fff; font-weight: 800; cursor: pointer; }

.gme-site-footer { border-top: 1px solid #dbe5eb; background: #f3f7f9; color: #526176; }
.gme-landing-view .gme-site-footer { padding-bottom: 92px; }
.gme-footer-inner { display: grid; width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 46px; grid-template-columns: .78fr 1.35fr .87fr; gap: 54px; }
.gme-footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.gme-footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.gme-footer-brand div { display: flex; flex-direction: column; }
.gme-footer-brand strong { color: var(--gme-deep); font-size: 18px; }
.gme-footer-brand span { margin-top: 4px; color: #8390a0; font-size: 11px; }
.gme-footer-info p { margin: 0; font-size: 13px; line-height: 1.75; }
.gme-footer-info strong { color: var(--gme-ink); }
.gme-footer-info p + p { margin-top: 6px; }
.gme-footer-info a { color: var(--gme-deep); font-weight: 850; text-decoration: none; }
.gme-footer-links { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; }
.gme-footer-links a { display: inline-flex; min-width: 132px; min-height: 38px; padding: 0 13px; align-items: center; justify-content: center; border: 1px solid #cbdbe4; border-radius: 7px; background: #fff; color: var(--gme-deep); font-size: 12px; font-weight: 800; text-decoration: none; }
.gme-business-info { display: flex; width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0; flex-wrap: wrap; gap: 7px 10px; border-top: 1px solid #dbe5eb; color: var(--gme-soft); font-size: 12px; line-height: 1.65; }
.gme-business-info strong { color: var(--gme-ink); font-weight: 750; }
.gme-business-info i { color: #aebbc5; font-style: normal; }
.gme-business-info a { color: var(--gme-deep); font-weight: 750; text-decoration: none; }
.gme-footer-nav { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0; border-top: 1px solid #dbe5eb; }
.gme-footer-menu { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.gme-footer-menu a { font-size: 12px; font-weight: 700; text-decoration: none; }
.gme-footer-bottom { padding: 18px 24px; text-align: center; border-top: 1px solid #dbe5eb; color: #8995a4; font-size: 11px; }

@media (max-width: 1020px) {
	.gme-header-inner { gap: 16px; }
	.gme-brand { min-width: 190px; }
	.gme-menu a { padding-right: 9px; padding-left: 9px; font-size: 13px; }
	.gme-header-phone { min-width: 132px; padding-right: 12px; padding-left: 12px; }
	.gme-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	:root { --gme-header-height: 72px; }
	.gme-site-header { backdrop-filter: none; }
	.gme-header-inner { width: min(100% - 32px, 1200px); }
	.gme-brand { min-width: 0; margin-right: auto; }
	.gme-symbol-link img { width: 44px; height: 44px; }
	.custom-logo-link img { max-width: 145px; height: 46px; }
	.gme-brand-copy strong { font-size: 17px; }
	.gme-brand-copy span { display: none; }
	.gme-menu-toggle { display: inline-flex; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--gme-line); border-radius: 9px; background: #fff; color: var(--gme-ink); cursor: pointer; }
	.gme-menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.gme-menu-icon { display: flex; width: 20px; flex-direction: column; gap: 4px; }
	.gme-menu-icon i { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .16s ease, opacity .16s ease; }
	.gme-menu-toggle[aria-expanded="true"] .gme-menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.gme-menu-toggle[aria-expanded="true"] .gme-menu-icon i:nth-child(2) { opacity: 0; }
	.gme-menu-toggle[aria-expanded="true"] .gme-menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.gme-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - var(--gme-header-height)); overflow-y: auto; margin: 0; padding: 14px 16px 18px; border-top: 1px solid var(--gme-line); border-bottom: 1px solid var(--gme-line); background: #fff; box-shadow: 0 18px 34px rgba(20, 47, 67, .1); }
	.gme-site-header.is-menu-open .gme-primary-nav { display: block; }
	.gme-menu { display: block; }
	.gme-menu a { min-height: 48px; padding: 0 13px; font-size: 15px; }
	.gme-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 14px; visibility: visible; transform: none; border: 0; box-shadow: none; opacity: 1; }
	.gme-menu .sub-menu a { min-height: 42px; color: var(--gme-soft); }
	.gme-header-phone { display: none; }
	.gme-mobile-phone { display: flex; min-height: 50px; margin-top: 10px; align-items: center; justify-content: center; border-radius: 9px; background: var(--gme-deep); color: #fff; font-size: 15px; font-weight: 850; text-decoration: none; }
	.gme-site-main { padding-top: 72px; padding-bottom: 86px; }
	.gme-footer-inner { grid-template-columns: 1fr 1.5fr; }
	.gme-footer-links { grid-column: 1 / -1; align-items: stretch; flex-direction: row; }
	.gme-footer-links a { flex: 1; }
}

@media (max-width: 782px) {
	.admin-bar .gme-site-header { top: 46px; }
}

@media (max-width: 620px) {
	body { word-break: normal; }
	.gme-header-inner, .gme-container, .gme-reading-container, .gme-footer-inner, .gme-footer-nav, .gme-business-info { width: min(100% - 32px, 1200px); }
	.gme-brand-copy strong { max-width: 150px; }
	.gme-site-main { padding-top: 58px; padding-bottom: 74px; }
	.gme-entry-header h1, .gme-archive-header h1, .gme-error-page h1 { font-size: 36px; }
	.gme-entry-content p, .gme-entry-content li { font-size: 16px; line-height: 1.9; }
	.gme-post-grid { grid-template-columns: 1fr; }
	.gme-footer-inner { padding-top: 46px; grid-template-columns: 1fr; gap: 28px; }
	.gme-footer-links { grid-column: auto; flex-direction: column; }
	.gme-footer-links a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
