/* Fixed to the viewport on both pages, including mobile safe areas. */
.theme-toggle{position:fixed;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:30;min-height:46px;margin:0;padding:12px 16px;border-radius:999px;background:var(--paper);box-shadow:0 6px 24px #0002;font-size:12px}
footer{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
nav a[aria-current="page"]{color:var(--accent);font-weight:700}
.about-page{min-height:55vh;padding:18px 0 70px}
.about-page h1{margin:9px 0 0;font-size:clamp(32px,5vw,48px)}
.about-page .about{margin:32px 0 0}
@media(max-width:1000px){nav a:nth-of-type(2){display:inline}}
@media(max-width:540px){.theme-toggle{right:calc(14px + env(safe-area-inset-right,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));min-height:44px;padding:11px 14px;font-size:11px}.about-page{padding-top:0}.about-page .section-head{margin-top:32px}}

/* A compact header and a left-hand navigation drawer on every page. */
header{justify-content:flex-start;gap:20px}header>nav{margin-left:auto;justify-content:flex-end}header .brand{flex-shrink:0}header .brand img{display:block;width:min(240px,34vw);max-height:56px;object-fit:contain}
.menu-trigger{display:inline-flex;align-items:center;gap:9px;flex-shrink:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--paper);font-size:12px}.menu-trigger:hover{background:var(--surface);border-color:var(--accent)}.menu-trigger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.site-menu{position:fixed;inset:0 auto 0 0;margin:0;width:min(340px,88vw);max-width:none;height:100dvh;max-height:100dvh;padding:30px 25px;border:0;border-right:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);box-shadow:20px 0 80px #0002;overflow:auto}.site-menu::backdrop{background:#07182a88;backdrop-filter:blur(3px)}body:has(.site-menu[open]){overflow:hidden}.site-menu .menu-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.site-menu .menu-heading p{margin:0;font-size:22px;font-weight:700;color:var(--ink)}.site-menu button{float:none;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:12px}.site-menu .menu-caption{margin:32px 0 18px;font-size:9px;letter-spacing:2px;color:var(--muted)}.site-menu .drawer-links{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;margin:0}.site-menu .drawer-links a{display:flex;align-items:center;gap:17px;width:100%;padding:22px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:18px;font-weight:600}.site-menu .drawer-links a>span:last-child{margin-left:auto;font-size:18px;color:var(--muted)}.site-menu .drawer-links a:hover{color:var(--accent);background:var(--surface)}.site-menu .menu-number{font-size:10px;color:var(--accent);font-weight:500}.site-menu .menu-note{margin:48px 0 0;color:var(--muted);font-size:13px;line-height:1.9}
.trend-video{min-width:0;margin:0;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.video-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:23px 24px 0}.video-kicker{font-size:9px;letter-spacing:1.6px;color:var(--muted);font-weight:600}.video-kicker>span{color:#e73b36;margin-right:7px}.video-badge{font-size:10px;border:1px solid var(--line);border-radius:30px;padding:5px 9px;color:var(--accent);background:var(--paper)}.trend-video h2{margin:14px 24px 21px;font-size:24px;letter-spacing:-1px;line-height:1.5}.video-player{aspect-ratio:16/9;position:relative;background:#101c2e;overflow:hidden}.video-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.video-placeholder{height:100%;display:grid;align-content:center;justify-items:center;gap:14px;padding:24px;text-align:center;background:radial-gradient(ellipse at 65% 20%,#243f66,#101c2e 75%);color:#dbe8fa}.video-placeholder p{font-size:12px;line-height:1.8;margin:0}.video-play-mark{display:grid;place-items:center;width:56px;height:42px;border-radius:13px;background:#e53935;color:white;font-size:20px}.video-info{padding:19px 24px 23px}.video-title{font-size:15px;line-height:1.7;font-weight:700;margin:0 0 9px}.video-meta,.video-status{font-size:10px;color:var(--muted);line-height:1.9;margin:0}.video-status:empty{display:none}.video-watch{display:inline-block;font-size:11px;color:var(--accent);font-weight:600;margin-top:13px;padding:5px 0}.video-watch:hover{text-decoration:underline}
@media(max-width:1100px){header>nav{flex:1;min-width:230px}.brand strong{font-size:15px}}
@media(max-width:640px){header{gap:14px;align-items:center}.menu-trigger{padding:10px}.menu-trigger span{font-size:11px}header .brand{flex:1}.brand strong{font-size:14px}header>nav{margin:0;width:100%;flex:auto;justify-content:space-between}header .member-controls{width:auto;flex:1;padding-top:0;border-top:0;justify-content:flex-end}.video-heading{padding:20px 20px 0}.trend-video h2{margin:13px 20px 20px;font-size:22px}.video-info{padding:18px 20px 21px}.trend-video{border-radius:16px}}

/* Keep header controls and reading columns comfortable on narrow screens. */
header>nav,.member-controls,.hero>*,.cards>*{min-width:0}
header>nav>a{display:inline-flex;align-items:center;min-height:44px}
button,.cta,.video-watch{min-height:44px}
.video-watch{display:inline-flex;align-items:center}
.video-title,.video-meta,.video-status,.card h3,.card .desc{overflow-wrap:anywhere}
@media(max-width:800px){
  .wrap{width:calc(100% - 32px)}
  header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px 12px;min-height:0;padding:20px 0}
  header .brand{min-width:0;gap:10px;justify-self:start}
  header .brand strong{font-size:clamp(13px,3.7vw,17px);white-space:normal}
  header .brand small{font-size:7px;letter-spacing:1px}
  header .mark{width:36px;height:36px;flex-shrink:0}
  header>nav{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;min-width:0;width:100%;margin:0;padding-top:12px;border-top:1px solid var(--line)}
  header>nav>a{font-size:11px;white-space:nowrap;padding:0 2px}
  header .member-controls{display:flex;justify-content:flex-end;align-items:center;gap:8px;width:100%;margin:0;padding:0;border:0;min-width:0}
  header .member-status{max-width:100%;min-width:0;line-height:1.6;font-size:11px;padding:8px 10px}
  header .member-controls[data-state="authenticated"] .member-status{flex-basis:100%;border-radius:10px}
  header .member-controls button{min-height:44px;padding:10px 12px;font-size:11px}
  .menu-trigger{padding:10px;gap:7px}
  .hero{padding:28px 0 30px;gap:28px}
  .hero h1{font-size:clamp(34px,7vw,49px);line-height:1.3;letter-spacing:-1.5px}
  .intro{font-size:13px;line-height:1.9}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .section-head{gap:16px;align-items:flex-start}
  .section-head h2{font-size:clamp(23px,5vw,29px)}
  .about{gap:24px}
  .partnership{padding:24px}
  .inquiry-fields{grid-template-columns:1fr}
  footer{flex-wrap:wrap;gap:10px;font-size:10px;line-height:1.8}
}
@media(max-width:540px){
  .cards{grid-template-columns:minmax(0,1fr)}
  .card h3{font-size:20px}
  .card .desc{font-size:13px}
  .eyebrow{line-height:1.7;letter-spacing:.7px}
  .video-heading{padding:18px 16px 0;flex-wrap:wrap;gap:8px}
  .trend-video h2{margin:12px 16px 18px;font-size:21px}
  .video-info{padding:16px}
  .video-title{font-size:14px}
  .video-meta,.video-status{font-size:11px}
  .section-head{margin-top:32px;flex-wrap:wrap;gap:8px}
  .section-head>span{max-width:none;text-align:left;font-size:10px}
  .ribbon{flex-wrap:wrap;gap:8px 14px}
  .ribbon p{line-height:1.9}
  .about{padding:22px}
  .about p{font-size:13px;line-height:1.9}
  .partnership{padding:20px;margin:28px 0}
  .partnership .section-head{margin-bottom:18px}
  .partnership-intro{font-size:13px}
  .inquiry-submit{width:100%;min-height:46px}
}
@media(max-width:800px){.inquiry-field input,.inquiry-field textarea{font-size:16px}}
.visitor-counter{position:fixed;left:calc(16px + env(safe-area-inset-left,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:29;display:flex;gap:7px;align-items:center;max-width:calc(100vw - 155px);padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font-size:10px;line-height:1.6;box-shadow:0 3px 16px #0001;pointer-events:none;flex-wrap:wrap}.visitor-counter b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}.video-start{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:13px;width:100%;height:100%;padding:20px;border:0;background:#101c2e;color:#fff;font:inherit;cursor:pointer;text-align:center;isolation:isolate}.video-start img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.video-start:before{content:'';position:absolute;inset:0;background:#06162b66;z-index:-1}.video-start .video-play-mark{width:64px;height:46px}.video-start>span:last-child{font-size:12px;font-weight:600;text-shadow:0 1px 5px #000}.video-start:hover .video-play-mark{background:#f04740}.video-player{width:100%;max-width:100%;min-width:0;min-height:200px}
@media(max-width:540px){.visitor-counter{left:calc(12px + env(safe-area-inset-left,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));font-size:9px;padding:7px 9px;gap:5px}}

/* Compact masthead: one row on tablets, two short rows on phones. */
@media(max-width:1100px){
  header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:0;padding:12px 0}
  header .menu-trigger{width:44px;height:44px;min-height:44px;padding:0;justify-content:center;position:relative}
  header .menu-trigger>span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  header .brand{min-width:0;gap:8px;justify-self:start}
  header .brand .mark{width:32px;height:32px;flex-shrink:0;font-size:14px}
  header .brand strong{display:block;font-size:14px;line-height:1.4;white-space:nowrap;letter-spacing:-.4px}
  header .brand small{display:none}
  header>nav{grid-column:auto;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;width:auto;min-width:0;margin:0;padding:0;border:0;gap:10px}
  header>nav>a{flex:none;min-height:44px;padding:0;font-size:11px;white-space:nowrap}
  header .member-controls{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:6px;width:auto;min-width:0;margin:0;padding:0;border:0}
  header .member-status,header .member-controls[data-state="authenticated"] .member-status{display:block;flex:0 1 auto;flex-basis:auto;min-width:0;max-width:120px;padding:5px 7px;border-radius:999px;font-size:11px;font-weight:400;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  header .member-controls[data-state="authenticated"] .member-status:before{display:inline-block;width:5px;height:5px;margin-right:5px;vertical-align:2px}
  header .member-controls button{flex:none;min-height:44px;padding:6px 9px;font-size:11px;line-height:1.4;border-radius:8px}
}
@media(max-width:699px){
  header{grid-template-columns:44px minmax(0,1fr);gap:2px 10px;padding:8px 0}
  header>nav{grid-column:1/-1;justify-content:space-between;gap:8px;width:100%}
  header .brand strong{font-size:14px}
  header .member-controls{flex:1;gap:5px}
  header .member-status,header .member-controls[data-state="authenticated"] .member-status{max-width:clamp(62px,22vw,110px);font-size:10px;padding:4px 6px}
  header .member-controls button{padding:6px 8px;font-size:10px}
  .hero{padding:20px 0 24px;gap:22px}
  .hero .eyebrow{font-size:8px;line-height:1.5;letter-spacing:1px}
}

/* Single-line masthead, including narrow phones. */
@media(max-width:1100px){
  header{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-height:0;padding:8px 0}
  header .menu-trigger{width:40px;height:44px;min-height:44px;flex:none}
  header .brand{flex:1;min-width:0;gap:6px}
  header .brand img{width:min(210px,34vw);max-height:48px}
  header .brand>div{min-width:0}
  header .brand strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  header .brand .mark{width:28px;height:28px;flex:none}
  header>nav{display:flex;flex:none;width:auto;min-width:0;margin:0;padding:0;border:0}
  header .member-controls{flex:none;width:auto;gap:5px}
  header .member-status,header .member-controls[data-state="authenticated"] .member-status{max-width:clamp(52px,17vw,104px);font-size:10px;padding:4px 6px;flex-basis:auto}
  header .member-controls button{padding:6px 8px;font-size:10px}
}
@media(max-width:480px){header .brand img{width:min(170px,40vw);max-height:44px}header .brand .mark{display:none}header .brand strong{font-size:12px}}
.site-menu[open]{display:flex;flex-direction:column}
.site-menu .menu-footer{display:grid;gap:12px;margin-top:auto;padding-top:28px}
.site-menu .menu-footer [hidden]{display:none!important}
.site-menu .menu-footer a{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:12px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:13px}
.site-menu .menu-footer .kakao-link-button{width:100%;min-height:44px;background:#fee500;color:#191919;border-color:#fee500}

/* Slightly narrower navigation drawer and an icon-only close control. */
.site-menu{width:min(300px,84vw);padding:24px 20px}
.site-menu #menu-close{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;font-size:20px;line-height:1}

/* Keep account controls visible without adding another header row. */
html{scroll-padding-top:84px}
header{position:sticky;top:0;z-index:40;min-height:72px;gap:12px;padding:10px 0;background:var(--paper);box-shadow:0 4px 12px #00000005}
header .brand{gap:8px}
header .menu-trigger{width:44px;height:44px;min-height:44px;padding:0;justify-content:center}
header .member-controls{gap:6px}
@media(max-width:1100px){
  header{min-height:0;gap:6px;padding:4px 0}
  header .brand{gap:5px}
  header .member-controls{gap:4px}
}

/* Collapse the sticky masthead while reading, retaining 44px touch targets. */
header{transition:min-height .2s ease,padding .2s ease}
header .brand .mark,header .brand strong{transition:width .2s ease,height .2s ease,font-size .2s ease}
header .brand img{transition:width .2s ease,max-height .2s ease}
header.is-compact{min-height:54px;padding:4px 0}
header.is-compact .brand .mark{width:30px;height:30px;font-size:14px}
header.is-compact .brand strong{font-size:14px}
header.is-compact .brand small{display:none}
@media(max-width:1100px){
  header.is-compact{min-height:0;padding:0}
  header.is-compact .brand img{width:min(190px,32vw);max-height:42px}
  header.is-compact .brand .mark{width:24px;height:24px;font-size:12px}
  header.is-compact .brand strong{font-size:12px}
}
@media(max-width:480px){header.is-compact .brand strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){header,header .brand .mark,header .brand strong{transition:none}}

/* Account information and a small contact link inside the drawer. */
.menu-account{margin:0 0 16px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.menu-account-label{font-size:10px;color:var(--muted)}
.menu-account p{margin:6px 0 8px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.menu-account button{min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:inherit;font-size:11px}
.site-menu .menu-footer .menu-inquiry{justify-self:end;gap:10px;width:auto;min-height:36px;padding:6px 10px;font-size:11px}

/* Account details share the close-button row instead of a separate card. */
.site-menu{padding-top:12px}
.site-menu .menu-heading{gap:8px;margin-bottom:8px;min-height:44px}
.site-menu .menu-heading .menu-account{display:flex;align-items:center;gap:6px;flex:1;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent}
.site-menu .menu-heading .menu-account p{flex:1;min-width:0;margin:0;font-size:11px;font-weight:400;line-height:1.5;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-menu .menu-heading .menu-account button{flex:none;min-height:36px;padding:6px 8px;font-size:10px}
.ribbon{border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:16px 0}

/* Move the introduction inward within its own column, clear of the video. */
.hero .hero-copy{min-width:0;padding-inline-start:clamp(20px,3vw,48px)}
@media(max-width:800px){.hero .hero-copy{padding-inline-start:0;text-align:center}}

/* Match the masthead's signed-in indicator without a repeated status phrase. */
#menu-account-status[data-state="authenticated"]::before{content:'';display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#219653;vertical-align:1px}
@media(max-width:1100px){#menu-account-status[data-state="authenticated"]::before{width:5px;height:5px;vertical-align:2px}}

/* Official site identity */
header .brand img{width:min(180px,28vw);height:auto;max-height:none}
@media(max-width:1100px){header .brand img{max-height:48px}header.is-compact .brand img{max-height:42px}}
@media(max-width:800px){header .brand img{width:min(155px,32vw)}}
@media(max-width:480px){header .brand img{width:min(132px,38vw)}}
header.is-compact .brand img{width:min(150px,26vw)}
@media(max-width:800px){header.is-compact .brand img{width:min(140px,30vw)}}
/* Keep the homepage masthead slightly more compact than interior pages. */
.home-page header .brand img{width:min(160px,25vw);max-height:48px;object-fit:contain}
@media(max-width:800px){.home-page header .brand img{width:min(145px,30vw);max-height:48px}}
@media(max-width:480px){.home-page header .brand img{width:min(112px,33vw)}}
.home-page header.is-compact .brand img{width:min(136px,23vw);max-height:42px}
@media(max-width:800px){.home-page header.is-compact .brand img{width:min(118px,25vw);max-height:42px}}
.footer-brand{display:inline-flex;align-items:center;gap:8px}
.footer-brand img{display:block;width:110px;max-width:30vw;height:auto}

.site-logo{position:relative;display:inline-block;line-height:0}.site-logo .logo-lighten{position:absolute;inset:0;display:none;filter:brightness(0) invert(1)}:root[data-theme="dark"] .site-logo .logo-lighten{display:block}.site-logo .logo-title{clip-path:inset(30% 33% 43% 47%)}.site-logo .logo-subtitle{clip-path:inset(55% 6% 28% 53%)}.site-logo .logo-tagline{clip-path:inset(70% 13% 17% 59%)}
.footer-brand .site-logo{width:110px;max-width:30vw}

.share-floating-button{position:fixed;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:31;display:grid;place-items:center;width:46px;height:46px;min-height:46px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);box-shadow:0 6px 24px #0002;cursor:pointer}.share-floating-button:hover{border-color:var(--accent);color:var(--accent)}.share-floating-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.share-floating-button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.share-dialog{width:min(500px,calc(100% - 32px));max-height:min(680px,calc(100% - 32px));padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}.share-dialog::backdrop{background:#06182bb3;backdrop-filter:blur(3px)}.share-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.share-dialog-heading h2{margin:0;font-size:22px;line-height:1.4}.share-close{min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}.share-dialog-description{margin:15px 0 20px;color:var(--muted);font-size:14px;line-height:1.8}.share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.share-native,.share-copy,.share-network{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px;font-weight:650;cursor:pointer;text-decoration:none}.share-native{grid-column:1/-1;border-color:var(--accent);background:var(--accent);color:#fff}.share-copy{width:100%;margin-top:12px}.share-status{min-height:24px;margin:12px 0 0;color:var(--accent);font-size:13px;line-height:1.7}.share-page-button:focus-visible,.share-copy:focus-visible,.share-native:focus-visible,.share-network:focus-visible,.share-close:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:540px){.share-floating-button{right:calc(14px + env(safe-area-inset-right,0px));bottom:calc(70px + env(safe-area-inset-bottom,0px));width:44px;height:44px;min-height:44px}.share-dialog{padding:20px}}

body button.share-floating-button{display:grid;width:46px;height:46px;min-height:46px;padding:0;border-radius:50%}body button.share-floating-button svg{width:20px;height:20px}@media(max-width:540px){body button.share-floating-button{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}}
