:root{
    --bg:#f2efe9;
    --panel:#ffffff;
    --panel-soft:#fbf8f2;
    --text:#211d19;
    --muted:#7d756b;
    --line:#e6ded2;
    --dark:#0b111c;
    --dark2:#141c2b;
    --gold:#c7a35d;
    --gold2:#e1c47a;
    --brown:#796143;
    --blue:#355d8d;
    --green:#2f766c;
    --red:#b84b40;
    --shadow:0 14px 34px rgba(45,36,26,.08);
    --radius:18px;
    --container:1320px;
}
*{box-sizing:border-box}
html{margin:0;padding:0;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',Arial,sans-serif;line-height:1.62;word-break:keep-all;overflow-wrap:anywhere}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}.container{width:min(var(--container),calc(100% - 32px));margin:0 auto}.site-shell{min-height:100vh;display:flex;flex-direction:column}.site-main{flex:1}.topbar{background:#0b111c;color:rgba(255,255,255,.74);font-size:13px}.topbar-inner{height:38px;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar-links{display:flex;align-items:center;gap:20px;white-space:nowrap}.topbar a,.topbar button{color:rgba(255,255,255,.8);font-size:13px}.topbar-logout{margin:0}.topbar-logout button{background:none;border:0;cursor:pointer;padding:0}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;gap:24px}.brand-wrap{display:flex;align-items:center;gap:12px;min-width:290px}.brand-mark{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#0b111c,#28354d);color:var(--gold2);font-size:14px;font-weight:900;box-shadow:0 10px 24px rgba(8,14,25,.18)}.brand-text{display:flex;flex-direction:column;line-height:1.15}.brand-text strong{font-family:'Noto Serif KR',serif;font-size:20px;letter-spacing:-.04em}.brand-text em{margin-top:5px;font-style:normal;font-size:11px;font-weight:700;color:#8b8175;letter-spacing:.08em;text-transform:uppercase}.desktop-nav{display:flex;align-items:center;justify-content:center;gap:18px;flex:1}.desktop-nav a{font-size:15px;font-weight:800;color:#302a24;white-space:nowrap}.desktop-nav a:hover{color:var(--brown)}.header-search{height:40px;padding:0 13px;border:1px solid var(--line);border-radius:999px;display:inline-flex;align-items:center;gap:8px;color:#4b443c;background:#fff;font-size:13px;font-weight:800}.mobile-nav{display:none;overflow-x:auto;white-space:nowrap;padding:11px 16px 13px;border-top:1px solid #eee7de;background:#fff}.mobile-nav a{display:inline-block;margin-right:18px;font-size:14px;font-weight:800}.portal-hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 70% 25%,rgba(78,92,145,.58),transparent 44%),radial-gradient(ellipse at 20% 80%,rgba(43,116,102,.35),transparent 42%),linear-gradient(135deg,#050810 0%,#121b2c 45%,#2d241b 100%);color:#fff;min-height:340px}.portal-hero::after{content:"";position:absolute;inset:auto 0 0;height:110px;background:linear-gradient(to top,rgba(242,239,233,1),rgba(242,239,233,0));pointer-events:none}.portal-hero-bg{position:absolute;inset:0;opacity:.55}.orbit{position:absolute;border:1px solid rgba(225,196,122,.22);border-radius:50%;transform:rotate(-18deg)}.orbit-1{width:360px;height:170px;right:10%;top:70px}.orbit-2{width:520px;height:240px;right:3%;top:34px;border-style:dashed}.star{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 18px rgba(255,255,255,.9)}.star-1{left:13%;top:72px}.star-2{right:22%;top:115px}.star-3{right:9%;bottom:92px}.portal-hero-inner{position:relative;z-index:2;min-height:340px;display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:center;gap:42px;padding:42px 0 72px}.portal-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:var(--gold2);font-size:13px;font-weight:900;margin-bottom:16px}.portal-hero-copy h1{margin:0;font-family:'Noto Serif KR',serif;font-size:clamp(32px,4.2vw,58px);line-height:1.16;letter-spacing:-.055em;font-weight:800;text-shadow:0 12px 32px rgba(0,0,0,.35)}.portal-hero-copy p{margin:18px 0 0;max-width:640px;color:rgba(255,255,255,.78);font-size:17px;line-height:1.75}.portal-hero-actions{margin-top:26px;display:flex;gap:10px;flex-wrap:wrap}.portal-btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 19px;border-radius:999px;font-size:14px;font-weight:900}.portal-btn.primary{background:var(--gold);color:#0b111c}.portal-btn.secondary{border:1px solid rgba(255,255,255,.3);color:#fff;background:rgba(255,255,255,.07)}.portal-stats-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:22px;box-shadow:0 20px 50px rgba(0,0,0,.24);backdrop-filter:blur(14px)}.portal-stat-main{padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.14)}.portal-stat-main span{display:block;font-size:11px;font-weight:900;letter-spacing:.15em;color:var(--gold2)}.portal-stat-main strong{display:block;margin-top:8px;font-size:22px;line-height:1.25;font-weight:900}.portal-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.portal-stats-grid div{padding:14px 8px;border-radius:16px;background:rgba(255,255,255,.1);text-align:center}.portal-stats-grid span{display:block;font-size:12px;color:rgba(255,255,255,.67);font-weight:700}.portal-stats-grid strong{display:block;margin-top:5px;font-size:20px;font-weight:900;color:#fff}.portal-wrap{position:relative;margin-top:-42px;padding:0 0 56px;z-index:3}.portal-grid,.main-grid{display:grid;grid-template-columns:220px minmax(0,1fr) 300px;gap:18px;align-items:start}.portal-left,.left-column{min-width:0}.portal-center,.center-column{display:flex;flex-direction:column;gap:18px;min-width:0}.portal-right,.right-column{display:flex;flex-direction:column;gap:16px;min-width:0}.portal-card,.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.portal-card{padding:22px}.portal-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}.portal-card-head h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.04em;font-weight:950}.portal-card-head a{font-size:13px;color:#897966;font-weight:900}.section-label{display:block;margin-bottom:6px;color:#a17b3d;font-size:11px;font-weight:950;letter-spacing:.14em}.portal-member-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.member-gate{display:block;position:relative;overflow:hidden;min-height:128px;padding:20px;border-radius:20px;color:#fff;background:linear-gradient(135deg,#1e2737,#0b111c);box-shadow:var(--shadow)}.member-gate::after{content:"";position:absolute;right:-35px;top:-35px;width:120px;height:120px;border-radius:50%;background:rgba(225,196,122,.16)}.member-gate.regular{background:linear-gradient(135deg,#3b2d55,#111622)}.member-gate.schedule{background:linear-gradient(135deg,#255a55,#101b1d)}.gate-label{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:900;color:var(--gold2)}.member-gate strong{display:block;margin-top:13px;font-size:20px;line-height:1.2;font-weight:950;letter-spacing:-.04em}.member-gate em{display:block;margin-top:7px;font-style:normal;font-size:13px;color:rgba(255,255,255,.7)}.notice-highlight{border-top:5px solid var(--dark)}.headline-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.headline-item{display:block;padding:16px 17px;border-radius:16px;background:#fbf7ef;border:1px solid #f0e6d7}.headline-item strong{display:block;font-size:16px;line-height:1.45;font-weight:950;color:#211b14}.headline-item span{display:block;margin-top:8px;color:#8f8377;font-size:13px}.portal-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.compact-list,.comment-list,.post-feed-list,.review-title-list{display:flex;flex-direction:column}.compact-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #f0e8de}.compact-item:first-child{border-top:0}.compact-title{font-size:15px;font-weight:800;color:#2b241e;min-width:0}.compact-date{flex-shrink:0;color:#9a9086;font-size:12px}.comment-preview{display:block;padding:12px 0;border-top:1px solid #f0e8de}.comment-preview:first-child{border-top:0}.comment-preview strong{display:block;font-size:14px;font-weight:850;color:#2a2520;line-height:1.45}.comment-preview span{display:block;margin-top:5px;font-size:12px;color:#8d8378}.post-feed-item{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #f0e8de}.post-feed-item:first-child{border-top:0}.board-chip{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 8px;border-radius:999px;background:#f2eadf;color:#80633c;font-size:12px;font-weight:900}.post-feed-item strong{font-size:16px;font-weight:900;color:#201b16;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.post-feed-meta{font-size:12px;color:#8d8378;white-space:nowrap}.review-card{background:linear-gradient(180deg,#fff 0%,#fffaf3 100%)}.review-title-item{display:grid;grid-template-columns:76px minmax(0,1fr) 86px;gap:12px;align-items:center;padding:13px 0;border-top:1px solid #eee3d4}.review-title-item:first-child{border-top:0}.review-title-item span{font-size:12px;font-weight:900;color:#315f91}.review-title-item strong{font-size:16px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.review-title-item em{font-style:normal;font-size:12px;color:#90867b;text-align:right}.side-summary h3,.side-box-light h3,.sponsor-box h3{margin:5px 0 14px;font-size:21px;font-weight:950;letter-spacing:-.04em}.summary-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #f0e8de}.summary-row span{color:#746b61;font-size:14px}.summary-row strong{font-size:17px;font-weight:950}.side-box-light a{display:block;padding:11px 0;border-top:1px solid #f0e8de;font-size:14px;font-weight:850;color:#2d2721}.sponsor-box{background:#fffaf2}.sponsor-box p{margin:0;color:#675e54;font-size:14px;line-height:1.75}.sponsor-box strong{font-size:17px;color:#2a241f}.empty-box{padding:18px 0;color:#8d8378;font-size:14px}.left-sidebar-stack{display:flex;flex-direction:column;gap:10px}.side-box{overflow:hidden;border-radius:14px}.side-title{background:linear-gradient(135deg,#1d2638,#0b111c);color:#fff;padding:13px 16px;font-size:15px;font-weight:900}.side-links{padding:5px 0}.side-links a{display:flex;align-items:center;gap:8px;padding:10px 16px;color:#433d36;font-size:14px;border-top:1px solid #f1ece5;line-height:1.35;font-weight:700}.side-links a:first-child{border-top:none}.side-links a:hover{background:#fbf8f2;color:var(--brown)}.side-links button:hover{background:#fbf8f2}.left-banner-card{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:14px;color:#2d2823;min-height:72px;transition:.18s ease}.left-banner-card:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(45,36,26,.1)}.left-banner-inner{display:flex;align-items:center;justify-content:center;gap:8px;min-height:34px}.left-banner-icon{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#0b111c;color:#fff;font-size:11px;font-weight:900}.left-banner-title{font-size:18px;font-weight:950;letter-spacing:-.04em}.left-banner-big{font-size:17px;line-height:1.2;font-weight:950;letter-spacing:-.04em}.left-banner-sub{margin-top:3px;font-size:12px;color:#7b746c;line-height:1.2;font-weight:800}.left-banner-small{font-size:11px;color:#8a8177;line-height:1.1;margin-bottom:4px;font-weight:800}.subpage-wrap{padding:28px 0 56px}.subpage-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.panel{padding:20px 22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.panel-title{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.04em;font-weight:950}.panel-more{font-size:14px;color:var(--muted);font-weight:800}.board-header{padding:24px 26px 10px;background:#fff;border-radius:var(--radius) var(--radius) 0 0}.board-title{margin:0;font-size:34px;font-weight:950;letter-spacing:-.04em}.board-actions{display:flex;gap:10px;flex-wrap:wrap}.btn-line{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 16px;border-radius:10px;border:1px solid var(--line);background:#fff;color:#4a433a;font-weight:800}.board-table-wrap{padding:0 26px 24px;background:#fff}.post-table{width:100%;border-collapse:collapse;background:#fff}.post-table thead th{text-align:left;font-size:14px;color:#7a746c;font-weight:800;padding:12px 10px;border-bottom:1px solid #ece5db}.post-table tbody td{padding:13px 10px;border-bottom:1px solid #f1ece5;font-size:15px;vertical-align:middle;background:#fff}.post-table tbody tr:hover td{background:#fcfbf8}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:6px 10px;border-radius:999px;background:#f4eee3;color:#8b6d43;font-size:12px;font-weight:900}.badge.lecture{background:#eef3f7;color:#315f91}.post-title-link{font-weight:850;color:#2f2923}.post-title-link:hover{color:var(--brown)}.muted{color:var(--muted)}.search-bar{padding:18px 26px 26px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border-radius:0 0 var(--radius) var(--radius)}.search-form{display:flex;gap:10px;flex-wrap:wrap;width:100%}.search-form select,.search-form input{height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 14px;font-size:15px}.search-form input{flex:1;min-width:180px}.search-form button{height:44px;padding:0 18px;border:none;border-radius:10px;background:var(--brown);color:#fff;font-weight:900;cursor:pointer}.article{padding:28px;background:#fff}.article-head{padding-bottom:20px;border-bottom:1px solid #ece5db}.article-board{font-size:14px;color:var(--muted)}.article-title{margin:10px 0 0;font-size:36px;line-height:1.25;font-weight:950;letter-spacing:-.04em}.article-meta{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px;font-size:14px;color:var(--muted)}.article-body{padding:28px 0;font-size:17px;line-height:1.95;color:#2d2924;background:#fff}.article-body p{margin-top:0}.article-body img{max-width:100%;height:auto;border-radius:0;background:#fff}.article-body table{max-width:100%;background:#fff}.comment-section{border-top:1px solid #eee7de;padding-top:24px;background:#fff}.comment-title{margin:0 0 16px;font-size:24px;font-weight:950}.comment-item{border:1px solid #eee7de;border-radius:16px;background:#fcfaf7;padding:16px 18px;margin-top:12px}.comment-meta{font-size:14px;color:var(--muted);margin-bottom:8px}.footer{margin-top:auto;background:#0b111c;color:#e7e1d8}.footer-inner{padding:30px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.footer-brand{font-family:'Noto Serif KR',serif;font-size:22px;font-weight:800}.footer-sub{margin-top:7px;color:#aaa294;font-size:14px}.footer-links{display:flex;gap:20px;flex-wrap:wrap;font-size:14px;font-weight:700;color:#c9c0b3}.footer-copy{width:100%;font-size:13px;color:#8d8579}.pagination{display:flex;justify-content:center;gap:8px;margin-top:26px;flex-wrap:wrap}.pagination .page,.pagination span,.pagination a{min-width:40px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#4a433a;font-size:14px}.write-card{padding:0;overflow:hidden;background:#fff}.write-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:26px 28px 18px;border-bottom:1px solid #ece5db;background:linear-gradient(180deg,#fff 0%,#fcfaf7 100%)}.write-kicker{font-size:13px;color:#8a8177;margin-bottom:6px}.write-title{margin:0;font-size:32px;line-height:1.2;letter-spacing:-.04em;font-weight:950}.write-form{padding:26px 28px 30px;background:#fff}.write-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.form-block+.form-block{margin-top:18px}.form-label{display:block;font-size:15px;font-weight:900;margin-bottom:8px;color:#2f2923}.form-input,.form-textarea{width:100%;border:1px solid #e6dfd6;border-radius:14px;background:#fff;color:#2d2924;font-size:15px;padding:14px 16px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}@media (max-width:1180px){.desktop-nav{gap:12px}.desktop-nav a{font-size:14px}.portal-grid,.main-grid{grid-template-columns:220px minmax(0,1fr)}.portal-right,.right-column{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr)}.portal-hero-inner{grid-template-columns:1fr}.portal-stats-card{max-width:620px}.portal-wrap{margin-top:-36px}}@media (max-width:900px){.topbar-left{display:none}.topbar-inner{justify-content:flex-end}.header-inner{min-height:70px}.brand-wrap{min-width:auto}.brand-text em{display:none}.desktop-nav,.header-search{display:none}.mobile-nav{display:block}.portal-hero{min-height:320px}.portal-hero-inner{min-height:320px;padding:34px 0 64px}.portal-grid,.main-grid,.subpage-grid{grid-template-columns:1fr}.portal-left{order:2}.portal-center{order:1}.portal-right{order:3;display:flex}.portal-member-menu,.portal-two-columns{grid-template-columns:1fr}.headline-list{grid-template-columns:1fr}.post-feed-item{grid-template-columns:1fr;gap:6px}.post-feed-item strong{white-space:normal}.review-title-item{grid-template-columns:1fr;gap:5px}.review-title-item strong{white-space:normal}.review-title-item em{text-align:left}.post-table{min-width:760px}.board-table-wrap{overflow-x:auto}.write-grid{grid-template-columns:1fr}}@media (max-width:560px){.container{width:min(var(--container),calc(100% - 22px))}.topbar-links{gap:10px}.brand-mark{width:42px;height:42px;border-radius:13px}.brand-text strong{font-size:17px}.portal-hero-copy h1{font-size:30px}.portal-hero-copy p{font-size:15px}.portal-stats-grid{grid-template-columns:1fr}.portal-card{padding:18px;border-radius:16px}.portal-card-head h2{font-size:22px}.member-gate{min-height:112px}.article,.panel{padding:18px}.article-title{font-size:28px}.board-header,.board-table-wrap,.search-bar,.write-header,.write-form{padding-left:18px;padding-right:18px}.footer-inner{align-items:flex-start;flex-direction:column}.mobile-nav{padding-left:11px}}

/* ===== Step 4: community portal refinement + hamburger mobile menu ===== */
.header-inner{gap:18px}.desktop-nav{gap:14px;overflow:hidden}.desktop-nav a{font-size:14px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.mobile-menu-button{display:none;width:42px;height:42px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);border-radius:12px;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}.mobile-menu-button span{display:block;width:18px;height:2px;border-radius:999px;background:#fff}.mobile-menu-panel{position:fixed;top:0;right:0;width:min(86vw,360px);height:100vh;background:#fff;color:#211c17;z-index:1001;transform:translateX(105%);transition:transform .22s ease;box-shadow:-18px 0 60px rgba(0,0,0,.22);display:flex;flex-direction:column}.mobile-menu-dim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;opacity:0;pointer-events:none;transition:opacity .2s ease}.mobile-menu-open .mobile-menu-panel{transform:translateX(0)}.mobile-menu-open .mobile-menu-dim{opacity:1;pointer-events:auto}.mobile-menu-head{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #eee6dc}.mobile-menu-head strong{font-size:18px;font-weight:950}.mobile-menu-head button{width:38px;height:38px;border:0;border-radius:12px;background:#f4efe8;color:#2b241d;font-size:28px;line-height:1;cursor:pointer}.mobile-menu-links{padding:12px 12px 6px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-menu-links a{display:flex;align-items:center;min-height:46px;padding:12px;border-radius:14px;background:#f8f4ee;color:#2b241d;font-weight:850;font-size:14px}.mobile-menu-links a:hover{background:#efe5d7}.mobile-menu-auth{margin-top:auto;padding:14px 12px 22px;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #eee6dc}.mobile-menu-auth a{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:14px;background:#121926;color:#fff;font-weight:900}.portal-hero-compact{height:auto;min-height:360px;max-height:none}.portal-hero-compact .portal-hero-inner{min-height:360px;padding:42px 0 70px}.science-record-card{align-self:center}.record-stats-grid{grid-template-columns:repeat(3,1fr)}.portal-grid-rebalanced{grid-template-columns:220px minmax(0,1fr) 330px}.main-feed-card{border-top:4px solid var(--brown)}.section-help-text{margin:-4px 0 12px;color:#84796e;font-size:14px;line-height:1.6}.comment-list-grid .comment-preview{padding:13px 0}.membership-guide-card{background:linear-gradient(180deg,#fff 0%,#fff9f0 100%)}.membership-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.membership-level{display:block;border:1px solid #eee0ce;border-radius:18px;background:#fff;padding:18px;min-height:150px;color:#251f19;transition:.18s ease}.membership-level:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(45,36,26,.1)}.membership-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:#f3eadb;font-size:22px;margin-bottom:12px}.membership-level strong{display:block;font-size:19px;font-weight:950;letter-spacing:-.04em}.membership-level em{display:inline-block;margin-top:5px;font-style:normal;font-size:12px;font-weight:900;color:#8b6b3f;background:#f8eddc;border-radius:999px;padding:4px 8px}.membership-level p{margin:10px 0 0;color:#70675e;font-size:14px;line-height:1.55}.membership-level.regular{background:#111927;color:#fff;border-color:#111927}.membership-level.regular p{color:#d4cabb}.membership-level.regular .membership-icon{background:rgba(255,255,255,.12)}.membership-level.regular em{background:rgba(201,168,76,.18);color:#e1c16c}.portal-counter-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;overflow:hidden;border-radius:18px;background:#e7ddd0;border:1px solid #e7ddd0;box-shadow:var(--shadow)}.portal-counter-strip div{background:#fff;padding:18px;text-align:center}.portal-counter-strip span{display:block;color:#7b7168;font-size:13px;font-weight:800}.portal-counter-strip strong{display:block;margin-top:5px;font-size:25px;font-weight:950;letter-spacing:-.04em;color:#1f1a15}.compact-head{align-items:flex-start}.compact-head h2{font-size:21px}.important-side{background:linear-gradient(180deg,#fff 0%,#fff7eb 100%);border-top:4px solid #b78a36}.side-news-card .compact-item{padding:11px 0}.side-notice-list .compact-title{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;line-height:1.45}.membership-banner.dark{background:#111927;color:#fff;border-color:#111927}.membership-banner.dark .left-banner-small,.membership-banner.dark .left-banner-sub{color:#d8cdbb}.banner-tv{background:#fff}.mobile-nav{display:none!important}
@media (max-width:1280px){.desktop-nav{gap:9px}.desktop-nav a{font-size:13px}.portal-grid-rebalanced{grid-template-columns:210px minmax(0,1fr) 300px}}
@media (max-width:1080px){.desktop-nav,.header-search{display:none}.mobile-menu-button{display:flex}.portal-grid-rebalanced{grid-template-columns:210px minmax(0,1fr)}.portal-right{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.portal-left{grid-row:auto}}
@media (max-width:900px){.header-inner{min-height:66px}.brand-text strong{font-size:18px}.mobile-menu-button{display:flex}.portal-hero-compact .portal-hero-inner{min-height:340px;padding:32px 0 60px}.portal-grid-rebalanced{grid-template-columns:1fr}.portal-left{order:3}.portal-center{order:1}.portal-right{order:2;display:grid;grid-template-columns:1fr}.membership-levels{grid-template-columns:1fr}.record-stats-grid{grid-template-columns:1fr}.portal-counter-strip{grid-template-columns:1fr}.topbar-links{font-size:12px}.post-feed-item{grid-template-columns:1fr;gap:6px}.post-feed-meta{white-space:normal}.left-sidebar-stack{display:grid;grid-template-columns:1fr 1fr;gap:10px}.left-sidebar-stack .side-box{grid-column:1 / -1}}
@media (max-width:560px){.topbar{display:none}.brand-mark{width:42px;height:42px}.brand-text strong{font-size:16px}.mobile-menu-links{grid-template-columns:1fr}.portal-hero-copy h1{font-size:28px}.portal-hero-copy p{font-size:14px}.portal-hero-actions{flex-direction:column;align-items:stretch}.portal-btn{width:100%;justify-content:center}.left-sidebar-stack{grid-template-columns:1fr}.portal-counter-strip strong{font-size:22px}}

/* ===== Step 5: screenshot-like science community portal ===== */
body{background:#ebe9e4;color:#211c17}.topbar{height:28px;background:#07101c;color:#dce6f2;border-bottom:0}.topbar-inner{min-height:28px; display: flex;
    align-items: center;   /* ← 이게 핵심 */
    height: 100%;}.topbar-left{font-size:11px; }.topbar-links a,.topbar-logout button{font-size:13px;color:#fff;font-weight:900}.site-header{position:sticky;top:0;z-index:300;background:#fff;border-bottom:1px solid #d9d4cc;box-shadow:0 2px 8px rgba(20,16,10,.06)}.header-inner{min-height:68px}.brand-mark{width:48px;height:48px;border-radius:17px;background:#091222;color:#e5bf55;font-size:13px;box-shadow:0 7px 18px rgba(6,12,24,.2)}.brand-text strong{font-size:22px;color:#1b1713;font-weight:950}.brand-text em{margin-top:2px;color:#9e9387;font-size:10px;letter-spacing:.12em}.desktop-nav{margin-left:auto;gap:22px}.desktop-nav a{color:#2d271f;font-size:15px;font-weight:950}.desktop-nav a:hover{color:#a77a25}.header-search{background:#fff;border:1px solid #d8cdbc;color:#332b22;border-radius:999px;padding:10px 16px;box-shadow:0 2px 6px rgba(0,0,0,.03)}
.portal-hero-step5{position:relative;min-height:305px;background:linear-gradient(115deg,#0b1424 0%,#1b2540 48%,#10141c 100%);overflow:hidden}.portal-hero-step5::before{content:'';position:absolute;inset:auto 0 0;height:72px;background:linear-gradient(180deg,rgba(235,233,228,0),#ebe9e4)}.portal-hero-step5 .portal-hero-inner{min-height:305px;padding:34px 0 54px;grid-template-columns:minmax(0,1fr) 350px;gap:38px}.portal-hero-step5 .portal-eyebrow{display:inline-flex;align-items:center;border:1px solid rgba(224,190,97,.24);background:rgba(0,0,0,.18);border-radius:999px;padding:8px 15px;color:#efc45a;font-size:13px;font-weight:950;letter-spacing:-.01em}.portal-hero-step5 .portal-hero-copy h1{font-size:clamp(38px,4.2vw,60px);line-height:1.13;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.16);margin:14px 0 18px}.portal-hero-step5 .portal-hero-copy p{max-width:650px;color:#d4e5e8;font-size:17px;line-height:1.72;font-weight:750}.portal-hero-step5 .portal-btn{border-radius:999px}.science-record-card{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 20px 46px rgba(0,0,0,.2);backdrop-filter:blur(12px);border-radius:24px}.science-record-card .portal-stat-main{border-bottom:1px solid rgba(255,255,255,.14)}.science-record-card .portal-stat-main span{color:#e8bf59}.science-record-card .portal-stat-main strong{color:#fff}.science-record-card .portal-stats-grid div{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.1)}.science-record-card .portal-stats-grid span{color:#d7dbe4}.science-record-card .portal-stats-grid strong{color:#fff}.portal-wrap-step5{margin-top:-26px;position:relative;z-index:5}.portal-grid-step5{grid-template-columns:210px minmax(0,1fr) 295px;align-items:start;gap:18px}.portal-card,.card{border:1px solid #e3dace;background:rgba(255,255,255,.96);box-shadow:0 12px 28px rgba(42,34,24,.07);border-radius:18px}.portal-card{padding:22px}.portal-card-head{margin-bottom:14px}.portal-card-head h2{font-size:24px;letter-spacing:-.05em}.section-label{color:#ad7b22}.left-sidebar-stack{gap:12px}.side-box{border-radius:16px;overflow:hidden}.side-title{background:#081121!important;color:#fff!important}.side-links a{min-height:42px}.member-gate-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.member-gate-card{position:relative;overflow:hidden;min-height:120px;border-radius:18px;padding:22px;color:#fff;background:#0d1626;box-shadow:0 12px 28px rgba(42,34,24,.08);transition:.18s ease}.member-gate-card:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(42,34,24,.12)}.member-gate-card::after{content:'';position:absolute;right:-18px;top:-35px;width:110px;height:110px;border-radius:50%;background:rgba(221,193,113,.2)}.member-gate-card span{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(221,193,113,.15);font-size:11px;font-weight:950;color:#e4c15f}.member-gate-card strong{display:block;margin-top:14px;font-size:21px;font-weight:950;letter-spacing:-.05em}.member-gate-card em{display:block;margin-top:6px;font-size:13px;font-style:normal;color:#e0d7ca}.member-gate-card.internet{background:linear-gradient(135deg,#182235,#2f312c)}.member-gate-card.general{background:linear-gradient(135deg,#0c1625,#273342)}.member-gate-card.regular{background:linear-gradient(135deg,#241b34,#1c423a)}.main-two-columns{grid-template-columns:1fr 1fr;gap:14px}.main-feed-card,.comment-main-card{min-height:365px;border-top:4px solid #bc8b31}.comment-main-card{border-top-color:#9c7b3f}.post-feed-item{grid-template-columns:84px minmax(0,1fr) 72px;padding:12px 0}.post-feed-item strong{font-size:14px}.post-feed-meta{font-size:11px}.comment-preview{padding:16px 0}.comment-preview strong{font-size:16px;color:#2c241d}.comment-preview span{font-size:13px}.review-wide-card{margin-top:14px}.review-title-list-compact .review-title-item{padding:11px 0;grid-template-columns:78px minmax(0,1fr) 76px}.review-title-list-compact .review-title-item strong{font-size:14px}.portal-counter-strip{margin-top:14px}.portal-counter-strip div{background:#fffdf9}.portal-counter-strip span{font-weight:950}.portal-counter-strip strong{color:#121926}.important-side{border-top:4px solid #bf8d31;background:linear-gradient(180deg,#fff 0%,#fff9f0 100%)}.notice-side{background:#fff}.side-news-card{padding:20px}.side-news-card .portal-card-head h2{font-size:22px}.compact-item{grid-template-columns:minmax(0,1fr) 76px;gap:10px}.compact-title{font-size:14px;font-weight:900}.compact-date{font-size:11px}.side-box-light h3,.sponsor-box h3{font-size:19px}.mobile-menu-button{border-color:#ddd;background:#f6f2ec}.mobile-menu-button span{background:#15120f}
/* detail/read pages stay bright for uploaded white images */.article,.board-table-wrap,.panel,.write-card{background:#fff!important;color:#2b241d}.article-body,.art-body,.post-content{background:#fff;color:#333}.article img,.post-content img{background:#fff}
@media (max-width:1180px){.portal-grid-step5{grid-template-columns:200px minmax(0,1fr)}.portal-right{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.portal-hero-step5 .portal-hero-inner{grid-template-columns:1fr}.science-record-card{max-width:560px}.desktop-nav{display:none}.mobile-menu-button{display:flex}.header-search{display:none}}
@media (max-width:900px){.portal-hero-step5{min-height:auto}.portal-hero-step5 .portal-hero-inner{min-height:auto;padding:28px 0 58px}.portal-grid-step5{grid-template-columns:1fr}.portal-left{order:3}.portal-center{order:1}.portal-right{order:2;display:grid;grid-template-columns:1fr}.member-gate-row,.main-two-columns{grid-template-columns:1fr}.main-feed-card,.comment-main-card{min-height:auto}.science-record-card{max-width:none}.record-stats-grid{grid-template-columns:repeat(3,1fr)}.left-sidebar-stack{grid-template-columns:1fr}.brand-text strong{font-size:17px}.portal-hero-step5 .portal-hero-copy h1{font-size:34px}.portal-hero-step5 .portal-hero-copy p{font-size:15px}}
@media (max-width:560px){.topbar{display:none}.site-header{top:0}.header-inner{min-height:62px}.brand-mark{width:40px;height:40px;font-size:11px;border-radius:13px}.brand-text strong{font-size:15px}.portal-hero-step5 .portal-eyebrow{font-size:12px;padding:7px 11px}.portal-hero-step5 .portal-hero-copy h1{font-size:29px}.portal-hero-step5 .portal-hero-actions{flex-direction:row;gap:8px}.portal-btn{padding:11px 14px;font-size:13px}.record-stats-grid{grid-template-columns:1fr}.member-gate-card{min-height:104px;padding:18px}.portal-card{padding:18px}.post-feed-item{grid-template-columns:1fr;gap:6px}.review-title-list-compact .review-title-item{grid-template-columns:1fr;gap:5px}.portal-counter-strip{grid-template-columns:1fr}.mobile-menu-panel{width:min(88vw,360px)}}


/* ===== Step 6: about dropdown menu ===== */
.desktop-nav{align-items:center}
.nav-dropdown{position:relative;display:flex;align-items:center;height:68px}
.nav-dropdown-trigger{display:inline-flex;align-items:center;gap:5px;height:68px}
.nav-dropdown-trigger::after{content:'⌄';font-size:11px;color:#a77a25;margin-top:1px}
.nav-dropdown-menu{position:absolute;top:60px;left:50%;transform:translateX(-50%) translateY(8px);min-width:178px;background:#fff;border:1px solid #e2d7c8;border-radius:14px;box-shadow:0 18px 38px rgba(24,18,12,.16);padding:9px;opacity:0;visibility:hidden;pointer-events:none;transition:.16s ease;z-index:999}
.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.nav-dropdown-menu::before{content:'';position:absolute;top:-7px;left:50%;width:12px;height:12px;background:#fff;border-left:1px solid #e2d7c8;border-top:1px solid #e2d7c8;transform:translateX(-50%) rotate(45deg)}
.nav-dropdown-menu a{display:block!important;padding:9px 11px!important;border-radius:9px!important;color:#382d22!important;font-size:13px!important;font-weight:850!important;white-space:nowrap!important;line-height:1.25!important}
.nav-dropdown-menu a:hover{background:#f7f1e7!important;color:#a77a25!important}
.mobile-submenu-block{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:-4px 0 6px;padding:8px 8px 10px;background:#f7f2ea;border:1px solid #eadfce;border-radius:12px}
.mobile-menu-links .mobile-submenu-block a{padding:8px 9px!important;background:#fff!important;border:1px solid #efe7dc!important;border-radius:9px!important;font-size:13px!important;color:#5c4b3c!important;font-weight:800!important}
@media (max-width:1180px){.nav-dropdown{display:none}}
@media (max-width:560px){.mobile-submenu-block{grid-template-columns:1fr}}


.footer-address-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.footer-location-link:hover {
    border-color: rgba(255, 255, 255, 0.48);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}


/* ===== Step 7: dropdown z-index + clipping fix ===== */
.site-header{
    position:sticky;
    top:0;
    z-index:9999!important;
    overflow:visible!important;
}
.header-inner{
    position:relative;
    z-index:10000;
    overflow:visible!important;
}
.desktop-nav{
    position:relative;
    z-index:10001;
    overflow:visible!important;
}
.nav-dropdown{
    position:relative;
    z-index:10002;
    overflow:visible!important;
}
.nav-dropdown-menu{
    z-index:10003!important;
}
.portal-hero,
.portal-hero-step5,
.portal-hero-compact{
    position:relative;
    z-index:0;
}
.portal-wrap,
.portal-wrap-step5{
    position:relative;
    z-index:1;
}
.mobile-menu-panel{z-index:10020!important}
.mobile-menu-dim{z-index:10010!important}

/* ===== JOIN GUIDE PAGE ===== */

.join-page-wrap {
    padding: 46px 0 70px;
    background: #ebe9e4;
}

.join-page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 54px 44px;
    margin-bottom: 28px;
    color: #fff;
    background:
        radial-gradient(ellipse at 75% 20%, rgba(201,163,93,.34), transparent 42%),
        radial-gradient(ellipse at 15% 90%, rgba(47,118,108,.34), transparent 38%),
        linear-gradient(135deg, #07101c 0%, #1b2540 52%, #17110c 100%);
    box-shadow: 0 18px 42px rgba(35,28,20,.14);
}

.join-page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 360px;
    height: 180px;
    border: 1px solid rgba(225,196,122,.25);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.join-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: #e6c36c;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.join-page-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -.055em;
}

.join-page-hero p {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 700;
}

.join-content-card {
    background: #fff;
    border: 1px solid #e3dace;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(45,36,26,.08);
    padding: 42px;
}

.join-article {
    max-width: 1040px;
    margin: 0 auto;
    color: #2b241d;
}

.join-article h2 {
    margin: 0 0 26px;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -.05em;
    font-family: 'Noto Serif KR', serif;
}

.join-article h3 {
    margin: 46px 0 18px;
    padding-top: 22px;
    border-top: 1px solid #eee5d9;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 950;
    letter-spacing: -.04em;
}

.join-article p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.95;
    color: #342f29;
}

.join-note-box {
    margin: 34px 0;
    padding: 24px 26px;
    border-radius: 18px;
    background: #fff9ef;
    border: 1px solid #eadcc6;
}

.join-note-box strong {
    display: block;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 950;
    color: #211c17;
}

.join-note-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.join-note-box li {
    margin: 8px 0;
    color: #4c443b;
    font-size: 15px;
    line-height: 1.65;
}

.join-benefit-table {
    overflow: hidden;
    border: 1px solid #d9cfc1;
    border-radius: 18px;
    background: #fff;
}

.jbt-row {
    display: grid;
    grid-template-columns: 120px repeat(3, 1fr);
    border-top: 1px solid #e5dbcc;
}

.jbt-row:first-child {
    border-top: 0;
}

.jbt-row > div {
    padding: 20px 18px;
    border-left: 1px solid #e5dbcc;
    text-align: center;
    font-size: 17px;
    line-height: 1.75;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jbt-row > div:first-child {
    border-left: 0;
    font-weight: 950;
    background: #fbf6ed;
}

.jbt-head > div {
    background: #111927 !important;
    color: #fff;
    font-size: 19px;
    font-weight: 950;
}

.jbt-benefit > div {
    min-height: 280px;
    font-size: 16px;
    font-weight: 700;
}

.jbt-benefit > div:first-child {
    font-size: 19px;
}

.join-number-list {
    margin: 0;
    padding-left: 24px;
}

.join-number-list li {
    margin: 12px 0;
    padding-left: 4px;
    font-size: 17px;
    line-height: 1.8;
}

.join-number-list span {
    color: #777;
}

.join-bank-box {
    margin: 18px 0 24px;
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, #111927, #263248);
    color: #fff;
}

.join-bank-box span {
    display: block;
    margin-bottom: 8px;
    color: #e1c47a;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
}

.join-bank-box strong {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 950;
}

.join-bank-box em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: rgba(255,255,255,.76);
    font-size: 15px;
}

.join-warning-box {
    margin: 24px 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f8f1e7;
    border-left: 5px solid #c7a35d;
    color: #41362c;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 750;
}

.join-cta-area {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid #eee5d9;
    flex-wrap: wrap;
}

.join-main-btn,
.join-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 950;
}

.join-main-btn {
    background: #c7a35d;
    color: #111927;
}

.join-sub-btn {
    background: #111927;
    color: #fff;
}

@media (max-width: 900px) {
    .join-page-wrap {
        padding: 28px 0 52px;
    }

    .join-page-hero {
        padding: 38px 26px;
        border-radius: 20px;
    }

    .join-content-card {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .join-article h2 {
        font-size: 28px;
    }

    .join-article h3 {
        font-size: 22px;
    }

    .join-article p {
        font-size: 16px;
    }

    .join-benefit-table {
        overflow-x: auto;
    }

    .jbt-row {
        min-width: 820px;
    }
}

@media (max-width: 560px) {
    .join-page-hero h1 {
        font-size: 30px;
    }

    .join-page-hero p {
        font-size: 15px;
    }

    .join-content-card {
        padding: 22px 16px;
    }

    .join-bank-box strong {
        font-size: 20px;
    }

    .join-main-btn,
    .join-sub-btn {
        width: 100%;
    }
}

.about-page .article-subtitle {
    margin-top: 10px;
    color: #6f665d;
    font-size: 15px;
}

.about-visual-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    padding: 30px;
    border-radius: 20px;
    background: #f5efe5;
}

.hero-text h2 {
    font-size: 32px;
    font-weight: 900;
}

.hero-image img {
    width: 200px;
    border-radius: 10px;
}

.about-section {
    margin-top: 30px;
}

.about-quote {
    margin-top: 30px;
    padding: 20px;
    background: #fbf8f1;
    border-left: 5px solid #7c7567;
}

.purpose-doc {
    white-space: pre-wrap;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #2d2924;
}

.business-page {
    color: #312b25;
}

.business-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(201,163,93,.35), transparent 34%),
        radial-gradient(circle at 18% 80%, rgba(47,118,108,.35), transparent 36%),
        linear-gradient(135deg, #07101c 0%, #1b2540 55%, #17110c 100%);
}

.business-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    color: #e1c47a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
}

.business-hero h2 {
    margin: 0 0 12px;
    font-family: 'Noto Serif KR', serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.05em;
}

.business-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.8;
}

.business-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.business-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    padding: 24px;
    border: 1px solid #e7dfd4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(47,41,35,.055);
}

.business-num {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #111927;
    color: #e1c47a;
    font-size: 18px;
    font-weight: 950;
}

.business-content h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -.04em;
    color: #2f2923;
}

.business-content h3 small {
    display: inline-block;
    margin-left: 6px;
    color: #8b7b68;
    font-size: 14px;
    font-weight: 800;
}

.business-content p {
    margin: 0;
    color: #50473f;
    font-size: 16px;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .business-hero {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .business-hero h2 {
        font-size: 29px;
    }

    .business-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .business-num {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 16px;
    }

    .business-content h3 {
        font-size: 20px;
    }

    .business-content h3 small {
        display: block;
        margin: 5px 0 0;
    }
}
.executive-page {
    color: #312b25;
}

.executive-hero {
    margin-bottom: 34px;
    padding: 34px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(201,163,93,.35), transparent 34%),
        radial-gradient(circle at 18% 80%, rgba(47,118,108,.35), transparent 36%),
        linear-gradient(135deg, #07101c 0%, #1b2540 55%, #17110c 100%);
}

.executive-hero span,
.executive-section-head span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #c7a35d;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.executive-hero span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    color: #e1c47a;
}

.executive-hero h2 {
    margin: 0 0 12px;
    font-family: 'Noto Serif KR', serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.05em;
}

.executive-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.8;
}

.executive-section {
    margin-top: 44px;
}

.executive-section-head {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8dfd1;
}

.executive-section-head h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -.04em;
    color: #2f2923;
}

.profile-feature-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #fff8ef 100%);
    border: 1px solid #eadfce;
    box-shadow: 0 10px 26px rgba(47,41,35,.07);
}

.profile-photo {
    position: relative;
    overflow: hidden;
    width: 132px;
    height: 132px;
    border-radius: 28px;
    background: linear-gradient(135deg, #111927, #35445d);
    border: 1px solid #e2d8ca;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.profile-photo.small {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    margin-bottom: 14px;
}

.profile-photo img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #e1c47a;
    font-size: 38px;
    font-weight: 950;
    font-family: 'Noto Serif KR', serif;
}

.profile-photo.small .profile-placeholder {
    font-size: 28px;
}

.profile-photo.no-image img {
    display: none;
}

.profile-info strong,
.profile-card strong {
    display: block;
    color: #2f2923;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.profile-info p,
.profile-card p {
    margin: 7px 0 0;
    color: #5c5248;
    font-size: 15px;
    line-height: 1.55;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.profile-grid.two {
    grid-template-columns: repeat(3, 1fr);
}

.profile-card {
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e7dfd4;
    box-shadow: 0 8px 22px rgba(47,41,35,.055);
}

.profile-card strong {
    font-size: 18px;
}

.profile-card em {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f4ecdf;
    color: #8b6d43;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.admin-card {
    background: #fffaf2;
}

@media (max-width: 1000px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-grid.two {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .executive-hero {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .executive-hero h2 {
        font-size: 29px;
    }

    .profile-feature-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .profile-grid,
    .profile-grid.two {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-height: auto;
    }
}

.location-page {
    color: #312b25;
}

.location-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
    padding: 34px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(201,163,93,.35), transparent 34%),
        radial-gradient(circle at 18% 80%, rgba(47,118,108,.35), transparent 36%),
        linear-gradient(135deg, #07101c 0%, #1b2540 55%, #17110c 100%);
}

.location-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    color: #e1c47a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.location-hero h2 {
    margin: 0 0 12px;
    font-family: 'Noto Serif KR', serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.05em;
}

.location-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.8;
}

.location-info-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 16px;
    margin-bottom: 24px;
}

.location-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid #e7dfd4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(47,41,35,.055);
}

.location-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: #111927;
    color: #e1c47a;
    font-size: 22px;
    font-weight: 900;
}

.location-info-card strong {
    display: block;
    margin-bottom: 6px;
    color: #2f2923;
    font-size: 18px;
    font-weight: 950;
}

.location-info-card p {
    margin: 0;
    color: #50473f;
    font-size: 16px;
    line-height: 1.7;
}

.simple-map-wrap {
    margin-top: 20px;
}

.simple-map {
    position: relative;
    overflow: hidden;
    height: 420px;
    border-radius: 26px;
    border: 1px solid #dfd4c5;
    background:
        linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.55) 1px, transparent 1px),
        #efe7da;
    background-size: 42px 42px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.map-road {
    position: absolute;
    display: grid;
    place-items: center;
    background: #c7b99f;
    color: #fff;
    font-weight: 950;
    letter-spacing: .06em;
    box-shadow: 0 6px 16px rgba(82,68,49,.12);
}

.road-main {
    left: -20px;
    right: -20px;
    top: 52%;
    height: 78px;
    transform: rotate(-8deg);
}

.road-vertical {
    top: -30px;
    bottom: -30px;
    left: 24%;
    width: 72px;
    transform: rotate(8deg);
    writing-mode: vertical-rl;
}

.map-block {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(204,192,174,.8);
    color: #8a7b68;
    font-size: 13px;
    font-weight: 900;
}

.block-a {
    left: 8%;
    top: 12%;
    width: 170px;
    height: 90px;
}

.block-b {
    right: 12%;
    top: 12%;
    width: 210px;
    height: 105px;
}

.block-c {
    right: 8%;
    bottom: 12%;
    width: 190px;
    height: 90px;
}

.map-building {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 250px;
    min-height: 130px;
    transform: translate(-50%, -50%);
    padding: 22px 20px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(135deg, #111927, #27364d);
    color: #fff;
    box-shadow: 0 20px 45px rgba(17,25,39,.28);
    z-index: 4;
}

.map-building::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 28px;
    height: 28px;
    background: #27364d;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 4px;
}

.building-pin {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #c7a35d;
    color: #111927;
    font-size: 13px;
    font-weight: 950;
}

.map-building strong {
    display: block;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -.04em;
}

.map-building span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.map-compass {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0d6c8;
    color: #111927;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 8px 20px rgba(47,41,35,.08);
}

.map-compass::before {
    content: "";
    position: absolute;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 13px solid #c7a35d;
}

.map-caption {
    margin-top: 10px;
    color: #81766b;
    font-size: 14px;
    text-align: right;
}

.location-guide {
    margin-top: 32px;
    padding: 24px;
    border-radius: 20px;
    background: #fffaf2;
    border: 1px solid #eadfce;
}

.location-guide h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 950;
    color: #2f2923;
    letter-spacing: -.04em;
}

