/* Matched to clovislawgroup.com (Enfold theme, dynamic_avia/clovis_law_group.css
   and computed header styles, Oct 2026).
   Fonts are the same families the site loads from Google Fonts, self-hosted
   (Latin woff2). Sizes stay at 16px except the title, which uses their heading
   face at 28px instead of the marketing site's 44 to 60px hero type. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/open-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}

:root {
  --navy: #002150;
  --blue: #002150;
  --text: #444444;
  --heading: #141414;
  --muted: #777777;
  --line: #e1e1e1;
  --paper: #ffffff;
  --page: #f8f8f8;
  --error: #7a1f1f;
}

html { font-size: 16px; }
body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--page);
}
h1, h2, p, li, label, legend, a, button, input, select, textarea, nav { font-size: 1rem; }
h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
h2 { font-weight: 600; color: var(--heading); margin: 0 0 0.5rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--paper);
  color: var(--navy);
  padding: 0.5rem;
  z-index: 2;
}
.skip:focus { top: 0.5rem; }

.phonebar { background: var(--navy); color: #ffffff; }
.phonebar-inner { display: flex; justify-content: flex-end; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.phonebar a { color: #ffffff; font-weight: 600; text-decoration: none; }
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.logo-link { display: block; line-height: 0; }
/* 300px is 25% over the previous 240px. The 501px-wide PNG stays 1:1
   through about 1.7x and is only a light upscale on a 2x screen. */
.logo-link img { width: 300px; height: auto; max-width: 100%; }
nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
nav a { color: var(--heading); font-weight: 600; text-decoration: none; }
nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }

.wrap { max-width: 40rem; margin: 0 auto; padding: 1rem; }
.mast-inner.wrap, .phonebar-inner.wrap { max-width: 64rem; }
/* Beat .wrap's padding so the banner can be taller than the form column.
   Phone bar: a bit more than the old 1rem. Logo strip: noticeably more.
   clovislawgroup.com (1280px, Oct 2026) is 127px total: 31px phone, 97px logo strip, 375x95 logo. */
.phonebar-inner.wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.mast-inner.wrap { padding-top: 1.75rem; padding-bottom: 1.75rem; }
/* Headings sit above the box. A legend on a bordered fieldset overlaps the border. */
fieldset.section, section.section {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  box-sizing: border-box;
}
/* Do not float the legend. A floated legend is out of flow, so WebKit sizes
   the fieldset to the min-content of the radios (UA min-inline-size: min-content)
   and the white box shrinks to the longest option. Text sections look full
   width only because their inputs have a larger min-content size. */
fieldset.section > legend, fieldset.inner > legend {
  display: block;
  float: none;
  width: auto;
  box-sizing: border-box;
  padding: 0;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heading);
}
.box {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.85rem 0.85rem 0.15rem;
}
.staff-kicker {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--navy);
}
.field { margin: 0 0 0.75rem; }
.q { font-weight: 600; color: var(--heading); margin: 0 0 0.25rem; font-size: 1rem; }
label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 0.25rem; }
.hint { font-weight: 400; color: var(--muted); margin: 0.25rem 0 0; }
input, select, textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.6rem;
  border: 1px solid #919191;
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  font-family: inherit;
  font-weight: 400;
}
textarea { min-height: 8rem; resize: vertical; }
/* Chrome 135+ draws a native <select> as an in-page ::picker(select).
   The UA size is height: fit-content and max-block-size: stretch, but stretch
   does not cap the picker, so a list taller than the space beside the control
   is clipped by the viewport. The wheel then scrolls the page and closes the
   list. appearance: base-select makes that same native picker a scrollport.
   Browsers that do not know base-select ignore it and keep their own popup. */
select,
select::picker(select) {
  appearance: base-select;
}
select::picker(select) {
  max-height: min(50vh, 18rem);
  overflow-y: auto;
  border: 1px solid #919191;
  background: var(--paper);
  color: var(--text);
  margin: 0;
  padding: 0;
}
select option { padding: 0.45rem 0.6rem; }
/* With base-select (Chrome, Safari 26) the closed control is a flex row of the
   chosen text and the arrow. A long choice would push the arrow out and get cut
   off on a phone, so let the text wrap and keep the arrow at the end. */
