/* RyfeTech Legal Center, in the RyfeTech brand (Chief: brand/BRAND.md).
   Charcoal and white lead. Signature blue (#008DC1) is decoration only, never small text; links use #006B94.
   Site colors (Chief, approved 16/10/2026): charcoal bar with the white logo; the Legal Center line color is white
   (3px line along the top of the bar, active-link underline) and its tint is #F8F7F7. Spacing is compact, like ryfetech.com.
   Manrope is bundled locally, so this site loads nothing from other sites. */
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-600.woff2") format("woff2"); }

:root {
  --charcoal: #231f20;
  --white: #ffffff;
  --blue: #008dc1;
  --link: #006b94;
  --muted: #59565a;
  --on-dark: #d6d4d5;
  --rule: #d6d4d5;
  --surface: #f8f7f7;
  --bar-line: #ffffff;
  --tint: #f8f7f7;
  --yellow: #f6d751;
  --yellow-tint: #fff8d9;
  --r-control: 6px;
  --r-card: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--white); color: var(--charcoal); font: 400 1rem/1.65 var(--font); }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .wrap { padding-inline: 1.5rem; } }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--white); color: var(--charcoal); font-weight: 600; padding: 0.6rem 1rem; border-radius: var(--r-control); z-index: 10; }
.skip:focus { top: 0.75rem; }

/* Header: the charcoal bar every RyfeTech site shares, with the white logo, 64px tall */
.site-header { background: var(--charcoal); border-top: 3px solid var(--bar-line); border-bottom: 1px solid rgb(255 255 255 / 0.1); position: sticky; top: 0; z-index: 5; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; min-height: 4rem; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.9rem; color: var(--on-dark); text-decoration: none; font-weight: 500; }
.brand img { display: block; height: 25px; width: auto; }
.brand-label { padding-left: 0.9rem; border-left: 1px solid rgb(255 255 255 / 0.25); font-size: 0.875rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.875rem; font-weight: 500; }
.main-nav a { color: var(--on-dark); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--white); }
.main-nav a[aria-current="page"] { color: var(--white); border-color: var(--bar-line); }

/* Layout */
main { padding-block: 2.5rem 4rem; }
main.has-toc { display: grid; grid-template-columns: 14.5rem minmax(0, 46rem); gap: 3.5rem; justify-content: center; align-items: start; }
.toc { position: sticky; top: 5.5rem; font-size: 0.92rem; border-left: 1px solid var(--rule); padding-left: 1.1rem; max-height: calc(100vh - 7rem); overflow: auto; }
.toc p { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.toc a { display: block; padding: 0.2rem 0; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--link); text-decoration: underline; }

/* The short blue rule: one per page, 48 x 4, independent of the logo */
.rule { display: block; width: 48px; height: 4px; margin-bottom: 1.5rem; background: var(--blue); }

/* Document head */
.eyebrow { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.doc-head h1, .hero h1 { margin: 0 0 0.9rem; font-size: clamp(1.65rem, 3.5vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.lede { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.55; color: var(--muted); max-width: 40rem; }
.meta { margin: 0 0 1.5rem; font-size: 0.92rem; color: var(--muted); }
.banner { margin: 0 0 1.5rem; padding: 0.85rem 1.1rem; background: var(--yellow-tint); border: 1px solid var(--yellow); border-left-width: 4px; border-radius: var(--r-control); color: var(--charcoal); font-size: 0.95rem; line-height: 1.5; }
.banner span { display: block; color: var(--muted); }

/* Prose */
.prose { max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.75rem 0 0.9rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.prose h3 { margin: 1.9rem 0 0.5rem; font-size: 1.0625rem; line-height: 1.4; font-weight: 600; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.prose li { margin: 0.35rem 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }
.prose code { padding: 0.1em 0.35em; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; font-size: 0.9em; }

mark.confirm { background: var(--yellow-tint); color: var(--charcoal); padding: 0.05em 0.3em; border-bottom: 2px solid var(--yellow); border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Tables */
.table-wrap { margin: 0 0 1.5rem; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-card); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
th { text-align: left; background: var(--surface); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
th, td { padding: 0.75rem 1rem; vertical-align: top; }
td { border-top: 1px solid var(--rule); }

/* Index */
.hero { padding: 1.5rem 0 1rem; }
.cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: 1.5rem; }
.card { padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--white); transition: border-color 0.15s; }
.card:hover, .card:focus-within { border-color: var(--charcoal); }
.card a { text-decoration: none; color: var(--charcoal); }
.card h2 { margin: 0 0 0.45rem; font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.card a:hover h2 { text-decoration: underline; text-underline-offset: 0.2em; }
.card p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.card .card-meta { margin: 0; font-size: 0.85rem; }
.chip { display: inline-block; margin-right: 0.4rem; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.chip-live { background: var(--tint); color: var(--charcoal); border: 1px solid var(--rule); }
.chip-draft { background: var(--yellow-tint); color: var(--charcoal); border: 1px solid var(--yellow); }

/* Footer: charcoal with the white logo */
.site-footer { background: var(--charcoal); color: var(--on-dark); padding-block: 2.25rem; font-size: 0.93rem; }
.site-footer .foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 3rem; }
.site-footer img { display: block; height: 1.6rem; width: auto; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--white); }
.site-footer .fine { font-size: 0.85rem; }

/* Narrow screens */
@media (max-width: 56rem) {
  main.has-toc { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: var(--r-card); padding: 1rem 1.1rem; background: var(--surface); }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); column-gap: 1.25rem; }
  .site-header { position: static; }
}
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  main { padding-block: 1.75rem 3rem; }
  .prose h2 { font-size: 1.125rem; margin-top: 2.25rem; }
  .main-nav { gap: 0.25rem 1rem; }
  .brand-label { display: none; }
}

/* Print: plain, with link addresses shown */
@media print {
  .site-header, .toc, .skip, .site-footer, .rule { display: none; }
  body { font-size: 11pt; color: #000; }
  main.has-toc { display: block; padding: 0; }
  .prose h2 { break-after: avoid; }
  .table-wrap { overflow: visible; border-color: #999; }
  mark.confirm { background: none; border-bottom: 1px solid #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
}
