/* REVAON §4-1 master header/footer (15_디자인_원칙_계층.md). Values copied from Solution Hub hub-chrome.css + hub-d.css so every
   product's chrome has the same height, type, icons and states. Products only set the accent: --rv-act / --rv-act-press / --rv-link. */
:root{--rv-paper:#FAFAFA;--rv-white:#FFFFFF;--rv-hair:#EBEBEB;--rv-hair2:#D9D9D9;--rv-ink:#171717;--rv-body:#4D4D4D;--rv-mute:#666666;
  --rv-act:#171717;--rv-act-press:#000;--rv-link:#171717;--rv-r-s:8px;--rv-r-m:12px}

/* ---- header ---- */
.site-top{position:sticky;top:0;z-index:40;height:64px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--rv-hair);font-family:inherit}
.site-top-in{display:flex;align-items:center;gap:32px;height:100%;width:min(1280px,100% - 80px);margin:0 auto}
.site-top .site-brand{display:inline-flex;align-items:center;gap:10px;flex:none;min-height:44px;color:var(--rv-ink);font-size:16px;font-weight:700;letter-spacing:-.01em;text-decoration:none;white-space:nowrap}
.site-top .site-brand img{width:28px;height:28px;border-radius:7px}
.site-top .site-nav{display:flex;align-items:center;gap:4px;min-width:0}
.site-top .site-nav a{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border-radius:var(--rv-r-s);color:var(--rv-body);font-size:15px;font-weight:500;text-decoration:none;white-space:nowrap}
.site-top .site-nav a:hover{background:var(--rv-hair);color:var(--rv-ink)}
.site-top .site-nav a[aria-current="page"]{color:var(--rv-ink)}
.site-top .site-nav a[aria-current="page"]::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--rv-act);margin-right:8px}
.site-top .site-account{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.site-top .site-link,.site-top a.site-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border:0;border-radius:var(--rv-r-s);font:500 15px/1.2 inherit;font-family:inherit;text-decoration:none;white-space:nowrap}
.site-top .site-link{background:var(--rv-white);color:var(--rv-ink);box-shadow:0 0 0 1px var(--rv-hair2)}
.site-top .site-link:hover{box-shadow:0 0 0 1px var(--rv-ink)}
.site-top a.site-btn.primary{background:var(--rv-act);color:#fff}
.site-top a.site-btn.primary:hover{background:var(--rv-act-press)}
.site-top a.site-btn.primary:active{background:var(--rv-act-press)}
.site-top button.site-menu{display:none}
.site-top a:focus-visible,.site-top button:focus-visible,.site-foot a:focus-visible{outline:2px solid var(--rv-ring,var(--rv-act));outline-offset:2px}  /* --rv-ring: a darker accent where the accent is under 3:1 on white */
.site-ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.site-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--rv-r-s);color:var(--rv-body)}
.site-icon-btn:hover{background:var(--rv-hair);color:var(--rv-ink)}
.site-acct{position:relative}
.site-acct-btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 8px 0 6px;border:0;border-radius:var(--rv-r-s);background:transparent;color:var(--rv-body);font:500 15px/1 inherit;font-family:inherit;cursor:pointer}
.site-acct-btn:hover{background:var(--rv-hair);color:var(--rv-ink)}
.site-acct-btn[aria-expanded="true"] .site-ic{transform:rotate(180deg)}
.site-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--rv-ink);color:#fff;font-size:13px;font-weight:700}
.site-acct-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-acct-menu{position:absolute;right:0;top:52px;z-index:50;width:256px;padding:6px;background:var(--rv-white);border-radius:var(--rv-r-m);box-shadow:0 0 0 1px var(--rv-hair2),0 12px 32px rgba(0,0,0,.08);text-align:left}
.site-acct-who{padding:10px 12px 14px;margin-bottom:6px;border-bottom:1px solid var(--rv-hair)}
.site-acct-who b{display:block;color:var(--rv-ink);font-size:15px;font-weight:700}
.site-acct-who small{display:block;color:var(--rv-mute);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-menu-item{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:var(--rv-r-s);background:transparent;color:var(--rv-body);font:400 15px/1.2 inherit;font-family:inherit;text-decoration:none;text-align:left;cursor:pointer}
.site-menu-item:hover{background:var(--rv-paper);color:var(--rv-ink)}
.site-acct-menu hr{border:0;border-top:1px solid var(--rv-hair);margin:6px 0}
/* work screens: the product top bar keeps its layout; only its right end is the shared block */
.topbar .rv-app-account{display:flex;align-items:center;gap:8px;flex:none;margin-left:8px}
.topbar .rv-app-account .site-acct-menu{top:52px}

/* ---- footer: company left, links right ---- */
footer.site-foot{display:block;margin-top:auto;background:var(--rv-white);border-top:1px solid var(--rv-hair);color:var(--rv-mute);font-size:13px;line-height:1.7}
.site-foot .site-foot-in{display:flex;justify-content:space-between;align-items:flex-start;gap:48px;width:min(1280px,100% - 80px);margin:0 auto;padding:40px 0}
.site-foot-co img{display:block;height:15px;width:auto;margin-bottom:16px}
.site-foot-co .rv-biz{margin:0;opacity:1;color:var(--rv-mute);font-size:13px}
.site-foot-co .rv-biz strong{color:var(--rv-ink)}
.site-foot-co .rv-biz-links{display:none}   /* the same links sit on the right */
.site-foot-copy{margin:4px 0 0}
.site-foot .site-foot-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 24px}
.site-foot .site-foot-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--rv-body);font-size:13px;text-decoration:none}
.site-foot .site-foot-links a:hover{color:var(--rv-link);text-decoration:underline;text-underline-offset:4px}
.site-foot .site-foot-links strong{color:var(--rv-ink)}