.location-guide ul {
    margin: 0;
    padding-left: 20px;
}

.location-guide li {
    margin: 8px 0;
    color: #50473f;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .location-info-grid {
        grid-template-columns: 1fr;
    }

    .simple-map {
        height: 360px;
    }

    .map-building {
        width: 220px;
    }

    .block-a,
    .block-b,
    .block-c {
        opacity: .55;
    }
}

@media (max-width: 560px) {
    .location-hero {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .location-hero h2 {
        font-size: 29px;
    }

    .location-info-card {
        padding: 20px;
    }

    .simple-map {
        height: 330px;
        border-radius: 20px;
    }

    .road-main {
        height: 64px;
    }

    .road-vertical {
        width: 56px;
    }

    .map-building {
        width: 200px;
        min-height: 116px;
        padding: 18px 16px;
    }

    .map-building strong {
        font-size: 21px;
    }

    .map-building span {
        font-size: 13px;
    }

    .map-caption {
        text-align: left;
        font-size: 13px;
    }
}
/* ==============================
   FINAL MOBILE MENU FIX
============================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.mobile-menu-button {
    display: none;
}

.mobile-menu-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(86vw, 340px) !important;
    max-width: 340px !important;
    height: 100dvh !important;
    background: #fff !important;
    color: #211c17 !important;
    z-index: 100020 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    box-shadow: -16px 0 40px rgba(0,0,0,.25) !important;
    transform: translateX(105%) !important;
    transition: transform .25s ease !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: block !important;
}

.mobile-menu-dim {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.45) !important;
    z-index: 100010 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .2s ease !important;
    display: block !important;
}

body.mobile-menu-open {
    overflow: hidden !important;
    touch-action: none;
}

body.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.mobile-menu-open .mobile-menu-dim {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-menu-head {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #eee6dc;
    background: #fff;
}

.mobile-menu-head strong {
    font-size: 18px;
    font-weight: 950;
}

.mobile-menu-head button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f4efe8;
    color: #2b241d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu-links {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 13px;
    background: #f8f4ee;
    color: #2b241d;
    font-weight: 850;
    font-size: 14px;
}

.mobile-submenu-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: -2px 0 6px;
    padding: 8px;
    background: #f7f2ea;
    border: 1px solid #eadfce;
    border-radius: 12px;
}

.mobile-menu-links .mobile-submenu-block a {
    min-height: 38px;
    padding: 8px 10px !important;
    background: #fff !important;
    border: 1px solid #efe7dc !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    color: #5c4b3c !important;
    font-weight: 800 !important;
}

.mobile-menu-auth {
    padding: 14px 12px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid #eee6dc;
    background: #fff;
}

.mobile-menu-auth a,
.mobile-logout-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    background: #121926;
    color: #fff;
    font-weight: 900;
    border: 0;
    cursor: pointer;
    width: 100%;
}

.mobile-logout-form {
    margin: 0;
}

@media (max-width: 1180px) {
    .desktop-nav,
    .header-search {
        display: none !important;
    }

    .mobile-menu-button {
        display: inline-flex !important;
        width: 42px;
        height: 42px;
        border: 1px solid #ddd;
        background: #f6f2ec;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .mobile-menu-button span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 999px;
        background: #15120f;
    }
}

@media (min-width: 1181px) {
    .mobile-menu-button,
    .mobile-menu-panel,
    .mobile-menu-dim {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .mobile-menu-panel {
        width: min(88vw, 340px) !important;
    }

    .mobile-menu-auth {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   REAL MOBILE LAYOUT FIX
   - 좌측 사이드바가 옆에 남는 문제 해결
============================== */

@media (max-width: 900px) {
    .subpage-grid,
    .main-grid,
    .portal-grid,
    .portal-grid-step5,
    .portal-grid-rebalanced {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }

    .left-column,
    .portal-left,
    .subpage-grid > aside {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
    }

    .center-column,
    .portal-center,
    .subpage-grid > article {
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
    }

    .right-column,
    .portal-right {
        width: 100% !important;
        max-width: 100% !important;
        order: 3 !important;
    }

    aside {
        max-width: 100% !important;
    }

    .left-sidebar-stack,
    .about-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==============================
   MOBILE BOARD LIST FINAL CLEAN
============================== */

@media (max-width: 900px) {
    .board-table-wrap {
        padding: 0 12px 18px !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .post-table,
    .post-table tbody,
    .post-table tr,
    .post-table td {
        display: block !important;
        width: 100% !important;
    }

    .post-table {
        min-width: 0 !important;
        border: 0 !important;
    }

    .post-table thead {
        display: none !important;
    }

    .post-table tr {
        margin-bottom: 10px !important;
        padding: 13px 14px !important;
        border: 1px solid #eadfce !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .post-table td {
        border: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* 번호 */
    .post-table td:nth-child(1) {
        display: inline-block !important;
        width: auto !important;
        margin-bottom: 5px !important;
        font-size: 11px !important;
        color: #9a8f82 !important;
        font-weight: 800 !important;
    }

    /* 제목 */
    .post-table td:nth-child(2) {
        margin-bottom: 8px !important;
    }

    .post-title-link {
        display: block !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-break: keep-all !important;
        overflow-wrap: anywhere !important;
        font-size: 16px !important;
        line-height: 1.42 !important;
        font-weight: 950 !important;
        color: #111 !important;
    }

    /* 작성자 */
    .post-table td:nth-child(3),
    .post-table td:nth-child(4),
    .post-table td:nth-child(5) {
        display: inline-block !important;
        width: auto !important;
        margin-right: 10px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #8b8175 !important;
        font-weight: 750 !important;
        vertical-align: middle !important;
    }

    /* 작성자 앞 */
    .post-table td:nth-child(3)::before {
        content: "작성자 ";
        color: #b0a598;
        font-weight: 700;
    }

    /* 날짜 앞 */
    .post-table td:nth-child(4)::before {
        content: "날짜 ";
        color: #b0a598;
        font-weight: 700;
    }

    /* 조회수 앞 */
    .post-table td:nth-child(5)::before {
        content: "조회 ";
        color: #b0a598;
        font-weight: 700;
    }

    /* 댓글 뱃지 */
    .badge {
        display: inline-flex !important;
        min-width: auto !important;
        margin-left: 5px !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        vertical-align: 1px !important;
    }

    .search-bar {
        padding: 12px !important;
        background: #fff !important;
    }

    .search-form {
        display: grid !important;
        grid-template-columns: 86px 1fr !important;
        gap: 8px !important;
    }

    .search-form select,
    .search-form input,
    .search-form button {
        height: 40px !important;
        font-size: 14px !important;
    }

    .search-form button {
        grid-column: 1 / -1 !important;
    }
}

/* ==============================
   MOBILE AUTH - SMALL INLINE STYLE FINAL
   회원 메뉴: 상단 가로 텍스트형
============================== */

@media (max-width: 1180px) {
    .mobile-menu-auth {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0 !important;

        margin: 0 !important;
        padding: 10px 14px !important;

        background: #081121 !important;
        border-top: 0 !important;
        border-bottom: 1px solid #1d2638 !important;
    }

    .mobile-menu-auth a,
    .mobile-menu-auth button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        color: #fff !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
    }

    .mobile-menu-auth a::after,
    .mobile-menu-auth button::after {
        content: "·";
        display: inline-block;
        margin: 0 8px;
        color: rgba(255,255,255,.45);
        font-weight: 700;
    }

    .mobile-menu-auth a:last-of-type::after,
    .mobile-menu-auth form:last-child button::after {
        content: "";
        margin: 0;
    }

    .mobile-menu-auth form {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    .mobile-menu-links {
        padding-top: 12px !important;
    }
}

@media (max-width: 560px) {
    .mobile-menu-auth {
        padding: 9px 12px !important;
        row-gap: 3px !important;
    }

    .mobile-menu-auth a,
    .mobile-menu-auth button {
        font-size: 12px !important;
    }

    .mobile-menu-auth a::after,
    .mobile-menu-auth button::after {
        margin: 0 6px;
    }
}

/* 모바일 회원 메뉴 로그아웃 간격 보정 */
@media (max-width: 1180px) {
    .mobile-menu-auth form {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .mobile-menu-auth form::before {
        content: "·";
        margin: 0 7px;
        color: rgba(255,255,255,.7);
        font-weight: 900;
    }

    .mobile-menu-auth button {
        background: none !important;
        border: 0 !important;
        padding: 0 !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        cursor: pointer;
        line-height: 1.2 !important;
    }
}

.member-mini-profile {
    display:flex;
    gap:12px;
    align-items:center;
    padding:16px;
    border-bottom:1px solid #eee6dc;
}

.member-avatar {
    width:46px;
    height:46px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:#111927;
    color:#e1c47a;
    font-size:18px;
    font-weight:950;
}

.member-info strong {
    display:block;
    font-size:16px;
    font-weight:950;
}

.member-info em {
    display:inline-block;
    margin-top:6px;
    padding:3px 8px;
    border-radius:999px;
    background:#f4ecdf;
    font-size:12px;
    font-weight:900;
}

.member-point-row {
    display:flex;
    justify-content:space-between;
    padding:12px 16px;
    background:#fffaf2;
    border-bottom:1px solid #eee6dc;
}

.message-count-badge {
    margin-left:auto;
    background:#b45b47;
    color:#fff;
    font-size:12px;
    padding:2px 7px;
    border-radius:999px;
}

.side-logout-form button {
    width:100%;
    padding:10px 16px;
    border:0;
    border-top:1px solid #f1ece5;
    background:#fff;
    text-align:left;
    cursor:pointer;
}

/* 회원 메뉴 최종 보정 */
.member-info em {
    font-style: normal !important;
}

.member-links a,
.side-logout-form button {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 11px 16px !important;
    color: #433d36 !important;
    font-family: 'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',Arial,sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left;
    background: #fff;
    border-top: 1px solid #f1ece5;
    cursor: pointer;
}

.member-links a:hover,
.side-logout-form button:hover {
    background: #fbf8f2;
    color: #796143 !important;
}

.member-links a:nth-of-type(1)::before {
    content: "👤";
}

.member-links a:nth-of-type(2)::before {
    content: "📝";
}

.member-links a:nth-of-type(3)::before {
    content: "💬";
}

.member-links a:nth-of-type(4)::before {
    content: "✉️";
}

.side-logout-form button::before {
    content: "🔓";
}
/* ==============================
   HOME MAIN CARDS FINAL
   최근 작성글 / 최근 댓글 / 공지 카드 정렬
============================== */

.main-two-columns {
    align-items: stretch !important;
}

/* 카드 높이 통일 */
.main-feed-card,
.comment-main-card {
    overflow: hidden !important;
}

/* 카드 헤더 */
.main-feed-card .portal-card-head,
.comment-main-card .portal-card-head {
    margin-bottom: 20px !important;
}

.main-feed-card .portal-card-head h2,
.comment-main-card .portal-card-head h2 {
    font-size: 26px !important;
    font-weight: 850 !important;
    letter-spacing: -0.04em !important;
}

.section-label {
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: 0.18em !important;
}

/* 리스트 공통 */
.post-feed-list,
.comment-list,
.comment-list-grid {
    display: flex !important;
    flex-direction: column !important;
}

/* 최근 작성글 */
.post-feed-item {
    grid-template-columns: 86px minmax(0, 1fr) 76px !important;
    gap: 10px !important;
    height: 53px !important;
    min-height: 53px !important;
    padding: 10px 0 !important;
}

.post-feed-item strong {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
}

.board-chip {
    min-height: 26px !important;
    max-width: 86px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.post-feed-meta {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #9a9086 !important;
}


/* 우측 공지 카드 톤 */
.side-news-card .compact-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.45 !important;
}

.side-news-card .compact-date {
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* 좌측 회원 메뉴 톤 */
.member-info strong {
    font-weight: 800 !important;
}

.member-links a,
.side-logout-form button {
    font-weight: 600 !important;
}

.left-banner-big,
.left-banner-title {
    font-weight: 800 !important;
}

/* 모바일에서는 카드 높이 고정 해제 */
@media (max-width: 900px) {
    .main-feed-card,
    .comment-main-card {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .post-feed-item,
    .comment-preview {
        height: auto !important;
        min-height: auto !important;
    }
}

.comment-preview {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 48px !important;
    padding: 8px 0 !important;
    border-top: 1px solid #eee;
}

.comment-preview strong {
    flex: 1;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-date {
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 12px;
    color: #9a9086;
}

.auth-page-wrap {
    min-height: calc(100vh - 260px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px 80px;
}

.auth-card {
    width: min(100%, 560px);
    padding: 38px 36px 34px;
    background: #fff;
    border: 1px solid #e3dace;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(42,34,24,.08);
}

.auth-head span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #ad7b22;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .16em;
}

.auth-head h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -.05em;
}

.auth-head p {
    margin: 10px 0 28px;
    color: #7d756b;
    font-size: 15px;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #fff1f1;
    border: 1px solid #f3c5c5;
    color: #a33a32;
    font-size: 14px;
    font-weight: 800;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #2f2923;
    font-size: 14px;
    font-weight: 900;
}

.auth-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e2d8ca;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.auth-field input:focus {
    border-color: #c7a35d;
    box-shadow: 0 0 0 4px rgba(199,163,93,.16);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f574f;
    font-size: 14px;
    font-weight: 700;
}

.auth-submit {
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #111927;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
}

.auth-submit:hover {
    background: #1d2638;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    font-size: 14px;
}

.auth-links a {
    color: #796143;
    font-weight: 800;
}

@media (max-width: 560px) {
    .auth-page-wrap {
        padding: 28px 12px 56px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .auth-head h1 {
        font-size: 32px;
    }

    .auth-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ===== 약관 영역 ===== */
.agree-box {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
}

.agree-check {
    display:flex;
    gap:8px;
    font-size:14px;
}

.agree-view-btn {
    background:none;
    border:1px solid #ddd;
    padding:6px 12px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
}

/* ===== 모달 ===== */
.terms-modal {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.terms-content {
    width:90%;
    max-width:700px;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
}

.terms-header {
    display:flex;
    justify-content:space-between;
    padding:16px;
    border-bottom:1px solid #eee;
    font-weight:800;
}

.terms-body {
    padding:16px;
    max-height:400px;
    overflow-y:auto;
    font-size:13px;
    line-height:1.6;
    background:#fafafa;
}

.terms-body pre {
    white-space:pre-wrap;
}

.terms-footer {
    padding:16px;
    text-align:center;
}

.terms-page {
    max-width: 980px;
    margin: 0 auto;
}

.terms-body h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 950;
}

.terms-body h3 {
    margin: 32px 0 10px;
    font-size: 20px;
    font-weight: 900;
    color: #2f2923;
}

.terms-body p {
    font-size: 16px;
    line-height: 1.9;
    color: #433d36;
}

.terms-notice {
    margin-top: 36px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff8ec;
    border: 1px solid #eadcc6;
    color: #796143;
    font-size: 14px;
    font-weight: 800;
}

.privacy-page {
    max-width: 980px;
    margin: 0 auto;
}

.privacy-body h2 {
    font-size: 28px;
    font-weight: 950;
    margin-bottom: 24px;
}

.privacy-body h3 {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 900;
}

.privacy-body p {
    font-size: 16px;
    line-height: 1.9;
    color: #433d36;
}

.privacy-body ul {
    margin-top: 8px;
    padding-left: 18px;
    color: #433d36;
}

.privacy-notice {
    margin-top: 36px;
    padding: 18px;
    border-radius: 14px;
    background: #eef6ff;
    border: 1px solid #d5e6ff;
    font-size: 14px;
    font-weight: 700;
}


.auth-page-wrap {
    min-height: calc(100vh - 260px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px 80px;
}

.auth-card {
    width: min(100%, 560px);
    padding: 38px 36px 34px;
    background: #fff;
    border: 1px solid #e3dace;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(42,34,24,.08);
}

.register-card {
    width: min(100%, 760px);
}

.auth-head span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #ad7b22;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .16em;
}

.auth-head h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -.05em;
}

.auth-head p {
    margin: 10px 0 28px;
    color: #7d756b;
    font-size: 15px;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #fff1f1;
    border: 1px solid #f3c5c5;
    color: #a33a32;
    font-size: 14px;
    font-weight: 800;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.auth-grid .full {
    grid-column: 1 / -1;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #2f2923;
    font-size: 14px;
    font-weight: 900;
}

.auth-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e2d8ca;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.auth-field input + input {
    margin-top: 8px;
}

.auth-field input:focus {
    border-color: #c7a35d;
    box-shadow: 0 0 0 4px rgba(199,163,93,.16);
}

.address-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 8px;
    margin-bottom: 8px;
}

.address-btn {
    height: 52px;
    border-radius: 14px;
    font-weight: 900;
}

.auth-agree-box {
    padding: 16px;
    border: 1px solid #eadfce;
    border-radius: 16px;
    background: #fffaf2;
}

.auth-agree-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #3b342d;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

.auth-agree-check input {
    margin-top: 5px;
}

.auth-agree-check.optional {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee2d3;
}

.auth-agree-check em {
    font-style: normal;
    color: #9a9086;
    font-size: 12px;
    font-weight: 800;
}

.auth-agree-links {
    margin-top: 10px;
    padding-left: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #8b8175;
    font-size: 13px;
}

.auth-agree-links a {
    color: #796143;
    font-weight: 900;
}

.auth-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #111927;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
}

.auth-submit:hover {
    background: #1d2638;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    font-size: 14px;
}

.auth-links.single {
    justify-content: center;
}

.auth-links a {
    color: #796143;
    font-weight: 800;
}

@media (max-width: 640px) {
    .auth-page-wrap {
        padding: 28px 12px 56px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .auth-head h1 {
        font-size: 32px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .address-row {
        grid-template-columns: 1fr;
    }
}

.board-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 18px;
}

.btn-line,
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-line {
    border: 1px solid #e2d8ca;
    color: #6d6358;
    background: #fff;
}

.btn-primary {
    background: #111927;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #1c2436;
}

.btn-icon {
    font-size: 12px;   /* ← 기존보다 작게 */
    line-height: 1;
}.search-bar {
    display: flex;
    justify-content: center;
    margin: 26px 0;
}

.search-form {
    width: 100%;
    max-width: 520px;
    display: flex;
    gap: 8px;
}

.search-form select,
.search-form input {
    height: 40px;
    border: 1px solid #e2d8ca;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
}

.search-form input {
    flex: 1;
}

.search-form button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    border-radius: 10px;
    border: none;
    background: #111927;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}


.pagination-wrap {
    padding: 24px 28px 30px;
    display: flex;
    justify-content: center;
}

.mh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mh-page {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2d8ca;
    border-radius: 9px;
    background: #fff;
    color: #5f574f;
    font-size: 13px;
    font-weight: 800;
}

.mh-page.active {
    background: #111927;
    border-color: #111927;
    color: #fff;
}

.mh-page:hover {
    background: #f6f1e8;
}

.mh-page.disabled {
    opacity: .35;
}

.mh-page.dots {
    border: 0;
    background: transparent;
    min-width: 24px;
}

.post-attachments {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid #e5dfd5;
    border-radius: 14px;
    background: #faf8f3;
}

.attachments-title {
    font-size: 15px;
    font-weight: 800;
    color: #3a332b;
    margin-bottom: 12px;
}

.attachments-title span {
    margin-left: 6px;
    font-size: 13px;
    color: #8a7f70;
}

.attachments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.attachments-list li + li {
    margin-top: 8px;
}

.attachments-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee7dc;
    color: #3a332b;
    text-decoration: none;
    font-size: 14px;
}

.attachments-list a:hover {
    background: #f3eee6;
}

.file-icon {
    flex: 0 0 auto;
}

.file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    flex: 0 0 auto;
    color: #8a7f70;
    font-size: 13px;
}

.about-magazine {
    overflow: hidden;
    background: #fff;
}

.magazine-cover {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    padding: 56px;
    background:
        linear-gradient(135deg, rgba(47,41,35,.92), rgba(124,117,103,.82)),
        url('/images/about/book-brain-all.jpg') center/cover no-repeat;
    color: #fff;
    border-radius: 18px;
    margin-bottom: 48px;
}

.cover-copy .eyebrow {
    font-size: 13px;
    letter-spacing: .18em;
    font-weight: 800;
    opacity: .8;
    margin-bottom: 18px;
}

.cover-copy h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 900;
    margin: 0 0 22px;
    letter-spacing: -1.5px;
}

.cover-copy p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 560px;
    opacity: .92;
}

.cover-photo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cover-photo img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    border: 6px solid rgba(255,255,255,.35);
    box-shadow: 0 24px 50px rgba(0,0,0,.35);
}

.magazine-body {
    padding: 0 12px 20px;
}

.chapter {
    margin-bottom: 64px;
}

.chapter-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .2em;
    font-weight: 900;
    color: #8c6b3f;
    border-top: 2px solid #8c6b3f;
    padding-top: 8px;
    margin-bottom: 18px;
}

.chapter h2 {
    font-size: 32px;
    line-height: 1.3;
    color: #2f2923;
    margin: 0 0 22px;
    letter-spacing: -1px;
}

.chapter p {
    font-size: 16px;
    line-height: 1.9;
    color: #4b453e;
}

.lead {
    font-size: 20px !important;
    font-weight: 700;
    color: #2f2923 !important;
}

.chapter-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 42px;
    align-items: start;
}

.profile-card {
    background: #f7f2ea;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 28px;
}

.profile-card h3 {
    font-size: 18px;
    margin: 0 0 18px;
    color: #2f2923;
}

.profile-card ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.profile-card li {
    font-size: 15px;
    line-height: 1.75;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.profile-card li:last-child {
    border-bottom: 0;
}

.magazine-quote {
    margin: 56px 0 70px;
    padding: 44px;
    background: #2f2923;
    color: #fff;
    border-radius: 22px;
    position: relative;
}

.magazine-quote span {
    position: absolute;
    top: 16px;
    left: 28px;
    font-size: 80px;
    opacity: .18;
    font-family: serif;
}

.magazine-quote strong {
    display: block;
    font-size: 28px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.magazine-quote p {
    color: rgba(255,255,255,.78);
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-box {
    padding: 26px;
    border-radius: 18px;
    background: #faf8f4;
    border: 1px solid #eee4d6;
}

.feature-box b {
    display: block;
    font-size: 21px;
    color: #2f2923;
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.book-list {
    display: grid;
    gap: 24px;
}

.book-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 26px;
    padding: 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.book-cover {
    width: 130px;
    height: 170px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-item h3 {
    font-size: 24px;
    margin: 4px 0 12px;
    color: #2f2923;
}

.timeline {
    display: grid;
    gap: 16px;
    border-left: 3px solid #d7c4aa;
    padding-left: 26px;
}

.timeline div {
    position: relative;
    padding: 18px 22px;
    background: #faf8f4;
    border-radius: 16px;
}

.timeline div::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8c6b3f;
}

.timeline b {
    display: block;
    font-size: 20px;
    color: #8c6b3f;
    margin-bottom: 6px;
}

.timeline p {
    margin: 0;
}

.interview-box {
    padding: 34px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8efe0, #fff);
    border: 1px solid #eadfce;
    margin-bottom: 24px;
}

.interview-box p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2f2923;
}

@media (max-width: 900px) {
    .magazine-cover {
        grid-template-columns: 1fr;
        padding: 34px 26px;
    }

    .cover-copy h1 {
        font-size: 36px;
    }

    .cover-photo {
        justify-content: flex-start;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .magazine-cover {
        margin: -8px -4px 36px;
        border-radius: 16px;
    }

    .cover-copy h1 {
        font-size: 31px;
    }

    .cover-copy p {
        font-size: 15px;
    }

    .cover-photo img {
        width: 170px;
        height: 220px;
    }

    .chapter h2 {
        font-size: 26px;
    }

    .lead {
        font-size: 18px !important;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .book-item {
        grid-template-columns: 1fr;
    }

    .book-cover {
        width: 120px;
        height: 160px;
    }

    .magazine-quote {
        padding: 34px 24px;
    }

    .magazine-quote strong {
        font-size: 22px;
    }
}

.profile-card {
    overflow: hidden;
}

.profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #7c7567;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border-bottom: 1px solid #e6ded2;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #7c7567;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.profile-name {
    font-size: 22px;
    font-weight: 900;
    color: #1f2933;
}

.profile-email {
    margin-top: 4px;
    color: #7c7567;
}

.profile-info-grid {
    padding: 26px 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-item {
    padding: 16px 18px;
    border: 1px solid #e4dacb;
    border-radius: 16px;
    background: #fffaf3;
}

.info-item span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #8a6b3d;
}

.info-item strong {
    display: block;
    font-size: 16px;
    color: #2f2923;
    word-break: break-all;
}

.info-wide {
    grid-column: 1 / -1;
}

.profile-actions {
    padding: 0 28px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .profile-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .profile-summary {
        padding: 20px;
    }

    .profile-actions {
        padding: 0 20px 24px;
    }
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #2f2923;
}

.section-desc {
    margin: 6px 0 20px;
    color: #7c7567;
    font-size: 14px;
}

.password-change-box {
    margin-top: 10px;
}

.profile-edit-wrap {
    padding: 24px;
    max-width: 720px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    color: #2f2923;
}

.form-row input {
    width: 100%;
    height: 52px;
    border: 1px solid #ded2bf;
    border-radius: 14px;
    padding: 0 15px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}

.form-row input:disabled {
    background: #f4f0e8;
    color: #8a8173;
}

.form-help {
    margin-top: 6px;
    font-size: 13px;
    color: #8a8173;
}

.address-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
    margin-bottom: 10px;
}

.check-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.check-label input {
    width: auto;
    height: auto;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.profile-divider {
    margin: 34px 0;
    border: 0;
    border-top: 1px solid #e6ded2;
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #2f2923;
}

.section-desc {
    margin: 6px 0 20px;
    color: #7c7567;
    font-size: 14px;
}

.form-success {
    padding: 13px 15px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #f0fff4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-error {
    padding: 13px 15px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #fff3f0;
    border: 1px solid #ffd6cc;
    color: #b42318;
}

@media (max-width: 768px) {
    .profile-edit-wrap {
        padding: 18px;
    }

    .form-grid-2,
    .address-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-wrap: wrap;
    }
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-feature-card {
    min-height: 260px;
}

.home-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-post-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(80, 70, 55, .12);
    color: inherit;
    text-decoration: none;
}

.home-post-item strong {
    min-width: 0;
    font-size: 15px;
    color: #2f2923;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-post-item span {
    flex: 0 0 auto;
    font-size: 12px;
}

.thursday-book-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thursday-book-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #faf7f1;
    text-decoration: none;
    color: inherit;
}

.book-thumb {
    width: 58px;
    height: 78px;
    flex: 0 0 58px;
    border-radius: 8px;
    background: #d9d0bf;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6f6558;
    font-size: 12px;
    font-weight: 800;
}

.book-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    min-width: 0;
}

.book-info strong {
    display: block;
    font-size: 15px;
    color: #2f2923;
    line-height: 1.4;
}

.book-info span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8a8174;
}

@media (max-width: 900px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-post-item {
        display: block;
    }

    .home-post-item span {
        display: block;
        margin-top: 5px;
    }
}

/* 목요줌 중앙 카드 */
.thursday-center-card {
    text-align: center;
    margin-top: 10px;
}

.thursday-center-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 이미지 */
.thursday-center-image {
    width: 130px;
    margin: 0 auto 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee7da;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.thursday-center-image img {
    width: 100%;
    display: block;
}

/* 이미지 없을 때 */
.no-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
}

/* 제목 */
.thursday-center-title {
    font-size: 20px;
    font-weight: 800;
    color: #2f2923;
    line-height: 1.5;
}

/* 날짜 */
.thursday-center-date {
    margin-top: 6px;
    font-size: 15px;
    color: #8a7f70;
}

.home-tv-feature {
    margin-top: 10px;
}

.home-tv-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-tv-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #eee7da;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.home-tv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-tv-noimage {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #8a7f70;
}

