﻿/* ========================================
   援???먮즺??Design System v3.0
   Distinctive warm-gradient theme ??2026-03-18
   ======================================== */

/* Pretendard Variable Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    /* Brand Gradient: Indigo ??Teal */
    --brand-start: #4F46E5;
    --brand-mid: #3B82F6;
    --brand-end: #0EA5E9;
    --brand-gradient: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 50%, var(--brand-end) 100%);

    /* Primary (Indigo-leaning) */
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --primary-200: #C7D2FE;
    --primary-300: #A5B4FC;
    --primary-400: #818CF8;
    --primary-500: #6366F1;
    --primary-600: #4F46E5;
    --primary-700: #4338CA;
    --primary-800: #3730A3;

    /* Accent (Teal) */
    --accent-50: #F0FDFA;
    --accent-400: #2DD4BF;
    --accent-500: #14B8A6;
    --accent-600: #0D9488;

    /* Gray (warmer) */
    --gray-50: #FAFAF9;
    --gray-100: #F5F5F4;
    --gray-200: #E7E5E4;
    --gray-300: #D6D3D1;
    --gray-400: #A8A29E;
    --gray-500: #78716C;
    --gray-600: #57534E;
    --gray-700: #44403C;
    --gray-800: #292524;
    --gray-900: #1C1917;

    /* Status */
    --success-50: #F0FDF4;
    --success-500: #22C55E;
    --success-600: #16A34A;
    --warning-50: #FFFBEB;
    --warning-500: #F59E0B;
    --warning-600: #D97706;
    --danger-50: #FEF2F2;
    --danger-500: #EF4444;
    --danger-600: #DC2626;

    /* Category Colors */
    --cat-youth: #818CF8;      --cat-youth-bg: #EEF2FF;
    --cat-welfare: #F472B6;    --cat-welfare-bg: #FDF2F8;
    --cat-housing: #34D399;    --cat-housing-bg: #ECFDF5;
    --cat-employment: #60A5FA; --cat-employment-bg: #EFF6FF;
    --cat-startup: #FBBF24;    --cat-startup-bg: #FFFBEB;
    --cat-education: #A78BFA;  --cat-education-bg: #F5F3FF;
    --cat-health: #F87171;     --cat-health-bg: #FEF2F2;
    --cat-culture: #2DD4BF;    --cat-culture-bg: #F0FDFA;
    --cat-agriculture: #4ADE80; --cat-agriculture-bg: #F0FDF4;
    --cat-etc: #94A3B8;        --cat-etc-bg: #F8FAFC;

    /* Typography */
    --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(28,25,23,0.06), 0 1px 2px rgba(28,25,23,0.04);
    --shadow-md: 0 4px 12px rgba(28,25,23,0.07), 0 2px 4px rgba(28,25,23,0.04);
    --shadow-lg: 0 12px 24px rgba(28,25,23,0.08), 0 4px 8px rgba(28,25,23,0.04);
    --shadow-glow: 0 0 20px rgba(79,70,229,0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;
}

/* ========================================
   Business funding mobile experience
   ======================================== */
.business-home,
.business-page {
    color: #17211B;
}
.business-home {
    padding: 22px 0 72px;
}
.business-page {
    padding: 28px 0 76px;
}
.business-home .container,
.business-page .container {
    max-width: 980px;
}
.business-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    overflow: hidden;
    background: #12372A;
    border: 1px solid #0B2B20;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(18, 55, 42, 0.14);
}
.business-home-copy {
    min-width: 0;
    padding: 42px;
    color: #fff;
}
.business-home-kicker,
.business-summary-head,
.business-section-head,
.fund-card-head,
.fund-card-foot,
.business-filter-head,
.fund-list-head,
.fund-decision-head,
.match-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.business-home-kicker {
    margin-bottom: 18px;
    color: #B9E5D1;
    font-size: 0.82rem;
}
.business-home-kicker span {
    font-weight: 800;
}
.business-home-kicker strong {
    padding: 5px 8px;
    color: #12372A;
    background: #E7F8EF;
    border-radius: 6px;
    font-size: 0.75rem;
}
.business-home-copy h1 {
    max-width: 570px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.14;
    letter-spacing: 0;
    word-break: keep-all;
}
.business-home-copy > p {
    max-width: 600px;
    margin-top: 18px;
    color: #D6E9DF;
    font-size: 1rem;
    line-height: 1.75;
    word-break: keep-all;
}
.business-home-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
}
.business-primary-action,
.business-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}
.business-primary-action {
    gap: 10px;
    min-width: 230px;
    padding: 0 18px;
    color: #12372A;
    background: #F4D35E;
}
.business-primary-action:hover {
    color: #12372A;
    background: #FFE277;
}
.business-primary-action > span {
    padding: 3px 7px;
    color: #FFF;
    background: #9A6500;
    border-radius: 5px;
    font-size: 0.7rem;
}
.business-primary-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}
.business-secondary-action {
    padding: 0 18px;
    color: #FFF;
    border: 1px solid rgba(255,255,255,0.36);
}
.business-secondary-action:hover {
    color: #FFF;
    background: rgba(255,255,255,0.08);
}
.business-profile-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}
.business-profile-hints span {
    padding-right: 8px;
    color: #B9D5C8;
    font-size: 0.74rem;
}
.business-profile-hints span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 12px;
    vertical-align: middle;
    background: #7BA993;
    border-radius: 50%;
}
.business-home-summary {
    padding: 28px 24px;
    background: #F6FBF8;
    border-left: 1px solid rgba(255,255,255,0.16);
}
.business-summary-head {
    margin-bottom: 10px;
    color: #4A6356;
    font-size: 0.8rem;
    font-weight: 800;
}
.business-summary-head a {
    color: #176B50;
}
.business-summary-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px 0;
    color: #17211B;
    border-bottom: 1px solid #DDE8E2;
}
.business-summary-row:last-child {
    border-bottom: 0;
}
.business-summary-row:hover {
    color: #17211B;
}
.business-summary-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #14532D;
    background: #DDF5E8;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 900;
}
.business-summary-icon.type-guarantee { color: #075985; background: #E0F2FE; }
.business-summary-icon.type-grant { color: #9A3412; background: #FFEDD5; }
.business-summary-icon.type-rnd { color: #5B21B6; background: #EDE9FE; }
.business-summary-row strong,
.business-summary-row small {
    display: block;
}
.business-summary-row strong {
    font-size: 0.9rem;
}
.business-summary-row small {
    margin-top: 1px;
    color: #6C7B72;
    font-size: 0.72rem;
}
.business-summary-row b {
    color: #14532D;
    font-size: 0.88rem;
}
.business-private-note {
    margin: 12px 2px 0;
    color: #67736C;
    font-size: 0.75rem;
    line-height: 1.55;
}
.business-home-section {
    margin-top: 42px;
}
.business-section-head {
    align-items: flex-end;
    margin-bottom: 15px;
}
.business-section-head span,
.business-page-header .business-eyebrow,
.more-section-head span,
.fund-list-head > div > span {
    display: block;
    margin-bottom: 3px;
    color: #18735A;
    font-size: 0.75rem;
    font-weight: 900;
}
.business-section-head h2,
.more-section-head h2 {
    color: #17211B;
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: 0;
}
.business-section-head > a,
.fund-list-head > a {
    flex: 0 0 auto;
    color: #176B50;
    font-size: 0.82rem;
    font-weight: 800;
}
.business-need-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #DDE4DF;
    border-left: 1px solid #DDE4DF;
}
.business-need-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 2px 10px;
    min-height: 96px;
    padding: 18px;
    color: #17211B;
    background: #FFF;
    border-right: 1px solid #DDE4DF;
    border-bottom: 1px solid #DDE4DF;
}
.business-need-item:hover {
    color: #14532D;
    background: #F6FBF8;
}
.business-need-item > span {
    grid-row: 1 / span 2;
    color: #28916F;
    font-size: 0.72rem;
    font-weight: 900;
}
.business-need-item strong {
    font-size: 0.95rem;
}
.business-need-item small {
    color: #68766E;
    font-size: 0.75rem;
}
.business-deadline-list {
    border-top: 2px solid #173D2E;
}
.business-deadline-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 12px 6px;
    color: #17211B;
    border-bottom: 1px solid #DDE4DF;
}
.business-deadline-item:hover {
    color: #14532D;
    background: #F8FBF9;
}
.business-deadline-day {
    display: grid;
    min-height: 34px;
    padding: 5px;
    place-items: center;
    color: #9A3412;
    background: #FFF1E8;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 900;
}
.business-deadline-item strong,
.business-deadline-item small {
    display: block;
}
.business-deadline-item strong {
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.business-deadline-item small {
    margin-top: 3px;
    color: #718078;
    font-size: 0.74rem;
}
.business-institution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.business-institution-grid a {
    min-height: 86px;
    padding: 16px;
    color: #17211B;
    background: #F6F8F7;
    border: 1px solid #DDE4DF;
    border-radius: 8px;
}
.business-institution-grid strong,
.business-institution-grid span {
    display: block;
}
.business-institution-grid strong {
    font-size: 0.95rem;
}
.business-institution-grid span {
    margin-top: 5px;
    color: #68766E;
    font-size: 0.75rem;
}
.legacy-support-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 26px 28px;
    color: #28332D;
    background: #F0F3F2;
    border-top: 3px solid #9AA9A1;
}
.legacy-support-band span {
    color: #637169;
    font-size: 0.75rem;
    font-weight: 800;
}
.legacy-support-band h2 {
    margin-top: 3px;
    font-size: 1.16rem;
}
.legacy-support-band p {
    margin-top: 3px;
    color: #68766E;
    font-size: 0.8rem;
}
.legacy-support-band > div:last-child {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}
.legacy-support-band a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    color: #173D2E;
    background: #FFF;
    border: 1px solid #CAD5CF;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 800;
}

.business-page-header {
    max-width: 720px;
    margin-bottom: 24px;
}
.business-page-header.compact {
    margin-bottom: 18px;
}
.business-page-header h1 {
    color: #17211B;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0;
    word-break: keep-all;
}
.business-page-header > p {
    margin-top: 8px;
    color: #68766E;
    font-size: 0.92rem;
    line-height: 1.7;
    word-break: keep-all;
}
.business-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 20px;
}
.business-search input,
.match-region input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: #17211B;
    background: #FFF;
    border: 1px solid #C9D4CE;
    border-radius: 7px;
    outline: none;
    font: inherit;
}
.business-search input:focus,
.match-region input:focus {
    border-color: #18735A;
    box-shadow: 0 0 0 3px rgba(24, 115, 90, 0.12);
}
.business-search button,
.match-submit {
    min-height: 48px;
    padding: 0 20px;
    color: #FFF;
    background: #176B50;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.fund-type-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 16px;
    background: #FFF;
    border: 1px solid #D8E0DB;
    border-radius: 8px;
}
.fund-type-tabs a {
    min-width: 0;
    min-height: 74px;
    padding: 13px 12px;
    color: #435048;
    border-right: 1px solid #E4EAE6;
}
.fund-type-tabs a:last-child {
    border-right: 0;
}
.fund-type-tabs a.active {
    color: #FFF;
    background: #176B50;
}
.fund-type-tabs strong,
.fund-type-tabs span {
    display: block;
}
.fund-type-tabs strong {
    font-size: 0.88rem;
}
.fund-type-tabs span {
    overflow: hidden;
    margin-top: 4px;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.business-filter-block {
    margin-bottom: 20px;
    padding: 14px;
    background: #F4F7F5;
    border: 1px solid #DDE4DF;
    border-radius: 8px;
}
.business-filter-head {
    margin-bottom: 9px;
    font-size: 0.76rem;
    font-weight: 800;
}
.business-filter-head a {
    color: #7C3E20;
}
.business-chip-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.business-chip-row::-webkit-scrollbar {
    display: none;
}
.business-chip {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    color: #47554D;
    background: #FFF;
    border: 1px solid #CFD9D3;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 800;
}
.business-chip.active {
    color: #FFF;
    background: #173D2E;
    border-color: #173D2E;
}
.fund-list-head {
    align-items: flex-end;
    margin: 24px 0 12px;
}
.fund-list-head > div > strong {
    color: #17211B;
    font-size: 1.05rem;
}
.fund-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.fund-card {
    min-width: 0;
    padding: 17px;
    background: #FFF;
    border: 1px solid #DDE4DF;
    border-radius: 8px;
}
.fund-card-badges {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px;
}
.fund-type-badge,
.fund-fit-badge,
.fund-due-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 900;
}
.fund-type-badge {
    color: #14532D;
    background: #DCFCE7;
}
.fund-type-guarantee { color: #075985; background: #E0F2FE; }
.fund-type-grant { color: #9A3412; background: #FFEDD5; }
.fund-type-rnd { color: #5B21B6; background: #EDE9FE; }
.fund-type-export { color: #9F1239; background: #FFE4E6; }
.fund-fit-badge {
    color: #6B4B00;
    background: #FFF4C2;
}
.fund-fit-badge.is-high {
    color: #14532D;
    background: #CFF7DF;
}
.fund-due-badge {
    color: #A13D16;
    background: #FFF1E8;
}
.fund-save-btn,
.detail-save-button,
.detail-mobile-save {
    display: inline-grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: #66736C;
    background: transparent;
    border: 1px solid #D5DDD8;
    border-radius: 7px;
    cursor: pointer;
}
.fund-save-btn svg,
.detail-save-button svg,
.detail-mobile-save svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}
.fund-save-btn.active,
.detail-save-button.active,
.detail-mobile-save.active {
    color: #FFF;
    background: #176B50;
    border-color: #176B50;
}
.fund-save-btn.active svg,
.detail-save-button.active svg,
.detail-mobile-save.active svg {
    fill: currentColor;
}
.fund-card-title {
    display: -webkit-box;
    min-height: 52px;
    margin: 13px 0;
    overflow: hidden;
    color: #17211B;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.fund-card-title:hover {
    color: #176B50;
}
.fund-card-facts {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    border-top: 1px solid #E2E8E4;
    border-bottom: 1px solid #E2E8E4;
}
.fund-card-facts > div {
    min-width: 0;
    padding: 10px 8px 10px 0;
}
.fund-card-facts > div + div {
    padding-left: 10px;
    border-left: 1px solid #E2E8E4;
}
.fund-card-facts span,
.fund-card-facts strong {
    display: block;
}
.fund-card-facts span {
    color: #7A877F;
    font-size: 0.68rem;
}
.fund-card-facts strong {
    display: -webkit-box;
    min-height: 34px;
    margin-top: 3px;
    overflow: hidden;
    color: #344139;
    font-size: 0.78rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.fund-match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.fund-match-reasons span {
    padding: 4px 7px;
    color: #176B50;
    background: #EEF8F3;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
}
.fund-card-foot {
    align-items: flex-end;
    margin-top: 13px;
}
.fund-card-foot > div {
    min-width: 0;
}
.fund-card-foot strong,
.fund-card-foot span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fund-card-foot strong {
    color: #4B5951;
    font-size: 0.75rem;
}
.fund-card-foot span {
    margin-top: 2px;
    color: #87928C;
    font-size: 0.68rem;
}
.fund-card-action {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 36px;
    align-items: center;
    padding: 0 11px;
    color: #176B50;
    background: #EEF8F3;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 900;
}
.business-empty {
    margin-top: 18px;
    background: #FFF;
    border: 1px solid #DDE4DF;
}
.business-empty strong,
.business-empty p {
    display: block;
    margin-bottom: 12px;
}
.business-pagination {
    margin-top: 26px;
}

.match-form {
    padding: 22px;
    background: #FFF;
    border: 1px solid #DDE4DF;
    border-radius: 8px;
}
.match-step {
    padding: 0;
    border: 0;
}
.match-step + .match-step {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #E1E7E3;
}
.match-step legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #17211B;
    font-size: 1rem;
    font-weight: 900;
}
.match-step legend span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #FFF;
    background: #176B50;
    border-radius: 6px;
    font-size: 0.72rem;
}
.match-option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}
.match-option-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.match-option {
    position: relative;
    min-height: 86px;
    padding: 14px;
    color: #46534C;
    background: #F8FAF9;
    border: 1px solid #D6DFDA;
    border-radius: 8px;
    cursor: pointer;
}
.match-option:hover,
.match-option.selected {
    color: #14532D;
    background: #EEF8F3;
    border-color: #278267;
}
.match-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.match-option strong,
.match-option small {
    display: block;
}
.match-option strong {
    font-size: 0.85rem;
}
.match-option small {
    margin-top: 4px;
    color: #728078;
    font-size: 0.68rem;
    line-height: 1.35;
}
.match-region {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #E1E7E3;
}
.match-region label {
    display: block;
    margin-bottom: 7px;
    color: #27342D;
    font-size: 0.84rem;
    font-weight: 900;
}
.match-region label span {
    color: #8A9690;
    font-size: 0.7rem;
}
.match-region small {
    display: block;
    margin-top: 5px;
    color: #7A877F;
    font-size: 0.7rem;
}
.match-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
}
.match-results {
    margin-top: 34px;
}
.match-result-summary {
    padding: 16px;
    color: #FFF;
    background: #173D2E;
    border-radius: 8px;
}
.match-result-summary > div:last-child {
    flex: 0 0 auto;
    text-align: right;
}
.match-result-summary span,
.match-result-summary strong {
    display: block;
}
.match-result-summary span {
    color: #BFD7CA;
    font-size: 0.7rem;
}
.match-result-summary strong {
    margin-top: 2px;
    font-size: 0.85rem;
}

