:root{--kkc-bg:#fff;--kkc-fg:#171b25;--kkc-muted:#596577;--kkc-line:#e5e9ef;--kkc-hover:#fff7d6}
:root[data-kr-scheme=dark]{--kkc-bg:#19222e;--kkc-fg:#edf1f7;--kkc-muted:#b4c0cf;--kkc-line:#3c4859;--kkc-hover:#293747}
.kkc-header,.kkc-footer{font-family:KrPretendard,Kml,'Malgun Gothic',sans-serif;font-size:14px;line-height:1.6;color:var(--kkc-fg);background:var(--kkc-bg);box-sizing:border-box;text-align:left;word-break:keep-all}
.kkc-header *,.kkc-footer *{box-sizing:border-box}
.kkc-header{display:flex;align-items:center;gap:20px;min-height:83px;padding:16px 28px;border-bottom:1px solid var(--kkc-line);width:100%;margin:0}
.kkc-header a,.kkc-footer a{color:inherit;text-decoration:none}
.kkc-brand{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:var(--kkc-fg);line-height:1.3}
.kkc-brand img{width:40px;height:40px;object-fit:contain;flex-shrink:0}
.kkc-brand strong{display:block;font-size:23px;letter-spacing:-1px;font-weight:800}
.kkc-brand small{display:block;font-size:11px;font-weight:400;color:var(--kkc-muted);margin-top:3px}
.kkc-header nav{display:flex;flex:1;align-items:center;justify-content:space-around;gap:4px;margin:0;padding:0;max-width:none}
.kkc-header nav a{display:block;position:relative;padding:13px 5px;font-size:13px;font-weight:700;line-height:1.5;white-space:nowrap}
.kkc-header nav a[aria-current]:after{content:'';position:absolute;height:3px;left:20%;right:20%;bottom:3px;background:#ffcc00;border-radius:3px}
.kkc-mode{display:flex;align-items:center;gap:5px;flex-shrink:0;color:var(--kkc-muted);margin:0;white-space:nowrap;font-size:11px}
.kkc-mode select{font:inherit;font-size:13px;color:var(--kkc-fg);background:transparent;border:0!important;box-shadow:none!important;min-height:44px;min-width:80px;width:auto;max-width:100px;margin:0;padding:8px;cursor:pointer;border-radius:6px}
.kkc-mode select option{color:var(--kkc-fg);background:var(--kkc-bg)}
.kkc-header .kkc-menu{display:none;font:inherit;font-size:20px;color:var(--kkc-fg);background:transparent;border:0;border-radius:6px;min-height:44px;min-width:44px;padding:7px;cursor:pointer;box-shadow:none}
.kkc-header :is(a,button,select):focus-visible,.kkc-footer a:focus-visible{outline:3px solid #3578ce;outline-offset:3px}
html[data-kr-scheme=dark] .kkc-header :is(a,button,select):focus-visible,html[data-kr-scheme=dark] .kkc-footer a:focus-visible{outline-color:#8fc1ff}
.kkc-footer{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:18px;padding:28px;border-top:1px solid var(--kkc-line);margin:0}
.kkc-footer .kkc-brand img{width:32px;height:32px}.kkc-footer .kkc-brand strong{font-size:18px}
.kkc-footer p{font-size:12px;color:var(--kkc-muted);margin:8px 0 0;line-height:1.7}
.kkc-footer nav{display:flex;flex-wrap:wrap;gap:16px;margin:0;padding:4px 0;max-width:none;font-size:12px;color:var(--kkc-muted)}
.kkc-footer>small{flex-basis:100%;font-size:11px;color:var(--kkc-muted)}
.kkc-header.kkc-compact{min-height:65px;padding:12px 24px;justify-content:space-between}.kkc-compact .kkc-brand strong{font-size:18px}.kkc-compact .kkc-brand img{width:30px;height:30px}.kkc-compact .kkc-brand small{display:none}
.kkc-footer.kkc-compact{justify-content:center;padding:14px;font-size:12px}
@media(max-width:1150px) and (min-width:701px){.kkc-header{flex-wrap:wrap;gap:10px}.kkc-mode{margin-left:auto}.kkc-header nav{order:3;flex-basis:100%;border-top:1px solid var(--kkc-line);padding-top:4px}}
@media(max-width:700px){.kkc-header{padding:10px 14px;min-height:72px;gap:8px;flex-wrap:wrap}.kkc-brand strong{font-size:20px}.kkc-brand img{width:34px;height:34px}.kkc-brand small{font-size:10px}.kkc-header .kkc-menu{display:block;order:3}.kkc-mode{margin-left:auto}.kkc-mode>span{display:none}.kkc-mode select{font-size:12px;min-width:76px;padding:7px 4px}.kkc-header nav{display:none;order:4;flex-basis:100%;border-top:1px solid var(--kkc-line);padding-top:9px}.kkc-header nav.kkc-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.kkc-header nav a{background:var(--kkc-hover);text-align:center;border-radius:7px;min-height:44px;display:grid;place-items:center;white-space:normal}.kkc-footer{padding:22px 16px;gap:14px}.kkc-footer nav{gap:12px}.kkc-header.kkc-compact{padding:10px 14px}.kkc-compact .kkc-mode{margin-left:auto}}
@media(max-width:370px){.kkc-header{padding:10px 12px;gap:4px}.kkc-brand{gap:5px}.kkc-brand strong{font-size:18px}.kkc-brand img{width:30px;height:30px}.kkc-mode select{min-width:70px;font-size:12px}}
/* The independent events reader keeps its content width but shares site chrome geometry. */
.kkc-header,.kkc-footer{font-family:'Malgun Gothic',system-ui,sans-serif;max-width:1440px}
body.kkle-catalog .kkle-page{max-width:1440px;margin:0 auto;border-radius:24px 24px 0 0}
.kkle-catalog .kkc-header,.kkle-detail-page .kkc-header{height:auto;min-height:83px;max-width:1440px;padding:16px 28px;border-bottom:1px solid var(--kkc-line);flex-wrap:wrap}
.kkle-catalog .kkc-header label.kkc-mode,.kkle-detail-page .kkc-header label.kkc-mode{font-size:11px;display:flex;flex-direction:row;align-items:center;gap:5px}
.kkle-catalog .kkc-footer,.kkle-detail-page .kkc-footer{padding:28px;font-size:14px}
@media(max-width:700px){body.kkle-catalog .kkle-page{margin:0;border-radius:0}.kkle-catalog .kkc-header,.kkle-detail-page .kkc-header{min-height:72px;padding:10px 14px;gap:8px}.kkle-catalog .kkc-footer,.kkle-detail-page .kkc-footer{padding:22px 16px}}
.kkc-mobile{display:none}
@media(max-width:700px){body:has(.kkc-mobile){padding-bottom:80px}.kkc-mobile{position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:40;width:100%;max-width:1440px;min-height:70px;padding:7px 12px max(7px,env(safe-area-inset-bottom));display:flex;justify-content:space-around;align-items:center;border-top:1px solid var(--kkc-line);background:var(--kkc-bg);color:var(--kkc-fg);font:12px/1.4 'Malgun Gothic',sans-serif}.kkc-mobile a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:44px;min-height:50px;color:var(--kkc-muted);text-decoration:none}.kkc-mobile span{font-size:25px;line-height:1}.kkc-mobile small{font-size:11px;color:inherit}.kkc-mobile a[aria-current]{color:var(--kkc-fg);font-weight:700}.kkc-mobile .kkc-mobile-add{background:#ffcf22;color:#302600;border-radius:16px;min-width:58px}.kkc-mobile a:focus-visible{outline:3px solid #3578ce;outline-offset:2px}html[data-kr-scheme=dark] .kkc-mobile a:focus-visible{outline-color:#8fc1ff}}
/* Native modal keeps keyboard focus inside the two creation choices. */
.kkc-create{box-sizing:border-box;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:100%;max-height:calc(100dvh - 24px);overflow:auto;padding:20px 20px max(24px,env(safe-area-inset-bottom));border:1px solid var(--kkc-line);border-radius:24px 24px 0 0;background:var(--kkc-bg);color:var(--kkc-fg);font:14px/1.6 'Malgun Gothic',sans-serif;box-shadow:0 -12px 40px #0003;text-align:left;word-break:keep-all}
.kkc-create::backdrop{background:#07111c99}
.kkc-create-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.kkc-create h2{font-size:20px;line-height:1.4;color:var(--kkc-fg);margin:0;font-weight:800}
.kkc-create-close{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:var(--kkc-hover);color:var(--kkc-fg);font:28px/1 sans-serif;box-shadow:none;cursor:pointer}
.kkc-create a.kkc-create-choice{display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:86px;margin-top:10px;padding:14px;border:1px solid var(--kkc-line);border-radius:14px;background:var(--kkc-bg);color:var(--kkc-fg);text-decoration:none}
.kkc-create-choice>span:first-child{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#ffcf22;color:#302600;font-size:24px}
.kkc-create-choice>span:nth-child(2){flex:1;min-width:0}
.kkc-create-choice strong{display:block;font-size:16px;color:var(--kkc-fg)}
.kkc-create-choice small{display:block;margin-top:3px;font-size:12px;line-height:1.6;color:var(--kkc-muted)}
.kkc-create-choice:hover{background:var(--kkc-hover)!important}
.kkc-create :is(a,button):focus-visible{outline:3px solid #3578ce;outline-offset:2px}
html[data-kr-scheme=dark] .kkc-create :is(a,button):focus-visible{outline-color:#8fc1ff}
@media(prefers-reduced-motion:no-preference){.kkc-create[open]{animation:kkc-sheet-in .16s ease-out}@keyframes kkc-sheet-in{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}}
/* Match the main menu at rest and on pointer activation. Native selects report
   :focus-visible even after a mouse click; keep the shared keyboard focus cue. */
.kkc-header .kkc-mode select{font-size:13px;font-weight:700;line-height:1.5;padding:13px 5px;border-radius:0}
.kkc-header .kkc-mode select[data-pointer-focus=true]:focus{outline:none!important;box-shadow:none!important}
@media(max-width:700px){.kkc-header .kkc-mode select{padding:10px 4px}}

/* Browser comments 1 and 9: compact, readable shared navigation. */
@media(min-width:701px){.kkc-header nav{justify-content:center;gap:clamp(12px,2vw,28px)}.kkc-header nav a{font-size:15px;padding-inline:4px}}
@media(max-width:700px){.kkc-header nav a{font-size:15px}}
.kkle-catalog #kkle-filter .kkle-period{justify-content:center}
.kkle-catalog #kkle-filter .kkle-period :is(button,a){flex:0 1 180px}
@media(max-width:599px){.kkle-catalog #kkle-filter .kkle-period :is(button,a){flex:1 1 0;min-width:0}}

/* U5: shared decorative page heroes; scoped away from personal profiles/chat. */
.kr-art-sites{--kk-hero-art:url("hero-sites.svg")}.kr-art-new{--kk-hero-art:url("hero-new.svg")}.kr-art-popular{--kk-hero-art:url("hero-popular.svg")}.kr-art-tools{--kk-hero-art:url("hero-tools.svg")}
html .kr-app .kr-page-intro.kr-art,html .kml-app.kml-directory .hero{background-color:#f6f8fa;background-image:linear-gradient(90deg,transparent,rgba(255,255,255,.70) 30%,rgba(255,255,255,.70) 70%,transparent),var(--kk-hero-art);background-size:cover;background-position:center;isolation:isolate;min-height:190px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px clamp(18px,4vw,58px);gap:10px}
html .kml-app.kml-directory .hero{--kk-hero-art:url("hero-mylink.svg")}
html .kr-app .kr-page-intro.kr-art>*,html .kml-app.kml-directory .hero>*{max-width:850px;margin:0}
html .kml-app.kml-directory .hero h1{margin:10px 0}html .kml-app.kml-directory .hero>span{font-size:12px}
html[data-kr-scheme=dark] .kr-app .kr-page-intro.kr-art,html[data-kr-scheme=dark] .kml-app.kml-directory .hero{background-color:#19222e;background-image:linear-gradient(90deg,rgba(20,29,40,.72),rgba(20,29,40,.95) 30%,rgba(20,29,40,.95) 70%,rgba(20,29,40,.72)),var(--kk-hero-art)}
.kr-app .kr-discovery{max-width:1120px;margin-inline:auto}.kr-app .kr-discovery>summary,.kr-app .kr-discovery>p{text-align:center}.kr-app .kr-discovery .kksd-panel{margin-inline:auto}
.kr-app .kr-discovery .kksd-panel>header{text-align:center}
@media(max-width:700px){html .kr-app .kr-page-intro.kr-art,html .kml-app.kml-directory .hero{min-height:180px;padding:26px 20px;background-size:auto 100%;gap:8px}html .kr-app .kr-page-intro.kr-art h1,html .kml-app.kml-directory .hero h1{font-size:clamp(23px,6vw,28px);line-height:1.4}html .kr-app .kr-page-intro.kr-art p,html .kml-app.kml-directory .hero p{line-height:1.65}.kr-app .kr-discovery{min-width:0}}

.kr-app .kr-discovery .kksd-heading{margin-inline:auto;text-align:center}.kr-app .kr-discovery .kksd-category-filters{justify-content:safe center}.kr-app .kr-discovery .kksd-heading+label{display:block;text-align:center}.kr-app .kr-discovery .list-pages{justify-content:center}
/* Yellow actions retain the shared dark text contrast in both schemes. */
html .kqr-app .primary{color:#171b25}
.kr-app .kr-discovery #kksd-category-label{display:block;text-align:center}

/* C1.1: one shared mobile input rule for directory, profiles and requests. */
@media(max-width:700px){html body:is(.kr-app,.kml-app) :is(#kr-content,#app,.kkc-header) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px}}

/* LP9: wrap shared tablet navigation rather than clipping the last service. */
@media(max-width:1150px) and (min-width:701px){.kkc-header nav{flex-wrap:wrap;justify-content:center;column-gap:18px;row-gap:0}}

@media(max-width:700px){.kr-app .kkc-footer:not(.kkc-compact){display:grid;grid-template-columns:minmax(0,1fr);padding:16px;gap:8px;line-height:1.45}.kr-app .kkc-footer p{margin:4px 0 0;line-height:1.45}.kr-app .kkc-footer nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 8px;padding:0;align-items:center}.kr-app .kkc-footer nav a{display:flex;align-items:center;min-height:44px;font-size:12px;line-height:1.35}.kr-app .kkc-footer>small{line-height:1.45;margin:0}.kr-app .kkc-footer .kkc-brand{min-height:32px}}

html .kr-app .kkc-footer nav a{justify-content:flex-start;text-align:left}