/* public pages, signed in (§4-1 2026-10-22): [소개 기능 요금제 도움말] … [제품 열기] [마이페이지] [로그아웃].
   Phones: 마이페이지·로그아웃 move into the menu panel, after the four tabs. */
.site-top button.site-link{cursor:pointer;font-size:15px;font-weight:500;line-height:1.2}  /* the `font:… inherit` shorthand above is invalid, so set them here */
.site-top .site-nav .rv-nav-acct{display:none}
@media (max-width:760px){
  .site-top .site-account .rv-pub-acct{display:none}
  .site-top .site-nav .rv-nav-acct:not([hidden]){display:flex;flex-direction:column;gap:2px;margin-top:6px;padding-top:8px;border-top:1px solid var(--rv-hair)}
  .site-top .site-nav .rv-nav-acct button{display:flex;align-items:center;min-height:46px;padding:0 12px;border:0;border-radius:var(--rv-r-s);background:transparent;color:var(--rv-body);font-family:inherit;font-size:16px;font-weight:500;line-height:1.2;text-align:left;cursor:pointer}
  .site-top .site-nav .rv-nav-acct button:hover{background:var(--rv-hair);color:var(--rv-ink)}
}

@media (max-width:1000px){
  .site-top-in{gap:12px}
  .site-top button.site-menu{display:inline-flex;order:3;width:44px;height:44px;padding:0;border:0;border-radius:var(--rv-r-s);color:transparent;font-size:0;cursor:pointer;
    background:linear-gradient(var(--rv-ink),var(--rv-ink)) 50% 15px/18px 2px no-repeat,linear-gradient(var(--rv-ink),var(--rv-ink)) 50% 21px/18px 2px no-repeat,linear-gradient(var(--rv-ink),var(--rv-ink)) 50% 27px/18px 2px no-repeat}
  .site-top.menu-open button.site-menu{background-color:var(--rv-hair)}
  .site-top .site-account{order:2}
  .site-top .site-nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:2px;padding:10px 16px 14px;background:var(--rv-white);border-bottom:1px solid var(--rv-hair);box-shadow:0 14px 28px rgba(0,0,0,.08)}
  .site-top.menu-open .site-nav{display:flex}
  .site-top .site-nav a{min-height:46px;font-size:16px}
}
@media (max-width:760px){
  .site-top{height:56px}
  .site-top-in,.site-foot .site-foot-in{width:calc(100% - 32px)}
  .site-top-in,.site-top .site-account{gap:4px}
  .site-top .site-link{background:transparent;box-shadow:none;padding:0 10px;min-height:44px}
  .site-top a.site-btn.primary{padding:0 14px;min-height:44px}
  .site-acct-name{display:none}
  .site-acct-menu,.topbar .rv-app-account .site-acct-menu{position:fixed;left:8px;right:8px;top:60px;width:auto}
  .site-foot .site-foot-in{flex-direction:column-reverse;gap:16px;padding:32px 0}
  .site-foot .site-foot-links{justify-content:flex-start}
  .site-foot-co .rv-biz a{display:inline-flex;align-items:center;min-height:44px}
}
@media (max-width:360px){.site-top .site-brand span{display:none}}  /* the product name is the logo; keep it down to 360 */
@media (prefers-reduced-motion:reduce){.site-top *,.site-foot *{transition:none!important}}
/* Inside the Hub frame the Hub shows its own header, account menu and footer. */
html.in-hub .rv-top,html.in-hub .rv-foot,html.in-hub .rv-app-account{display:none}

