/* Landscape Marketers — reports.landscapemarketers.co.uk
   Login and report directory. Palette and type from the LM report design system. */

:root {
  --ink: #1A211D;
  --ink-2: #3D4A43;
  --muted: #65756B;
  --paper: #EFF0EB;
  --surface: #E5E7E0;
  --surface-2: #DADCD3;
  --line: #C9CCC2;
  --yew: #2E5C4F;
  --yew-soft: #7FA08F;
  --lichen: #8B9C63;
  --clay: #A34A2C;
  --gold: #B0862F;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E7E9E2;
    --ink-2: #C2C9C0;
    --muted: #8D9A90;
    --paper: #161A17;
    --surface: #1E2320;
    --surface-2: #262C28;
    --line: #39413B;
    --yew: #7FBFA6;
    --yew-soft: #4A7264;
    --lichen: #A9BC7C;
    --clay: #DE8562;
    --gold: #D6AC55;
  }
}

:root[data-theme="dark"] {
  --ink: #E7E9E2;
  --ink-2: #C2C9C0;
  --muted: #8D9A90;
  --paper: #161A17;
  --surface: #1E2320;
  --surface-2: #262C28;
  --line: #39413B;
  --yew: #7FBFA6;
  --yew-soft: #4A7264;
  --lichen: #A9BC7C;
  --clay: #DE8562;
  --gold: #D6AC55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* The LM logo, without its black plate since 23 Oct 2026. In dark mode it
   sits on a light plate, as the client logos do. */
.plate {
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plate { background: #F3F4EF; padding: 8px 12px; }
}
:root[data-theme="dark"] .plate { background: #F3F4EF; padding: 8px 12px; }
.plate img { display: block; height: 46px; width: auto; }
a.plate { text-decoration: none; }
a.plate:focus-visible { outline: 2px solid var(--yew); outline-offset: 3px; }

/* ------------------------------------------------------------------- login */

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px 64px;
}

.card {
  width: 100%;
  max-width: 392px;
}

.card-head {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 30px;
}

.card h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.card .sub {
  color: var(--ink-2);
  font-size: .96rem;
  margin: 0;
}

form.gate-form {
  background: var(--surface);
  border-top: 2px solid var(--yew);
  padding: 26px 24px 28px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .12s ease;
}

.field input:focus {
  outline: 2px solid var(--yew);
  outline-offset: 1px;
  border-color: var(--yew);
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-size: .9rem;
  color: var(--ink-2);
  cursor: pointer;
}
.remember input { accent-color: var(--yew); width: 15px; height: 15px; margin: 0; }

button.go {
  width: 100%;
  padding: 12px 16px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--paper);
  background: var(--yew);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .12s ease;
}
button.go:hover { opacity: .88; }
button.go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.error {
  background: var(--surface-2);
  border-left: 3px solid var(--clay);
  padding: 10px 13px;
  margin: 0 0 20px;
  font-size: .9rem;
  color: var(--ink);
}

.foot {
  margin-top: 22px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  line-height: 1.8;
}

/* --------------------------------------------------------------- directory */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 30px 0 34px;
}

.bar-right {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: right;
  line-height: 1.9;
}
.bar-right a { color: var(--yew); text-decoration: none; border-bottom: 1px solid var(--line); }
.bar-right a:hover { border-bottom-color: var(--yew); }

.masthead { border-top: 1px solid var(--line); padding-top: 34px; }
.masthead h1 { font-size: 2.4rem; margin: 10px 0 12px; }
.masthead .stand {
  color: var(--ink-2);
  font-size: 1.12rem;
  max-width: 66ch;
  margin: 0;
}

.reports { padding-top: 52px; }
.reports h2 { font-size: 1.3rem; margin-bottom: 22px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

a.rep {
  display: block;
  background: var(--surface);
  border-top: 2px solid var(--yew);
  padding: 20px 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}
a.rep:hover { background: var(--surface-2); }
a.rep h3 { font-size: 1.16rem; margin-bottom: 6px; }
a.rep p { margin: 0; font-size: .92rem; color: var(--ink-2); }
a.rep .meta {
  display: block;
  margin-top: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.rep.soon { border-top-color: var(--line); opacity: .72; pointer-events: none; }
.rep.soon .meta { color: var(--muted); }

/* ------------------------------------------------------------------- admin */

.notice {
  background: var(--surface);
  border-left: 3px solid var(--yew);
  padding: 11px 14px;
  margin: 0 0 22px;
  font-size: .93rem;
}

.panel {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 18px 20px 20px;
  margin: 0 0 28px;
}
.panel h3 { font-size: 1.08rem; margin-bottom: 10px; }

.temp {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.32rem;
  letter-spacing: .02em;
  color: var(--yew);
  background: var(--paper);
  border: 1px dashed var(--line);
  padding: 12px 14px;
  margin: 0 0 12px;
  user-select: all;
  word-break: break-all;
}

.hint {
  font-size: .84rem;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.55;
}

.opt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

button.link,
a.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .86rem;
  color: var(--yew);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
button.link:hover, a.link:hover { border-bottom-color: var(--yew); }
button.link.danger { color: var(--clay); }
form.inline { display: inline; }
form.inline + form.inline { margin-left: 14px; }

.tablewrap { overflow-x: auto; }

table.people {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .93rem;
}
table.people th {
  text-align: left;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .64rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  padding: 0 14px 9px 0;
  border-bottom: 1px solid var(--line);
}
table.people td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.people tr:last-child td { border-bottom: 0; }
table.people .right { text-align: right; padding-right: 0; }
table.people .nowrap { white-space: nowrap; }
table.people .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
}
table.people .dash { color: var(--muted); }

.you {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-left: 5px;
}

.pill {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill-admin { border-color: var(--yew); color: var(--yew); }
.pill-warn { border-color: var(--clay); color: var(--clay); margin-top: 5px; }

h2.spaced { margin-top: 56px; }

.addform {
  background: var(--surface);
  border-top: 2px solid var(--yew);
  padding: 24px 22px 26px;
  max-width: 860px;
}
.addform .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 18px;
}
.addform select {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.addform select:focus { outline: 2px solid var(--yew); outline-offset: 1px; }

button.go.narrow { width: auto; padding: 12px 26px; margin-top: 18px; }

/* ----------------------------------------------------------- report access */

.hint.flush { margin: -10px 0 18px; max-width: 72ch; }

.accessform { max-width: 100%; }
table.people.access { min-width: 640px; }
table.people.access th.tick,
table.people.access td.tick { text-align: center; padding-left: 8px; padding-right: 8px; }
table.people.access th.tick { line-height: 1.5; vertical-align: bottom; }
table.people.access td.tick { vertical-align: middle; }
table.people.access input[type="checkbox"] { accent-color: var(--yew); width: 17px; height: 17px; margin: 0; }
table.people.access input[disabled] { opacity: .55; }
table.people.access .pill { margin-top: 6px; }

fieldset.ticks {
  border: 0;
  padding: 0;
  margin: 4px 0 14px;
}
fieldset.ticks legend {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0;
}
fieldset.ticks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 20px 8px 0;
  font-size: .93rem;
  cursor: pointer;
}
fieldset.ticks input { accent-color: var(--yew); width: 16px; height: 16px; margin: 0; }
