/* ==========================================================================
   Acceasy Meet — Help Centre stylesheet
   Built on the front-page design system (docs/design/FRONTPAGE_DESIGN_SYSTEM.md):
   royal blue #034aa6, warm gold #bf9765, DM Sans.
   Fonts are SELF-HOSTED on purpose — the app removed the Google Fonts import
   because it was render-blocking and disclosed visitor IPs to a third party.
   Do not reintroduce an external font link here.
   ========================================================================== */

@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-wght-italic.woff2') format('woff2-variations');
}

/* ---------- tokens ---------- */
:root {
  --blue: #034aa6;
  --blue-hover: #011c40;
  --blue-active: #011229;
  --gold: #bf9765;
  --subtle: #e9f0fb;
  --subtle-text: #011c40;

  --white: #ffffff;
  --grey-50: #f6f6f6;
  --grey-100: #eeeeee;
  --grey-200: #e2e8f0;
  --grey-500: #7c7c7c;
  --grey-700: #4a4a4a;
  --ink: #161616;

  --amber-bg: #fdf6ec;
  --amber-line: #e2b878;
  --amber-ink: #7a4f10;
  --red-bg: #fdf0f0;
  --red-line: #e0a3a3;
  --red-ink: #8f2323;
  --green-bg: #eef7f0;
  --green-line: #9fc9ac;
  --green-ink: #1f6034;

  --radius: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 6px 20px -6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.18);

  --sans: 'DM Sans Variable', 'Hind', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 68px;
  --content-max: 46rem;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--grey-50);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  /* Spanish compounds ("superposiciones", "responsabilidades") and long URLs
     must never push the page into a horizontal scroll on narrow screens. */
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--blue-hover);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip:focus {
  left: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-200);
}
.site-header .inner {
  max-width: 84rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 30px;
  width: auto;
}
.brand .tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--grey-200);
}
.header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.header-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--grey-700);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-nav a:hover {
  background: var(--subtle);
  color: var(--blue);
}
.header-nav a[aria-current='page'] {
  background: var(--subtle);
  color: var(--blue);
  font-weight: 700;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 6px 11px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grey-500);
  text-decoration: none;
  background: #fff;
  border-radius: 0;
}
.lang-switch a[aria-current='true'] {
  background: var(--blue);
  color: #fff;
}
.lang-switch a:not([aria-current='true']):hover {
  background: var(--subtle);
  color: var(--blue);
}

/* ---------- layout ---------- */
.layout {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.layout.no-side {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding: 28px 0 40px;
  font-size: 0.9375rem;
}
.sidebar h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  margin: 0 0 12px;
  font-weight: 700;
}
.sidebar ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.sidebar li {
  margin: 0;
}
.sidebar a {
  display: block;
  padding: 7px 12px 7px 14px;
  color: var(--grey-700);
  text-decoration: none;
  border-left: 2px solid var(--grey-200);
  line-height: 1.4;
}
.sidebar a:hover {
  color: var(--blue);
  border-left-color: var(--blue);
  background: var(--subtle);
}
.sidebar a.active {
  color: var(--blue);
  font-weight: 700;
  border-left-color: var(--blue);
  background: var(--subtle);
}

/* ---------- content ---------- */
main {
  padding: 40px 0 96px;
  min-width: 0;
}
.prose {
  max-width: var(--content-max);
}
.prose > * {
  max-width: var(--content-max);
}

h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h2 {
  font-size: 1.625rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 3.25rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--grey-200);
}
h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 2.25rem 0 0.625rem;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}
p {
  margin: 0 0 1.125rem;
}
.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--grey-700);
  margin-bottom: 2rem;
  text-wrap: pretty;
}
.audience {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--subtle);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
ul,
ol {
  margin: 0 0 1.125rem;
  padding-left: 1.375rem;
}
li {
  margin-bottom: 0.5rem;
}
li > ul,
li > ol {
  margin-top: 0.5rem;
}
strong {
  font-weight: 700;
}
code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--grey-100);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  word-break: break-word;
}
pre {
  background: var(--blue-active);
  color: #e6edf7;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
hr {
  border: 0;
  border-top: 1px solid var(--grey-200);
  margin: 2.5rem 0;
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
th,
td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: top;
}
th {
  background: var(--grey-50);
  font-weight: 700;
  font-size: 0.875rem;
}
/* First column of a two-column table is a label — keep it tight but wrappable. */
table td:first-child {
  min-width: 7rem;
}
tr:last-child td {
  border-bottom: 0;
}
td code {
  white-space: nowrap;
}

/* ---------- figures ---------- */
figure {
  margin: 2rem 0;
  max-width: none;
}
figure img {
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: #fff;
}
figure.plain img {
  box-shadow: none;
}
figure.inset img {
  max-width: min(26rem, 100%);
}
figure.wide {
  max-width: 58rem;
}
figcaption {
  font-size: 0.875rem;
  color: var(--grey-500);
  margin-top: 12px;
  line-height: 1.5;
  max-width: var(--content-max);
}
figcaption b {
  color: var(--grey-700);
}
.figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin: 2rem 0;
  max-width: 58rem;
}
.figure-row figure {
  margin: 0;
}