.saved-state {
    padding: 36px 18px;
    text-align: center;
}
.saved-state p {
    color: #748078;
    font-size: 0.82rem;
}
.saved-loading-bar {
    display: block;
    width: 96px;
    height: 4px;
    margin: 0 auto 14px;
    overflow: hidden;
    background: #DFE8E3;
    border-radius: 4px;
}
.saved-loading-bar::after {
    content: "";
    display: block;
    width: 44%;
    height: 100%;
    background: #176B50;
    animation: saved-loading 1.1s ease-in-out infinite alternate;
}
@keyframes saved-loading {
    from { transform: translateX(0); }
    to { transform: translateX(128%); }
}
.saved-list {
    border-top: 2px solid #173D2E;
}
.saved-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid #DEE5E1;
}
.saved-item-content {
    min-width: 0;
    color: #17211B;
}
.saved-item-content span,
.saved-item-content strong,
.saved-item-content p {
    display: block;
}
.saved-item-content span {
    color: #18735A;
    font-size: 0.68rem;
    font-weight: 900;
}
.saved-item-content strong {
    margin-top: 3px;
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.saved-item-content p {
    margin-top: 3px;
    overflow: hidden;
    color: #758179;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.saved-remove {
    min-width: 52px;
    min-height: 40px;
    color: #7C3E20;
    background: #FFF6F0;
    border: 1px solid #F0D8CA;
    border-radius: 7px;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}
.saved-empty-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    place-items: center;
    color: #176B50;
    background: #E8F6EF;
    border-radius: 8px;
}
.saved-empty-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.more-section + .more-section {
    margin-top: 32px;
}
.more-section-head {
    margin-bottom: 10px;
}
.more-link-list {
    border-top: 2px solid #173D2E;
}
.more-link-list a {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    min-height: 62px;
    align-items: center;
    padding: 11px 4px;
    color: #17211B;
    border-bottom: 1px solid #DFE6E2;
}
.more-link-list a::after {
    content: "??;
    grid-column: 3;
    grid-row: 1;
    color: #829088;
    font-size: 1.15rem;
}
.more-link-list strong {
    font-size: 0.9rem;
}
.more-link-list span {
    color: #748078;
    font-size: 0.77rem;
}
.private-service-note {
    margin-top: 32px;
    padding: 16px;
    color: #5F6B64;
    background: #F2F4F3;
    border-left: 3px solid #8D9B93;
}
.private-service-note strong {
    color: #36423B;
    font-size: 0.8rem;
}
.private-service-note p {
    margin-top: 3px;
    font-size: 0.74rem;
    line-height: 1.55;
}

.fund-decision-panel {
    margin: -12px 0 28px;
    padding: 20px;
    background: #F5FAF7;
    border: 1px solid #D6E4DC;
    border-top: 3px solid #176B50;
    border-radius: 8px;
}
.fund-decision-head {
    align-items: flex-start;
    margin-bottom: 14px;
}
.fund-decision-head > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.fund-decision-head strong {
    color: #17211B;
    font-size: 0.95rem;
}
.fund-decision-head > span {
    color: #748078;
    font-size: 0.7rem;
}
.fund-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #D9E4DE;
    border-left: 1px solid #D9E4DE;
}
.fund-decision-grid > div {
    min-width: 0;
    padding: 12px;
    background: #FFF;
    border-right: 1px solid #D9E4DE;
    border-bottom: 1px solid #D9E4DE;
}
.fund-decision-grid span,
.fund-decision-grid strong {
    display: block;
}
.fund-decision-grid span {
    color: #728078;
    font-size: 0.68rem;
}
.fund-decision-grid strong {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #27342D;
    font-size: 0.79rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.fund-decision-panel > p {
    margin-top: 11px;
    color: #6A766F;
    font-size: 0.72rem;
    line-height: 1.55;
}

@media (max-width: 759px) {
    .business-home,
    .business-page {
        padding-top: 12px;
    }
    .business-home {
        padding-bottom: 42px;
    }
    .business-page {
        padding-bottom: 46px;
    }
    .business-home .container,
    .business-page .container {
        padding: 0 14px;
    }
    .business-home-hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .business-home-copy {
        padding: 24px 20px 20px;
    }
    .business-home-kicker {
        margin-bottom: 13px;
    }
    .business-home-copy h1 {
        font-size: 1.68rem;
        line-height: 1.22;
    }
    .business-home-copy > p {
        margin-top: 11px;
        font-size: 0.86rem;
        line-height: 1.62;
    }
    .business-home-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        margin-top: 19px;
    }
    .business-primary-action {
        min-width: 0;
        padding: 0 12px;
    }
    .business-secondary-action {
        padding: 0 12px;
        font-size: 0.78rem;
    }
    .business-profile-hints {
        margin-top: 13px;
    }
    .business-home-summary {
        padding: 14px 20px 18px;
        border-top: 1px solid rgba(18,55,42,0.12);
        border-left: 0;
    }
    .business-summary-row {
        min-height: 60px;
    }
    .business-private-note {
        margin: 9px 1px 0;
        font-size: 0.68rem;
    }
    .business-home-section {
        margin-top: 31px;
    }
    .business-section-head {
        align-items: flex-end;
        margin-bottom: 11px;
    }
    .business-section-head h2,
    .more-section-head h2 {
        font-size: 1.12rem;
    }
    .business-need-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .business-need-item {
        grid-template-columns: 24px minmax(0, 1fr);
        min-height: 82px;
        padding: 13px 10px;
    }
    .business-deadline-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        min-height: 68px;
    }
    .business-institution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .business-institution-grid a {
        min-height: 78px;
        padding: 13px;
    }
    .legacy-support-band {
        display: block;
        margin-top: 34px;
        padding: 20px 16px;
    }
    .legacy-support-band > div:last-child {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }
    .legacy-support-band a {
        justify-content: center;
    }
    .business-page-header {
        margin-bottom: 18px;
    }
    .business-page-header h1 {
        font-size: 1.48rem;
        line-height: 1.3;
    }
    .business-page-header > p {
        font-size: 0.82rem;
        line-height: 1.58;
    }
    .business-search {
        margin-top: 15px;
    }
    .business-search input {
        min-width: 0;
        font-size: 0.82rem;
    }
    .business-search button {
        padding: 0 15px;
    }
    .fund-type-tabs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .fund-type-tabs::-webkit-scrollbar {
        display: none;
    }
    .fund-type-tabs a {
        flex: 0 0 116px;
        min-height: 66px;
        padding: 11px;
        scroll-snap-align: start;
    }
    .business-filter-block {
        padding: 12px;
    }
    .fund-list-head {
        margin-top: 20px;
    }
    .fund-card-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }
    .fund-card {
        padding: 15px;
    }
    .fund-card-title {
        min-height: 46px;
        margin: 11px 0;
        font-size: 0.94rem;
    }
    .fund-card-action {
        min-height: 40px;
    }
    .match-form {
        padding: 16px;
    }
    .match-step + .match-step {
        margin-top: 22px;
        padding-top: 20px;
    }
    .match-option-grid,
    .match-option-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .match-option {
        min-height: 78px;
        padding: 12px;
    }
    .match-result-summary {
        align-items: flex-start;
    }
    .match-result-summary > div:first-child {
        min-width: 0;
    }
    .match-result-summary > div:first-child strong {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .more-link-list a {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
    }
    .fund-decision-panel {
        margin: -8px 0 20px;
        padding: 14px;
    }
    .fund-decision-head {
        display: block;
    }
    .fund-decision-head > span {
        display: block;
        margin-top: 6px;
    }
    .fund-decision-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .fund-decision-grid > div {
        padding: 10px;
    }
    .detail-mobile-action {
        grid-template-columns: minmax(0, 1fr) 48px auto;
    }
    .detail-mobile-action.no-primary {
        grid-template-columns: 48px minmax(0, 1fr);
    }
    .detail-mobile-save {
        width: 48px;
        height: 44px;
        border-radius: 16px;
    }
    .bottom-nav-label {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.64rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .breadcrumb {
        flex-wrap: nowrap;
        gap: 6px;
        overflow: hidden;
        padding: 10px 0 8px;
        font-size: 0.72rem;
    }
    .breadcrumb a,
    .bc-sep {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .bc-current {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 2026-07-29 mobile business dashboard refresh */
:root {
    --app-blue: #1f5eff;
    --app-blue-dark: #1748c7;
    --app-blue-soft: #edf3ff;
    --app-green: #11875d;
    --app-green-soft: #eaf8f2;
    --app-amber: #f59e0b;
    --app-amber-soft: #fff5df;
    --app-ink: #171a21;
    --app-muted: #6b7280;
    --app-line: #e5e8ee;
    --app-surface: #ffffff;
    --app-bg: #f4f6f8;
}

body {
    background: var(--app-bg);
    color: var(--app-ink);
}

.app-mobile-icon-btn svg,
.app-topbar-saved svg,
.cash-welcome-save svg,
.cash-focus-card svg,
.cash-overview svg,
.cash-quick-icon svg,
.cash-search-card svg,
.cash-deadline-item > svg,
.cash-institution-list > a > svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cash-home {
    padding: 22px 0 56px;
}
.cash-home .container {
    max-width: 820px;
}
.cash-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.cash-welcome > div {
    min-width: 0;
}
.cash-welcome span {
    display: block;
    margin-bottom: 6px;
    color: var(--app-blue);
    font-size: 0.78rem;
    font-weight: 800;
}
.cash-welcome h1 {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.72rem;
    line-height: 1.28;
}
.cash-welcome-save {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #424752;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.cash-welcome-save:hover {
    color: var(--app-blue);
    border-color: #bfd0ff;
    text-decoration: none;
}
.cash-focus-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    padding: 28px;
    overflow: hidden;
    color: #fff;
    background: var(--app-blue);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31,94,255,0.18);
}
.cash-focus-copy {
    min-width: 0;
}
.cash-focus-label {
    display: inline-flex;
    margin-bottom: 13px;
    color: #dce7ff;
    font-size: 0.78rem;
    font-weight: 800;
}
.cash-focus-card h2 {
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.32;
}
.cash-focus-card p {
    max-width: 440px;
    margin: 12px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
    line-height: 1.55;
}
.cash-focus-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}
.cash-focus-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}
.cash-focus-actions .cash-focus-primary {
    padding: 0 16px;
    color: var(--app-blue-dark);
    background: #fff;
    border-radius: 8px;
}
.cash-focus-actions .cash-focus-primary:hover {
    background: #f5f8ff;
    text-decoration: none;
}
.cash-focus-actions svg {
    width: 17px;
    height: 17px;
}
.cash-focus-total {
    min-width: 132px;
    padding: 18px;
    color: var(--app-ink);
    background: #fff;
    border-radius: 8px;
    text-align: right;
}
.cash-focus-total span {
    display: block;
    margin-bottom: 5px;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 700;
}
.cash-focus-total strong {
    font-size: 1.72rem;
    line-height: 1;
}
.cash-focus-total small {
    margin-left: 3px;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
}
.cash-overview,
.cash-quick-section,
.cash-home-section {
    margin-top: 30px;
}
.cash-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.cash-section-head > div {
    min-width: 0;
}
.cash-section-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--app-green);
    font-size: 0.74rem;
    font-weight: 800;
}
.cash-section-head h2 {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.18rem;
    line-height: 1.35;
}
.cash-section-head > a {
    flex: 0 0 auto;
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}
.cash-section-head > a:hover {
    color: var(--app-blue);
}
.cash-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.cash-overview-grid > a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    gap: 3px 10px;
    align-items: center;
    min-height: 84px;
    padding: 15px;
    color: var(--app-ink);
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    text-decoration: none;
}
.cash-overview-grid > a:hover {
    border-color: #c8d5fa;
    text-decoration: none;
}
.cash-overview-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    border-radius: 8px;
}
.cash-overview-icon.is-amber {
    color: #a96300;
    background: var(--app-amber-soft);
}
.cash-overview-icon.is-green {
    color: var(--app-green);
    background: var(--app-green-soft);
}
.cash-overview-grid > a > span:nth-child(2) {
    grid-area: label;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 700;
}
.cash-overview-grid strong {
    grid-area: value;
    font-size: 1.04rem;
    line-height: 1.2;
}
.cash-overview-grid strong small {
    margin-left: 2px;
    color: var(--app-muted);
    font-size: 0.7rem;
}
.cash-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.cash-quick-item {
    display: flex;
    min-width: 0;
    min-height: 108px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px;
    color: var(--app-ink);
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    text-decoration: none;
}
.cash-quick-item:hover {
    border-color: #c8d5fa;
    color: var(--app-blue-dark);
    text-decoration: none;
}
.cash-quick-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    border-radius: 8px;
}
.cash-quick-item.type-guarantee .cash-quick-icon {
    color: var(--app-green);
    background: var(--app-green-soft);
}
.cash-quick-item.type-grant .cash-quick-icon {
    color: #ad6500;
    background: var(--app-amber-soft);
}
.cash-quick-item.type-rnd .cash-quick-icon {
    color: #7c3aed;
    background: #f3efff;
}
.cash-quick-item strong {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.3;
}
.cash-quick-item small {
    color: var(--app-muted);
    font-size: 0.72rem;
}
.cash-search-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 12px;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.cash-search-symbol {
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    border-radius: 8px;
}
.cash-search-card > div {
    min-width: 0;
}
.cash-search-card > div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--app-blue);
    font-size: 0.72rem;
    font-weight: 800;
}
.cash-search-card h2 {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.04rem;
}
.cash-search-card form {
    grid-column: 1 / -1;
    display: flex;
    height: 48px;
    margin-top: 16px;
    padding-left: 14px;
    background: var(--app-bg);
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.cash-search-card input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-ink);
    font: inherit;
    font-size: 0.86rem;
}
.cash-search-card input::placeholder {
    color: #979ca6;
}
.cash-search-card button {
    display: grid;
    place-items: center;
    width: 46px;
    border: 0;
    background: transparent;
    color: var(--app-blue);
    cursor: pointer;
}
.cash-home .home-fund-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.cash-home .fund-card {
    min-height: 0;
}
.cash-deadline-list,
.cash-institution-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.cash-deadline-item,
.cash-institution-list > a {
    display: grid;
    min-width: 0;
    align-items: center;
    color: var(--app-ink);
    border-bottom: 1px solid var(--app-line);
    text-decoration: none;
}
.cash-deadline-item:last-child,
.cash-institution-list > a:last-child {
    border-bottom: 0;
}
.cash-deadline-item {
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 14px 16px;
}
.cash-deadline-item:hover,
.cash-institution-list > a:hover {
    background: #fafbfc;
    text-decoration: none;
}
.cash-deadline-day {
    display: grid;
    place-items: center;
    min-height: 34px;
    color: #9a5900;
    background: var(--app-amber-soft);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
}
.cash-deadline-item > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 4px;
}
.cash-deadline-item strong,
.cash-institution-list strong {
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cash-deadline-item small,
.cash-institution-list small {
    overflow: hidden;
    color: var(--app-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cash-deadline-item > svg,
.cash-institution-list > a > svg {
    width: 17px;
    height: 17px;
    color: #a2a7b0;
}
.cash-institution-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cash-institution-list > a {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 11px;
    min-height: 72px;
    padding: 12px 16px;
}
.cash-institution-list > a:nth-child(odd) {
    border-right: 1px solid var(--app-line);
}
.cash-institution-list > a:nth-last-child(-n + 2) {
    border-bottom: 0;
}
.cash-institution-list > a > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.cash-institution-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--app-green);
    background: var(--app-green-soft);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
}
.cash-legacy-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #252a34;
    border-radius: 8px;
}
.cash-legacy-band > div:first-child {
    min-width: 0;
}
.cash-legacy-band span {
    color: #9fc0ff;
    font-size: 0.72rem;
    font-weight: 800;
}
.cash-legacy-band h2 {
    margin: 5px 0 3px;
    color: #fff;
    font-size: 1rem;
}
.cash-legacy-band p {
    margin: 0;
    color: #b8bdc8;
    font-size: 0.76rem;
}
.cash-legacy-band > div:last-child {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}
.cash-legacy-band a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 13px;
    color: #fff;
    border: 1px solid #555d6b;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}
