/* The legal pages, in the site's look (style.css): a near-black asphalt ground, road-sign yellow for what
   acts, off-white for what is lit; heavy italic titles, Manrope for reading. */
:root {
  color-scheme: dark;
  --ink: #faf7ee;
  --muted: rgba(250, 247, 238, 0.74);
  --accent: #f6f1e4;
  --sunset: linear-gradient(#ffd60a, #ffd60a);
  --line: rgba(250, 247, 238, 0.18);
  --bg: #161614;
  --display: "Kanit", "Arial Narrow", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--sans); overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #ffd60a; color: #161614; }

/* the bar: brand left, the way in right */
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
       padding: 14px var(--gutter); background: rgba(22, 22, 20, .92); border-bottom: 2px solid; border-image: var(--sunset) 1;
       backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
         font: italic 900 24px/1 var(--display); text-transform: uppercase; }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #ff5a2e; position: relative; flex: none; }
.mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #ffd60a; }
.btn { display: inline-block; color: #161614; text-decoration: none; font: italic 800 15px/1 var(--display); background: var(--sunset);
       padding: 12px 22px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn:hover { filter: brightness(1.1); }

/* the page */
main { max-width: 760px; margin: 0 auto; padding: clamp(48px, 9vh, 96px) var(--gutter) 72px; }
.kicker { display: inline-block; font: 700 13px/1 var(--sans); color: #161614; background: #ffffff; padding: 7px 14px 7px 12px;
          clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); margin: 0 0 16px; }
h1 { font: italic 900 clamp(52px, 9vw, 104px)/.9 var(--display); text-transform: uppercase; margin: 0 0 22px; color: #f6f1e4;
     text-shadow: .035em .035em 0 #161614, .07em .07em 0 #ffd60a; }
h2 { font: italic 800 clamp(24px, 3.2vw, 32px)/1 var(--display); text-transform: uppercase; color: #f6f1e4;
     margin: 48px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
p, li { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
.draft { display: inline-block; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; font-size: 13px; margin: 0; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px var(--gutter) 36px;
        border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
.foot a[aria-current] { color: var(--ink); text-decoration: none; }

@media (max-width: 560px) {
  .brand { font-size: 19px; }
  .foot { flex-direction: column; }
}

/* the pages the server writes (app/pages.py): a department, the prices, a page that is not there */
.top-links { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.top-links a:not(.btn) { color: var(--ink); text-decoration: none; font: 600 14px/1 var(--sans); }
.top-links a:not(.btn):hover { color: #ffd60a; }
body.page main { max-width: 860px; }
.crumbs { font-size: 13px; margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--ink); max-width: 34em; margin: 0 0 8px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 8px; }
.cta span { font-size: 14px; }
.btn.big { font-size: 18px; padding: 16px 30px; }
.asks { list-style: none; padding: 0; display: grid; gap: 8px; }
.asks li { margin: 0; padding: 13px 16px; background: #262622; border-left: 3px solid #ffd60a; color: var(--ink); }
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.team li { margin: 0; }
.team a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; background: #262622; border: 1px solid var(--line); text-decoration: none; }
.team a:hover { border-color: #ffd60a; }
.team b { color: var(--ink); font: italic 800 19px/1 var(--display); text-transform: uppercase; }
.team span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
th { color: var(--ink); font-weight: 600; min-width: 11em; }
td.num { text-align: right; white-space: nowrap; color: var(--ink); font-weight: 700; padding-right: 0; }
.fine { font-size: 13px; }
.offer { border-left: 4px solid #ffd60a; padding: 10px 14px; margin: 18px 0; background: rgba(255, 214, 10, .08); }
@media (max-width: 560px) { .top-links a:not(.btn):first-child { display: none; } th { min-width: 8em; } }

/* the free tools (pages.cashflow_tool) */
.cf-form { display: grid; gap: 18px; margin: 30px 0 10px; }
.cf-form fieldset { border: 1px solid var(--line); padding: 16px 18px 6px; margin: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cf-form legend { font: italic 800 18px/1 var(--display); text-transform: uppercase; color: #f6f1e4; padding: 0 8px; }
.cf-field { display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--ink); }
.cf-field small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cf-field input, .cf-field select { font: 600 16px/1.2 var(--sans); color: var(--ink); background: #262622; border: 1px solid var(--line);
  border-radius: 0; padding: 11px 12px; width: 100%; }
.cf-field input:focus-visible, .cf-field select:focus-visible, button.btn:focus-visible { outline: 2px solid #ffd60a; outline-offset: 2px; }
button.btn { border: 0; cursor: pointer; }
.cf-out { margin: 34px 0 10px; scroll-margin-top: 84px; }
.cf-chart { width: 100%; height: auto; margin: 8px 0 18px; font: 12px var(--sans); }
.cf-chart text { fill: var(--muted); }
.cf-chart .grid { stroke: var(--line); stroke-width: 1; }
.cf-chart .zero { stroke: #ff5a2e; stroke-width: 1.5; stroke-dasharray: 5 4; }
.cf-chart .line { fill: none; stroke: #ffd60a; stroke-width: 2.5; }
.cf-chart circle { fill: #ffd60a; stroke: var(--bg); stroke-width: 2; }
.cf-chart circle.neg { fill: #ff5a2e; }
.cf-table th, .cf-table td { padding-right: 10px; }
.cf-table th.num { text-align: right; min-width: 0; }
.cf-table tr.neg td, .cf-table tr.neg th { color: #ff8a66; }
.cf-next { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 6px; }
@media (max-width: 560px) { .cf-table .net { display: none; } .cf-table th, .cf-table td { font-size: 14px; } .cf-table th[scope=row] { min-width: 5.5em; } }