/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--blue);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout .callout-title {
  font-weight: 700;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
.callout.note {
  border-left-color: var(--blue);
  background: var(--subtle);
}
.callout.note .callout-title {
  color: var(--subtle-text);
}
.callout.warn {
  border-left-color: var(--amber-line);
  background: var(--amber-bg);
}
.callout.warn .callout-title {
  color: var(--amber-ink);
}
.callout.critical {
  border-left-color: var(--red-line);
  background: var(--red-bg);
}
.callout.critical .callout-title {
  color: var(--red-ink);
}
.callout.tip {
  border-left-color: var(--green-line);
  background: var(--green-bg);
}
.callout.tip .callout-title {
  color: var(--green-ink);
}
.callout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- UI chip (names a real button, with its icon) ---------- */
.ui {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  padding: 1px 7px 1px 5px;
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
  color: var(--ink);
}
.ui svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--blue);
}
.ui.solid {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.ui.solid svg {
  color: #fff;
}
.ui.danger {
  background: #d93025;
  border-color: #d93025;
  color: #fff;
}
.ui.danger svg {
  color: #fff;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding-left: 52px;
  margin-bottom: 1.75rem;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps > li > h3,
.steps > li > h4 {
  margin-top: 0;
}
.steps > li > :last-child {
  margin-bottom: 0;
}

/* ---------- cards (hub page) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin: 2rem 0;
  max-width: 62rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
  color: inherit;
}
.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--subtle);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .card-icon svg {
  width: 23px;
  height: 23px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  color: var(--ink);
}
.card p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: var(--grey-700);
  line-height: 1.55;
}
.card .card-go {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue);
}
.card.featured {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 60%);
}
.card.featured .card-icon {
  background: rgba(191, 151, 101, 0.16);
  color: #8a6738;
}

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 8px;
}
.hero h1 {
  font-size: 3rem;
  max-width: 20ch;
}
.hero .lead {
  max-width: 34rem;
  font-size: 1.25rem;
}

/* ---------- key/value spec list ---------- */
.spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
}
.spec dt {
  font-weight: 700;
  color: var(--grey-700);
}
.spec dd {
  margin: 0;
}

/* ---------- section nav footer ---------- */
.page-foot {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--grey-200);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease;
}
.btn:hover {
  background: var(--blue-hover);
  color: #fff;
}
.btn.secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--blue);
  box-shadow: none;
}
.btn.secondary:hover {
  background: #f1f5f9;
  color: var(--blue);
}

.site-footer {
  border-top: 1px solid var(--grey-200);
  background: #fff;
  padding: 32px 24px;
  font-size: 0.875rem;
  color: var(--grey-500);
}
.site-footer .inner {
  max-width: 84rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer img {
  height: 26px;
  opacity: 0.75;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 20px 0 0;
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: 8px;
  }
  .sidebar ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .sidebar a {
    border-left: 0;
    border: 1px solid var(--grey-200);
    border-radius: 999px;
    padding: 5px 13px;
    background: #fff;
  }
  .sidebar a.active,
  .sidebar a:hover {
    border-color: var(--blue);
  }
  .header-nav {
    display: none;
  }
  h1,
  .hero h1 {
    font-size: 2.125rem;
  }
  h2 {
    font-size: 1.4375rem;
  }
  body {
    font-size: 1rem;
  }
}
@media (max-width: 560px) {
  .site-header .inner,
  .layout,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand .tag {
    display: none;
  }
}

/* ---------- print ---------- */
@media print {
  .site-header,
  .sidebar,
  .page-foot,
  .lang-switch,
  .skip {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .layout {
    display: block;
    padding: 0;
  }
  figure img {
    box-shadow: none;
  }
  h2 {
    break-after: avoid;
  }
  figure,
  .callout,
  table {
    break-inside: avoid;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }
}