.cash-private-note {
    margin: 14px 2px 0;
    color: #858b96;
    font-size: 0.7rem;
    line-height: 1.55;
}

/* Shared fund screens */
.business-page {
    padding: 24px 0 56px;
    background: transparent;
}
.business-page .container {
    max-width: 820px;
}
.business-page-header {
    padding: 0;
    margin-bottom: 22px;
}
.business-eyebrow {
    color: var(--app-blue);
    background: transparent;
    font-size: 0.76rem;
}
.business-page-header h1 {
    color: var(--app-ink);
    font-size: 1.62rem;
}
.business-page-header p {
    color: var(--app-muted);
}
.business-search {
    min-height: 50px;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: none;
}
.business-search button,
.match-submit {
    background: var(--app-blue);
    border-radius: 8px;
}
.business-search button:hover,
.match-submit:hover {
    background: var(--app-blue-dark);
}
.fund-type-tabs {
    padding: 4px;
    background: #e9ecf1;
    border: 0;
    border-radius: 8px;
}
.fund-type-tabs a {
    border-radius: 6px;
}
.fund-type-tabs a.active {
    color: var(--app-blue-dark);
    background: #fff;
    box-shadow: 0 1px 3px rgba(23,26,33,0.08);
}
.business-filter-block,
.match-step,
.match-region,
.match-result-summary {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: none;
}
.business-chip {
    border-radius: 8px;
}
.business-chip.active {
    color: #fff;
    background: var(--app-ink);
    border-color: var(--app-ink);
}
.fund-card {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: none;
}
.fund-card:hover {
    border-color: #c8d5fa;
    box-shadow: 0 4px 14px rgba(25,41,83,0.06);
}
.fund-type-badge,
.fund-fit-badge,
.fund-due-badge,
.fund-match-reasons span {
    border-radius: 6px;
}
.fund-save-btn,
.fund-card-action {
    border-radius: 8px;
}
.fund-save-btn.is-saved,
.fund-card-action {
    color: var(--app-blue);
}
.fund-card-action:hover {
    color: #fff;
    background: var(--app-blue);
}
.business-pagination a,
.business-pagination span {
    border-radius: 8px;
}
.business-pagination .current {
    background: var(--app-blue);
}
.match-option {
    border-radius: 8px;
    box-shadow: none;
}
.match-option.selected {
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
    border-color: #9bb7ff;
}
.match-result-summary {
    color: #fff;
    background: var(--app-blue);
    border-color: var(--app-blue);
}
.fund-decision-panel {
    background: var(--app-blue-soft);
    border-color: #bfd0ff;
    border-radius: 8px;
}
.fund-decision-head span,
.fund-decision-grid span {
    color: var(--app-blue-dark);
}
.detail-page,
.detail-header,
.info-card {
    border-radius: 8px;
}
.detail-header,
.info-card {
    border-color: var(--app-line);
    box-shadow: none;
}
.btn-primary,
.detail-mobile-primary {
    background: var(--app-blue);
}
.btn-primary:hover,
.detail-mobile-primary:hover {
    background: var(--app-blue-dark);
}

@media (min-width: 1024px) {
    .app-shell {
        display: block;
        width: min(100%, 900px);
        margin: 0 auto;
        padding: 18px 24px 36px;
    }
    .app-rail,
    .app-side-panel,
    .site-header {
        display: none !important;
    }
    .app-frame {
        width: 100%;
    }
    .app-topbar {
        top: 12px;
        display: grid;
        grid-template-columns: auto minmax(280px, 1fr) 44px;
        min-height: 64px;
        margin-bottom: 4px;
        padding: 9px 10px 9px 16px;
        background: rgba(255,255,255,0.94);
        border: 1px solid var(--app-line);
        border-radius: 8px;
        box-shadow: 0 4px 18px rgba(25,32,45,0.06);
    }
    .app-topbar-title span {
        color: var(--app-blue);
    }
    .app-topbar-search {
        width: 100%;
        height: 44px;
        justify-self: end;
        background: var(--app-bg);
        border-color: transparent;
        border-radius: 8px;
    }
    .app-topbar-search button {
        color: #fff;
        background: var(--app-blue);
        border-radius: 8px;
    }
    .app-topbar-saved {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: #4e5562;
        border: 1px solid var(--app-line);
        border-radius: 8px;
    }
    .app-topbar-saved:hover {
        color: var(--app-blue);
        background: var(--app-blue-soft);
        text-decoration: none;
    }
    .app-topbar-saved svg {
        width: 20px;
        height: 20px;
    }
    .app-main .container {
        max-width: 820px;
    }
    .site-footer {
        margin-top: 24px;
    }
}

@media (max-width: 900px) {
    body {
        background: var(--app-bg);
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .app-mobile-header {
        min-height: 58px;
        padding: calc(7px + env(safe-area-inset-top, 0px)) 16px 7px;
        background: rgba(255,255,255,0.96);
        border-bottom: 1px solid var(--app-line);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .app-mobile-mark {
        border-radius: 8px;
        background: var(--app-blue);
        box-shadow: none;
    }
    .app-mobile-brand strong {
        color: var(--app-ink);
    }
    .app-mobile-brand small {
        color: var(--app-muted);
    }
    .app-mobile-actions {
        display: flex;
        gap: 4px;
    }
    .app-mobile-icon-btn {
        width: 40px;
        height: 40px;
        color: #4e5562;
        background: transparent;
        border: 0;
        border-radius: 8px;
    }
    .app-mobile-icon-btn:hover {
        color: var(--app-blue);
        background: var(--app-blue-soft);
    }
    .app-main .container,
    .cash-home .container,
    .business-page .container {
        max-width: 680px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .mobile-bottom-nav {
        left: 50%;
        bottom: 0;
        width: min(100%, 680px);
        min-height: 64px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,0.97);
        border: 0;
        border-top: 1px solid var(--app-line);
        border-radius: 0;
        box-shadow: 0 -4px 16px rgba(25,32,45,0.06);
    }
    .bottom-nav-item {
        min-height: 48px;
        padding: 4px 6px;
        color: #858b96;
        background: transparent;
        border-radius: 8px;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: var(--app-blue);
        background: transparent;
    }
    .bottom-nav-icon {
        height: 22px;
    }
    .bottom-nav-label,
    .bottom-nav-item > span:last-child {
        font-size: 0.65rem;
        font-weight: 700;
    }
    .detail-mobile-action {
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
        width: min(100%, 520px);
        padding: 8px 12px;
        background: #fff;
        border: 0;
        border-top: 1px solid var(--app-line);
        border-radius: 0;
        box-shadow: 0 -4px 14px rgba(25,32,45,0.06);
    }
}

@media (max-width: 640px) {
    .cash-home {
        padding: 16px 0 28px;
    }
    .cash-welcome {
        margin-bottom: 14px;
    }
    .cash-welcome h1 {
        font-size: 1.42rem;
    }
    .cash-welcome-save {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .cash-focus-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 20px;
    }
    .cash-focus-card h2 {
        font-size: 1.46rem;
    }
    .cash-focus-card p {
        font-size: 0.82rem;
    }
    .cash-focus-actions {
        gap: 14px;
        margin-top: 18px;
    }
    .cash-focus-actions a {
        min-height: 44px;
        font-size: 0.82rem;
    }
    .cash-focus-total {
        display: flex;
        min-width: 0;
        align-items: baseline;
        justify-content: flex-end;
        gap: 4px;
        padding: 12px 14px;
        text-align: left;
    }
    .cash-focus-total span {
        margin: 0 auto 0 0;
    }
    .cash-focus-total strong {
        font-size: 1.42rem;
    }
    .cash-overview,
    .cash-quick-section,
    .cash-home-section,
    .cash-search-card,
    .cash-legacy-band {
        margin-top: 24px;
    }
    .cash-overview-grid {
        gap: 7px;
    }
    .cash-overview-grid > a {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "label"
            "value";
        gap: 6px;
        min-height: 116px;
        align-content: center;
        padding: 12px;
    }
    .cash-overview-icon {
        width: 34px;
        height: 34px;
    }
    .cash-overview-icon svg {
        width: 19px;
        height: 19px;
    }
    .cash-overview-grid strong {
        font-size: 0.96rem;
    }
    .cash-quick-grid {
        gap: 7px;
    }
    .cash-quick-item {
        min-height: 98px;
        padding: 12px 10px;
    }
    .cash-quick-icon {
        width: 34px;
        height: 34px;
    }
    .cash-quick-icon svg {
        width: 19px;
        height: 19px;
    }
    .cash-quick-item strong {
        font-size: 0.78rem;
    }
    .cash-quick-item small {
        font-size: 0.66rem;
    }
    .cash-search-card {
        padding: 16px;
    }
    .cash-home .home-fund-list {
        grid-template-columns: 1fr;
    }
    .cash-deadline-item {
        grid-template-columns: 44px minmax(0, 1fr) 16px;
        gap: 10px;
        padding: 13px 12px;
    }
    .cash-institution-list {
        grid-template-columns: 1fr;
    }
    .cash-institution-list > a,
    .cash-institution-list > a:nth-child(odd),
    .cash-institution-list > a:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--app-line);
    }
    .cash-institution-list > a:last-child {
        border-bottom: 0;
    }
    .cash-legacy-band {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
    .cash-legacy-band > div:last-child {
        width: 100%;
    }
    .cash-legacy-band a {
        flex: 1;
        justify-content: center;
    }
    .business-page {
        padding: 18px 0 28px;
    }
    .business-page-header {
        margin-bottom: 16px;
    }
    .business-page-header h1 {
        font-size: 1.42rem;
    }
    .fund-type-tabs {
        overflow-x: auto;
    }
    .fund-type-tabs a {
        min-width: max-content;
    }
    .match-step,
    .match-region {
        padding: 16px;
    }
}

@media (max-width: 370px) {
    .business-home-actions {
        grid-template-columns: minmax(0, 1fr);
    }
    .business-secondary-action {
        min-height: 46px;
    }
    .business-profile-hints {
        display: none;
    }
    .business-need-grid,
    .match-option-grid,
    .match-option-grid-three {
        grid-template-columns: minmax(0, 1fr);
    }
    .more-link-list a {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .more-link-list span {
        grid-column: 1;
        grid-row: 2;
    }
    .more-link-list a::after {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, #F4F7FB 0%, #F8F8F6 46%, #FFFFFF 100%);
    color: var(--gray-700);
    line-height: 1.65;
    min-height: 100vh;
}
a { color: var(--primary-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-700); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   App Shell
   ======================================== */
.app-shell {
    min-height: 100vh;
}
.app-frame {
    min-width: 0;
}
.app-main {
    min-width: 0;
}
.app-rail,
.app-side-panel,
.app-mobile-header,
.detail-mobile-action {
    display: none;
}
.app-topbar {
    display: none;
}
.rail-icon svg,
.rail-compose svg,
.bottom-nav-icon svg,
.app-topbar-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
    .app-shell {
        display: grid;
        grid-template-columns: 96px minmax(0, 820px);
        gap: 18px;
        width: min(100%, 994px);
        margin: 0 auto;
        padding: 20px;
        align-items: start;
    }
    .app-rail {
        position: sticky;
        top: 20px;
        display: flex;
        min-height: calc(100vh - 40px);
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 14px 10px;
        background: #111827;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 24px;
        box-shadow: 0 18px 44px rgba(17,24,39,0.16);
    }
    .rail-brand {
        display: grid;
        align-items: center;
        gap: 6px;
        justify-content: center;
        width: 72px;
        min-height: 70px;
        padding: 10px 6px;
        border-radius: 18px;
        background: rgba(255,255,255,0.08);
        color: #fff;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
    }
    .rail-brand:hover {
        color: #fff;
        text-decoration: none;
    }
    .rail-brand-mark {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        margin: 0 auto;
        border-radius: 12px;
        background: var(--brand-gradient);
        font-size: 1rem;
        line-height: 1;
        box-shadow: 0 8px 20px rgba(79,70,229,0.26);
    }
    .rail-brand-text {
        color: rgba(255,255,255,0.74);
        font-size: 0.72rem;
        line-height: 1;
        letter-spacing: 0;
    }
    .rail-nav {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 7px;
    }
    .rail-link {
        position: relative;
        display: flex;
        min-height: 60px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 18px;
        color: rgba(255,255,255,0.56);
        font-size: 0.76rem;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.18s, color 0.18s, transform 0.18s;
    }
    .rail-link:hover,
    .rail-link.active {
        color: #fff;
        background: rgba(255,255,255,0.11);
        text-decoration: none;
    }
    .rail-link:hover {
        transform: translateY(-1px);
    }
    .rail-link.active::before {
        content: '';
        position: absolute;
        left: -10px;
        width: 4px;
        height: 28px;
        border-radius: 99px;
        background: var(--accent-400);
    }
    .rail-icon {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
    }
    .rail-compose {
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        min-height: 64px;
        border-radius: 18px;
        background: #fff;
        border: 1px solid rgba(255,255,255,0.12);
        color: #fff;
        background: var(--brand-gradient);
        font-size: 0.76rem;
        font-weight: 800;
        text-decoration: none;
        box-shadow: 0 10px 24px rgba(79,70,229,0.24);
    }
    .rail-compose:hover {
        color: #fff;
        opacity: 0.92;
        text-decoration: none;
    }
    .site-header {
        display: none;
    }
    .app-frame {
        width: 100%;
        min-width: 0;
    }
    .app-main {
        width: 100%;
    }
    .app-topbar {
        position: sticky;
        top: 20px;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 68px;
        margin-bottom: 16px;
        padding: 10px 12px 10px 18px;
        background: rgba(255,255,255,0.86);
        border: 1px solid rgba(214,211,209,0.72);
        border-radius: 22px;
        box-shadow: 0 12px 30px rgba(28,25,23,0.07);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .app-topbar-title {
        display: grid;
        gap: 1px;
        min-width: 132px;
    }
    .app-topbar-title span {
        color: var(--gray-400);
        font-size: 0.76rem;
        font-weight: 800;
    }
    .app-topbar-title strong {
        color: var(--gray-900);
        font-size: 1.08rem;
        line-height: 1.2;
    }
    .app-topbar-search {
        display: flex;
        align-items: center;
        min-width: 0;
        width: min(100%, 380px);
        height: 46px;
        padding: 0 5px 0 15px;
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        border-radius: 16px;
    }
    .app-topbar-search input {
        min-width: 0;
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--gray-800);
        font-family: var(--font-sans);
        font-size: 0.92rem;
    }
    .app-topbar-search input::placeholder {
        color: var(--gray-400);
    }
    .app-topbar-search button {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 12px;
        background: var(--gray-900);
        color: #fff;
        cursor: pointer;
    }
    .app-topbar-search button:hover {
        background: var(--primary-700);
    }
    .app-main .container {
        max-width: 820px;
        padding-left: 0;
        padding-right: 0;
    }
    .app-main .section {
        padding: 24px 0;
    }
    .app-main .section:first-child {
        padding-top: 0;
    }
    .app-main .hero {
        border-radius: 24px;
        text-align: left;
        box-shadow: 0 18px 40px rgba(79,70,229,0.14);
    }
    .app-main .hero .container {
        padding: 0 24px;
    }
    .app-main .hero-search {
        max-width: none;
        margin: 0;
    }
    .app-main .category-strip {
        position: static;
        padding: 14px 0 0;
        background: transparent;
        border-bottom: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .policy-grid,
    .policy-list-view .policy-grid {
        grid-template-columns: 1fr;
    }
    .detail-page {
        max-width: 748px;
    }
    .site-footer {
        margin-top: 28px;
    }
}

@media (min-width: 1360px) {
    .app-shell {
        grid-template-columns: 96px minmax(0, 820px) 300px;
        width: min(100%, 1288px);
    }
    .app-side-panel {
        position: sticky;
        top: 20px;
        display: flex;
        max-height: calc(100vh - 40px);
        flex-direction: column;
        gap: 14px;
        overflow: auto;
        scrollbar-width: none;
    }
    .app-side-panel::-webkit-scrollbar {
        display: none;
    }
    .side-panel-section {
        display: grid;
        gap: 10px;
        padding: 18px;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(214,211,209,0.76);
        border-radius: 22px;
        box-shadow: 0 10px 26px rgba(28,25,23,0.06);
    }
    .side-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 2px;
    }
    .side-panel-section h2 {
        margin: 0;
        color: var(--gray-900);
        font-size: 0.98rem;
        line-height: 1.35;
    }
    .side-section-head span {
        color: var(--gray-400);
        font-size: 0.72rem;
        font-weight: 800;
    }
    .side-panel-section a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 0 13px;
        color: var(--gray-700);
        background: #fff;
        border: 1px solid var(--gray-100);
        border-radius: 14px;
        font-size: 0.9rem;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
    }
    .side-panel-section a::after {
        content: '??;
        color: var(--gray-300);
        font-size: 1.1rem;
        line-height: 1;
    }
    .side-panel-section a:hover {
        color: var(--primary-700);
        background: var(--primary-50);
        border-color: var(--primary-100);
        text-decoration: none;
        transform: translateY(-1px);
    }
    .side-panel-identity {
        overflow: hidden;
        background: linear-gradient(145deg, #111827 0%, #1F2937 100%);
        color: #fff;
    }
    .side-panel-identity strong {
        display: block;
        color: #fff;
        font-size: 2.1rem;
        line-height: 1.06;
    }
    .side-panel-identity span {
        color: rgba(255,255,255,0.74);
        font-size: 0.86rem;
        line-height: 1.55;
    }
    .side-panel-identity .side-kicker {
        color: rgba(255,255,255,0.56);
        font-size: 0.76rem;
        font-weight: 800;
    }
    .side-panel-identity .side-primary-action {
        margin-top: 4px;
        color: #111827;
        background: #fff;
        border-color: transparent;
    }
    .side-panel-identity .side-primary-action::after {
        color: rgba(17,24,39,0.32);
    }
    .side-panel-note span {
        color: var(--gray-500);
        font-size: 0.82rem;
        line-height: 1.65;
    }
}

/* ========================================
   Header ??Glass effect
   ======================================== */
.site-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231,229,228,0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 1.6rem; }
.logo-title {
    font-size: 1.15rem; font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-sub { font-size: 0.7rem; color: var(--gray-500); display: block; line-height: 1; }
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
    padding: 7px 14px; font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
    border-radius: var(--radius-md); transition: all 0.15s; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: var(--primary-600); background: var(--primary-50); text-decoration: none; }
.nav-link.active { color: var(--primary-600); background: var(--primary-50); font-weight: 600; }
.header-search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    color: var(--gray-500); text-decoration: none; transition: all 0.15s;
}
.header-search-btn:hover { background: var(--primary-50); color: var(--primary-600); }
.mobile-menu-btn { display: none; }

/* ========================================
   Hero ??Distinctive gradient + mesh
   ======================================== */
.hero {
    background: var(--brand-gradient);
    padding: 52px 0 44px; color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: none;
}
.hero::after {
    content: none;
}
.hero.hero-compact { padding: 36px 0 30px; }
.hero-title { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; position: relative; z-index: 1; }
.hero.hero-compact .hero-title { font-size: 1.65rem; }
.hero-title strong { color: #fff; }
.hero-sub { font-size: 1.05rem; opacity: 0.85; margin-bottom: 32px; position: relative; z-index: 1; }
.hero.hero-compact .hero-sub { font-size: 0.95rem; margin-bottom: 22px; }
.hero-search { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.search-input-group {
    display: flex; align-items: center; background: #fff;
    border-radius: var(--radius-xl); padding: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.search-input-group .search-icon { margin-left: 16px; color: var(--gray-400); flex-shrink: 0; }
.search-input-group input {
    flex: 1; border: none; outline: none; font-size: 1.05rem;
    padding: 13px 12px; background: transparent;
    font-family: var(--font-sans); color: var(--gray-800);
}
.search-input-group input::placeholder { color: var(--gray-400); }
.search-input-group button {
    background: var(--brand-gradient); color: #fff; border: none;
    padding: 13px 28px; font-size: 0.95rem; font-weight: 600;
    border-radius: var(--radius-lg); cursor: pointer;
    font-family: var(--font-sans); white-space: nowrap; transition: opacity 0.15s;
}
.search-input-group button:hover { opacity: 0.9; }
.hero-trending { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; position: relative; z-index: 1; }
.trending-label { font-size: 0.85rem; opacity: 0.7; font-weight: 500; }
.trending-pill {
    display: inline-block; padding: 5px 14px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full); font-size: 0.8rem; color: #fff;
    text-decoration: none; transition: background 0.15s;
}
.trending-pill:hover { background: rgba(255,255,255,0.28); color: #fff; text-decoration: none; }

/* ========================================
   2026 ?뺣?吏?먭툑 App Home
   ======================================== */
.gb-hero { padding: 18px 0 12px; }
.gb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 284px);
    gap: 16px;
    align-items: stretch;
}
.gb-hero-copy {
    position: relative;
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
    padding: 30px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15,23,42,0.98) 0%, rgba(22,50,72,0.98) 52%, rgba(15,82,48,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15,23,42,0.2);
}
.gb-hero-copy::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 14%, rgba(45,212,191,0.22), transparent 31%),
        linear-gradient(90deg, rgba(255,255,255,0.05), transparent 46%);
    pointer-events: none;
}
.gb-hero-copy > * {
    position: relative;
    z-index: 1;
}
.gb-hero-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.gb-kicker {
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    color: #D1FAE5;
    background: rgba(20,184,166,0.16);
    border: 1px solid rgba(45,212,191,0.26);
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 850;
}
.gb-live-count {
    flex: 0 0 auto;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    font-weight: 850;
}
.gb-hero-copy h1 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: 1.98rem;
    font-weight: 900;
    line-height: 1.18;
    word-break: keep-all;
}
.gb-hero-copy p {
    max-width: 590px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 0.96rem;
    line-height: 1.7;
    word-break: keep-all;
}
.gb-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: -2px;
}
.gb-hero-highlights a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    color: #D1FAE5;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(167,243,208,0.22);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
}
.gb-hero-highlights a:hover {
    color: #fff;
    background: rgba(20,184,166,0.22);
    text-decoration: none;
}
.gb-hero-copy .gb-government-note {
    max-width: 590px;
    margin-top: -4px;
    padding: 0;
    color: rgba(255,255,255,0.6);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.76rem;
    line-height: 1.5;
}
.gb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 620px;
    min-height: 58px;
    padding: 5px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}
