:root {
    --green-900: #205b2a;
    --green-700: #2e7d32;
    --green-600: #3f9440;
    --green-300: #b8dcb5;
    --green-200: #d9edd5;
    --green-100: #eef8ec;
    --outer-bg: #7fbe78;
    --line: #9fce98;
    --dash-strong: #7fbe78;
    --dash-soft: #7fbe78;
    --text: #18301c;
    --muted: #516858;
    --white: #ffffff;
    --danger-bg: #fff3e8;
    --warning-text: #905600;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--outer-bg);
    color: var(--text);
    font-family: "Pretendard Variable", "SUIT", "Noto Sans KR", sans-serif;
    line-height: 1.55;
    min-height: 100vh;
}

.site-shell {
    position: relative;
    max-width: 600px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(40, 85, 45, 0.08);
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 4px dashed var(--dash-strong);
}

.topbar {
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 4px;
}

.lang-switch {
    display: flex;
    gap: 2px;
    font-size: 11px;
}

.lang-switch a {
    padding: 3px 6px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid var(--green-300);
    line-height: 1;
}

.lang-switch a.is-active {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.lang-switch-footer {
    justify-content: center;
    margin: 12px 0 8px;
}

.brand {
    color: var(--green-900);
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: left;
    justify-self: start;
}

.brand.brand-image img {
    width: auto;
    max-width: 100%;
    max-height: 70px;
}

.menu-toggle {
    border: 1px solid var(--green-300);
    background: var(--white);
    color: var(--green-900);
    border-radius: 10px;
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    justify-self: end;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 0 16px 10px;
}

.header-ad {
    padding: 10px 16px 0;
}
.content-ad {
    padding: 12px 16px;
}

.search-form.inline {
    margin-bottom: 12px;
}

.search-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--green-300);
    background: var(--white);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 16px;
    color: var(--text);
}

.search-form input:focus,
.search-form button:focus,
.menu-toggle:focus,
.category-head-nav:focus,
.keyword-link-list a:focus,
.keyword-top-link:focus,
.side-links a:focus,
.category-card:focus,
.category-chip:focus,
.button-like:focus {
    outline: 2px solid var(--green-600);
    outline-offset: 2px;
}

.search-form button,
.button-like {
    border: 1px solid var(--green-700);
    background: var(--green-700);
    color: var(--white);
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-form button.is-loading {
    opacity: 1;
    cursor: wait;
    min-width: 56px;
    padding: 0;
}

.search-loading-image {
    width: 18px;
    height: 18px;
    display: block;
}

.keyword-strip {
    padding: 0 16px 10px;
}

.keyword-link-list {
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.keyword-link-list a {
    color: #275a2c;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
}

.keyword-link-list .keyword-sep {
    color: #275a2c;
    margin: 0 4px;
}

.keyword-link-list a:hover {
    text-decoration: underline;
}

.page-content {
    padding: 16px;
}

.intro-card,
.empty-card,
.notice {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfffa;
    padding: 16px;
    margin-bottom: 16px;
}

.intro-card h1,
.empty-card h1,
.section-head h1,
.section-head h2 {
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.intro-card h1 {
    font-size: 23px;
}

.intro-card p,
.empty-card p,
.notice p {
    margin: 0;
    color: var(--muted);
}

.app-intro p + p {
    margin-top: 8px;
}

.app-intro-banner {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0 0 12px;
}

.app-intro .button-like {
    margin-top: 14px;
}

.app-intro-plain {
    margin-bottom: 16px;
    text-align: center;
}

.app-intro-plain p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
}

.app-intro-plain .button-like {
    margin-top: 10px;
}

.app-intro-banner-ai,
.app-intro-banner-diary {
    width: min(100%, 333px);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 0 auto 10px;
}

.error-text {
    margin-top: 8px !important;
    color: #b33a12 !important;
    font-size: 13px;
}

.board-section {
    padding-bottom: 4px;
}

.board-section .section-head {
    margin-bottom: 8px;
}

.board-section .section-head h1 {
    font-size: 29px;
}

.board-lead {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.board-comment-root {
    min-height: 520px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head span {
    color: var(--muted);
    font-size: 14px;
}

.section-head.compact {
    margin-top: 16px;
}

.category-grid {
    display: grid;
    gap: 10px;
}

.category-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-chip {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.category-chip:hover {
    border-color: var(--green-600);
    color: var(--green-900);
}

.category-line-list {
    margin-top: 4px;
}

.category-line-block {
    border-bottom: 1px dashed var(--dash-soft);
    padding: 12px 0 14px;
}

.category-line-block h2 {
    margin: 0 0 8px;
    color: var(--green-700);
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.category-line-links {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.category-line-links a {
    color: #1b271d;
    text-decoration: none;
    margin-right: 8px;
    white-space: nowrap;
}

.category-line-links a:hover {
    text-decoration: underline;
}

.category-card {
    display: block;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    padding: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
    border-color: var(--green-600);
    transform: translateY(-1px);
}

.category-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--green-900);
}

.category-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 14px;
}

.category-card span {
    color: var(--green-700);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--green-700);
    text-decoration: none;
}

.dream-post-list {
    display: grid;
    gap: 12px;
}

.dream-post-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 14px;
}

.dream-post-card h2 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
    color: var(--green-900);
}

.dream-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.dream-item-list li {
    border-top: 1px dashed var(--dash-soft);
    padding-top: 10px;
}

.dream-item-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.dream-title {
    margin: 0 0 6px;
    font-weight: 700;
    color: #234a2c;
}

.dream-solution {
    margin: 0;
    color: #2f3f34;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}

.result-meta span {
    display: inline-block;
    color: #5e7962;
    border-radius: 0;
    font-size: 12px;
    padding: 0;
}

.dream-line-summary {
    margin: 4px 0 6px;
}

.dream-line-summary.compact {
    margin-top: 28px;
}

.dream-line-summary h1,
.dream-line-summary h2 {
    margin: 0 0 8px;
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #303030;
}

.category-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.category-headline h1 {
    margin: 0;
}

.category-head-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--green-300);
    border-radius: 8px;
    background: #f8fff6;
    color: #245b2d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.category-head-nav:hover {
    border-color: var(--green-600);
}