.home-tv-title {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 900;
    color: #2f2923;
    line-height: 1.4;
}

.home-tv-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #8a7f70;
}

.youtube-player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 24px 0;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.youtube-player-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.home-top-grid .member-gate-card {
    min-height: 150px !important;
    height: 150px !important;
}

.home-main-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.home-main-cards .member-gate-card {
    min-width: 0;
}

.home-top-grid .home-notice-card {
    height: 152px !important;
    min-height: 128px !important;
    overflow: hidden;
}

.home-top-grid .home-notice-card .compact-list {
    max-height: 72px;
    overflow: hidden;
}

.home-top-grid .home-notice-card .compact-item {
    padding: 5px 0 !important;
}

.home-top-grid .home-notice-card .compact-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-grid-step5 {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.portal-center {
    min-width: 0 !important;
}

.home-top-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) 280px !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.home-main-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
}


.home-feature-grid-large {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    clear: both !important;
}

@media (max-width: 1100px) {
    .portal-grid-step5 {
        grid-template-columns: 1fr !important;
    }

    .home-top-grid {
        grid-template-columns: 1fr !important;
    }

    .home-main-cards,
    .home-feature-grid-large {
        grid-template-columns: 1fr !important;
    }
}

.portal-grid-step5 {
    display: grid !important;
    grid-template-columns: 200px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}