.gb-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-900);
    padding: 0 10px;
    font-family: var(--font-sans);
    font-size: 0.96rem;
}
.gb-search button {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #111827 0%, #172554 100%);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 850;
    cursor: pointer;
}
.gb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gb-hero-actions .btn {
    min-height: 48px;
    border-radius: 15px;
    justify-content: center;
    padding: 11px 20px;
    font-weight: 900;
}
.gb-push-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.38);
    background: rgba(255,255,255,0.1);
}
.gb-status-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 620px;
}
.gb-status-bar a {
    display: grid;
    gap: 1px;
    min-height: 58px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px;
    text-decoration: none;
}
.gb-status-bar a:hover {
    color: #fff;
    background: rgba(255,255,255,0.14);
}
.gb-status-bar span {
    color: rgba(255,255,255,0.64);
    font-size: 0.72rem;
    font-weight: 850;
}
.gb-status-bar strong {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.15;
}
.gb-action-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(28,25,23,0.06);
}
.gb-action-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.gb-action-panel-head span {
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 900;
}
.gb-action-panel-head a {
    color: #0F766E;
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
}
.gb-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.gb-action-card {
    display: grid;
    gap: 4px;
    min-height: 118px;
    padding: 15px;
    color: inherit;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    text-decoration: none;
    transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.gb-action-card:hover {
    color: inherit;
    background: #F0FDFA;
    border-color: #99F6E4;
    text-decoration: none;
    transform: translateY(-1px);
}
.gb-action-card > span {
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    color: #0F766E;
    background: #CCFBF1;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
}
.gb-action-card strong {
    color: var(--gray-900);
    font-size: 1.02rem;
    line-height: 1.35;
    word-break: keep-all;
}
.gb-action-card small {
    color: var(--gray-500);
    font-size: 0.78rem;
    line-height: 1.35;
}
.gb-stats { padding: 8px 0 16px; }
.gb-stat-grid,
.gb-target-grid,
.gb-keyword-grid {
    display: grid;
    gap: 10px;
}
.gb-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gb-stat-card,
.gb-target-card,
.gb-deadline-item,
.gb-keyword-grid a {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.gb-stat-card,
.gb-target-card,
.gb-deadline-item,
.gb-keyword-grid a {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(28,25,23,0.05);
}
.gb-stat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    min-height: 72px;
    padding: 14px 16px;
}
.gb-stat-card span,
.gb-target-card span,
.gb-deadline-item small {
    color: var(--gray-500);
}
.gb-stat-card strong {
    grid-row: 1 / 3;
    grid-column: 2;
    color: var(--gray-900);
    font-size: 1.18rem;
    line-height: 1.1;
}
.gb-stat-card small {
    color: #0F766E;
    font-size: 0.74rem;
    font-weight: 900;
}
.gb-target-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gb-target-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 15px;
}
.gb-target-card strong {
    display: block;
    color: var(--gray-900);
    font-size: 1rem;
}
.gb-target-card small {
    display: block;
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 0.78rem;
    line-height: 1.4;
}
.gb-target-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #0F766E;
    background: #CCFBF1;
    border-radius: 13px;
    font-size: 0.78rem;
    font-weight: 950;
}
.gb-deadline-list {
    display: grid;
    gap: 10px;
}
.gb-deadline-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 13px;
    row-gap: 3px;
    align-items: center;
    min-height: 74px;
    padding: 13px 15px;
}
.gb-dday {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    min-height: 46px;
    color: #b91c1c;
    background: #fff1f2;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 900;
}
.gb-deadline-item strong {
    overflow: hidden;
    color: var(--gray-900);
    font-size: 0.96rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gb-deadline-item small {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gb-keyword-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gb-keyword-grid a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 0 10px;
    color: var(--gray-700);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
    word-break: keep-all;
}
.gb-category-band {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
}
.gb-category-band h2 {
    margin: 8px 0 4px;
    color: var(--gray-900);
    font-size: 1.2rem;
}
.gb-category-band p {
    margin: 0;
    color: var(--gray-500);
}

@media (min-width: 760px) {
    .gb-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 284px);
        align-items: center;
    }
}

@media (max-width: 720px) {
    .gb-hero { padding: 14px 0 8px; }
    .gb-hero-grid { grid-template-columns: 1fr; }
    .gb-hero-copy { padding: 22px 18px; border-radius: 20px; }
    .gb-hero-copy h1 { font-size: 1.46rem; }
    .gb-hero-copy p { font-size: 0.9rem; }
    .gb-action-panel { padding: 15px; border-radius: 20px; }
    .gb-action-card { min-height: 92px; padding: 13px; }
    .gb-search { min-height: auto; align-items: stretch; padding: 5px; }
    .gb-search input { min-height: 46px; font-size: 0.88rem; }
    .gb-search button { min-width: 58px; min-height: 44px; font-size: 0.84rem; }
    .gb-hero-actions .btn { justify-content: center; flex: 1 1 140px; padding-left: 14px; padding-right: 14px; }
    .gb-status-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gb-stat-grid,
    .gb-target-grid { grid-template-columns: 1fr; }
    .gb-keyword-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gb-deadline-item { grid-template-columns: 62px minmax(0, 1fr); padding: 12px; }
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section { margin-top: -32px; position: relative; z-index: 10; padding-bottom: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
    background: #fff; border-radius: var(--radius-lg); padding: 24px 16px;
    text-align: center; box-shadow: var(--shadow-md); transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-number { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.stat-card.stat-active .stat-number { color: var(--success-600); }
.stat-label { font-size: 0.9rem; color: var(--gray-500); margin-top: 4px; }

/* ========================================
   Category Chip Strip
   ======================================== */
.category-strip {
    background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(231,229,228,0.5);
    padding: 12px 0; position: sticky; top: 64px; z-index: 90;
}
.category-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 500;
    color: var(--gray-600); text-decoration: none; white-space: nowrap;
    transition: all 0.2s; flex-shrink: 0;
}
.cat-chip:hover { background: var(--primary-50); border-color: var(--primary-300); color: var(--primary-600); text-decoration: none; box-shadow: var(--shadow-sm); }
.cat-chip-all { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.cat-chip-all:hover { opacity: 0.9; color: #fff; border-color: transparent; background: var(--brand-gradient); box-shadow: var(--shadow-glow); }
.cat-chip-count { font-size: 0.7rem; color: var(--gray-400); }
.cat-chip-all .cat-chip-count { color: rgba(255,255,255,0.7); }
.cat-chip[data-cat="泥?뀈"]:hover { background: var(--cat-youth-bg); border-color: var(--cat-youth); color: var(--cat-youth); }
.cat-chip[data-cat="蹂듭?"]:hover { background: var(--cat-welfare-bg); border-color: var(--cat-welfare); color: var(--cat-welfare); }
.cat-chip[data-cat="二쇨굅"]:hover { background: var(--cat-housing-bg); border-color: var(--cat-housing); color: var(--cat-housing); }
.cat-chip[data-cat="怨좎슜"]:hover { background: var(--cat-employment-bg); border-color: var(--cat-employment); color: var(--cat-employment); }
.cat-chip[data-cat="李쎌뾽"]:hover { background: var(--cat-startup-bg); border-color: var(--cat-startup); color: var(--cat-startup); }
.cat-chip[data-cat="援먯쑁"]:hover { background: var(--cat-education-bg); border-color: var(--cat-education); color: var(--cat-education); }
.cat-chip[data-cat="蹂닿굔?섎즺"]:hover { background: var(--cat-health-bg); border-color: var(--cat-health); color: var(--cat-health); }
.cat-chip[data-cat="臾명솕?앺솢"]:hover { background: var(--cat-culture-bg); border-color: var(--cat-culture); color: var(--cat-culture); }
.cat-chip[data-cat="?띾┝?댁뾽"]:hover { background: var(--cat-agriculture-bg); border-color: var(--cat-agriculture); color: var(--cat-agriculture); }

/* ========================================
   Deadline Scroll
   ======================================== */
.deadline-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.deadline-scroll::-webkit-scrollbar { display: none; }
.deadline-card {
    display: flex; flex-direction: column; gap: 8px;
    min-width: 210px; max-width: 260px; padding: 16px 18px;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    text-decoration: none; transition: all 0.2s; flex-shrink: 0;
}
.deadline-card:hover { border-color: var(--danger-500); box-shadow: 0 4px 12px rgba(239,68,68,0.1); text-decoration: none; transform: translateY(-1px); }
.deadline-dday { font-size: 0.8rem; font-weight: 700; color: var(--danger-600); }
.deadline-title { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); line-height: 1.45; }
.deadline-cat { font-size: 0.75rem; color: var(--gray-400); }

/* ========================================
   Section Common
   ======================================== */
.section { padding: 36px 0; }
.section-heading { font-size: 1.35rem; font-weight: 700; color: var(--gray-900); margin-bottom: 24px; }
.section-subheading { font-size: 0.9rem; color: var(--gray-500); margin-top: -16px; margin-bottom: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header .section-heading { margin-bottom: 0; }
.section-more { font-size: 0.875rem; font-weight: 500; color: var(--gray-400); text-decoration: none; white-space: nowrap; }
.section-more:hover { color: var(--primary-600); }
.section-tight { padding: 20px 0; }
.section-cta { text-align: center; padding-top: 28px; }

/* ========================================
   Contact
   ======================================== */
.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    max-width: 720px;
}
.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 800;
}
.contact-form label small {
    color: var(--gray-400);
    font-size: 0.76rem;
    font-weight: 750;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--gray-800);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font: inherit;
}
.contact-form textarea {
    line-height: 1.55;
    resize: vertical;
}
.contact-target {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 11px 12px;
    color: var(--gray-600);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-md);
    font-size: 0.84rem;
}
.contact-target strong {
    color: var(--primary-800);
}
.contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.contact-actions span,
.contact-fallback {
    color: var(--gray-500);
    font-size: 0.84rem;
    line-height: 1.55;
}
.contact-fallback {
    margin-top: 18px;
}