.dream-line-summary p {
    margin: 0;
    font-size: 18px;
    color: #363636;
    letter-spacing: -0.01em;
}

.dream-line-list {
    margin-top: 8px;
}

.featured-dream-page {
    display: grid;
    gap: 14px;
}

.featured-dream-hero {
    border-bottom: 4px dashed var(--dash-strong);
    padding: 8px 0 18px;
}

.featured-dream-hero h1 {
    margin: 0 0 10px;
    color: var(--green-900);
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.featured-dream-lead {
    margin: 0;
    color: #304c35;
    font-size: 16px;
    line-height: 1.6;
}

.featured-dream-section {
    border-bottom: 1px dashed var(--dash-soft);
    padding: 14px 0 16px;
}

.featured-dream-section h2 {
    margin: 0 0 10px;
    color: var(--green-900);
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.featured-dream-section p {
    margin: 0;
    color: #304c35;
    font-size: 15px;
    line-height: 1.65;
}

.featured-dream-section p + p {
    margin-top: 10px;
}

.featured-dream-grid {
    display: grid;
    gap: 12px;
}

.featured-dream-card {
    border-top: 1px dashed var(--dash-soft);
    padding-top: 12px;
}

.featured-dream-card:first-child {
    border-top: 0;
    padding-top: 0;
}

.featured-dream-card h3 {
    margin: 0 0 5px;
    color: var(--green-700);
    font-size: 17px;
    line-height: 1.35;
}

.featured-dream-checklist {
    margin: 0;
    padding-left: 20px;
    color: #304c35;
    font-size: 15px;
    line-height: 1.65;
}

.featured-dream-checklist li + li {
    margin-top: 6px;
}

.featured-dream-quick-list {
    margin: 0;
    padding-left: 20px;
    color: #304c35;
    font-size: 15px;
    line-height: 1.65;
}

.featured-dream-quick-list li + li {
    margin-top: 8px;
}

.featured-dream-quick-list strong {
    color: var(--green-700);
}

.featured-dream-faq-list {
    margin: 0;
}

.featured-dream-faq-list div {
    border-top: 1px dashed var(--dash-soft);
    padding: 12px 0;
}

.featured-dream-faq-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.featured-dream-faq-list div:last-child {
    padding-bottom: 0;
}

.featured-dream-faq-list dt {
    color: var(--green-700);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.featured-dream-faq-list dd {
    margin: 6px 0 0;
    color: #304c35;
    font-size: 15px;
    line-height: 1.65;
}

.featured-dream-related-list {
    margin: 0;
    padding-left: 20px;
    color: #304c35;
    font-size: 15px;
    line-height: 1.65;
}

.featured-dream-related-list li + li {
    margin-top: 8px;
}

.featured-dream-related-list a {
    color: var(--green-700);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.featured-dream-ai-cta {
    border-bottom: 0;
    padding-bottom: 4px;
    text-align: center;
}

.featured-dream-ai-icon {
    display: block;
    width: 104px;
    height: 104px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.featured-dream-ai-cta h2 {
    margin-bottom: 8px;
}

.featured-dream-ai-cta > p {
    max-width: 440px;
    margin-right: auto;
    margin-left: auto;
}

.featured-dream-ai-benefits {
    display: inline-block;
    margin: 12px auto 0;
    padding-left: 20px;
    color: #304c35;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.featured-dream-ai-benefits li + li {
    margin-top: 5px;
}

.featured-dream-ai-cta .button-like {
    display: flex;
    width: fit-content;
    margin: 16px auto 0;
}

.dream-line-item {
    border-bottom: 1px dashed var(--dash-soft);
    padding: 14px 0 13px;
}

.dream-line-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.24;
    color: var(--green-700);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dream-line-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #2e7d32;
    letter-spacing: -0.01em;
}

.keyword-top-list {
    margin-top: 10px;
}

.keyword-top-item {
    border-bottom: 1px dashed var(--dash-soft);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.keyword-top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #225d29;
    text-decoration: none;
    font-size: 16px;
}

.keyword-top-link:hover {
    text-decoration: underline;
}

.keyword-top-rank {
    min-width: 24px;
    color: #4b6d4f;
    font-weight: 700;
}

.keyword-top-count {
    color: #4e6a52;
    font-size: 13px;
}

.notice {
    background: #f7fcf6;
}

.notice.success {
    border-color: #b7dfb4;
}

.notice.warning {
    background: var(--danger-bg);
    border-color: #f3d7ba;
}

.notice.warning p {
    color: var(--warning-text);
}

.site-footer {
    border-top: 4px dashed var(--dash-strong);
    padding: 14px 16px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.footer-contact {
    margin-top: 8px !important;
}

.footer-contact a {
    color: #2a5f31;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-menu {
    margin: 0 0 10px;
    line-height: 1.7;
}

.footer-menu-row {
    margin: 0;
}

.footer-menu-row + .footer-menu-row {
    margin-top: 6px;
}

.footer-menu a {
    color: #2a5f31;
    text-decoration: none;
    font-size: 13px;
}

.footer-menu-row a + a::before {
    content: "|";
    color: #4e6a52;
    margin: 0 7px 0 5px;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.footer-app-link {
    display: inline-block;
    margin: 0 0 10px;
}

.footer-app-badge {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.side-menu {
    background: var(--white);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    padding-top: 2px;
}

.side-menu.is-open {
    max-height: 1000px;
}

.side-links {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;
    padding: 0 4px;
    display: grid;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.side-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px 10px 20px;
    border-radius: 0;
    border-bottom: 1px dashed var(--dash-soft);
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.side-links a:last-child {
    border-bottom: 0;
}

.side-links a.menu-parent {
    border-bottom: 0;
}

.side-links a.menu-parent .menu-icon {
    font-size: 24px;
}

.side-links a.menu-sub-link {
    min-height: 42px;
    padding-left: 44px;
    font-size: 16px;
    font-weight: 600;
    color: var(--green-700);
    border-bottom: 0;
}

.side-links a.menu-sub-link.menu-sub-last {
    border-bottom: 1px dashed var(--dash-soft);
}

.side-links a.menu-sub-link .menu-icon {
    width: 16px;
    flex: 0 0 16px;
    font-size: 14px;
}

.menu-icon {
    width: 24px;
    text-align: center;
    flex: 0 0 24px;
    color: var(--green-900);
    font-size: 18px;
    line-height: 1;
}

.side-links a.is-active {
    background: var(--green-100);
    color: var(--green-900);
    font-weight: 800;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
.search-extra-links {
    margin-top: 14px;
    padding: 14px 14px 10px;
    border: 2px solid var(--green-300);
    border-radius: 16px;
    background: #f1fbef;
    box-shadow: 0 2px 0 rgba(34, 93, 41, 0.08);
}

.search-extra-links p {
    margin: 0;
    color: #24522c;
    font-size: 15px;
    line-height: 1.55;
}

.search-extra-links p + p {
    margin-top: 10px;
}

.search-extra-links .search-extra-title {
    font-size: 17px;
    font-weight: 800;
    color: #1f4f28;
    margin-bottom: 2px;
}

.search-extra-links a {
    color: var(--green-700);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.search-extra-links a::before {
    content: "• ";
    color: #1f6526;
    font-weight: 900;
}

.search-extra-links a:hover {
    color: #1f6526;
}
