/* Kottas Law client portal. Colours, type and spacing follow the design canvas of the website.
   The two typefaces are served by the portal itself: place the files named below in
   assets/fonts/ and remove the comment marks. Until then the fallback faces are used.

@font-face { font-family: "EB Garamond"; font-weight: 400 500; font-display: swap; src: url("fonts/EBGaramond-Variable.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400 500; font-display: swap; src: url("fonts/Jost-Variable.woff2") format("woff2"); }
*/

:root {
  --navy: #0c1320; --deep: #080d17; --ink: #131b2a; --muted: #4a5262; --bone: #d2cebf; --silver: #9aa0a9;
  --pale: #c4c8cf; --ivory: #ecebe6; --paper: #f3f1ea; --line: rgba(236, 235, 230, 0.3); --rule: rgba(19, 27, 42, 0.22);
  --serif: "EB Garamond", Garamond, Georgia, serif; --sans: Jost, "Century Gothic", "Segoe UI", sans-serif;
  --padx: clamp(24px, 6vw, 96px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--ivory); font-family: var(--serif); font-size: 19px; line-height: 1.55; }
a { color: inherit; }
a:hover { opacity: 0.72; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--bone); }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.caps { font-family: var(--sans); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); }

/* header */
.strip { background: var(--deep); padding: 0 var(--padx); border-bottom: 1px solid rgba(236, 235, 230, 0.14); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; min-height: 44px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); }
.strip a { color: var(--ivory); display: inline-block; padding: 12px 0; }
.top { background: var(--navy); padding: 24px var(--padx); border-bottom: 1px solid rgba(236, 235, 230, 0.14); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.top img { height: 48px; width: auto; display: block; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-family: var(--sans); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.tools .who { color: var(--pale); text-transform: none; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.langs { display: flex; gap: 14px; }
.langs button { font: inherit; letter-spacing: inherit; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid transparent; color: var(--silver); padding: 12px 0; min-width: 28px; min-height: 44px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--ivory); border-bottom-color: var(--bone); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 0 30px; border: 0; border-radius: 2px; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; background: var(--ink); color: var(--ivory); }
.btn.light { background: var(--bone); color: var(--navy); }
.btn.line { background: transparent; color: inherit; border: 1px solid currentColor; min-height: 48px; padding: 0 24px; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.link { font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; background: none; border: 0; padding: 0; min-height: 44px; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* sections */
.dark { background: radial-gradient(900px 560px at 74% 12%, #1c2739 0%, var(--navy) 72%); padding: 88px var(--padx) 104px; }
.dark.tight { padding: 64px var(--padx) 56px; }
.light { background: var(--paper); color: var(--ink); padding: 80px var(--padx) 96px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack.wide { gap: 56px; }
.stack.far { gap: 80px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px 88px; align-items: start; }
h1 { font-weight: 400; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; text-wrap: balance; }
h2 { font-weight: 500; font-size: 32px; line-height: 1.15; }
h2.minor { font-size: 26px; line-height: 1.2; }
.lead { color: var(--pale); max-width: 34em; }
.note { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--muted); }
.dark .note { color: var(--silver); }
.block { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 24px; }
.block p { font-size: 18px; line-height: 1.5; color: var(--pale); }
.light .block { border-top-color: var(--ink); gap: 10px; padding-top: 20px; }
.light .block p { color: var(--muted); font-size: 19px; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 64px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts .value { font-size: 20px; color: var(--pale); overflow-wrap: anywhere; }

/* forms */
.card { background: var(--paper); color: var(--ink); border-radius: 2px; padding: clamp(24px, 4vw, 44px); font-family: var(--sans); }
.card h2, .light h2 { font-family: var(--serif); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
label, .label { font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  min-height: 52px; padding: 0 16px; background: #fff; border: 1px solid #6b7280; border-radius: 2px; color: var(--ink); font: inherit; font-family: var(--sans); font-size: 17px; width: 100%; }
textarea { padding: 12px 16px; line-height: 1.5; resize: vertical; }
input.code { letter-spacing: 0.3em; max-width: 14em; }
.check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.check label { letter-spacing: 0; text-transform: none; font-size: 15px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.status { font-family: var(--sans); font-size: 16px; line-height: 1.5; border-left: 2px solid currentColor; padding-left: 14px; }
.status.bad { color: #8f2a14; }
.dark .status.bad { color: #f0b9a8; }
.status:empty { display: none; }

/* sending area and lists */
.drop { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; background: #fff; border: 1px dashed #6b7280; border-radius: 2px; padding: 40px 24px; }
.drop.over { border-style: solid; border-color: var(--ink); background: #faf9f5; }
.drop p.big { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.list { border-bottom: 1px solid var(--rule); }
.list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 32px; border-top: 1px solid var(--rule); padding: 10px 0; }
.list .name { flex: 999 1 340px; min-width: 0; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.list .when { flex: 1 1 250px; }
.list .extra { flex: 0 0 170px; }
.list .when, .list .extra { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); }
.list .empty { font-family: var(--sans); font-size: 15px; color: var(--muted); padding: 14px 0; }
.queue li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 15px; color: var(--ink); }
.queue .state { color: var(--muted); }
.queue progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--ink); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; letter-spacing: 0; overflow-wrap: anywhere; }

dialog { border: 0; border-radius: 2px; padding: 0; max-width: min(640px, calc(100vw - 32px)); width: 100%; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(8, 13, 23, 0.72); }
dialog .inner { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
dl { margin: 0; display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 10px 24px; font-family: var(--sans); font-size: 15px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }

/* administration */
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
th { text-align: left; font-weight: 400; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
.tag { display: inline-block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 2px; padding: 2px 8px; }
.tag.active { color: #1d5a3a; }
.tag.suspended { color: #8f2a14; }
.tag.invited { color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.once { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 0.12em; color: var(--ink); }

footer { background: var(--deep); padding: 40px var(--padx); border-top: 1px solid rgba(236, 235, 230, 0.14); font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--silver); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }

@media print {
  .strip, .top, footer, .no-print { display: none !important; }
  body, .light, dialog { background: #fff; color: #000; }
}
.noscript { margin: 24px; }