/* ========================================
   Category Grid (legacy)
   ======================================== */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 24px 16px; background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); text-decoration: none; transition: all 0.2s; text-align: center;
}
.category-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.category-card[data-cat="泥?뀈"]:hover { background: var(--cat-youth-bg); border-color: var(--cat-youth); }
.category-card[data-cat="蹂듭?"]:hover { background: var(--cat-welfare-bg); border-color: var(--cat-welfare); }
.category-card[data-cat="二쇨굅"]:hover { background: var(--cat-housing-bg); border-color: var(--cat-housing); }
.category-card[data-cat="怨좎슜"]:hover { background: var(--cat-employment-bg); border-color: var(--cat-employment); }
.category-card[data-cat="李쎌뾽"]:hover { background: var(--cat-startup-bg); border-color: var(--cat-startup); }
.category-card[data-cat="援먯쑁"]:hover { background: var(--cat-education-bg); border-color: var(--cat-education); }
.category-card[data-cat="蹂닿굔?섎즺"]:hover { background: var(--cat-health-bg); border-color: var(--cat-health); }
.category-card[data-cat="臾명솕?앺솢"]:hover { background: var(--cat-culture-bg); border-color: var(--cat-culture); }
.category-card[data-cat="?띾┝?댁뾽"]:hover { background: var(--cat-agriculture-bg); border-color: var(--cat-agriculture); }
.category-card[data-cat="湲고?"]:hover { background: var(--cat-etc-bg); border-color: var(--cat-etc); }
.category-icon { font-size: 2rem; margin-bottom: 8px; }
.category-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.category-count { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }

/* ========================================
   Policy Cards ??Gradient accent bar
   ======================================== */
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.policy-list-view .policy-grid { grid-template-columns: 1fr; }
.policy-card {
    display: flex; background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); overflow: hidden; transition: all 0.25s;
}
.policy-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gray-300); transform: translateY(-2px); }
.card-accent { width: 5px; flex-shrink: 0; background: var(--gray-300); }
.card-accent[data-cat="泥?뀈"] { background: linear-gradient(180deg, var(--cat-youth) 0%, #6366F1 100%); }
.card-accent[data-cat="蹂듭?"] { background: linear-gradient(180deg, var(--cat-welfare) 0%, #EC4899 100%); }
.card-accent[data-cat="二쇨굅"] { background: linear-gradient(180deg, var(--cat-housing) 0%, #10B981 100%); }
.card-accent[data-cat="怨좎슜"] { background: linear-gradient(180deg, var(--cat-employment) 0%, #3B82F6 100%); }
.card-accent[data-cat="李쎌뾽"] { background: linear-gradient(180deg, var(--cat-startup) 0%, #F97316 100%); }
.card-accent[data-cat="援먯쑁"] { background: linear-gradient(180deg, var(--cat-education) 0%, #8B5CF6 100%); }
.card-accent[data-cat="蹂닿굔?섎즺"] { background: linear-gradient(180deg, var(--cat-health) 0%, #EF4444 100%); }
.card-accent[data-cat="臾명솕?앺솢"] { background: linear-gradient(180deg, var(--cat-culture) 0%, #06B6D4 100%); }
.card-accent[data-cat="?띾┝?댁뾽"] { background: linear-gradient(180deg, var(--cat-agriculture) 0%, #22C55E 100%); }
.card-accent[data-cat="湲고?"] { background: linear-gradient(180deg, var(--cat-etc) 0%, #64748B 100%); }
.card-body { padding: 18px 22px; flex: 1; min-width: 0; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    padding: 3px 10px; border-radius: var(--radius-full); line-height: 1.5;
}
.badge-active { background: var(--success-500); color: #fff; }
.badge-upcoming { background: var(--warning-500); color: #fff; }
.badge-closed { background: var(--gray-400); color: #fff; }
.badge-category { background: var(--gray-100); color: var(--gray-600); }
.badge-dday { background: var(--danger-50); color: var(--danger-600); font-weight: 700; }
.badge-source { background: var(--primary-50); color: var(--primary-600); }
.card-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 1.02rem; font-weight: 600; color: var(--gray-900); line-height: 1.45;
    margin-bottom: 8px; text-decoration: none;
}
.card-title:hover { color: var(--primary-600); text-decoration: none; }
.card-summary {
    font-size: 0.875rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--gray-400); }
.meta-divider { color: var(--gray-300); }

/* ========================================
   Filter Bar
   ======================================== */
.filter-bar { background: #fff; border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 24px; border: 1px solid var(--gray-200); }
.filter-form { display: flex; flex-direction: column; gap: 12px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
    display: inline-block; padding: 7px 16px; font-size: 0.9rem; font-weight: 500;
    color: var(--gray-600); background: var(--gray-100); border-radius: var(--radius-full);
    border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: all 0.15s;
}
.chip:hover { background: var(--primary-50); color: var(--primary-600); text-decoration: none; }
.chip-active { background: var(--primary-600); color: #fff; border-color: var(--primary-600); }
.chip-active:hover { background: var(--primary-700); color: #fff; }
.filter-dropdowns { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-select {
    padding: 8px 36px 8px 14px; font-size: 0.9rem; font-family: var(--font-sans);
    border: 1px solid var(--gray-200); border-radius: var(--radius-md);
    background: #fff; color: var(--gray-700); cursor: pointer; outline: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.filter-select:focus { border-color: var(--primary-400); box-shadow: 0 0 0 3px var(--primary-100); }

/* ========================================
   Policy List App View
   ======================================== */
.policy-list-page {
    padding-top: 18px;
}
.list-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    margin-bottom: 14px;
}
.list-hero-main {
    display: grid;
    gap: 13px;
    padding: 26px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20,83,45,0.92), rgba(15,23,42,0.96)),
        radial-gradient(circle at 88% 18%, rgba(59,130,246,0.32), transparent 34%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    box-shadow: 0 18px 46px rgba(15,23,42,0.18);
}
.list-eyebrow {
    width: max-content;
    max-width: 100%;
    padding: 6px 12px;
    color: #CFFAFE;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(207,250,254,0.24);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}
.list-hero-main h1 {
    margin: 0;
    font-size: clamp(1.72rem, 2.8vw, 2.52rem);
    line-height: 1.18;
    letter-spacing: 0;
}
.list-hero-main p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 0.98rem;
    line-height: 1.68;
}
.list-search {
    display: flex;
    gap: 8px;
    width: min(100%, 660px);
    padding: 7px;
    background: rgba(255,255,255,0.98);
    border-radius: 19px;
    box-shadow: 0 14px 34px rgba(15,23,42,0.18);
}
.list-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 12px;
    color: var(--gray-900);
    font: inherit;
    font-size: 0.94rem;
    background: transparent;
}
.list-search button {
    min-width: 74px;
    min-height: 46px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: #111827;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}
.list-hero-stats {
    display: grid;
    gap: 10px;
}
.list-stat-tile {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 92px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(148,163,184,0.26);
    border-radius: 22px;
    color: var(--gray-700);
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(15,23,42,0.07);
}
.list-stat-tile:hover {
    transform: translateY(-1px);
    text-decoration: none;
}
.list-stat-tile.active {
    border-color: rgba(20,184,166,0.4);
    background: #ECFDF5;
}
.list-stat-tile span {
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 800;
}
.list-stat-tile strong {
    color: var(--gray-950);
    font-size: 1.34rem;
    line-height: 1;
}
.list-segment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px;
    background: #E7E5E4;
    border-radius: 17px;
}
.list-segment-item {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 13px;
    color: #57534E;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
}
.list-segment-item.active {
    color: #111827;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}
.list-segment-item:hover {
    text-decoration: none;
}
.list-category-strip {
    display: flex;
    gap: 9px;
    margin: 0 0 15px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.list-category-strip::-webkit-scrollbar {
    display: none;
}
.list-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px 0 10px;
    background: #fff;
    border: 1px solid rgba(148,163,184,0.24);
    border-radius: 999px;
    color: var(--gray-800);
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
}
.list-category-pill span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: #F0FDFA;
    border-radius: 50%;
}
.list-category-pill:hover {
    border-color: rgba(20,184,166,0.42);
    color: #0F766E;
    text-decoration: none;
}
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
}
.list-toolbar div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.list-toolbar span {
    color: var(--gray-500);
    font-size: 0.88rem;
    font-weight: 800;
}
.list-toolbar strong {
    color: var(--gray-950);
    font-size: 1.2rem;
}
.list-toolbar nav {
    display: flex;
    gap: 5px;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 999px;
}
.list-toolbar nav a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}
.list-toolbar nav a.active {
    color: #fff;
    background: #111827;
}
.policy-list-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}
.policy-list-grid .policy-card {
    min-height: 154px;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15,23,42,0.055);
}
.policy-list-grid .policy-card:hover {
    transform: translateY(-1px);
}
.policy-list-grid .card-accent {
    width: 4px;
}
.policy-list-grid .card-body {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
}
.policy-list-grid .card-badges {
    margin-bottom: 0;
}
.policy-list-grid .card-title {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.42;
}
.policy-list-grid .card-summary {
    margin-bottom: 0;
    color: #6B7280;
    line-height: 1.5;
}
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}
.card-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 32px;
    padding: 0 12px;
    color: #0F766E;
    background: #CCFBF1;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}
.card-action:hover {
    color: #115E59;
    text-decoration: none;
}

/* ========================================
   Search Page
   ======================================== */
.search-box { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; border: 1px solid var(--gray-200); }
.search-input-wrap { display: flex; gap: 10px; }
.search-input-wrap input {
    flex: 1; padding: 12px 16px; font-size: 1.05rem; font-family: var(--font-sans);
    border: 1px solid var(--gray-200); border-radius: var(--radius-md); outline: none;
    color: var(--gray-800); transition: border-color 0.15s;
}
.search-input-wrap input:focus { border-color: var(--primary-400); box-shadow: 0 0 0 3px var(--primary-100); }
.search-input-wrap button {
    background: var(--brand-gradient); color: #fff; border: none;
    padding: 12px 24px; font-size: 0.95rem; font-weight: 600; font-family: var(--font-sans);
    border-radius: var(--radius-md); cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
}
.search-input-wrap button:hover { opacity: 0.9; }
.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.trending-tags a {
    color: var(--gray-600); border: 1px solid var(--gray-200); padding: 5px 14px;
    font-size: 0.85rem; border-radius: var(--radius-full); transition: all 0.15s; text-decoration: none;
}
.trending-tags a:hover { background: var(--primary-50); border-color: var(--primary-300); color: var(--primary-600); text-decoration: none; }

/* ========================================
   Community
   ======================================== */
.community-page {
    padding-top: 24px;
}
.community-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    margin-bottom: 16px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(145deg, #111827 0%, #24324A 58%, #30557A 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(17,24,39,0.14);
}
.community-hero-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
}
.community-kicker {
    width: max-content;
    padding: 5px 10px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 850;
}
.community-hero-copy h1 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 850;
    line-height: 1.28;
    word-break: keep-all;
}
.community-hero-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.94rem;
    line-height: 1.7;
    word-break: keep-all;
}
.community-hero-side {
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-width: 0;
}
.community-stats {
    display: grid;
    gap: 8px;
}
.community-stats span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 0 12px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 13px;
    font-size: 0.78rem;
    font-weight: 700;
}
.community-stats strong {
    color: #fff;
    font-size: 1rem;
}
.community-linked {
    margin-top: 6px;
    color: rgba(255,255,255,0.76);
    font-size: 0.86rem;
    line-height: 1.55;
}
.community-linked a {
    color: #fff;
    font-weight: 800;
}
.community-board-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.community-board-tab {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px 13px;
    color: var(--gray-600);
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    text-decoration: none;
    transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}
.community-board-tab span {
    color: var(--gray-900);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.2;
}
.community-board-tab small {
    color: var(--gray-400);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.community-board-tab:hover,
.community-board-tab.active {
    color: var(--primary-700);
    background: #fff;
    border-color: var(--primary-200);
    text-decoration: none;
    transform: translateY(-1px);
}
.community-board-tab.active span {
    color: var(--primary-700);
}
.community-compose-link {
    flex-shrink: 0;
    justify-content: center;
}
.community-prompt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.community-prompt-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 15px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.community-prompt-card:hover {
    border-color: var(--primary-200);
    box-shadow: 0 10px 24px rgba(28,25,23,0.06);
    transform: translateY(-1px);
}
.community-prompt-card span {
    color: var(--primary-700);
    font-size: 0.75rem;
    font-weight: 850;
}
.community-prompt-card strong {
    color: var(--gray-900);
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: keep-all;
}
.community-composer {
    margin-bottom: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(28,25,23,0.06);
}
.composer-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.composer-intro strong {
    color: var(--gray-900);
    font-size: 1rem;
}
.composer-intro span {
    color: var(--gray-400);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: right;
}
.community-safety-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    color: var(--gray-600);
    background: var(--warning-50);
    border: 1px solid #FDE68A;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.55;
    word-break: keep-all;
}
.community-safety-note a {
    color: var(--primary-700);
    font-weight: 850;
}
.community-safety-note p {
    margin: 0 0 6px;
}
.community-safety-note p:last-child {
    margin-bottom: 0;
}
.community-report-link {
    width: max-content;
    color: var(--primary-700);
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.community-composer form {
    display: grid;
    gap: 10px;
}
.community-composer input,
.community-composer textarea,
.community-composer select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
    color: var(--gray-800);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
}
.community-composer input,
.community-composer select {
    min-height: 44px;
    padding: 0 12px;
}
.community-composer select {
    max-width: 180px;
}
.community-composer textarea {
    resize: vertical;
    min-height: 120px;
    padding: 12px;
    line-height: 1.65;
}
.community-composer input:focus,
.community-composer textarea:focus,
.community-composer select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}
.composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.composer-actions span {
    color: var(--gray-500);
    font-size: 0.84rem;
}
.composer-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.community-feed {
    display: grid;
    gap: 14px;
}
.community-post {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(28,25,23,0.05);
    transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.community-post:hover {
    border-color: var(--primary-100);
    box-shadow: 0 16px 34px rgba(28,25,23,0.08);
    transform: translateY(-1px);
}
.community-post-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary-600), var(--accent-500));
    border-radius: 16px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(79,70,229,0.16);
}
.community-post-bot .community-post-avatar {
    color: var(--gray-900);
    background: #EAFBF7;
    box-shadow: none;
}
.community-post-main {
    display: grid;
    gap: 9px;
    min-width: 0;
}
.community-post-head,
.community-post-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.community-post-head {
    justify-content: space-between;
}
.community-post-head > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}
.community-author,
.community-date,
.community-post-foot {
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 700;
}
.community-source-pill {
    padding: 3px 8px;
    color: var(--accent-600);
    background: var(--accent-50);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 850;
}
.community-post-context {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.community-post-context span {
    padding: 4px 9px;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
}
.community-post-context span:first-child {
    color: var(--primary-700);
    background: var(--primary-50);
}
.community-post h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.08rem;
    line-height: 1.45;
    word-break: keep-all;
}
.community-post h2 a {
    color: inherit;
    text-decoration: none;
}
.community-post h2 a:hover {
    color: var(--primary-700);
}
.community-post p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.94rem;
    line-height: 1.78;
    white-space: pre-wrap;
    word-break: keep-all;
}
.community-policy-link {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #F8FAFF 0%, #EEF2FF 100%);
    border: 1px solid var(--primary-100);
    color: var(--primary-700);
    text-decoration: none;
}
.community-policy-link span {
    color: var(--primary-500);
    font-size: 0.72rem;
    font-weight: 850;
}
.community-policy-link strong {
    color: var(--primary-800);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.community-policy-link:hover {
    background: var(--primary-100);
    text-decoration: none;
}
.community-comments {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}
.community-comments.is-empty {
    display: none;
}
.community-comment {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    background: #FAFAF9;
    border: 1px solid var(--gray-100);
    border-radius: 14px;
}
.community-comment strong {
    color: var(--gray-800);
    font-size: 0.78rem;
}
.community-comment-badge {
    width: max-content;
    padding: 2px 7px;
    color: var(--accent-700);
    background: rgba(20,184,166,0.1);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 850;
}
.community-comment p {
    color: var(--gray-600);
    font-size: 0.86rem;
    line-height: 1.58;
}
.community-comment time {
    color: var(--gray-400);
    font-size: 0.72rem;
    font-weight: 700;
}
.community-comment-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.community-comment-foot .community-report-link {
    color: var(--gray-500);
    font-size: 0.72rem;
}
.community-reply-nudge {
    padding: 11px 12px;
    color: var(--gray-600);
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.55;
}
.community-reply-box {
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
}
.community-reply-box summary {
    cursor: pointer;
    padding: 10px 12px;
    color: var(--primary-700);
    font-size: 0.84rem;
    font-weight: 850;
    list-style: none;
}
.community-reply-box summary::-webkit-details-marker {
    display: none;
}
.community-reply-box form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 12px 12px;
}
.community-reply-box textarea,
.community-reply-box input {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
    color: var(--gray-800);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    outline: none;
}
.community-reply-box input {
    height: 40px;
    padding: 0 10px;
}
.community-reply-box textarea {
    min-height: 74px;
    padding: 10px;
    resize: vertical;
    grid-column: 1;
}
.community-reply-box textarea:focus,
.community-reply-box input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}
.community-comment-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.community-comment-actions span {
    color: var(--gray-500);
    font-size: 0.78rem;
    line-height: 1.45;
}
.community-comment-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.btn-sm {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
}
.community-post-foot {
    padding-top: 4px;
}
.community-post-foot a {
    margin-left: auto;
    color: var(--primary-700);
    font-weight: 850;
    text-decoration: none;
}
.community-post-foot a:hover {
    text-decoration: underline;
}

/* ========================================
   Detail Page ???ш쾶, ?쒖썝?섍쾶
   ======================================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray-400); padding: 20px 0; }
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-600); }
.bc-sep { color: var(--gray-300); flex-shrink: 0; font-size: 0.8rem; }
.bc-current { color: var(--gray-700); font-weight: 500; }

.detail-page { max-width: 960px; margin: 0 auto; }
.detail-header { margin-bottom: 36px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.detail-badges .badge { font-size: 0.8rem; padding: 4px 12px; }
.detail-title { font-size: 1.85rem; font-weight: 800; color: var(--gray-900); line-height: 1.35; margin-bottom: 12px; }
.detail-meta-row { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: var(--gray-400); }

/* Detail: Top CTA */
.detail-top-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.detail-top-cta .btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.detail-top-cta .btn-ghost { font-size: 0.9rem; }

/* Detail: Text blocks */
.detail-text {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 鍮?以??곗냽 br) 媛꾧꺽 媛뺥솕 */
.detail-text br + br { display: block; content: ''; margin-top: 10px; }

/* "?? ?뱀뀡 ?ㅻ뜑 */
.detail-text .item-section {
    display: block;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--primary-700, #4F46E5);
    margin-top: 18px;
    margin-bottom: 8px;
    padding-left: 0;
}
.detail-text .item-section:first-child { margin-top: 0; }

/* "- " 遺덈┸ */
.detail-text .item-bullet {
    display: block;
    padding-left: 22px;
    position: relative;
    margin: 4px 0;
}
.detail-text .item-bullet::before {
    content: '??;
    position: absolute;
    left: 8px;
    top: 0;
    color: var(--primary-500, #4F46E5);
    font-weight: 700;
}

/* "쨌" ?쒕툕 遺덈┸ (???④퀎 ???ㅼ뿬?곌린) */
.detail-text .item-subbullet {
    display: block;
    padding-left: 38px;
    position: relative;
    margin: 2px 0;
    color: var(--gray-600);
    font-size: 0.98rem;
}
.detail-text .item-subbullet::before {
    content: '쨌';
    position: absolute;
    left: 26px;
    top: 0;
    color: var(--gray-400);
    font-weight: 700;
}

/* "1李?2李?3李? ?④퀎 移대뱶 */
.detail-text .step-item {
    background: var(--gray-50, #F9FAFB);
    border-left: 3px solid var(--primary-500, #4F46E5);
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
}

/* "?? ?명듃 諛뺤뒪 */
.detail-text .note {
    color: var(--gray-700);
    font-size: 0.95rem;
    background: #FFFBEB;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 12px 0;
    border-left: 3px solid #F59E0B;
}

.info-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 20px; }
.info-card-heading { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); }

.detail-section { margin-bottom: 20px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px 28px; }
.detail-section .label { color: var(--gray-800); font-weight: 600; margin-bottom: 12px; font-size: 1.05rem; }
.detail-section .label::before { content: ''; }
.detail-section .label::after { content: ''; }
.detail-section .value { color: var(--gray-600); line-height: 1.8; white-space: pre-wrap; font-size: 1rem; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 10px 0; font-size: 1rem; line-height: 1.6; }
.info-table .info-label { color: var(--gray-500); font-weight: 600; width: 100px; padding-right: 16px; white-space: nowrap; vertical-align: top; }
.info-table .info-value { color: var(--gray-700); }
.info-table tr + tr td { border-top: 1px solid var(--gray-100); }

.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--gray-200); margin-top: 36px; }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; font-size: 0.95rem; font-weight: 600; font-family: var(--font-sans);
    border-radius: var(--radius-md); border: 1px solid transparent;
    cursor: pointer; text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.btn-primary:hover { opacity: 0.9; color: #fff; text-decoration: none; box-shadow: var(--shadow-glow); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--primary-400); color: var(--primary-600); background: var(--primary-50); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--gray-500); }
.btn-ghost:hover { color: var(--gray-700); background: var(--gray-100); text-decoration: none; }
.apply-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-gradient); color: #fff; padding: 12px 28px;
    font-size: 0.95rem; font-weight: 600; border: none; border-radius: var(--radius-md);
    cursor: pointer; text-decoration: none; transition: opacity 0.15s; white-space: nowrap;
}
.apply-btn:hover { opacity: 0.9; color: #fff; text-decoration: none; }

/* ========================================
   Pagination
   ======================================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 36px 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px; font-size: 0.9rem;
    border-radius: var(--radius-md); text-decoration: none; transition: all 0.15s;
}
.pagination a { color: var(--gray-600); border: 1px solid var(--gray-200); background: #fff; }
.pagination a:hover { background: var(--primary-50); border-color: var(--primary-300); color: var(--primary-600); text-decoration: none; }
.pagination .current { background: var(--primary-600); color: #fff; border: 1px solid var(--primary-600); font-weight: 600; }
.pagination .disabled { color: var(--gray-300); border: 1px solid var(--gray-100); cursor: not-allowed; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
    color: var(--gray-500);
    padding: 34px 0 28px;
    margin-top: 50px;
    border-top: 1px solid var(--gray-200);
    background: rgba(255,255,255,0.72);
}
.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 22px;
}
.footer-brand-block {
    min-width: 0;
}
.footer-logo {
    font-size: 1.12rem;
    font-weight: 850;
    color: var(--primary-700);
}
.footer-desc {
    max-width: 320px;
    margin-top: 8px;
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.65;
    word-break: keep-all;
}
.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}
.footer-links span {
    margin-bottom: 2px;
    color: var(--gray-900);
    font-size: 0.8rem;
    font-weight: 850;
}
.footer-links a {
    width: max-content;
    max-width: 100%;
    color: var(--gray-500);
    font-size: 0.86rem;
    line-height: 1.45;
    text-decoration: none;
    white-space: nowrap;
    word-break: keep-all;
}
.footer-links a:hover {
    color: var(--primary-700);
}
.footer-bottom {
    display: grid;
    gap: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-400);
    font-size: 0.78rem;
}
.footer-disclaimer {
    color: var(--gray-400);
    font-size: 0.74rem;
    line-height: 1.6;
    word-break: keep-all;
}
.footer-business {
    color: var(--gray-500);
    font-size: 0.76rem;
    line-height: 1.65;
    word-break: keep-all;
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 24px 0 26px;
        margin-top: 28px;
        background: transparent;
    }
    .site-footer .container {
        max-width: 748px;
        padding: 0;
    }
    .footer-shell {
        grid-template-columns: 1fr 0.72fr 0.72fr 0.88fr;
        gap: 18px;
        padding: 22px 0;
    }
}

@media (max-width: 900px) {
    .footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-brand-block {
        grid-column: 1 / -1;
    }
}

.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200); z-index: 100;
    padding: 8px 0; padding-bottom: env(safe-area-inset-bottom, 8px); justify-content: space-around;
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1;
    min-width: 0;
    font-size: 0.7rem; color: var(--gray-400); text-decoration: none; padding: 4px 8px;
    font-weight: 700;
    text-align: center;
}
.bottom-nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 22px;
}
.bottom-nav-icon svg {
    width: 19px;
    height: 19px;
}
.bottom-nav-item.active { color: var(--primary-600); }
.bottom-nav-item:hover { color: var(--primary-500); text-decoration: none; }

/* ========================================
   Empty State & Animations
   ======================================== */
.empty-state { text-align: center; padding: 56px 16px; color: var(--gray-500); }
.empty-state p { font-size: 1rem; }
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .policy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .mobile-bottom-nav { display: none !important; }
}
@media (min-width: 1024px) {
    .category-grid { grid-template-columns: repeat(5, 1fr); }
    .header-nav { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* Mobile: < 640px */
@media (max-width: 639px) {
    .container { padding: 0 16px; }
    .header-inner { height: 56px; }
    .header-nav { display: none; }
    .category-strip { top: 56px; padding: 8px 0; }
    .cat-chip { padding: 6px 12px; font-size: 0.8rem; }
    .deadline-card { min-width: 180px; padding: 14px; }
    .hero.hero-compact { padding: 24px 0 20px; }
    .hero.hero-compact .hero-title { font-size: 1.35rem; }
    .hero::before, .hero::after { display: none; }
    .mobile-menu-btn {
        display: flex; flex-direction: column; gap: 5px;
        background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
    }
    .mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--gray-600); }
    .header-nav.nav-open {
        display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0;
        background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--gray-200); padding: 12px 16px; box-shadow: var(--shadow-md); gap: 4px;
    }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 72px; }
    .hero { padding: 32px 0 24px; }
    .hero-title { font-size: 1.5rem; }
    .search-input-group { flex-direction: column; border-radius: var(--radius-lg); padding: 8px; }
    .search-input-group .search-icon { display: none; }
    .search-input-group input { width: 100%; padding: 12px; }
    .search-input-group button { width: 100%; border-radius: var(--radius-md); }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { padding: 16px 10px; }
    .category-icon { font-size: 1.5rem; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 16px 10px; }
    .stat-number { font-size: 1.25rem; }
    .policy-grid { grid-template-columns: 1fr; }
    .filter-bar { position: static; padding: 12px; }
    .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
    .filter-dropdowns { flex-direction: column; }
    .detail-title { font-size: 1.4rem; }
    .detail-meta-row { font-size: 0.825rem; }
    .detail-top-cta { flex-direction: column; }
    .detail-top-cta .btn { width: 100%; justify-content: center; text-align: center; }
    .detail-text { font-size: 0.95rem; line-height: 1.75; }
    .detail-text .item-section { font-size: 1rem; margin-top: 14px; }
    .detail-text .item-bullet { padding-left: 18px; }
    .detail-text .item-bullet::before { left: 4px; }
    .detail-text .item-subbullet { padding-left: 30px; font-size: 0.92rem; }
    .detail-text .item-subbullet::before { left: 18px; }
    .detail-text .step-item { padding: 10px 12px; }
    .info-card { padding: 20px 18px; }
    .info-card-heading { font-size: 1.05rem; }
    .info-table td { font-size: 0.9rem; padding: 8px 0; }
    .info-table .info-label { width: 78px; font-size: 0.85rem; }
    .detail-cta { flex-direction: column; }
    .detail-cta .btn, .detail-cta .apply-btn { width: 100%; justify-content: center; text-align: center; }
    .detail-mobile-action {
        position: fixed;
        left: 50%;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        z-index: 105;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        width: min(calc(100% - 24px), 520px);
        padding: 8px;
        transform: translateX(-50%);
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(214,211,209,0.86);
        border-radius: 22px;
        box-shadow: 0 -12px 30px rgba(15,23,42,0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .detail-mobile-action a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 16px;
        font-size: 0.88rem;
        font-weight: 900;
        text-decoration: none;
        white-space: nowrap;
    }
    .detail-mobile-primary {
        color: #fff;
        background: #14532D;
    }
    .detail-mobile-primary:hover {
        color: #fff;
        text-decoration: none;
    }
    .detail-mobile-secondary {
        color: #14532D;
        background: #DCFCE7;
    }
    .detail-mobile-secondary:hover {
        color: #14532D;
        text-decoration: none;
    }
    .footer-shell { grid-template-columns: 1fr; gap: 18px; }
    .footer-links { gap: 10px; }
    .search-input-wrap { flex-direction: column; }
    .search-input-wrap input, .search-input-wrap button { width: 100%; }
    .community-hero-panel {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 20px;
    }
    .community-hero-copy h1 { font-size: 1.35rem; }
    .community-hero-side { align-content: start; }
    .community-board-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .community-board-tabs::-webkit-scrollbar { display: none; }
    .community-board-tab {
        min-width: 128px;
        padding: 11px 12px;
    }
    .community-prompt-grid { grid-template-columns: 1fr; }
    .composer-intro {
        align-items: flex-start;
        flex-direction: column;
    }
    .composer-intro span { text-align: left; }
    .community-compose-link { width: 100%; justify-content: center; }
    .community-composer select { max-width: none; }
    .composer-actions { align-items: stretch; flex-direction: column; }
    .composer-actions button { justify-content: center; }
    .community-post {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 15px;
        border-radius: 18px;
    }
    .community-post-avatar {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
    .community-post-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .community-reply-box form {
        grid-template-columns: 1fr;
    }
    .community-reply-box textarea {
        grid-column: 1;
    }
    .community-comment-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .community-comment-actions button {
        justify-content: center;
    }
    .community-post-foot a {
        width: 100%;
        margin-left: 0;
    }
}

/* ========================================
   GEO: ?듭떖 ?붿빟
   ======================================== */
.geo-summary {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
    border-left: 4px solid var(--primary-500);
    border-radius: 12px;
}
.geo-summary-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 8px;
}
.geo-summary-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin: 0;
}

/* ========================================
   AEO: FAQ ?쒓컖??   ======================================== */
.aeo-faq {
    background: var(--gray-50);
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.faq-item + .faq-item {
    margin-top: 10px;
}
.faq-item[open] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-question {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before {
    content: 'Q.';
    flex-shrink: 0;
    font-weight: 800;
    color: var(--primary-500);
    font-size: 0.9rem;
}
.faq-question::after {
    content: '';
    margin-left: auto;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 18px 16px 42px;
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--gray-600);
}

/* ????? 愿??移댄럹 湲 (?ㅼ씠踰?移댄럹 ?꾧린) ????? */
.cafe-section .cafe-subheading {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin: -4px 0 14px;
    line-height: 1.55;
}
.cafe-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.cafe-item {
    margin: 0;
}
.cafe-item a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md, 8px);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cafe-item a:hover,
.cafe-item a:focus-visible {
    border-color: var(--primary-300);
    background: var(--primary-50);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.cafe-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cafe-description {
    margin: 4px 0 6px;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cafe-meta {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--gray-500);
}
.cafe-item a:hover .cafe-meta,
.cafe-item a:focus-visible .cafe-meta {
    color: var(--primary-600);
}
.cafe-disclaimer {
    margin: 14px 0 0;
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.55;
}

@media (max-width: 720px) {
    .cafe-item a { padding: 10px 12px; }
    .cafe-title { font-size: 0.92rem; }
    .cafe-description { font-size: 0.82rem; }
}

@media (min-width: 1024px) {
    .app-main .container {
        max-width: 820px;
        padding-left: 0;
        padding-right: 0;
    }
    .app-main .policy-grid,
    .app-main .policy-list-view .policy-grid {
        grid-template-columns: 1fr;
    }
    .app-main .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ========================================
   Community Board
   ======================================== */
.community-board-page {
    padding-top: 22px;
}
.community-board-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    margin-bottom: 14px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(145deg, #111827 0%, #1F2937 56%, #28435F 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(17,24,39,0.13);
}
.community-board-hero h1 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.18;
}
.community-board-hero p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.94rem;
    line-height: 1.65;
    word-break: keep-all;
}
.community-board-actions {
    display: grid;
    align-content: space-between;
    gap: 12px;
}
.community-board-summary {
    display: grid;
    gap: 7px;
}
.community-board-summary span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 11px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 750;
}
.community-board-summary strong {
    color: #fff;
    font-size: 0.96rem;
}
.community-board-shell,
.community-detail,
.community-detail-comments {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(28,25,23,0.06);
    overflow: hidden;
}
.community-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
}
.community-board-head > div {
    display: grid;
    gap: 2px;
}
.community-board-head span {
    color: var(--primary-700);
    font-size: 0.76rem;
    font-weight: 900;
}
.community-board-head strong {
    color: var(--gray-900);
    font-size: 1rem;
    line-height: 1.35;
}
.community-board-head a {
    color: var(--gray-700);
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}
.community-board-head a:hover {
    color: var(--primary-700);
}
.community-board-list {
    display: grid;
}
.community-pagination {
    padding: 18px;
    border-top: 1px solid var(--gray-100);
    background: #fff;
}
.community-board-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
        "type subject"
        "type meta";
    gap: 7px 16px;
    align-items: start;
    min-height: 92px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
}
.community-board-row:last-child {
    border-bottom: 0;
}
.community-board-row-head {
    grid-template-columns: 84px minmax(0, 1fr) 180px;
    grid-template-areas: none;
    min-height: 42px;
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--gray-400);
    background: var(--gray-50);
    font-size: 0.76rem;
    font-weight: 850;
}
.community-board-type {
    grid-area: type;
    display: grid;
    gap: 4px;
    justify-items: start;
    padding-top: 2px;
}
.community-board-type span {
    padding: 4px 9px;
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}
.community-board-type small {
    color: var(--accent-600);
    font-size: 0.7rem;
    font-weight: 850;
}
.community-board-subject {
    grid-area: subject;
    display: grid;
    gap: 4px;
    min-width: 0;
}
.community-board-subject h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.42;
}
.community-board-subject h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    text-decoration: none;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.community-board-subject h2 a:hover {
    color: var(--primary-700);
}
.community-board-subject p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--gray-500);
    font-size: 0.84rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.community-board-policy {
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    color: var(--accent-600);
    font-size: 0.76rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.community-board-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    min-width: 0;
    padding-top: 2px;
}
.community-board-author,
.community-board-replies,
.community-board-date {
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.community-board-author {
    max-width: min(220px, 100%);
}
.community-board-replies {
    color: var(--gray-600);
}
.community-detail-page {
    padding-top: 18px;
}
.community-detail {
    padding: 0;
}
.community-detail-head {
    display: grid;
    gap: 10px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
}
.community-detail-head h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.32;
    word-break: keep-all;
}
.community-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--gray-500);
    font-size: 0.84rem;
    font-weight: 750;
}
.community-detail-policy {
    display: grid;
    gap: 3px;
    margin: 18px 24px 0;
    padding: 14px 16px;
    color: var(--primary-700);
    background: linear-gradient(180deg, #F8FAFF 0%, #EEF2FF 100%);
    border: 1px solid var(--primary-100);
    border-radius: 16px;
    text-decoration: none;
}
.community-detail-policy span {
    color: var(--primary-500);
    font-size: 0.74rem;
    font-weight: 900;
}
.community-detail-policy strong {
    color: var(--primary-800);
    font-size: 0.94rem;
    line-height: 1.45;
}
.community-detail-body {
    padding: 22px 24px 26px;
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: keep-all;
}
.community-detail-safety-note {
    margin: 0 24px 24px;
}
.community-detail-comments {
    margin-top: 16px;
}
.community-detail-comments .community-comments {
    padding: 16px 18px;
}
.community-detail-comments .community-comments.is-empty {
    display: block;
    padding: 18px;
}
.community-detail-comments .community-comments.is-empty::before {
    content: '?꾩쭅 ?볤????놁뒿?덈떎.';
    color: var(--gray-500);
    font-size: 0.9rem;
}
.community-detail-reply {
    margin: 0 18px 18px;
}

@media (max-width: 720px) {
    .community-board-hero {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 20px;
    }
    .community-board-hero h1 {
        font-size: 1.55rem;
    }
    .community-board-actions .btn {
        min-width: 0;
        overflow: hidden;
        white-space: normal;
    }
    .detail-page,
    .detail-header,
    .detail-top-cta,
    .info-card,
    .detail-section,
    .community-composer,
    .community-board-shell,
    .community-detail,
    .community-detail-comments {
        min-width: 0;
        max-width: 100%;
    }
    .detail-top-cta .btn {
        min-width: 0;
        overflow: hidden;
        white-space: normal;
    }
    .detail-page {
        padding-bottom: 76px;
    }
    .community-board-actions .btn {
        justify-content: center;
        width: 100%;
    }
    .community-board-row,
    .community-board-row-head {
        grid-template-columns: 1fr;
    }
    .community-board-row-head {
        display: none;
    }
    .community-board-row {
        grid-template-areas:
            "type"
            "subject"
            "meta";
        gap: 8px;
        padding: 15px;
        align-items: start;
    }
    .community-board-type {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .community-board-meta {
        gap: 6px 10px;
    }
    .community-board-author::before {
        content: '?묒꽦??';
        color: var(--gray-400);
    }
    .community-board-replies::before {
        content: '';
    }
    .community-detail-head,
    .community-detail-body {
        padding-left: 18px;
        padding-right: 18px;
    }
    .community-detail-head h1 {
        font-size: 1.34rem;
    }
    .community-detail-policy {
        margin-left: 18px;
        margin-right: 18px;
    }
    .community-detail-safety-note {
        margin-left: 18px;
        margin-right: 18px;
    }
}

/* App wrapper: keep the web structure, add bottom tabs for app/mobile widths. */
body {
    overflow-x: hidden;
}
.category-chips,
.gb-category-band {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 900px) {
    body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }
    .header-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }
    .mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--gray-600);
    }
    .header-nav.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        gap: 4px;
        padding: 12px 16px;
        background: rgba(255,255,255,0.95);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .mobile-bottom-nav {
        left: 50%;
        right: auto;
        display: flex !important;
        bottom: 14px;
        width: min(calc(100% - 32px), 680px);
        transform: translateX(-50%);
        border: 1px solid rgba(214,211,209,0.78);
        border-radius: 24px;
        padding: 10px 12px;
        box-shadow: 0 -12px 28px rgba(15,23,42,0.08);
    }
    .bottom-nav-item {
        border-radius: 16px;
        padding: 7px 8px;
        transition: background 0.16s, color 0.16s;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        background: var(--primary-50);
    }
}

