/* ------------------------------------------------------------------
   The office pages.

   Same navy and gold as the front of the website, so the client sees one
   product rather than a website and a separate control panel. Nothing
   here announces what the site is built with.
   ------------------------------------------------------------------ */

:root {
  --navy: #12233f;
  --navy-deep: #0b1729;
  --navy-soft: #1d3557;
  --gold: #c8a24a;
  --gold-deep: #a5822f;
  --gold-wash: #f7f1e2;

  --ink: #16202e;
  --mid: #57616f;
  --soft: #8b95a3;
  --line: #d8dde4;
  --line-2: #e9edf1;
  --paper: #ffffff;
  --shell: #eef1f5;

  --blue: #2f5f8c;  --blue-wash: #e8eef5;
  --amber: #8a6614; --amber-wash: #fdf3e0;
  --green: #1d7a4d; --green-wash: #e6f3ec;
  --red: #a83a2c;   --red-wash: #fbeae8;
  --grey: #6b7076;  --grey-wash: #eef0f2;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, system-ui, sans-serif;
  --wrap: 1440px;
  --bar: 128px;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--shell); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body.has-bar { padding-bottom: 0; }

a { color: var(--navy-soft); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 700px) { .wrap { padding: 0 14px; } }

/* ---------------------------------------------------------------- header */
.top { background: var(--navy); color: #fff; }
.top .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-top: 13px; padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: #fff; }
.brand .glyph {
  width: 42px; height: 42px; flex: none; border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: 21px;
}
.brand b { font-family: var(--serif); font-size: 19px; font-weight: normal; display: block; line-height: 1.2; }
/* Named on purpose. A bare .brand span rule also caught the logo plate,
   and the logo disappeared on a phone. */
.brand .sub {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: #9fb0c6;
}
.top .who { margin-left: auto; text-align: right; font-size: 12.5px; color: #a9b8ca; }
.top .who b { display: block; color: #fff; font-size: 14px; font-weight: bold; }
.top .who form { display: inline; }
.top .who button {
  background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px;
  color: var(--gold); text-decoration: underline; cursor: pointer;
}
@media (max-width: 620px) {
  .brand .glyph { width: 34px; height: 34px; font-size: 17px; }
  .brand b { font-size: 15.5px; }
  .brand .sub { display: none; }
  .top .who { font-size: 11px; }
  .top .who b { font-size: 12.5px; }
}

/* ---------------------------------------------------------------- menu */
.menu { background: var(--navy-deep); border-bottom: 3px solid var(--gold); }
.menu .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.menu .wrap::-webkit-scrollbar { display: none; }
.menu a {
  color: #c3cddc; text-decoration: none; font-size: 13.5px; white-space: nowrap;
  padding: 13px 18px; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.menu a.on { color: var(--gold); border-bottom-color: var(--gold); font-weight: bold; }
.menu .away { margin-left: auto; color: #8b9aae; }
@media (max-width: 900px) { .menu .away { margin-left: 0; } }

/* ---------------------------------------------------------------- page */
.page-body { padding: 26px 0 60px; }
.crumbs { font-size: 12.5px; color: var(--mid); margin: 0 0 14px; }
.crumbs a { color: var(--mid); }

.page-head {
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-head h1 {
  font-family: var(--serif); font-weight: normal; font-size: 28px; margin: 0 0 5px;
  letter-spacing: -0.01em;
}
.page-head p { margin: 0; color: var(--mid); font-size: 14px; max-width: 92ch; }
.page-head .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .page-head h1 { font-size: 23px; }
  .page-head .acts { margin-left: 0; width: 100%; }
  .page-head .acts .btn { flex: 1; text-align: center; }
}

/* ---------------------------------------------------------------- panels */
.panel { background: var(--paper); border: 1px solid var(--line); margin-bottom: 18px; }
.panel > h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.panel > h2::before {
  content: ""; width: 3px; height: 15px; background: var(--gold); flex: none;
  align-self: center;
}
.panel > h2 .small {
  font-weight: normal; text-transform: none; letter-spacing: 0; color: var(--mid); font-size: 12.5px;
}
.panel > h2 .right { margin-left: auto; font-weight: normal; text-transform: none; letter-spacing: 0; }
.panel .in { padding: 18px; }
.panel .in.tight { padding: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1080px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- tiles */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 1200px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.tile {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--navy);
  padding: 15px 16px; text-decoration: none; color: inherit; display: block;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover { border-color: var(--gold); box-shadow: 0 10px 22px -18px rgba(18, 35, 63, 0.7); }
.tile .n { font-family: var(--serif); font-size: 32px; line-height: 1.05; color: var(--navy); }
.tile .l { font-size: 13px; font-weight: bold; margin-top: 4px; }
.tile .m { font-size: 11.5px; color: var(--soft); margin-top: 5px; line-height: 1.35; }
.tile.blue  { border-top-color: var(--blue); }  .tile.blue .n  { color: var(--blue); }
.tile.amber { border-top-color: var(--amber); } .tile.amber .n { color: var(--amber); }
.tile.green { border-top-color: var(--green); } .tile.green .n { color: var(--green); }
.tile.red   { border-top-color: var(--red); }   .tile.red .n   { color: var(--red); }
.tile.grey  { border-top-color: var(--grey); }  .tile.grey .n  { color: var(--grey); }

/* ---------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th, table.list td {
  border-bottom: 1px solid var(--line-2); padding: 11px 14px; text-align: left; vertical-align: top;
}
table.list th {
  background: #f7f9fb; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--mid); white-space: nowrap; font-weight: bold;
}
table.list tr:last-child td { border-bottom: 0; }
table.list tr:hover td { background: #fbfcfe; }
table.list td.num { text-align: right; white-space: nowrap; }
table.list .who b { display: block; font-size: 14px; }
table.list .muted { color: var(--soft); font-size: 12.5px; display: block; }

.pill {
  display: inline-block; font-size: 11px; font-weight: bold; padding: 4px 10px;
  border: 1px solid; white-space: nowrap; letter-spacing: 0.03em;
}
.pill.blue  { color: var(--blue);  border-color: var(--blue);  background: var(--blue-wash); }
.pill.amber { color: var(--amber); border-color: var(--amber); background: var(--amber-wash); }
.pill.green { color: var(--green); border-color: var(--green); background: var(--green-wash); }
.pill.red   { color: var(--red);   border-color: var(--red);   background: var(--red-wash); }
.pill.grey  { color: var(--grey);  border-color: var(--soft);  background: var(--grey-wash); }
.pill.dup   { color: var(--amber); border-color: var(--amber); background: var(--amber-wash); }

/* ---------------------------------------------------------------- forms */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 1100px) { .filters { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 620px) { .filters { grid-template-columns: 1fr; } }

.fld label {
  display: block; font-size: 11.5px; font-weight: bold; margin-bottom: 5px;
  color: var(--mid); text-transform: uppercase; letter-spacing: 0.06em;
}
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 14.5px; padding: 10px 11px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 0;
}
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 2px solid var(--gold-deep); outline-offset: -1px; border-color: var(--gold-deep);
}
.fld .hint { font-size: 11.5px; color: var(--soft); margin: 5px 0 0; }
@media (max-width: 700px) { .fld input, .fld select, .fld textarea { font-size: 16px; } }

.btn {
  font: inherit; font-size: 14px; font-weight: bold; cursor: pointer; text-decoration: none;
  display: inline-block; padding: 10px 20px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--navy-deep); border-radius: 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: #dcb85f; border-color: #dcb85f; box-shadow: 0 6px 16px -9px rgba(200, 162, 74, 0.8); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: none; }
.btn.quiet {
  background: var(--paper); color: var(--navy); border-color: var(--line); font-weight: normal;
}
.btn.quiet:hover { background: #f4f7fa; border-color: var(--navy); box-shadow: none; }
.btn.small { font-size: 12.5px; padding: 7px 14px; border-width: 1px; }
.btn.wide { display: block; width: 100%; text-align: center; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- notes */
.note { padding: 13px 16px; font-size: 13.5px; margin-bottom: 16px; border: 1px solid; border-left-width: 4px; }
.note.ok   { border-color: var(--green); background: var(--green-wash); color: #14563a; }
.note.warn { border-color: var(--amber); background: var(--amber-wash); color: #6d5211; }
.note.bad  { border-color: var(--red);   background: var(--red-wash);   color: #82291d; }
.note.info { border-color: var(--line);  background: #f7f9fb;           color: var(--mid); }
.note b { display: block; margin-bottom: 3px; }
.note a { color: inherit; }

.empty { padding: 46px 22px; text-align: center; color: var(--mid); }
.empty b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 8px; }

/* ---------------------------------------------------------------- one entry */
dl.facts { margin: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
dl.facts dt, dl.facts dd {
  padding: 10px 16px; border-bottom: 1px solid var(--line-2); margin: 0; font-size: 13.5px;
}
dl.facts dt { color: var(--mid); background: #f7f9fb; }
dl.facts dd.blank { color: var(--soft); }
dl.facts dt:last-of-type, dl.facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 620px) {
  dl.facts { grid-template-columns: minmax(0, 1fr); }
  dl.facts dt { border-bottom: 0; padding-bottom: 2px; background: none; font-size: 12px;
                text-transform: uppercase; letter-spacing: 0.06em; }
}

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.thumbs a { display: block; border: 1px solid var(--line); text-decoration: none; color: var(--mid); font-size: 11.5px; }
.thumbs a:hover { border-color: var(--gold); }
.thumbs img { width: 100%; height: 104px; object-fit: cover; display: block; }
.thumbs .name { padding: 6px 8px; display: block; }
.thumbs .doc {
  display: grid; place-items: center; height: 104px; background: #f7f9fb;
  font-weight: bold; color: var(--navy); font-size: 15px;
}

.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--soft); font-size: 11.5px; display: block; margin-top: 3px; }

.call-now { text-align: center; padding: 4px 0 2px; }
.call-now .num { font-family: var(--serif); font-size: 26px; color: var(--navy); display: block; margin-bottom: 12px; }

/* ------------------------------------------------------------------
   The numbered how to list.

   Each step is one row of a two column grid: the number, then the words.
   The words are wrapped in a single element on purpose. Left as two
   separate children they became separate grid items and the text was
   squeezed into a 30px column, one word per line.
   ------------------------------------------------------------------ */
.howto { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.howto li {
  counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); align-items: start;
}
.howto li:last-child { border-bottom: 0; }
.howto li::before {
  content: counter(step); background: var(--navy); color: var(--gold);
  width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px;
}
.howto b { display: block; font-size: 14px; margin-bottom: 2px; }
.howto span { color: var(--mid); font-size: 13px; display: block; }

/* ---------------------------------------------------------------- pager */
.pager {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 14px 18px; font-size: 13px; color: var(--mid); border-top: 1px solid var(--line-2);
}
.pager a, .pager span.cur {
  padding: 7px 13px; border: 1px solid var(--line); text-decoration: none;
  color: var(--ink); background: var(--paper);
}
.pager a:hover { border-color: var(--navy); }
.pager span.cur { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: bold; }
.pager .gap { border: 0; padding: 7px 2px; }
.pager .count { margin-right: auto; }

/* ---------------------------------------------------------------- login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 18px;
  background: linear-gradient(160deg, #16294a 0%, #0d1b32 55%, #0a1526 100%); }
.login-box { width: 100%; max-width: 400px; }
.login-box .brand-block { text-align: center; margin-bottom: 22px; color: #fff; }
.login-box .brand-block .glyph {
  width: 60px; height: 60px; margin: 0 auto 14px; border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: 30px;
}
.login-box .brand-block b { font-family: var(--serif); font-weight: normal; font-size: 22px; display: block; }
.login-box .brand-block span {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em; color: #9fb0c6;
}
.login-box .card { background: var(--paper); border-top: 3px solid var(--gold); padding: 26px 24px; }
.login-box h1 { font-family: var(--serif); font-weight: normal; font-size: 20px; margin: 0 0 4px; }
.login-box .lede { margin: 0 0 20px; font-size: 13.5px; color: var(--mid); }
.login-box .fld { margin-bottom: 16px; }
.login-box .foot { margin-top: 18px; font-size: 12.5px; color: #93a3b8; text-align: center; }
.login-box .foot a { color: var(--gold); }

/* ---------------------------------------------------------------- print */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .top, .menu, .no-print, .pager, .crumbs { display: none !important; }
  .page-body { padding: 0; }
  .panel { border-color: #999; break-inside: avoid; }
  .print-only { display: block; }
  a[href]::after { content: ""; }
}

/* The firm's logo, white lettered, straight on the navy. */
.brand-logo { height: 54px; width: auto; max-width: 100%; display: block; flex: none; }
.brand-logo.wide { height: 68px; margin: 0 auto 10px; }

@media (max-width: 900px) { .brand-logo { height: 46px; } }
@media (max-width: 620px) {
  .brand-logo { height: 40px; }
  .brand-logo.wide { height: 56px; }
}
@media (max-width: 380px) { .brand-logo { height: 34px; } }
