/* Hotel HMS Docs — front-end styles, matched to the marketing-site
   documentation design: Fraunces display type, forest green + gold
   accents, warm paper background. Same class names used by the PHP
   template — no markup changes needed beyond what ships with this
   version. */

.hmsdoc-wrap{
  --ink:#0E1F1A;
  --ink-soft:#4C5C55;
  --forest:#0A2A22;
  --forest-2:#123A2E;
  --forest-deep:#061A14;
  --emerald:#146C48;
  --emerald-bright:#1F9560;
  --paper:#F9F6EE;
  --paper-2:#EFEADB;
  --line:#DED6C0;
  --gold:#B08A3E;
  --gold-tint:#FBF1DC;
  --sage:#ECF1E6;
  --white:#FFFFFF;
  --shadow:0 20px 60px -20px rgba(10,42,34,.35);

  /*background:var(--paper);*/
  color:var(--ink);
  font-family:'Inter',sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  padding:0 0 8px;
  width:100%;
  max-width:100%;
}
.hmsdoc-wrap *{ box-sizing:border-box; }
.hmsdoc-wrap a{ color:inherit; text-decoration:none; }
.hmsdoc-wrap img,.hmsdoc-wrap svg{ display:block; max-width:100%; }
.hmsdoc-wrap h1,.hmsdoc-wrap h2,.hmsdoc-wrap h3,.hmsdoc-wrap h4{
  font-family:'Fraunces',serif;
  font-weight:500;
  letter-spacing:-0.015em;
  color:var(--ink);
}

/* ---- Hero ---- */
.hmsdoc-hero{
  width:100%;
  max-width:680px;
  margin:0 auto;
  padding:64px 32px 44px;
  text-align:center;
}
.hmsdoc-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--paper-2);
  border:1px solid var(--line);
  color:var(--forest);
  font-family:'Inter',sans-serif;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.03em;
  padding:7px 16px;
  border-radius:999px;
  margin-bottom:20px;
}
.hmsdoc-eyebrow::before{
  content:'';
  width:7px; height:7px;
  border-radius:50%;
  background:var(--emerald-bright);
  box-shadow:0 0 0 3px rgba(31,149,96,.18);
}
.hmsdoc-hero h1{
  font-size:clamp(28px,3.6vw,42px);
  line-height:1.12;
  margin:0 0 14px;
}
.hmsdoc-hero p{
  color:var(--ink-soft);
  font-family:'Inter',sans-serif;
  font-size:15.5px;
  max-width:520px;
  margin:0 auto;
}

/* ---- Layout: sidebar | content | sticky toc ---- */
.hmsdoc-layout{
  display:grid;
  grid-template-columns:250px 1fr 230px;
  gap:40px;
  align-items:start;
  width:100%;
  max-width:1640px;
  margin:0 auto;
  padding:28px 32px 72px;
}

.hmsdoc-sidebar{
  position:sticky;
  top:114px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px 16px;
  box-shadow:0 14px 34px -24px rgba(10,42,34,.3);
}
.hmsdoc-sidebar-label{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:var(--gold);
  margin-bottom:10px;
  padding-left:10px;
}
.hmsdoc-sidebar ol{ list-style:none; margin:0; padding:0; }
.hmsdoc-sidebar li{ margin-bottom:1px; }
.hmsdoc-sidebar a{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13.6px;
  font-weight:500;
  color:var(--ink-soft);
  padding:9px 10px;
  border-radius:9px;
  border-left:2px solid transparent;
  transition:all .18s ease;
}
.hmsdoc-sidebar a:hover{ background:var(--paper-2); color:var(--ink); }
.hmsdoc-sidebar a.hmsdoc-active{
  background:var(--sage);
  color:var(--forest);
  font-weight:600;
  border-left-color:var(--emerald);
}
.hmsdoc-num{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  color:var(--ink-soft);
  opacity:.75;
}
.hmsdoc-sidebar a.hmsdoc-active .hmsdoc-num{ color:var(--emerald); opacity:1; }

.hmsdoc-main{ min-width:0; padding-top:6px; }
.hmsdoc-section{
  padding-top:14px;
  margin-bottom:54px;
  scroll-margin-top:96px;
}
.hmsdoc-section:not(:last-of-type){
  border-bottom:1px solid var(--line);
  padding-bottom:40px;
}