/* Final mobile app pass: keep this at EOF so older web/mobile rules cannot override it. */
@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    body {
        background: #F6F7F4;
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .site-header,
    .app-topbar,
    .site-footer {
        display: none !important;
    }
    .app-shell,
    .app-frame,
    .app-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }
    .app-mobile-header {
        position: sticky;
        top: 0;
        z-index: 120;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
        background: rgba(246,247,244,0.92);
        border-bottom: 1px solid rgba(214,211,209,0.62);
        overflow: hidden;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .app-mobile-brand,
    .app-mobile-brand span:last-child {
        min-width: 0;
    }
    .container,
    .app-main .container {
        max-width: 680px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .gb-hero {
        padding: 12px 0 6px;
    }
    .gb-hero-grid {
        width: 100%;
        max-width: 680px;
        min-width: 0;
        overflow: hidden;
        grid-template-columns: 1fr;
    }
    .gb-hero-copy,
    .gb-action-panel,
    .community-board-hero,
    .detail-page,
    .detail-top-cta,
    .info-card,
    .community-board-shell,
    .community-composer,
    .community-detail,
    .community-detail-comments {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    .gb-hero-copy {
        gap: 13px;
        padding: 20px 18px 18px;
        border-radius: 22px;
    }
    .gb-hero-label-row {
        align-items: flex-start;
    }
    .gb-live-count {
        font-size: 0.76rem;
    }
    .gb-hero-copy h1 {
        font-size: 1.46rem;
        line-height: 1.28;
    }
    .gb-hero-copy p {
        font-size: 0.86rem;
        line-height: 1.58;
    }
    .gb-hero-highlights {
        gap: 6px;
    }
    .gb-hero-highlights a {
        min-height: 28px;
        padding: 0 9px;
        font-size: 0.72rem;
    }
    .gb-hero-copy .gb-government-note {
        font-size: 0.72rem;
    }
    .gb-search {
        min-height: 52px;
        border-radius: 17px;
    }
    .gb-search input {
        font-size: 0.88rem;
    }
    .gb-search button {
        min-width: 58px;
        min-height: 42px;
        border-radius: 14px;
        background: #14532D;
    }
    .gb-hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }
    .gb-hero-actions .btn,
    .detail-top-cta .btn,
    .community-board-actions .btn {
        min-width: 0;
        overflow: hidden;
        text-align: center;
        white-space: normal;
    }
    .gb-status-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }
    .gb-status-bar a {
        min-height: 54px;
        padding: 9px 8px;
        border-radius: 14px;
    }
    .gb-status-bar strong {
        font-size: 0.96rem;
    }
    .gb-action-panel {
        padding: 15px;
        border-radius: 20px;
    }
    .gb-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .gb-action-card {
        min-height: 90px;
        padding: 12px;
        border-radius: 17px;
    }
    .gb-action-card strong {
        font-size: 0.9rem;
    }
    .gb-stats {
        padding: 8px 0 12px;
    }
    .gb-stat-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    .gb-stat-card {
        min-height: 58px;
        padding: 12px 14px;
        border-radius: 16px;
    }
    .gb-target-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gb-target-card {
        min-height: 70px;
        padding: 13px;
        border-radius: 16px;
    }
    .gb-target-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }
    .gb-stat-grid,
    .gb-keyword-grid,
    .community-board-tabs,
    .community-prompt-grid,
    .list-category-strip,
    .filter-chips,
    .trending-tags,
    .category-chips {
        max-width: calc(100vw - 32px);
    }
    .policy-list-page {
        padding-top: 10px;
    }
    .list-hero {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
    .list-hero-main {
        gap: 11px;
        padding: 20px 18px;
        border-radius: 22px;
    }
    .list-eyebrow {
        padding: 5px 10px;
        font-size: 0.74rem;
    }
    .list-hero-main h1 {
        font-size: 1.42rem;
        line-height: 1.24;
    }
    .list-hero-main p {
        font-size: 0.86rem;
        line-height: 1.56;
    }
    .list-search {
        gap: 6px;
        padding: 6px;
        border-radius: 17px;
    }
    .list-search input {
        font-size: 0.86rem;
        padding: 0 8px;
    }
    .list-search button {
        min-width: 58px;
        min-height: 42px;
        border-radius: 13px;
        font-size: 0.84rem;
    }
    .list-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }
    .list-stat-tile {
        min-height: 66px;
        padding: 10px 8px;
        border-radius: 16px;
    }
    .list-stat-tile span {
        font-size: 0.72rem;
    }
    .list-stat-tile strong {
        font-size: 0.94rem;
    }
    .list-segment {
        margin-bottom: 10px;
        border-radius: 15px;
    }
    .list-segment-item {
        min-height: 38px;
        font-size: 0.84rem;
        border-radius: 11px;
    }
    .list-category-strip {
        margin-bottom: 12px;
        padding-bottom: 4px;
    }
    .list-category-pill {
        min-height: 38px;
        padding-right: 12px;
        font-size: 0.82rem;
    }
    .list-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-bottom: 10px;
    }
    .list-toolbar nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .list-toolbar nav a {
        text-align: center;
        padding: 7px 6px;
    }
    .policy-list-grid {
        gap: 9px;
    }
    .policy-list-grid .policy-card {
        min-height: 0;
        border-radius: 18px;
    }
    .policy-list-grid .card-body {
        padding: 14px 15px;
        gap: 7px;
    }
    .policy-list-grid .card-title {
        font-size: 0.94rem;
        line-height: 1.42;
    }
    .policy-list-grid .card-summary {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }
    .card-bottom {
        align-items: flex-start;
    }
    .card-meta {
        min-width: 0;
    }
    .card-action {
        min-width: 46px;
        min-height: 30px;
        padding: 0 10px;
    }
    .community-board-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
        border-radius: 22px;
    }
    .community-board-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .detail-page {
        padding-bottom: 76px;
    }
    .detail-mobile-action {
        position: fixed;
        left: 50%;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        z-index: 105;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        width: min(calc(100% - 24px), 520px);
        padding: 8px;
        transform: translateX(-50%);
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(214,211,209,0.86);
        border-radius: 22px;
        box-shadow: 0 -12px 30px rgba(15,23,42,0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .mobile-bottom-nav {
        left: 50%;
        right: auto;
        bottom: 10px;
        display: flex !important;
        width: min(calc(100% - 24px), 520px);
        min-height: 66px;
        transform: translateX(-50%);
        align-items: center;
        padding: 8px 9px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,0.94);
        border: 1px solid rgba(214,211,209,0.82);
        border-radius: 26px;
        box-shadow: 0 -12px 32px rgba(15,23,42,0.12);
    }
    .bottom-nav-item {
        min-height: 50px;
        justify-content: center;
        border-radius: 18px;
    }
}