/* 로그인 영역 아래로 자연스럽게 */
.member-gate-card,
.portal-left > div {
    margin-bottom: 12px;
}


/* 하단 4개 카드 크게 */
.home-feature-grid-large {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.home-feature-grid-large .home-feature-card {
    min-height: 344px !important;
}

/* =========================================================
   Left Sidebar NASA Style Banners
========================================================= */

.left-banner-card.nasa-banner {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 96px;
    padding: 18px 18px 17px;
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.22), transparent 28%),
        radial-gradient(circle at 15% 85%, rgba(80,150,255,.22), transparent 30%),
        linear-gradient(135deg, #111827 0%, #1e293b 48%, #020617 100%);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow:
        0 18px 34px rgba(15,23,42,.18),
        inset 0 1px 0 rgba(255,255,255,.12);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.left-banner-card.nasa-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,.25) 1px, transparent 1.5px);
    background-size: 38px 38px, 58px 58px;
    background-position: 4px 8px, 20px 24px;
    opacity: .17;
    pointer-events: none;
}

.left-banner-card.nasa-banner::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow:
        inset 0 0 30px rgba(255,255,255,.08),
        0 0 32px rgba(96,165,250,.12);
    pointer-events: none;
}

.left-banner-card.nasa-banner:hover {
    transform: translateY(-3px);
    border-color: rgba(147,197,253,.48);
    box-shadow:
        0 24px 44px rgba(15,23,42,.26),
        0 0 0 1px rgba(147,197,253,.12),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.nasa-banner .nasa-glow {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: rgba(96,165,250,.28);
    filter: blur(18px);
    pointer-events: none;
}

.nasa-banner .left-banner-small,
.nasa-banner .left-banner-big,
.nasa-banner .left-banner-sub {
    position: relative;
    z-index: 1;
}

.nasa-banner .left-banner-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .14em;
    font-weight: 800;
    color: rgba(191,219,254,.92);
}