/* ---- phones: landing primary action pinned to the bottom after the hero (rv-chrome.js), never over the footer ---- */
.rv-sticky-cta{display:none}
@media (max-width:768px){
  .rv-sticky-cta:not([hidden]){display:block;position:fixed;left:0;right:0;bottom:0;z-index:45;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--rv-hair);box-shadow:0 -8px 24px rgba(0,0,0,.06)}
  .rv-sticky-btn{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:var(--rv-r-s);background:var(--rv-act);color:var(--rv-on-act,#fff);font-size:16px;font-weight:600;text-decoration:none}
  .rv-sticky-btn:active{background:var(--rv-act-press)}
  .rv-sticky-btn:focus-visible{outline:2px solid var(--rv-ink);outline-offset:2px}
}

/* ---- inquiry confirmation (window.rvInquiryDone) ---- */
.rv-inquiry-done{padding:32px;border:1px solid var(--rv-hair2);border-radius:var(--rv-r-m);background:var(--rv-white);color:var(--rv-ink)}
.rv-inquiry-done:focus{outline:none;box-shadow:0 0 0 2px var(--rv-act)}
.rv-inquiry-done h2{margin:0 0 8px;font-size:20px;font-weight:700;color:var(--rv-ink)}
.rv-inquiry-done p{margin:0 0 20px;color:var(--rv-body);font-size:15px;line-height:1.7}
.rv-inquiry-again{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:0;border-radius:var(--rv-r-s);background:var(--rv-white);box-shadow:0 0 0 1px var(--rv-hair2);color:var(--rv-ink);font:500 15px/1 inherit;font-family:inherit;cursor:pointer}
.rv-inquiry-again:hover{box-shadow:0 0 0 1px var(--rv-ink)}

/* ---- touch targets on phones (QA 2026-10-22): checkboxes, pagers; narrow work-screen bar ---- */
@media (max-width:768px),(pointer:coarse){
  input:is([type=checkbox],[type=radio]){width:20px;height:20px}
  label:has(input:is([type=checkbox],[type=radio])){min-height:44px}
  summary,.account-shell nav .nav-link{min-height:44px}
  summary{display:flex;align-items:center}
  /* a table cell holding one checkbox is the tap area (rv-chrome.js toggles it) */
  :is(td,th):has(> input[type=checkbox]),:is(td,th):has(> label > input[type=checkbox]){min-width:44px;height:44px;cursor:pointer}
  .pagination :is(button,a){min-width:44px;min-height:44px}
  .tabs :is(button,a),[role=tab],.segmented :is(button,a),.pricing-toggle button{min-height:44px}
}
@media (max-width:420px){
  .topbar a.brand > span,.topbar .brand > span{display:none}   /* logo stays; keeps the account menu on screen */
  .topbar .rv-app-account{gap:0;margin-left:auto}
  .topbar .rv-app-account .site-icon-btn{width:40px}
}
@media (max-width:480px){.session-row{flex-wrap:wrap;row-gap:8px}.session-row .spacer{flex-basis:100%;height:0}}