/* Business action controls must win over the legacy mobile pass above. */
@media (max-width: 759px) {
    .detail-mobile-action {
        grid-template-columns: minmax(0, 1fr) 48px auto;
    }
    .detail-mobile-action.no-primary {
        grid-template-columns: 48px minmax(0, 1fr);
    }
    .detail-mobile-save {
        width: 48px;
        height: 44px;
        border-radius: 16px;
    }
    .bottom-nav-label {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.64rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Refresh guard: these shell rules must stay at EOF. */
body {
    background: var(--app-bg);
    color: var(--app-ink);
}

.fund-card {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: none;
}
.fund-card:hover {
    border-color: #c8d5fa;
    box-shadow: 0 4px 14px rgba(25,41,83,0.06);
}
.business-page {
    background: transparent;
}
.business-search,
.business-filter-block,
.match-step,
.match-region {
    background: #fff;
    border-color: var(--app-line);
    border-radius: 8px;
    box-shadow: none;
}
.business-search button,
.match-submit,
.btn-primary,
.detail-mobile-primary {
    background: var(--app-blue);
}
.fund-type-tabs {
    background: #e9ecf1;
    border: 0;
    border-radius: 8px;
}
.fund-type-tabs a.active {
    color: var(--app-blue-dark);
    background: #fff;
}
.match-option.selected {
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
    border-color: #9bb7ff;
}
.match-step legend span {
    background: var(--app-blue);
}
.fund-decision-panel {
    background: var(--app-blue-soft);
    border-color: #bfd0ff;
    border-radius: 8px;
}

@media (min-width: 1024px) {
    .app-shell {
        display: block;
        width: min(100%, 900px);
        margin: 0 auto;
        padding: 18px 24px 36px;
    }
    .app-rail,
    .app-side-panel,
    .site-header,
    .app-mobile-header {
        display: none !important;
    }
    .app-frame,
    .app-main {
        width: 100%;
        max-width: none;
    }
    .app-topbar {
        top: 12px;
        display: grid;
        grid-template-columns: auto minmax(280px, 1fr) 44px;
        width: 100%;
        min-height: 64px;
        margin-bottom: 4px;
        padding: 9px 10px 9px 16px;
        background: rgba(255,255,255,0.94);
        border: 1px solid var(--app-line);
        border-radius: 8px;
        box-shadow: 0 4px 18px rgba(25,32,45,0.06);
    }
    .app-topbar-title span {
        color: var(--app-blue);
    }
    .app-topbar-search {
        width: 100%;
        height: 44px;
        justify-self: end;
        background: var(--app-bg);
        border-color: transparent;
        border-radius: 8px;
    }
    .app-topbar-search button {
        color: #fff;
        background: var(--app-blue);
        border-radius: 8px;
    }
    .app-topbar-saved {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: #4e5562;
        border: 1px solid var(--app-line);
        border-radius: 8px;
    }
    .app-main .container,
    .cash-home .container,
    .business-page .container {
        width: 100%;
        max-width: 820px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    html,
    body,
    .app-shell,
    .app-frame,
    .app-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    body {
        background: var(--app-bg);
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .app-rail,
    .app-side-panel,
    .app-topbar,
    .site-header,
    .site-footer {
        display: none !important;
    }
    .app-mobile-header {
        position: sticky;
        top: 0;
        z-index: 120;
        display: flex;
        min-height: 58px;
        padding: calc(7px + env(safe-area-inset-top, 0px)) 16px 7px;
        background: rgba(255,255,255,0.96);
        border-bottom: 1px solid var(--app-line);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .app-mobile-mark {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        color: #fff;
        border-radius: 8px;
        background: var(--app-blue);
        box-shadow: none;
        font-size: 0.78rem;
        font-weight: 900;
    }
    .app-mobile-brand {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 9px;
        color: var(--app-ink);
        text-decoration: none;
    }
    .app-mobile-brand > span:last-child {
        display: grid;
        min-width: 0;
        gap: 1px;
    }
    .app-mobile-brand strong,
    .app-mobile-brand small {
        display: block;
        line-height: 1.2;
        white-space: nowrap;
    }
    .app-mobile-brand strong {
        font-size: 0.84rem;
    }
    .app-mobile-brand small {
        color: var(--app-muted);
        font-size: 0.68rem;
    }
    .app-mobile-actions {
        display: flex;
        gap: 4px;
    }
    .app-mobile-icon-btn {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        color: #4e5562;
        background: transparent;
        border: 0;
        border-radius: 8px;
    }
    .app-main .container,
    .cash-home .container,
    .business-page .container {
        width: 100%;
        max-width: 680px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .mobile-bottom-nav {
        left: 50%;
        right: auto;
        bottom: 0;
        display: flex !important;
        width: min(100%, 680px);
        min-height: 64px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        background: rgba(255,255,255,0.97);
        border: 0;
        border-top: 1px solid var(--app-line);
        border-radius: 0;
        box-shadow: 0 -4px 16px rgba(25,32,45,0.06);
    }
    .bottom-nav-item {
        min-height: 48px;
        padding: 4px 6px;
        color: #858b96;
        background: transparent;
        border-radius: 8px;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: var(--app-blue);
        background: transparent;
    }
    .detail-mobile-action {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        width: min(100%, 520px);
        padding: 8px 12px;
        background: #fff;
        border: 0;
        border-top: 1px solid var(--app-line);
        border-radius: 0;
        box-shadow: 0 -4px 14px rgba(25,32,45,0.06);
    }
    .detail-page {
        padding-bottom: 150px;
    }
    .detail-page > .detail-top-cta {
        display: none;
    }
}

/* Department-led fund cards and compact recommendation layout */
.fund-card-head {
    align-items: center;
}
.fund-card-agency {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}
.fund-card-agency > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.fund-card-agency strong,
.fund-card-agency small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fund-card-agency strong {
    color: var(--app-ink);
    font-size: 0.8rem;
}
.fund-card-agency small {
    color: var(--app-muted);
    font-size: 0.68rem;
    font-weight: 700;
}
.fund-agency-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    border-radius: 8px;
}
.fund-agency-logo {
    display: grid;
    width: 74px;
    height: 38px;
    flex: 0 0 74px;
    place-items: center;
    padding: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.fund-agency-logo img,
.cash-department-logo img,
.cash-institution-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.fund-agency-logo.brand-kised {
    padding: 5px 4px;
}
.fund-agency-icon svg,
.cash-department-icon svg,
.cash-institution-mark svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fund-agency-icon.agency-smallbiz,
.cash-institution-mark.is-smallbiz {
    color: #087f5b;
    background: #e7f7f0;
}
.fund-agency-icon.agency-sme,
.cash-institution-mark.is-sme {
    color: #075985;
    background: #e7f5ff;
}
.fund-agency-icon.agency-guarantee,
.cash-institution-mark.is-guarantee {
    color: #9a5900;
    background: #fff4da;
}
.fund-agency-icon.agency-startup,
.cash-institution-mark.is-startup {
    color: #6d28d9;
    background: #f1edff;
}
.fund-agency-icon.agency-local {
    color: #b45309;
    background: #fff2e2;
}
.fund-card-badges {
    margin-top: 12px;
}
.fund-card-title {
    min-height: 0;
    margin: 10px 0 12px;
}
.fund-card-schedule {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.fund-card-foot .fund-card-schedule span {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.66rem;
}
.fund-card-foot .fund-card-schedule strong {
    color: #3f4650;
    font-size: 0.74rem;
}
.cash-home .home-fund-list {
    grid-template-columns: minmax(0, 1fr);
}
.cash-deadline-meta {
    display: flex !important;
    align-items: center;
    gap: 5px;
}
.cash-department-icon {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    border-radius: 5px;
}
.cash-department-logo {
    display: grid;
    width: 62px;
    height: 22px;
    flex: 0 0 62px;
    place-items: center;
    padding: 3px 4px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 5px;
}
.cash-department-icon svg {
    width: 13px;
    height: 13px;
}
.cash-institution-mark {
    color: var(--app-blue);
    background: var(--app-blue-soft);
}
.cash-institution-logos {
    display: grid;
    width: 82px;
    height: 44px;
    flex: 0 0 82px;
    place-items: center;
}
.cash-institution-logos.is-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
.cash-institution-logo {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 7px 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.cash-institution-logos.is-dual .cash-institution-logo {
    padding: 6px 3px;
}
.cash-institution-list > a {
    grid-template-columns: 82px minmax(0, 1fr) 18px;
}
.cash-deadline-meta > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .fund-card {
        padding: 15px;
    }
    .fund-card-agency strong {
        max-width: 190px;
    }
    .cash-deadline-meta {
        max-width: 100%;
    }
}

/* Cashnote-inspired dense funding list: compare first, expand second. */
.fund-card-list,
.cash-home .home-fund-list {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.fund-card {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
        "agency content"
        "agency foot";
    column-gap: 11px;
    row-gap: 7px;
    align-items: start;
    min-width: 0;
    min-height: 0;
    padding: 12px 48px 12px 12px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--app-line);
    border-radius: 0;
    box-shadow: none;
}
.fund-card:last-child {
    border-bottom: 0;
}
.fund-card:hover {
    background: #fbfcff;
    border-color: var(--app-line);
    box-shadow: none;
}
.fund-card-head {
    grid-area: agency;
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
}
.fund-agency-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    padding: 4px;
}
.fund-agency-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}
.fund-agency-icon svg {
    width: 18px;
    height: 18px;
}
.fund-card-content {
    grid-area: content;
    min-width: 0;
}
.fund-card-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px 6px;
    padding-right: 2px;
    overflow: hidden;
}
.fund-card-agency-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #3f4650;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fund-type-badge,
.fund-fit-badge,
.fund-due-badge {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 0 6px;
    font-size: 0.64rem;
}
.fund-card-title {
    min-height: 0;
    margin: 6px 0 0;
    color: var(--app-ink);
    font-size: 0.94rem;
    line-height: 1.38;
    -webkit-line-clamp: 2;
}
.fund-card-highlights {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 8px 0 0;
}
.fund-card-highlights > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
}
.fund-card-highlights dt,
.fund-card-highlights dd {
    margin: 0;
    line-height: 1.35;
}
.fund-card-highlights dt {
    flex: 0 0 auto;
    color: var(--app-muted);
    font-size: 0.64rem;
    font-weight: 700;
}
.fund-card-highlights dd {
    overflow: hidden;
    color: #4b5360;
    font-size: 0.69rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fund-match-reasons {
    margin-top: 8px;
}
.fund-match-reasons span {
    padding: 3px 6px;
    font-size: 0.64rem;
}
.fund-card-foot {
    grid-area: foot;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    padding: 0;
    border: 0;
}
.fund-card-action {
    display: inline-flex;
    width: auto;
    height: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 8px 0 10px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    border-radius: 8px;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}
.fund-card-action svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fund-save-btn {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 32px;
    height: 32px;
    background: #fff;
}
.fund-save-btn svg {
    width: 17px;
    height: 17px;
}

@media (min-width: 700px) {
    .fund-card {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-areas: "agency content foot";
        gap: 14px;
        align-items: center;
        padding: 13px 52px 13px 14px;
    }
    .fund-card-head {
        align-self: center;
    }
    .fund-card-title {
        font-size: 0.92rem;
    }
    .fund-card-foot {
        align-self: center;
        justify-content: flex-end;
    }
}

@media (max-width: 699px) {
    .fund-card-list,
    .cash-home .home-fund-list {
        margin-right: -2px;
        margin-left: -2px;
    }
}

/* Stable home rhythm and fixed navigation. */
.cash-home .container {
    --home-section-gap: 28px;
}
.cash-overview,
.cash-quick-section,
.cash-home-section,
.cash-search-card,
.cash-legacy-band {
    margin-top: var(--home-section-gap);
}
.cash-section-head {
    margin-bottom: 10px;
}
.cash-home-section .fund-card-list {
    margin-top: 0;
    margin-bottom: 0;
}
.cash-home .home-fund-list .fund-card {
    min-height: 75px;
}
.cash-home-section {
    scroll-margin-top: 88px;
}

@media (min-width: 1024px) {
    .app-topbar {
        position: fixed;
        top: 12px;
        left: 50%;
        z-index: 140;
        width: min(calc(100% - 48px), 852px);
        margin: 0;
        transform: translateX(-50%);
    }
    .app-main {
        padding-top: 72px;
    }
}

@media (min-width: 901px) and (max-width: 1023px) {
    .site-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 140;
    }
    .app-main {
        padding-top: 64px;
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: calc(66px + env(safe-area-inset-top, 0px));
    }
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .app-mobile-header {
        position: fixed;
        top: 0;
        left: 50%;
        z-index: 140;
        width: min(100%, 680px);
        transform: translateX(-50%);
    }
    .app-main {
        padding-top: calc(58px + env(safe-area-inset-top, 0px));
    }
    .mobile-bottom-nav {
        position: fixed;
        z-index: 140;
    }
    .cash-home .container {
        --home-section-gap: 24px;
    }
    .cash-home .home-fund-list .fund-card {
        min-height: 132px;
    }
    .cash-section-head {
        margin-bottom: 9px;
    }
    .cash-home-section {
        scroll-margin-top: calc(70px + env(safe-area-inset-top, 0px));
    }
}

/* 2026-07-30 main and policy detail refinement */
.cash-welcome {
    align-items: center;
    margin-bottom: 14px;
}
.cash-welcome h1 {
    font-size: 1.42rem;
    line-height: 1.34;
}
.cash-welcome-deadline {
    display: grid;
    grid-template-columns: auto auto 18px;
    gap: 5px;
    align-items: center;
    min-height: 44px;
    padding: 8px 11px;
    color: var(--app-ink);
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    text-decoration: none;
}
.cash-welcome-deadline span {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.72rem;
}
.cash-welcome-deadline strong {
    color: #b45309;
    font-size: 0.92rem;
}
.cash-welcome-deadline small {
    margin-left: 1px;
    font-size: 0.66rem;
}
.cash-welcome-deadline svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.cash-focus-card {
    align-items: center;
    padding: 24px;
    background: #164fc9;
    box-shadow: 0 7px 20px rgba(31,94,255,0.15);
}
.cash-focus-label {
    margin-bottom: 9px;
}
.cash-focus-card h2 {
    font-size: 1.56rem;
}
.cash-focus-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}
.cash-focus-criteria span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}
.cash-focus-actions {
    margin-top: 17px;
}
.cash-focus-total {
    min-width: 118px;
    padding: 15px;
}
.cash-focus-total strong {
    font-size: 1.48rem;
}

.breadcrumb-mobile-back {
    display: none;
}
.breadcrumb-trail {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}
.detail-agency {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--app-line);
}
.detail-agency-logo,
.detail-agency-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.detail-agency-logo {
    padding: 7px;
}
.detail-agency-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.detail-agency-icon {
    color: var(--app-blue);
    background: var(--app-blue-soft);
}
.detail-agency-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.detail-agency-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 2px;
}
.detail-agency-copy small {
    color: var(--app-muted);
    font-size: 0.7rem;
}
.detail-agency-copy strong {
    overflow: hidden;
    color: var(--app-ink);
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.detail-agency > a {
    flex: 0 0 auto;
    color: var(--app-blue);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}
.detail-header {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}
.detail-title {
    margin-bottom: 10px;
    font-size: 1.55rem;
    line-height: 1.4;
}
.fund-decision-panel {
    margin: 0 0 18px;
    padding: 18px;
    background: #f7f9ff;
}
.fund-decision-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fund-decision-grid > div {
    min-height: 92px;
}
.fund-decision-grid strong {
    -webkit-line-clamp: 3;
}
.detail-top-cta {
    margin-bottom: 18px;
}
.info-card {
    padding: 22px 24px;
    border-radius: 8px;
}
.info-card-basic .info-table {
    display: table;
}

@media (max-width: 900px) {
    .cash-home {
        padding-top: 14px;
    }
    .cash-welcome {
        gap: 10px;
        margin-bottom: 11px;
    }
    .cash-welcome > div > span {
        margin-bottom: 3px;
        font-size: 0.7rem;
    }
    .cash-welcome h1 {
        font-size: 1.14rem;
        line-height: 1.32;
    }
    .cash-welcome-deadline {
        grid-template-columns: auto 15px;
        min-height: 40px;
        padding: 7px 9px;
    }
    .cash-welcome-deadline span {
        display: none;
    }
    .cash-welcome-deadline strong {
        font-size: 0.86rem;
    }
    .cash-focus-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 18px;
    }
    .cash-focus-label {
        margin-bottom: 6px;
        font-size: 0.7rem;
    }
    .cash-focus-card h2 {
        font-size: 1.26rem;
        line-height: 1.32;
    }
    .cash-focus-criteria {
        margin-top: 10px;
    }
    .cash-focus-criteria span {
        min-height: 25px;
        padding: 3px 7px;
        font-size: 0.64rem;
    }
    .cash-focus-actions {
        gap: 13px;
        margin-top: 13px;
    }
    .cash-focus-actions a {
        min-height: 40px;
        font-size: 0.78rem;
    }
    .cash-focus-actions .cash-focus-primary {
        padding: 0 12px;
    }
    .cash-focus-total {
        min-width: 82px;
        padding: 11px 9px;
    }
    .cash-focus-total span {
        font-size: 0.62rem;
    }
    .cash-focus-total strong {
        font-size: 1.12rem;
    }
    .cash-overview-grid > a {
        min-height: 74px;
        padding: 11px;
    }
    .cash-quick-item {
        min-height: 94px;
        padding: 11px;
    }

    .breadcrumb {
        padding: 8px 0;
    }
    .breadcrumb-trail {
        display: none;
    }
    .breadcrumb-mobile-back {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--app-muted);
        font-size: 0.74rem;
        font-weight: 700;
    }
    .breadcrumb-mobile-back svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }
    .detail-header {
        margin-bottom: 12px;
        padding: 15px;
    }
    .detail-agency {
        margin-bottom: 13px;
        padding-bottom: 12px;
    }
    .detail-agency-logo,
    .detail-agency-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
    .detail-agency-copy strong {
        font-size: 0.82rem;
    }
    .detail-agency > a {
        font-size: 0.7rem;
    }
    .detail-badges {
        gap: 5px;
        margin-bottom: 9px;
    }
    .detail-badges .badge {
        padding: 3px 8px;
        font-size: 0.67rem;
    }
    .detail-title {
        margin-bottom: 8px;
        font-size: 1.18rem;
        line-height: 1.42;
    }
    .detail-meta-row {
        gap: 6px;
        font-size: 0.7rem;
    }
    .fund-decision-panel {
        padding: 14px;
    }
    .fund-decision-head {
        margin-bottom: 10px;
    }
    .fund-decision-head > span {
        display: none;
    }
    .fund-decision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fund-decision-grid > div {
        min-height: 82px;
        padding: 9px;
    }
    .fund-decision-grid strong {
        font-size: 0.74rem;
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }
    .fund-decision-panel > p {
        margin-top: 9px;
        font-size: 0.66rem;
        line-height: 1.45;
    }
    .info-card {
        padding: 17px 16px;
        margin-bottom: 10px;
    }
    .info-card-heading {
        margin-bottom: 13px;
        padding-bottom: 10px;
        font-size: 1rem;
    }
    .detail-text {
        font-size: 0.91rem;
        line-height: 1.72;
    }
}

@media (max-width: 390px) {
    .cash-focus-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .cash-focus-total {
        display: flex;
        align-items: baseline;
        justify-content: flex-start;
        gap: 3px;
    }
    .cash-focus-total span {
        margin: 0 5px 0 0;
    }
}

