/* 산지정보 다드림 v1.0.0 — 기존 BYD 레이아웃과 독립 설치 / 2026-11-14 */
:root {
  --bf-bg:#f6f8f4;--bf-paper:#ffffff;--bf-text:#1b3027;--bf-muted:#66796e;
  --bf-dim:#879c91;--bf-border:#dfe8df;--bf-wash:#f0f6f0;
  --bf-red:#187548;--bf-redwash:#eaf5ec;--bf-nav:#203b2d;
  --bf-shadow:0 6px 20px rgba(28,70,45,.035);--bf-radius:16px;
  --sd-green:#167347;--sd-deep:#123f2c;--sd-lite:#e9f4ec;--sd-hero:#ebf5eb;
}
html[data-bf-theme="dark"] {
  --bf-bg:#101b15;--bf-paper:#19271f;--bf-text:#ebf4ed;--bf-muted:#b4c8bb;
  --bf-dim:#899f92;--bf-border:#354e3e;--bf-wash:#23392b;
  --bf-red:#70d69d;--bf-redwash:#20412d;--bf-nav:#e6f5e9;
  --bf-shadow:0 7px 25px rgba(0,0,0,.14);
  --sd-green:#91eab0;--sd-deep:#173a2a;--sd-lite:#20412d;--sd-hero:#203c2b;
}
body:has(.sd-site){font-size:17px;line-height:1.72;letter-spacing:-.025em}
.sd-site {font-size:17px;line-height:1.7;letter-spacing:-.025em}
.sd-site a, .sd-site button {transition:background .16s,border-color .16s,color .16s,transform .16s}
.sd-site .bf-header {border-color:var(--bf-border)}
.sd-site .bf-header-inner {max-width:1380px;height:80px;gap:22px}
.sd-site .sd-brand {gap:10px;flex-shrink:0}
.sd-site .sd-brand-icon {display:grid;place-items:center;width:47px;height:47px;border-radius:13px;background:var(--bf-redwash);color:var(--bf-red);font-size:36px;font-weight:800;line-height:1}
.sd-site .sd-brand-text {display:flex;flex-direction:column;gap:1px;line-height:1.1}
.sd-site .sd-brand-text strong {font-size:22px;letter-spacing:-1px;font-style:normal;font-weight:900;color:var(--bf-text)}
.sd-site .sd-brand-text .sd-brand-green {font-size:inherit;font-weight:inherit;letter-spacing:inherit;color:var(--bf-red)}
.sd-site .sd-brand-text small {font-size:9px;letter-spacing:1.45px;font-weight:800;color:var(--bf-muted)}
.sd-site .sd-tagline {font-size:12px;line-height:1.4;white-space:normal;max-width:165px}
.sd-site .bf-topnav {gap:24px}
.sd-site .bf-topnav a {font-size:15px;font-weight:800;color:var(--bf-muted)}
.sd-site .bf-topnav a.is-current,.sd-site .bf-topnav a:hover {color:var(--bf-red)}
.sd-site .bf-icon-btn {font-size:22px;width:43px;height:43px;border-radius:12px}
.sd-site .bf-signin,.sd-site .bf-admin-link,.sd-site .bf-kakao-link {font-size:14px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px}
.sd-site .bf-signin,.sd-site .bf-admin-link {background:var(--bf-wash)!important;color:var(--bf-text)!important}
.sd-site .bf-kakao-link {background:#fee500!important;color:#191919!important}
.sd-site .bf-user-trigger {max-width:170px;cursor:pointer}
.sd-site .bf-user-options a {font-size:16px;padding:12px 14px}
.sd-site .bf-shell {max-width:1380px;grid-template-columns:210px minmax(0,1fr) 225px;gap:22px;padding:28px 28px 68px}
.sd-site .bf-sidebar {top:104px}
.sd-site .bf-panel {border-radius:18px}
.sd-site .bf-side-menu {padding:18px 10px}
.sd-site .bf-side-label {font-size:13px;margin:5px 13px 9px;color:var(--bf-muted)}
.sd-site .bf-side-menu a {font-size:15px;padding:13px 12px;min-height:46px;gap:10px;font-weight:750}
.sd-site .sd-side-emoji {font-size:22px;color:var(--bf-red);width:25px;text-align:center;line-height:1}
.sd-site .bf-about {padding:21px 17px}
.sd-site .bf-about b {font-size:16px}
.sd-site .bf-about p {font-size:14px;line-height:1.8}
.sd-site .bf-right-card {padding:21px 18px;margin-bottom:16px}
.sd-site .sd-right-card h3 {font-size:18px;font-weight:850;margin:6px 0 12px}
.sd-site .sd-right-card p {font-size:14px;line-height:1.75;margin:0;color:var(--bf-muted)}
.sd-site .bf-right-link {font-size:14px;color:var(--bf-red)!important}
.sd-mini-label {display:inline-block;color:var(--bf-red);font-size:11px;font-weight:900;letter-spacing:1.2px}
.sd-site .sd-quick-tags {display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.sd-site .sd-quick-tags a {font-size:13px;border-radius:999px;background:var(--bf-wash);padding:6px 11px;color:var(--bf-red);font-weight:750}
.sd-site .sd-quick-tags a:hover {background:var(--bf-redwash)}
.sd-site .sd-hero {padding:32px 34px 30px;margin-bottom:18px;background:radial-gradient(circle at right top,rgba(39,146,82,.12),transparent 42%),var(--bf-paper);position:relative;overflow:hidden}
.sd-site .sd-eyebrow {display:inline-flex;align-items:center;gap:8px;color:var(--bf-red);font-weight:900;font-size:14px;letter-spacing:-.02em}
.sd-site .sd-eyebrow::before {content:'';width:8px;height:8px;border-radius:50%;background:var(--bf-red)}
.sd-site .sd-hero h1 {font-size:clamp(27px,2.8vw,38px);font-weight:900;letter-spacing:-1.6px;line-height:1.38;margin:16px 0 14px;word-break:keep-all}
.sd-site .sd-hero h1 span {display:block;color:var(--bf-red)}
.sd-site .sd-hero>p {font-size:16px;line-height:1.8;color:var(--bf-muted);margin:0 0 24px;max-width:640px;word-break:keep-all}
.sd-site .sd-search label {display:block;font-weight:850;font-size:16px;margin-bottom:10px}
.sd-site .sd-search-row {display:flex;padding:5px;background:var(--bf-paper);border:2px solid #8abb9b;border-radius:13px;min-height:60px;box-shadow:0 5px 16px rgba(33,91,55,.08);overflow:hidden}
html[data-bf-theme="dark"] .sd-site .sd-search-row {border-color:#4c9c6e}
.sd-site .sd-search-row:focus-within {border-color:var(--bf-red);box-shadow:0 0 0 4px rgba(43,152,79,.12)}
.sd-site .sd-search-row input {flex:1;min-width:0;border:0;outline:none;padding:9px 15px;background:transparent;color:var(--bf-text);font-size:17px;line-height:1.5}
.sd-site .sd-search-row input::placeholder {color:#819487;opacity:1}
.sd-site .sd-search-row button {border:0;border-radius:9px;padding:12px 23px;background:var(--bf-red);color:#fff;font-weight:850;font-size:17px;min-width:94px;cursor:pointer;white-space:nowrap}
html[data-bf-theme="dark"] .sd-site .sd-search-row button {color:#143726}
.sd-site .sd-search-row button:hover {filter:brightness(.92)}
.sd-site .sd-hero-links {margin-top:15px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.sd-site .sd-hero-links span {color:var(--bf-muted);font-weight:800;margin-right:3px}
.sd-site .sd-hero-links a {background:var(--bf-redwash);border-radius:999px;color:var(--bf-red);padding:5px 12px;font-weight:800}
.sd-site .sd-hero-links a:hover {background:var(--bf-wash)}
.sd-site .sd-home-panel {padding:28px 28px;margin-bottom:18px}
.sd-site .sd-section-title {display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:21px}
.sd-site .sd-section-title h2 {font-size:23px;font-weight:900;line-height:1.4;margin:4px 0 4px;letter-spacing:-.7px}
.sd-site .sd-section-title p {font-size:14px;color:var(--bf-muted);margin:0}
.sd-site .sd-section-link {font-size:14px;white-space:nowrap;color:var(--bf-red);font-weight:850;padding:9px 0}
.sd-site .sd-topic-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.sd-site .sd-topic {min-width:0;display:grid;grid-template-columns:50px minmax(0,1fr) 17px;grid-template-rows:auto auto;align-items:center;column-gap:14px;row-gap:2px;padding:19px 15px;border:1px solid var(--bf-border);border-radius:14px;background:var(--bf-paper)}
.sd-site .sd-topic:hover {border-color:#7db899;background:var(--bf-wash);transform:translateY(-1px)}
.sd-site .sd-topic-icon {grid-row:1/3;display:flex;align-items:center;justify-content:center;width:49px;height:49px;border-radius:13px;background:var(--bf-redwash);font-size:29px;font-weight:750;line-height:1;color:var(--bf-red)}
.sd-site .sd-topic b {font-size:17px;letter-spacing:-.05em;font-weight:850;white-space:normal;line-height:1.5}
.sd-site .sd-topic small {font-size:13px;color:var(--bf-muted);line-height:1.5}
.sd-site .sd-topic-arrow {grid-column:3;grid-row:1/3;align-self:center;color:var(--bf-red);font-size:18px}
.sd-site .sd-feature-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}
.sd-site .sd-feature {padding:20px 18px}
.sd-site .sd-feature>span {display:inline-flex;color:var(--bf-red);background:var(--bf-redwash);border-radius:9px;align-items:center;justify-content:center;width:34px;height:34px;font-weight:900;font-size:19px;margin-bottom:9px}
.sd-site .sd-feature b {display:block;font-size:15px;font-weight:850;line-height:1.5}
.sd-site .sd-feature p {font-size:13px;line-height:1.7;color:var(--bf-muted);margin:6px 0 0}
.sd-site .sd-feed-empty {background:var(--bf-wash);border:1px dashed var(--bf-border);border-radius:13px;text-align:center;padding:24px 16px}
.sd-site .sd-feed-empty>span {display:block;font-size:27px;color:var(--bf-red)}
.sd-site .sd-feed-empty strong {display:block;font-size:17px;margin:6px 0}
.sd-site .sd-feed-empty p {font-size:14px;color:var(--bf-muted);margin:0}
.sd-site .bf-widget-feed .bf-widget-row a {font-size:16px}
.sd-site .bf-widget-feed .bf-widget-meta {font-size:13px}
.sd-site .sd-install {margin-bottom:18px;padding:0;overflow:hidden}
.sd-site .sd-install summary {padding:16px 22px;font-size:16px;font-weight:850;cursor:pointer;list-style:none}
.sd-site .sd-install summary::-webkit-details-marker {display:none}
.sd-site .sd-install summary>span {float:right;color:var(--bf-red)}
.sd-site .sd-install>div {border-top:1px solid var(--bf-border);padding:7px 22px 14px}
.sd-site .sd-install p {margin:8px 0;font-size:14px;color:var(--bf-muted)}
.sd-site .sd-install b {color:var(--bf-text)}
.sd-site .sd-page-content {min-width:0}
.sd-site .sd-footer {max-width:1380px;padding-bottom:62px;font-size:13px;line-height:1.7}
.sd-site .sd-footer b {color:var(--bf-red)}
/* 기존 BYD 게시판 스킨에도 글자 크기와 읽기 편한 행간을 적용합니다. */
.sd-site .bf-board {font-size:17px;line-height:1.8}
.sd-site .bf-board .xe_content, .sd-site .bf-board .bf-post-content {font-size:18px;line-height:1.95;word-break:keep-all;overflow-wrap:break-word}
.sd-site .bf-board input,.sd-site .bf-board textarea {font-size:16px}
.sd-site .bf-board button,.sd-site .bf-board .btn {min-height:40px}
/* 기존 운영자 닉네임 확인을 유지하되 빨간색이 아니라 녹색으로 표시 */
#bf-site.sd-site .bf-header .bf-user-nickname.bf-k12-admin-nickname,
#bf-site.sd-site[data-bf-self-admin="Y"] .bf-header .bf-user-nickname,
#bf-site.sd-site .bf-k12-admin-nickname {color:var(--bf-red)!important}
@media(max-width:1260px){
 .sd-site .bf-shell {grid-template-columns:180px minmax(0,1fr) 202px;gap:15px;padding:21px 20px 65px}
 .sd-site .bf-tagline {display:none}
 .sd-site .bf-topnav {gap:14px}
 .sd-site .sd-brand-text strong {font-size:20px}
 .sd-site .sd-topic {grid-template-columns:42px minmax(0,1fr) 12px;gap:9px;padding:15px 10px}
 .sd-site .sd-topic-icon {width:42px;height:42px;font-size:26px}
 .sd-site .sd-topic b {font-size:15px}
 .sd-site .sd-topic small {font-size:12px}
}
@media(max-width:1060px){
 .sd-site .bf-right {display:none}
 .sd-site .bf-shell {grid-template-columns:175px minmax(0,1fr)}
 .sd-site .bf-header-inner {gap:13px;padding:0 18px}
 .sd-site .bf-topnav {gap:12px}
 .sd-site .bf-topnav a {font-size:14px}
}
@media(max-width:780px){
 .sd-site .bf-header-inner {height:70px;padding:0 14px}
 .sd-site .bf-topnav,.sd-site .bf-left,.sd-site .bf-right {display:none}
 .sd-site .bf-shell {display:block;padding:15px 13px 96px}
 .sd-site .bf-header .sd-brand-icon {width:40px;height:40px;font-size:30px}
 .sd-site .sd-brand-text strong {font-size:20px}
 .sd-site .sd-brand-text small {font-size:8px}
 .sd-site .bf-actions {margin-left:auto;gap:5px}
 .sd-site .bf-signin,.sd-site .bf-admin-link,.sd-site .bf-kakao-link {font-size:13px;min-height:41px;padding:8px 10px}
 .sd-site .bf-icon-btn {width:34px;height:39px}
 .sd-site .sd-hero {padding:27px 21px}
 .sd-site .sd-hero h1 {font-size:30px}
 .sd-site .sd-home-panel {padding:24px 18px}
 .sd-site .sd-feature-row {grid-template-columns:1fr 1fr 1fr}
 .sd-site .bf-bottom-nav {display:flex;height:calc(69px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
 .sd-site .bf-bottom-nav a {min-height:52px}
 .sd-site .bf-bottom-nav a.is-current {color:var(--bf-red)}
 .sd-site .sd-bottom-icon {display:flex;align-items:center;justify-content:center;width:38px;height:35px;border-radius:12px;font-size:26px;line-height:1}
 .sd-site .bf-bottom-nav a.is-current .sd-bottom-icon {background:var(--bf-redwash)}
 .sd-site .bf-bottom-nav a small {font-size:13px;font-weight:850}
 .sd-site .bf-footer {display:block;padding:0 16px 99px;font-size:12px}
 .sd-site .bf-footer span {display:block;margin-top:5px}
}
@media(max-width:550px){
 .sd-site .sd-brand-icon {display:none}
 .sd-site .sd-brand-text strong {font-size:19px}
 .sd-site .bf-icon-btn {width:29px}
 .sd-site .bf-actions>.bf-signin {display:none}
 .sd-site .bf-kakao-link {font-size:12px;padding:8px 10px}
 .sd-site .sd-hero {padding:24px 18px}
 .sd-site .sd-hero h1 {font-size:27px;letter-spacing:-1px}
 .sd-site .sd-hero>p {font-size:16px}
 .sd-site .sd-search-row input {padding:7px 9px;font-size:15px}
 .sd-site .sd-search-row button {padding:9px 14px;min-width:71px;font-size:15px}
 .sd-site .sd-topic-grid {gap:9px}
 .sd-site .sd-topic {display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:15px 12px}
 .sd-site .sd-topic-icon {width:38px;height:38px;font-size:24px;margin-bottom:4px}
 .sd-site .sd-topic b {font-size:15px}
 .sd-site .sd-topic small {font-size:12px}
 .sd-site .sd-topic-arrow {display:none}
 .sd-site .sd-feature-row {grid-template-columns:1fr;gap:9px}
 .sd-site .sd-feature {display:grid;grid-template-columns:40px 1fr;gap:1px 10px;padding:14px 16px}
 .sd-site .sd-feature>span {grid-row:1/3;margin:0}
 .sd-site .sd-feature p {margin:0;font-size:13px}
 .sd-site .sd-home-panel {padding:22px 16px}
 .sd-site .sd-section-title h2 {font-size:21px}
 .sd-site .sd-section-title p {font-size:13px}
}
@media(max-width:375px){
 .sd-site .sd-brand-text strong {font-size:17px}
 .sd-site .sd-brand-text small {font-size:7px}
 .sd-site .bf-admin-link {padding:6px 7px!important}
 .sd-site .bf-icon-btn {display:none}
 .sd-site .bf-kakao-link {padding:7px 8px;font-size:11px}
 .sd-site .sd-hero h1 {font-size:24px}
 .sd-site .sd-search-row input::placeholder {font-size:13px}
}
@media(prefers-reduced-motion:reduce){.sd-site *, .sd-site *:before, .sd-site *:after{transition:none!important;animation:none!important}}


/* v1.1.0 — PC 상단 2단계 메뉴 / 모바일 전체메뉴 */
.sd-site .sd-primary-nav {display:flex;align-items:center;gap:12px;min-width:0}
.sd-site .sd-primary-nav > a {padding:10px 6px;white-space:nowrap;font-size:15px}
.sd-site .sd-nav-group {position:relative;min-width:0}
.sd-site .sd-nav-group > summary {list-style:none;display:flex;align-items:center;gap:7px;padding:10px 6px;border-radius:9px;cursor:pointer;font-size:15px;font-weight:850;line-height:1.35;color:var(--bf-muted);white-space:nowrap;user-select:none}
.sd-site .sd-nav-group > summary::-webkit-details-marker {display:none}
.sd-site .sd-nav-group > summary span {font-size:12px;color:var(--bf-muted)}
.sd-site .sd-nav-group > summary:hover,.sd-site .sd-nav-group[open] > summary,.sd-site .sd-nav-group > summary.is-current {color:var(--bf-red);background:var(--bf-redwash)}
.sd-site .sd-nav-popover {position:absolute;left:0;top:calc(100% + 5px);z-index:200;min-width:220px;display:flex;flex-direction:column;gap:2px;padding:8px;border:1px solid var(--bf-border);border-radius:14px;background:var(--bf-paper);box-shadow:0 12px 30px rgba(0,0,0,.12)}
.sd-site .sd-nav-popover a {display:block;padding:10px 12px;border-radius:8px;color:var(--bf-text);font-size:15px;font-weight:750;white-space:nowrap}
.sd-site .sd-nav-popover a:hover,.sd-site .sd-nav-popover a.is-current {background:var(--bf-redwash);color:var(--bf-red)}
.sd-site .sd-bottom-nav .sd-mobile-all {display:none}
@media(max-width:780px){
 .sd-site .sd-bottom-nav .sd-mobile-all {display:block;flex:1;min-width:0}
 .sd-site .sd-bottom-nav .sd-mobile-all > summary {list-style:none;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;min-height:52px;gap:1px;cursor:pointer;color:var(--bf-muted)}
 .sd-site .sd-bottom-nav .sd-mobile-all > summary::-webkit-details-marker {display:none}
 .sd-site .sd-bottom-nav .sd-mobile-all > summary small {font-size:12px;line-height:1.25;font-weight:850}
 .sd-site .sd-bottom-nav .sd-mobile-all[open] > summary {color:var(--bf-red)}
 .sd-site .sd-mobile-panel {position:fixed;z-index:201;left:10px;right:10px;bottom:calc(77px + env(safe-area-inset-bottom));max-height:min(74dvh,680px);overflow:auto;overscroll-behavior:contain;padding:16px 16px 20px;border:1px solid var(--bf-border);border-radius:18px;background:var(--bf-paper);box-shadow:0 4px 45px rgba(0,0,0,.22);text-align:left}
 .sd-site .sd-mobile-panel-title {font-size:20px;font-weight:900;color:var(--bf-text);padding-bottom:10px;border-bottom:1px solid var(--bf-border)}
 .sd-site .sd-mobile-panel-title span {display:block;font-size:13px;color:var(--bf-muted);font-weight:600}
 .sd-site .sd-mobile-panel section {border-bottom:1px solid var(--bf-border);padding:10px 0}
 .sd-site .sd-mobile-panel section:last-child {border-bottom:0}
 .sd-site .sd-mobile-panel h3 {margin:2px 0 9px;font-size:17px;font-weight:850;color:var(--bf-red)}
 .sd-site .sd-mobile-panel h3 a {color:var(--bf-red)}
 .sd-site .sd-mobile-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .sd-site .sd-mobile-links a {display:flex;align-items:center;min-height:49px;padding:9px 10px;border:1px solid var(--bf-border);border-radius:10px;background:var(--bf-wash);font-size:14px;line-height:1.4;color:var(--bf-text);font-weight:700;word-break:keep-all}
 .sd-site .sd-bottom-nav a small {font-size:12px}
}
@media(max-width:375px){.sd-site .sd-mobile-links{grid-template-columns:1fr 1fr}.sd-site .sd-mobile-links a{font-size:13px;padding:7px}}
