:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f7f9f6;
    --primary-text: #1b2e23;
    --secondary-text: #486251;
    --muted-text: #6f8576;
    --accent-primary-green: #2d6a4f;
    --accent-green-hover: #21533d;
    --accent-soft-green: #e8f2eb;
    --accent-pink: #f4a5ae;
    --subtle-border: #e5ede8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    padding: 0;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary-green);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
    color: inherit;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    h4,
    h5,
    h6 {
        font-size: 1.125rem;
    }

    a,
    span,
    p {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ===== header ===== */
header#header {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

.js-mobile-menu.is-active {
    display: flex !important;
}

/* ===== hero ===== */
#hero {
    word-break: keep-all;
}

/* ===== categories_catalog ===== */
#categories {
    overflow: hidden;
}

#categories .container {
    width: 100%;
}

#categories h2,
#categories h3 {
    hyphens: auto;
}

@media (max-width: 767px) {
    #categories h2 {
        line-height: 1.25;
    }

    #categories h3 {
        line-height: 1.2;
    }
}

/* ===== plant_finder ===== */
#plant-finder {
    overflow: hidden;
}

#plant-finder .js-filter-btn.active {
    background-color: var(--accent-primary-green);
    color: #ffffff;
    border-color: var(--accent-primary-green);
}

#plant-finder .js-plant-card.is-hidden {
    display: none !important;
}

/* ===== botanical_education ===== */
#botanical-education {
    overflow: hidden;
}

#botanical-education h2,
#botanical-education h3 {
    hyphens: auto;
    line-height: 1.25;
}

#botanical-education p {
    hyphens: auto;
}

/* ===== main_guide ===== */
#guide {
    overflow: hidden;
}

#guide h1,
#guide h2,
#guide h3 {
    hyphens: auto;
}

/* ===== plant_gallery ===== */
#gallery {
    overflow: hidden;
}

#gallery .object-fit-cover {
    object-fit: cover;
}

/* ===== care_table ===== */
.care-table-section table {
    border-collapse: collapse;
    width: 100%;
}

.care-table-section th,
.care-table-section td {
    white-space: nowrap;
}

@media(min-width:1024px) {

    .care-table-section th,
    .care-table-section td {
        white-space: normal;
    }
}

.care-table-section ::-webkit-scrollbar {
    height: 6px;
}

.care-table-section ::-webkit-scrollbar-track {
    background: #f7f9f6;
}

.care-table-section ::-webkit-scrollbar-thumb {
    background: #e5ede8;
    border-radius: 9999px;
}

.care-table-section ::-webkit-scrollbar-thumb:hover {
    background: #6f8576;
}

/* ===== seasonal_calendar ===== */
#seasonal-calendar {
    font-family: inherit;
}

.season-card {
    min-height: 100%;
    word-break: keep-all;
    hyphens: auto;
}

.season-desc {
    word-break: keep-all;
}

/* ===== interactive_schedule ===== */
#interactive-schedule select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#interactive-schedule h2,
#interactive-schedule h3 {
    hyphens: auto;
    line-height: 1.2;
}

/* ===== soil_guide ===== */
#soil-guide {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

#soil-guide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== contact_form ===== */
#contact input::placeholder,
#contact textarea::placeholder {
    color: #6f8576;
    opacity: 1;
}

#contact select option {
    color: #1b2e23;
    background-color: #ffffff;
}

#contact select:invalid {
    color: #6f8576;
}

/* ===== footer ===== */
#footer {
    overflow: hidden;
}

#footer a {
    transition: color 0.2s ease-in-out;
}
/* Consistent branding, balanced filters and readable image labels. */
.header-brand-logo { width:40px; height:40px; object-fit:contain; flex-shrink:0; }
#plant-finder .plant-filter-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
#plant-finder .plant-filter-options .js-filter-btn { width:100%; min-height:44px; padding:.6rem .45rem; line-height:1.45; word-break:keep-all; overflow-wrap:anywhere; }
#plant-finder .plant-image-tag { background:#fff !important; color:#17442d !important; border:1px solid #d8e8de !important; box-shadow:0 2px 10px #061d2840; font-size:12px; }
#footer a[href="privacy-notice.php"], #footer a[href="tos.php"], #footer a[href="disclaimer.php"] { color:#f2f7f3 !important; text-underline-offset:4px; }
#footer a[href="privacy-notice.php"]:hover, #footer a[href="tos.php"]:hover, #footer a[href="disclaimer.php"]:hover { color:#ffccd2 !important; }
.policy-page > main { padding:2.5rem 0 4rem !important; min-height:0; background:#f7f9f6; }
.policy-page > main > div { width:100%; max-width:1240px; margin:auto; padding:0 24px; }
.policy-page .policy-inner { padding:0 !important; min-height:0; }
.policy-page .policy-inner > div { max-width:none !important; }
.policy-page .policy-inner header { margin-bottom:1.25rem; padding:1.5rem 2rem; }
.policy-page .policy-inner > div > section { padding:2rem; }
.policy-page .policy-text-body h2 { margin-top:1.5rem !important; }
@media(max-width:640px) { .policy-page > main { padding-top:1.5rem !important; } .policy-page > main > div { padding:0 16px; } .policy-page .policy-inner header,.policy-page .policy-inner > div > section { padding:1.25rem; } }

.policy-page .policy-inner > div { padding-left:0 !important; padding-right:0 !important; }
.policy-page .policy-inner > div > div > header { padding:0 0 1.25rem !important; }