.nasa-banner .left-banner-big {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #ffffff;
}

.nasa-banner .left-banner-sub {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(226,232,240,.82);
}

/* 개별 배너 톤 */
.nasa-location {
    background:
        radial-gradient(circle at 85% 15%, rgba(56,189,248,.32), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #164e63 54%, #020617 100%) !important;
}

.nasa-book {
    background:
        radial-gradient(circle at 85% 15%, rgba(251,191,36,.28), transparent 30%),
        linear-gradient(135deg, #1c1917 0%, #78350f 58%, #020617 100%) !important;
}

.nasa-member {
    background:
        radial-gradient(circle at 85% 15%, rgba(129,140,248,.30), transparent 30%),
        linear-gradient(135deg, #111827 0%, #312e81 58%, #020617 100%) !important;
}

.nasa-full {
    background:
        radial-gradient(circle at 85% 15%, rgba(248,113,113,.28), transparent 30%),
        linear-gradient(135deg, #111827 0%, #7f1d1d 58%, #020617 100%) !important;
}

.nasa-tv {
    background:
        radial-gradient(circle at 85% 15%, rgba(34,197,94,.26), transparent 30%),
        linear-gradient(135deg, #052e16 0%, #14532d 54%, #020617 100%) !important;
}

.nasa-calendar {
    background:
        radial-gradient(circle at 85% 15%, rgba(168,85,247,.30), transparent 30%),
        linear-gradient(135deg, #111827 0%, #581c87 58%, #020617 100%) !important;
}

/* 모바일 */
@media (max-width: 768px) {
    .left-banner-card.nasa-banner {
        min-height: 84px;
        padding: 15px 16px;
        border-radius: 16px;
    }

    .nasa-banner .left-banner-big {
        font-size: 16px;
    }

    .nasa-banner .left-banner-sub {
        font-size: 12px;
    }
}

/* 기본 카드 스타일 */
.member-gate-card {
    position: relative;
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    overflow: hidden;
}

/* 🔥 심화 (정회원) */
.member-gate-card.regular {
    background: linear-gradient(135deg, #0f3b36, #1c6b5f);
}

.member-gate-card.regular span {
    background: rgba(255, 214, 102, 0.15);
    color: #ffd666;
}

/* 🔥 일반회원 */
.member-gate-card.general {
    background: linear-gradient(135deg, #1f2a44, #3c5a99);
}

.member-gate-card.general span {
    background: rgba(120, 170, 255, 0.15);
    color: #78aaff;
}

/* 🔥 인터넷회원 */
.member-gate-card.internet {
    background: linear-gradient(135deg, #2b2b2b, #5a4d3a);
}

.member-gate-card.internet span {
    background: rgba(255, 190, 120, 0.15);
    color: #ffbe78;
}

/* 상단 배지 공통 */
.member-gate-card span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 제목 */
.member-gate-card strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

/* 설명 */
.member-gate-card em {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

/* 은은한 원형 효과 */
.member-gate-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: -40px;
    right: -30px;
    background: rgba(255,255,255,0.08);
}

/* ===== Mobile home layout fix ===== */

@media (max-width: 900px) {
    .portal-wrap-step5 {
        margin-top: 0 !important;
        padding-top: 18px !important;
    }

    .portal-grid-step5 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .portal-center {
        order: 1 !important;
        width: 100% !important;
    }

    .portal-left {
        order: 2 !important;
        width: 100% !important;
    }

    .portal-right {
        order: 3 !important;
        width: 100% !important;
    }

    .home-top-grid,
    .home-feature-grid,
    .home-feature-grid-large {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .member-gate-row {
        display: none !important;
    }

    .left-sidebar-stack {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .portal-left .side-box,
    .portal-left .left-banner-card,
    .portal-left .membership-banner {
        width: 100% !important;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 24px) !important;
    }

    .portal-hero-step5 .portal-hero-inner {
        display: block !important;
        padding: 26px 0 34px !important;
    }

    .portal-hero-step5 .portal-hero-copy h1 {
        font-size: 30px !important;
        line-height: 1.22 !important;
    }

    .portal-hero-step5 .portal-hero-copy p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .portal-hero-step5 .portal-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .portal-btn {
        width: 100% !important;
        height: 46px !important;
    }

    .portal-card,
    .home-feature-card,
    .home-notice-card {
        width: 100% !important;
        border-radius: 16px !important;
        padding: 18px !important;
    }
}

/* ===== Mobile overflow hard fix ===== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.site-shell,
.site-main,
.container,
.portal-wrap,
.portal-grid,
.portal-center,
.portal-left,
.portal-card,
.home-feature-card,
.home-tv-feature,
.home-tv-link,
.home-tv-thumb {
    max-width: 100%;
    min-width: 0;
}

.home-tv-thumb {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.home-tv-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 560px) {
    .portal-card,
    .home-feature-card,
    .home-notice-card {
        overflow: hidden;
    }

    .home-tv-link {
        display: block;
        width: 100%;
    }

    .home-tv-thumb img {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== sticky header fix ===== */

html, body {
    overflow-x: hidden;
}

.site-shell,
.site-main {
    overflow: visible !important;
    transform: none !important;
}

.site-header {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
}

/* ===== Schedule Calendar ===== */

.schedule-calendar-page {
    padding: 28px;
}

.schedule-calendar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.schedule-title {
    margin: 8px 0 0;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -.05em;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8dfd2;
}

.calendar-toolbar h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.calendar-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.calendar-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #ded3c4;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    color: #4a4036;
}

.calendar-table-wrap {
    overflow-x: auto;
}

.schedule-calendar-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #ddd4c8;
}

.schedule-calendar-table th {
    height: 42px;
    border: 1px solid #ddd4c8;
    background: #f7f2ea;
    color: #211c17;
    font-size: 14px;
    font-weight: 950;
}

.schedule-calendar-table th.sun {
    color: #b42318;
}

.schedule-calendar-table th.sat {
    color: #2563eb;
}

.schedule-calendar-table td {
    height: 118px;
    vertical-align: top;
    border: 1px solid #e1d8cc;
    padding: 8px;
    background: #fff;
}

.schedule-calendar-table td.empty-day {
    background: #faf7f2;
}

.schedule-calendar-table td.today {
    background: #fff9eb;
    box-shadow: inset 0 0 0 2px #c7a35d;
}

.calendar-day-number {
    font-size: 13px;
    font-weight: 900;
    color: #7d746b;
    margin-bottom: 6px;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-events a {
    display: block;
    padding: 4px 6px;
    border-radius: 7px;
    background: #eef7f5;
    color: #08746d;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-bottom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .schedule-calendar-page {
        padding: 20px 16px;
    }

    .schedule-calendar-head {
        flex-direction: column;
    }

    .schedule-title {
        font-size: 30px;
    }

    .calendar-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-toolbar h2 {
        font-size: 24px;
    }

    .calendar-table-wrap {
        margin-left: -4px;
        margin-right: -4px;
    }
}

/* ===== Calendar Upgrade ===== */

.schedule-calendar-page {
    padding: 28px;
}

.schedule-calendar-head,
.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.schedule-title {
    margin: 8px 0 0;
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -.05em;
}

.calendar-toolbar {
    margin: 26px 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8dfd2;
    align-items: center;
}

.calendar-toolbar h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 950;
}

.calendar-nav {
    display: flex;
    gap: 6px;
}

.calendar-nav a {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #ded3c4;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 900;
}

.calendar-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.calendar-table-wrap {
    overflow-x: auto;
}

.schedule-calendar-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #ddd4c8;
    background: #fff;
}

.schedule-calendar-table th {
    height: 42px;
    border: 1px solid #ddd4c8;
    background: #f7f2ea;
    font-size: 14px;
    font-weight: 950;
}

.schedule-calendar-table th.sun {
    color: #b42318;
}

.schedule-calendar-table th.sat {
    color: #2563eb;
}

.schedule-calendar-table td {
    height: 128px;
    vertical-align: top;
    border: 1px solid #e1d8cc;
    padding: 8px;
    background: #fff;
}

.schedule-calendar-table td.empty-day {
    background: #faf7f2;
}

.schedule-calendar-table td.today {
    background: #fff9eb;
    box-shadow: inset 0 0 0 2px #c7a35d;
}

.calendar-day-number {
    font-size: 13px;
    font-weight: 950;
    color: #6f675f;
    margin-bottom: 5px;
}

.calendar-holiday {
    margin-bottom: 5px;
    color: #d92d20;
    font-size: 12px;
    font-weight: 950;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-event {
    display: block;
    padding: 5px 7px;
    border-radius: 8px;
    line-height: 1.25;
    overflow: hidden;
}

.calendar-event em {
    display: block;
    margin-bottom: 2px;
    font-style: normal;
    font-size: 10px;
    font-weight: 950;
    opacity: .75;
}

.calendar-event strong {
    display: block;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-thursday {
    background: #e6f7f1;
    color: #0f766e;
}

.event-space {
    background: #e0f2fe;
    color: #0369a1;
}

.event-brain {
    background: #f3e8ff;
    color: #6b21a8;
}

.event-open {
    background: #fff7ed;
    color: #c2410c;
}

.event-trip {
    background: #ecfdf3;
    color: #15803d;
}

.event-default {
    background: #eef2ff;
    color: #3730a3;
}

.calendar-more {
    margin-top: 2px;
    padding: 4px 6px;
    border-radius: 7px;
    background: #f2efe9;
    color: #6b6259;
    font-size: 11px;
    font-weight: 900;
}

.calendar-bottom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .schedule-calendar-page {
        padding: 20px 16px;
    }

    .schedule-calendar-head,
    .calendar-toolbar {
        flex-direction: column;
    }

    .schedule-title {
        font-size: 30px;
    }

    .calendar-toolbar h2 {
        font-size: 24px;
    }

    .schedule-calendar-table {
        min-width: 760px;
    }
}

/* ===== 임원진 관리 페이지 ===== */

.admin-executive-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* 상단 영역 */
.admin-executive-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.admin-executive-head h2 {
    font-size:26px;
    font-weight:800;
}

/* 추가 버튼 */
.btn-add {
    background:#1f2a37;
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
}

/* 테이블 */
.admin-table {
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
}

/* 헤더 */
.admin-table thead {
    background:#f7f3ec;
}

.admin-table th {
    padding:14px;
    font-size:14px;
    text-align:left;
    color:#6b645b;
    border-bottom:1px solid #e7ded1;
}

/* 바디 */
.admin-table td {
    padding:14px;
    border-bottom:1px solid #eee4d8;
    font-size:15px;
}

/* hover */
.admin-table tr:hover {
    background:#faf7f2;
}

/* 이름 강조 */
.admin-name {
    font-weight:800;
    font-size:16px;
}

/* 그룹 배지 */
.badge-group {
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    background:#efe7dc;
    color:#6b645b;
    font-weight:700;
}

/* 버튼 */
.btn-line {
    border:1px solid #d5ccc0;
    padding:6px 12px;
    border-radius:8px;
    background:#fff;
    font-size:13px;
    cursor:pointer;
}

.btn-line:hover {
    background:#f7f3ec;
}

/* 삭제 버튼 */
.btn-danger {
    border:1px solid #e5484d;
    color:#e5484d;
}

.btn-danger:hover {
    background:#ffecec;
}

.footer {
    background: #0b1320;
    color: #fff;
    padding-top: 24px;
}

.footer-inner {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    padding-bottom:20px;
}

.footer-left strong {
    font-size:16px;
    font-weight:800;
}

.footer-text {
    font-size:13px;
    color:#cbd5e1;
}

.footer-right {
    display:flex;
    flex-direction:column;
    gap:8px;
}

.footer-right a {
    color:#cbd5e1;
    font-size:13px;
    text-decoration:none;
}

.footer-right a:hover {
    color:#fff;
}

.footer-bottom {
    text-align:center;
    font-size:12px;
    color:#94a3b8;
    padding:12px 0;
    border-top:1px solid rgba(255,255,255,0.08);
}

/* 모바일 */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction:column;
        text-align:left;
    }

    .footer-right {
        flex-direction:row;
        gap:12px;
    }
}

.hero-cta-cards {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 245px;
    padding: 16px 18px;
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
}

.hero-cta-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255,255,255,.28), transparent 55%);
    opacity: .75;
    pointer-events: none;
}

.hero-cta-card.intro {
    background: linear-gradient(135deg, #d8a94b, #7b5520);
    color: #111827;
}

.hero-cta-card.join {
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    color: #fff;
}

.cta-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}

.hero-cta-card div,
.hero-cta-card strong,
.hero-cta-card span,
.hero-cta-card em {
    position: relative;
    z-index: 1;
}

.hero-cta-card strong {
    display: block;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-cta-card span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: .82;
    line-height: 1.4;
}

.hero-cta-card em {
    margin-left: auto;
    font-style: normal;
    font-size: 22px;
    font-weight: 900;
}

.hero-cta-card:hover {
    transform: translateY(-3px);
    transition: .2s ease;
}

@media (max-width: 760px) {
    .hero-cta-cards {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-cta-card {
        width: 100%;
        min-width: 0;
    }
}

/* ===== 모바일 상단 회원 버튼 노출 ===== */
@media (max-width: 900px) {
    .member-gate-row.home-main-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 14px !important;
    }

    .member-gate-row.home-main-cards .member-gate-card {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        min-height: 96px !important;
        width: 100% !important;
    }
}


.subpage-wrap {
    padding: 32px 0;
}

.subpage-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.comment-count-badge {
    color: #4f8a7b;
    font-size: 12px;
    font-weight: 800;
    margin-left: 6px;
    background: rgba(79, 138, 123, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f4ecdf;
    color: #8b6d43;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    vertical-align: middle;
    white-space: nowrap;
}

.category-badge.video-cat {
    margin: 0 0 8px;
}

.btn-primary,
.btn-line,
.write-btn,
.search-form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #c08a2b !important;
}

/* 카테고리 탭 */
.board-category-tabs {
    padding: 0 28px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.board-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid #e8dfd4;
    background: #fff;
    color: #5f574d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.board-category-tab.active {
    background: #c08a2b;
    border-color: #c08a2b;
    color: #fff;
}

/* 영상형 게시판 */
.video-board-wrap {
    padding: 0 28px 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.video-board-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee6d8;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s ease;
    box-shadow: 0 8px 20px rgba(47, 41, 35, 0.05);
}

.video-board-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(47, 41, 35, 0.12);
}

.video-board-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3efe8;
}