.hmsdoc-sec-head{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.hmsdoc-sec-ico{
  width:44px; height:44px;
  border-radius:13px;
  background:var(--sage);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.hmsdoc-sec-kicker{
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--emerald);
  margin-bottom:4px;
}
.hmsdoc-main h2{ font-size:clamp(22px,2.4vw,27px); margin:0; }

/* ================================================
   Getting Started
   ================================================ */
.hmsdoc-steps{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:18px;
}
.hmsdoc-step{
  display:flex;
  gap:16px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 18px;
  transition:box-shadow .2s, transform .2s;
}
.hmsdoc-step:hover{ box-shadow:0 14px 30px -18px rgba(10,42,34,.3); transform:translateY(-2px); }
.hmsdoc-stepnum{
  width:30px; height:30px;
  border-radius:50%;
  background:var(--forest);
  color:#fff;
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.hmsdoc-step h3{ font-size:14.5px; font-weight:650; margin:0 0 4px; font-family:'Inter',sans-serif; letter-spacing:0; color:var(--ink); }
.hmsdoc-step p{ margin:0; color:var(--ink-soft); font-size:14px; }

/* ================================================
   Core Modules
   ================================================ */
.hmsdoc-modules{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
}
.hmsdoc-module{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}
.hmsdoc-module summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 18px;
}
.hmsdoc-module summary::-webkit-details-marker{ display:none; }
.hmsdoc-mod-left{ display:flex; align-items:center; gap:12px; }
.hmsdoc-code{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:600;
  color:var(--gold);
  border:1px solid var(--line);
  background:var(--gold-tint);
  border-radius:6px;
  padding:2px 7px;
  min-width:22px;
  text-align:center;
}
.hmsdoc-mod-name{ font-size:14.5px; font-weight:600; }
.hmsdoc-chev{
  font-size:16px;
  color:var(--ink-soft);
  width:22px; height:22px;
  flex:none;
  display:flex; align-items:center; justify-content:center;
  transition:transform .18s ease;
}
.hmsdoc-module[open] .hmsdoc-chev,
.hmsdoc-faqitem[open] .hmsdoc-chev{ transform:rotate(45deg); color:var(--emerald); }
.hmsdoc-mod-body{
  padding:0 18px 20px 50px;
  color:var(--ink-soft);
  font-size:14px;
  border-top:1px solid var(--line);
  padding-top:14px;
}
.hmsdoc-mod-body p{ margin:0 0 10px; }
.hmsdoc-highlight{
  margin-top:10px;
  background:var(--sage);
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 15px;
  color:var(--ink);
  font-size:13px;
}
.hmsdoc-highlight b{
  display:block;
  font-size:10.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:4px;
  color:var(--emerald);
}

/* ================================================
   Everyday Workflows
   ================================================ */
.hmsdoc-keycards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:18px;
}
.hmsdoc-keycard{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:17px 19px;
  transition:transform .2s, box-shadow .2s;
}
.hmsdoc-keycard:hover{ transform:translateY(-3px); box-shadow:0 16px 34px -20px rgba(10,42,34,.32); }
.hmsdoc-kc-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
}
.hmsdoc-kc-title{ font-size:14.5px; font-weight:650; }
.hmsdoc-kc-tag{
  background:var(--sage);
  color:var(--emerald);
  font-family:'IBM Plex Mono',monospace;
  font-size:10.5px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding:4px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.hmsdoc-kc-body{ color:var(--ink-soft); font-size:13.5px; }
.hmsdoc-kc-body ol{ margin:0; padding-left:16px; }
.hmsdoc-kc-body li{ margin-bottom:5px; }
.hmsdoc-kc-body li::marker{ color:var(--emerald); }

/* ================================================
   Image + video media inside any entry
   ================================================ */
.hmsdoc-media-block{ margin-top:12px; }
.hmsdoc-media-clear{ clear:both; }

.hmsdoc-entry-image{
  display:block;
  width:100%;
  border-radius:10px;
  border:1px solid var(--line);
}
.hmsdoc-video-embed{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#000;
}
.hmsdoc-video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.hmsdoc-video-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 15px;
  border-radius:999px;
  background:var(--sage);
  color:var(--emerald);
  font-weight:600;
  font-size:13px;
  text-decoration:none;
  transition:background .15s ease;
}
.hmsdoc-video-link:hover{ background:var(--gold-tint); color:var(--gold); }

.hmsdoc-media-size-small{ max-width:200px; }
.hmsdoc-media-size-medium{ max-width:360px; }
.hmsdoc-media-size-large{ max-width:560px; }
.hmsdoc-media-block .hmsdoc-entry-image,
.hmsdoc-media-block .hmsdoc-video-embed{ max-width:100%; }

.hmsdoc-media-align-top{ float:none; clear:both; }
.hmsdoc-media-align-left{ float:left; margin:2px 16px 10px 0; }
.hmsdoc-media-align-right{ float:right; margin:2px 0 10px 16px; }

/* ================================================
   FAQ
   ================================================ */
.hmsdoc-faq{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
}
.hmsdoc-faqitem{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 18px;
}
.hmsdoc-faqitem summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  font-weight:600;
  font-size:14.5px;
}
.hmsdoc-faqitem summary::-webkit-details-marker{ display:none; }
.hmsdoc-faqitem p{
  color:var(--ink-soft);
  font-size:14px;
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px solid var(--line);
}