select { white-space: normal; text-align: start; }
select::picker-icon { flex: none; margin-inline-start: auto; padding-inline-start: 0.5rem; }
select option:hover, select option:focus { background: #e8eef6; }
select option::checkmark { display: none; }
input:focus, select:focus, textarea:focus, button:focus, a:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.choice { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.4rem 0; font-weight: 400; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: 0 0 auto; }
button {
  background: var(--navy);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1.25rem;
  min-height: 2.75rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:disabled { opacity: 0.6; }
button.secondary {
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--navy);
}
button.link-btn {
  background: none;
  color: var(--blue);
  padding: 0;
  min-height: 0;
  font-weight: 400;
  text-decoration: underline;
}
/* Values Andy has not given yet. Shown on purpose so nobody mistakes them for real ones. */
.placeholder {
  background: #fff1b8;
  color: #5c4500;
  outline: 1px dashed #b08a00;
  padding: 0 0.2em;
  font-weight: 600;
}
.hint.first { margin: 0 0 0.6rem; }
.party {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}
.party:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.party-pair, .addr-row { display: grid; gap: 0 0.75rem; }
.party-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.addr-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.party-remove { margin: -0.25rem 0 0.75rem; }
.decline p:not(.notice-lead) { margin-bottom: 0.75rem; }
.urgent { color: var(--error); }
.error { color: var(--error); font-weight: 600; margin: 0.25rem 0 0; }
.note {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.75rem;
}
.notice {
  box-sizing: border-box;
  width: 100%;
  background: rgba(0, 33, 80, 0.08);
  border: 0;
  border-left: 4px solid #002150;
  padding: 1rem 1.15rem;
  margin: 0 0 1rem;
}
.notice-lead {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.notice p:last-child { margin-bottom: 0; }
.summary {
  border: 2px solid var(--error);
  background: var(--paper);
  padding: 0.75rem;
  margin: 0 0 1rem;
}
.summary a { color: var(--error); }
.staff-result { margin-top: 0.25rem; }
.staff-result ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.staff-result li { margin: 0.15rem 0; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.foot { padding-bottom: 2rem; color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 700px) {
  .mast-inner { flex-direction: column; align-items: flex-start; }
  .phonebar-inner { justify-content: flex-start; }
  .phonebar-inner.wrap { padding-top: 1.15rem; padding-bottom: 1.15rem; }
  .mast-inner.wrap { padding-top: 1.4rem; padding-bottom: 1.4rem; }
  .logo-link img { width: 260px; max-width: 78vw; }
  .party-pair, .addr-row { grid-template-columns: minmax(0, 1fr); }
}
a.button { display: inline-block; background: var(--navy); color: #ffffff; padding: 0.7rem 1.25rem; font-weight: 600; text-decoration: none; }
#clio-panel h2 { margin-top: 0; }
/* Inline style attributes are blocked by the CSP (style-src 'self'), so the muted link is styled here. */
.staff-logout a.staff-admin-link { color: #6b6b6b; font-size: 0.875rem; text-decoration: none; }
.staff-logout a.staff-admin-link:hover, .staff-logout a.staff-admin-link:focus { color: #4a4a4a; text-decoration: underline; }
.staff-logout { display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }

/* Booking page and staff inquiries */
.slot-day{display:flex;flex-wrap:wrap;gap:.5rem;border:1px solid #d5d9e0;padding:.75rem;margin:0 0 1rem}
.slot-day legend{font-weight:600;padding:0 .25rem}
.slot{display:inline-flex;align-items:center;gap:.4rem;width:auto;margin:0;padding:.4rem .7rem;border:1px solid #c5cbd5;border-radius:4px;cursor:pointer;font-weight:400}
.slot input{width:auto;margin:0}
.inq-list{list-style:none;padding:0}
.inq{border:1px solid #d5d9e0;padding:.75rem 1rem;margin:0 0 .75rem}
form.inline{display:inline-block;margin-right:.5rem}
.booking-link{word-break:break-all}

/* Moved from inline style attributes (blocked by CSP style-src 'self'). */
.clio-warn { background: #fff4c2; border: 1px solid #e0b400; color: #3d3000; padding: 0.75rem 1rem; border-radius: 4px; }
.badge-urgent { background: #b00020; color: #ffffff; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.pre-wrap { white-space: pre-wrap; }
.admin-warn { color: #b00020; font-weight: 600; }
#clio-disconnect-warn { white-space: nowrap; }
#clio-disconnect-cancel { margin-left: 0.75rem; }
a.button-outline { display: inline-block; background: var(--paper); color: var(--navy); border: 1px solid var(--navy); padding: 0.7rem 1.25rem; font-weight: 600; text-decoration: none; }
.staff-logout a.staff-back { margin-right: auto; }
.inq-done { margin-top: 1.5rem; }
.inq-done > summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.inq-delete { margin-top: 0.5rem; }
.inq-delete button.link-btn { font-size: 0.875rem; color: #6b6b6b; }
.cancel-link { margin-left: 0.75rem; }

/* Oct 21: closer to clovislawgroup.com. One navy, 8px buttons, wider header like the main site. */
button, a.button, a.button-outline, .slot { border-radius: 8px; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner.wrap { max-width: 1200px; padding: 1.25rem 1.5rem; }
.logo-link img { width: 260px; }
@media (max-width: 600px) { .logo-link img { width: 220px; } .mast-inner.wrap { padding: 1rem; } }