.video-board-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.video-board-card:hover .video-board-thumb img {
    transform: scale(1.04);
}

.video-board-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937, #0f172a);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-board-empty .play-mark {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
}

.video-play-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    font-size: 15px;
    font-weight: 900;
}

.video-notice-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c08a2b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 8px;
    border-radius: 999px;
}

.video-board-body {
    padding: 14px 14px 16px;
}

.video-board-title {
    margin: 0 0 9px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 900;
    color: #2f2923;
    word-break: keep-all;
}

.video-board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #8a8176;
    font-size: 12px;
    font-weight: 700;
}

.empty-board {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

/* 페이지네이션 */
.pagination-wrap {
    padding: 20px 28px 28px;
    display: flex;
    justify-content: center;
}

.pagination-wrap nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-wrap svg,
.pagination svg,
nav[role="navigation"] svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

.pagination-wrap a,
.pagination-wrap span {
    line-height: 1 !important;
}

/* 모바일 */
@media (max-width: 920px) {
    .subpage-grid {
        grid-template-columns: 1fr;
    }

    .video-board-wrap {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 18px 10px;
        gap: 14px;
    }

    .board-category-tabs {
        padding: 0 18px 16px;
    }
}

@media (max-width: 640px) {
    .video-board-wrap {
        grid-template-columns: 1fr;
    }

    .video-board-title {
        font-size: 14px;
    }

    .category-badge {
        margin-bottom: 4px;
    }
}


.member-learning-box{
    display:grid;
    grid-template-columns:minmax(0,1fr) 160px;
    gap:24px;
    align-items:center;
    margin-bottom:24px;
    padding:28px;
    border-radius:22px;
    background:linear-gradient(135deg,#102033,#1f3554);
    color:#fff;
}

.member-learning-text span{
    display:inline-flex;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    font-size:12px;
    font-weight:800;
    color:#ffd166;
}

.member-learning-text h2{
    margin:14px 0 8px;
    font-size:26px;
    font-weight:900;
}

.member-learning-text p{
    margin:0 0 8px;
    font-size:18px;
    font-weight:800;
}

.member-learning-text em{
    display:block;
    margin-bottom:16px;
    font-style:normal;
    color:rgba(255,255,255,.82);
}

.member-learning-text a{
    display:inline-flex;
    color:#fff;
    font-weight:800;
    text-decoration:none;
}

.member-learning-image{
    width:160px;
    height:210px;
    border-radius:16px;
    overflow:hidden;
    background:rgba(255,255,255,.12);
}

.member-learning-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

@media(max-width:700px){
    .member-learning-box{
        grid-template-columns:1fr;
    }

    .member-learning-image{
        width:120px;
        height:160px;
    }
}

.home-main-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.home-top-grid {
    display: block !important;
}

.home-main-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
}

.home-main-cards .member-gate-card {
    width: auto !important;
    height: 150px !important;
    min-height: 150px !important;
}

/* 메인 화면 톤 밝게 조정 */
.topbar {
    background: #13233a;
}

.portal-hero,
.portal-hero-compact,
.portal-hero-step5 {
    background:
        radial-gradient(circle at 75% 20%, rgba(93, 132, 180, 0.26), transparent 34%),
        linear-gradient(135deg, #243a5e 0%, #1d3150 46%, #182942 100%);
}

.portal-hero-copy h1 {
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.portal-hero-copy p {
    color: #e7eef8;
}

.portal-eyebrow {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(231, 238, 248, 0.28);
    color: #ffd36a;
}

/* 상단 회원 콘텐츠 카드도 살짝 밝게 */
.member-gate-card.tv {
    background: linear-gradient(135deg, #1b2d49, #14243b);
}

.member-gate-card.regular {
    background: linear-gradient(135deg, #1f7a68, #176454);
}

.member-gate-card.general {
    background: linear-gradient(135deg, #4869a6, #36558c);
}

.member-gate-card.internet {
    background: linear-gradient(135deg, #675b4a, #4f4538);
}

/* 왼쪽 배너도 너무 어둡지 않게 */
.left-banner-card.dark,
.membership-banner.dark {
    background: linear-gradient(135deg, #1c2f4c, #14243b);
}

.nasa-banner.science-media,
.nasa-banner.nasa-tv {
    background: linear-gradient(135deg, #1f7a68, #123f38);
}

.nasa-banner.full-access,
.nasa-banner.nasa-regular {
    background: linear-gradient(135deg, #4869a6, #263f70);
}

.nasa-banner.members-only,
.nasa-banner.nasa-general {
    background: linear-gradient(135deg, #405f9c, #2a4478);
}

.nasa-banner.internet-member,
.nasa-banner.nasa-internet {
    background: linear-gradient(135deg, #675b4a, #473d32);
}

.nasa-banner.nasa-schedule {
    background: linear-gradient(135deg, #6652a8, #433279);
}

.nasa-banner.nasa-location {
    background: linear-gradient(135deg, #25749a, #18506d);
}

/* 메인 대문 밝은 네이비 톤 보정 */
.topbar {
    background: #13233a;
}

.portal-hero,
.portal-hero-compact,
.portal-hero-step5 {
    background:
        radial-gradient(circle at 72% 18%, rgba(112, 153, 207, 0.28), transparent 34%),
        linear-gradient(135deg, #29466f 0%, #233b60 48%, #1c314f 100%);
}

.portal-hero-copy h1 {
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.portal-hero-copy p {
    color: #edf4ff;
}

.portal-eyebrow {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(237, 244, 255, 0.30);
    color: #ffd36a;
}

/* 상단 큰 콘텐츠 카드 밝기 조정 */
.member-gate-card.tv {
    background: linear-gradient(135deg, #223b61, #182c49);
}

.member-gate-card.regular {
    background: linear-gradient(135deg, #227d6d, #176657);
}

.member-gate-card.general {
    background: linear-gradient(135deg, #4f71ad, #3c5d96);
}

.member-gate-card.internet {
    background: linear-gradient(135deg, #706452, #574c3f);
}

/* 좌측 배너 밝기 조정 */
.left-banner-card.dark,
.membership-banner.dark {
    background: linear-gradient(135deg, #223b61, #182c49);
}

.nasa-banner.science-media,
.nasa-banner.nasa-tv {
    background: linear-gradient(135deg, #227d6d, #12463d);
}

.nasa-banner.full-access,
.nasa-banner.nasa-regular {
    background: linear-gradient(135deg, #4f71ad, #2d487c);
}

.nasa-banner.members-only,
.nasa-banner.nasa-general {
    background: linear-gradient(135deg, #4869a6, #304d82);
}

.nasa-banner.internet-member,
.nasa-banner.nasa-internet {
    background: linear-gradient(135deg, #706452, #504538);
}

.nasa-banner.nasa-book {
    background: linear-gradient(135deg, #8a4b22, #623213);
}

.nasa-banner.nasa-note {
    background: linear-gradient(135deg, #415a7d, #233855);
}

.nasa-banner.nasa-schedule {
    background: linear-gradient(135deg, #715ec0, #4c3a8d);
}

.nasa-banner.nasa-location {
    background: linear-gradient(135deg, #2c83aa, #1c5d7e);
}


/* ===== navigation spacing 20260816 ===== */
.topbar-links{
    gap:28px !important;
}
.topbar-links a{
    letter-spacing:.045em;
}
.desktop-nav{
    gap:28px !important;
}
.desktop-nav > a,
.desktop-nav > .nav-dropdown > a{
    letter-spacing:.025em;
}
@media (max-width:1180px){
    .topbar-links{
        gap:20px !important;
    }
}


/* ===== navigation right alignment 20260816 ===== */
.desktop-nav{
    justify-content:flex-end !important;
}