/* ---- Bottom support banner ---- */
.hmsdoc-support-section{ margin-bottom:0 !important; border-bottom:none !important; padding-bottom:0 !important; }
.hmsdoc-support{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  padding:30px 34px;
  background:radial-gradient(120% 160% at 50% -20%, var(--forest-2) 0%, var(--forest) 60%, var(--forest-deep) 100%);
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
.hmsdoc-support-title{
  font-family:'Fraunces',serif;
  font-weight:500;
  font-size:19px;
  margin:0 0 4px;
}
.hmsdoc-support p{ margin:0; color:rgba(255,255,255,.65); font-size:13.5px; }
.hmsdoc-support-phone{
  background:var(--gold);
  color:#fff;
  font-weight:650;
  font-size:13.5px;
  text-decoration:none;
  padding:11px 20px;
  border-radius:999px;
  transition:background .15s ease, transform .15s ease;
}
.hmsdoc-support-phone:hover{ background:#c79a48; transform:translateY(-1px); }

/* ---- Sticky right column: On this page + help card ---- */
.hmsdoc-toc{ position:sticky; top:114px; }
.hmsdoc-toc-inner h5{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:var(--gold);
  font-weight:700;
  margin-bottom:12px;
}
.hmsdoc-toc-inner ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:9px;
  margin:0 0 24px;
  padding:0 0 0 14px;
  border-left:1px solid var(--line);
}
.hmsdoc-toc-link{
  display:block;
  font-size:13px;
  color:var(--ink-soft);
  padding-left:0;
  margin-left:-15px;
  padding-left:14px;
  border-left:2px solid transparent;
  transition:color .18s ease, border-color .18s ease;
}
.hmsdoc-toc-link:hover,
.hmsdoc-toc-link.hmsdoc-active{ color:var(--forest); border-left-color:var(--emerald); font-weight:600; }

.hmsdoc-toc-help{
  background:radial-gradient(120% 140% at 50% -10%, var(--forest-2) 0%, var(--forest) 60%, var(--forest-deep) 100%);
  border-radius:16px;
  padding:18px;
  color:#fff;
}
.hmsdoc-toc-help h4{
  font-family:'Fraunces',serif;
  font-weight:500;
  font-size:14.5px;
  margin:0 0 5px;
  color:#fff;
}
.hmsdoc-toc-help p{
  font-family:'Inter',sans-serif;
  font-size:12px;
  color:rgba(255,255,255,.65);
  margin:0 0 12px;
  line-height:1.5;
}
.hmsdoc-toc-help a{
  display:inline-flex;
  font-size:12.5px;
  font-weight:600;
  color:#8FD9AE;
  align-items:center;
  gap:5px;
}
.hmsdoc-toc-help a:hover{ color:#fff; }

/* ================================================
   Tablet
   ================================================ */
@media (max-width:1180px){
  .hmsdoc-layout{ grid-template-columns:210px 1fr; }
  .hmsdoc-toc{ display:none; }
}
@media (max-width:1024px) and (min-width:761px){
  .hmsdoc-layout{ grid-template-columns:190px 1fr; gap:32px; padding:8px 24px 56px; }
  .hmsdoc-hero{ padding:52px 24px 36px; }
  .hmsdoc-hero h1{ font-size:28px; }
  .hmsdoc-keycards{ grid-template-columns:1fr; }
}

/* ================================================
   Mobile — sidebar becomes a sticky horizontal tab bar
   ================================================ */
@media (max-width:760px){
  .hmsdoc-hero{ padding:40px 20px 28px; }
  .hmsdoc-hero h1{ font-size:24px; }
  .hmsdoc-hero p{ font-size:14px; }

  .hmsdoc-layout{ grid-template-columns:1fr; padding:0 16px 44px; gap:0; }

  .hmsdoc-sidebar{
    position:sticky;
    top:0;
    z-index:20;
    margin:0 -16px 16px;
    padding:12px 14px;
    border-radius:0;
    border:none;
    border-bottom:1px solid var(--line);
    box-shadow:none;
  }
  .hmsdoc-sidebar-label{ display:none; }
  .hmsdoc-sidebar ol{
    display:flex;
    gap:6px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .hmsdoc-sidebar ol::-webkit-scrollbar{ display:none; }
  .hmsdoc-sidebar li{ margin:0; flex:none; }
  .hmsdoc-sidebar a{
    padding:8px 14px;
    border-radius:999px;
    border:1px solid var(--line);
    background:var(--white);
    white-space:nowrap;
  }
  .hmsdoc-sidebar a.hmsdoc-active{ background:var(--forest); color:#fff; border-color:var(--forest); }
  .hmsdoc-sidebar a.hmsdoc-active .hmsdoc-num{ color:#8FD9AE; }

  .hmsdoc-main{ padding-top:10px; }
  .hmsdoc-keycards{ grid-template-columns:1fr; }
  .hmsdoc-support{ padding:22px; flex-direction:column; align-items:flex-start; }
}

/* ================================================
   Small phones
   ================================================ */
@media (max-width:480px){
  .hmsdoc-hero h1{ font-size:21px; }
  .hmsdoc-media-align-left,
  .hmsdoc-media-align-right{ float:none; margin:12px 0 0 !important; }
  .hmsdoc-media-size-medium,
  .hmsdoc-media-size-large{ max-width:100%; }
}

@media (prefers-reduced-motion:reduce){
  .hmsdoc-wrap *{ transition:none !important; }
}
