/* Blackridge Group: site styles */

:root {
  --ink: #282b2d;
  --ink-soft: #4a4e51;
  --bar: #252b30;
  --bar-hi: #2b3238;
  --paper: #faf8f3;
  --paper-shade: #f2efe7;
  --outer: #e8e6e1;
  --rule: #ccc7bd;
  --accent: #8b795a;
  --accent-text: #6b5c43; /* accent darkened for small text contrast on paper */
  --link: #334f63;
  --link-hover: #1f3545;
  --on-bar: #e4e1da;
  --on-bar-muted: #b9bcbe;
  --focus: #334f63;
  --focus-on-bar: #e2d4b6;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --page-max: 1180px;
  --gutter: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--outer);
  border-top: 4px solid var(--ink);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--bar);
  color: #fff;
  font-weight: bold;
}
.skip-link:focus { top: 12px; outline-color: var(--focus-on-bar); }

/* ---------------------------------------------------------------- draft banner (draft builds only) */

.draft-banner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 8px 16px;
  background: #fbf1d5;
  border: 1px solid #d8c48d;
  border-top: 0;
  color: #4d3f1c;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.draft-banner a { color: #4d3f1c; margin-left: 8px; }

/* ---------------------------------------------------------------- page frame */

.page {
  max-width: var(--page-max);
  margin: 24px auto 40px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(40, 43, 45, 0.08);
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--gutter) 24px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  text-transform: uppercase;
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }

.wm-name {
  font-size: 30px;
  letter-spacing: 0.09em;
  margin-right: -0.09em; /* cancel trailing tracking so the rule below aligns */
}

.wm-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--ink-soft);
}
.wm-group::before,
.wm-group::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--accent);
}
.wm-group::after { margin-left: -0.42em; }

.utility {
  margin: 0 0 2px;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- navigation */

.primary-nav {
  background: var(--bar);
  background-image: linear-gradient(var(--bar-hi), var(--bar));
  border-top: 1px solid #1c2125;
  border-bottom: 3px solid var(--accent);
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0 calc(var(--gutter) - 14px);
  list-style: none;
}

.nav-list li + li { border-left: 1px solid #3a4248; }

.nav-list a {
  display: block;
  padding: 13px 18px 12px;
  color: var(--on-bar);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-list li:first-child a { padding-left: 14px; }
.nav-list a:hover { background: #313940; color: #fff; }
.nav-list a[aria-current="page"] { background: #343c43; color: #fff; box-shadow: inset 0 -3px 0 var(--focus-on-bar); }
.nav-list a:focus-visible { outline: 3px solid var(--focus-on-bar); outline-offset: -3px; }

.nav-toggle { display: none; }

/* ---------------------------------------------------------------- intro / title strip */

.intro,
.title-strip {
  background: var(--paper-shade);
  border-bottom: 1px solid var(--rule);
}

.intro { padding: 34px var(--gutter) 32px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 640px;
  margin: 0 0 16px;
  font: normal 30px/1.25 var(--serif);
  color: var(--ink);
}

.intro p { max-width: 660px; margin: 0 0 12px; }

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 22px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--link);
  border: 1px solid #263d4d;
  border-radius: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
}
.button:hover { background: var(--link-hover); color: #fff; }

.more-link { font-weight: bold; font-size: 15px; }
.more-link::after { content: " \203A"; }

.title-strip { padding: 20px var(--gutter) 18px; }
.title-strip h1 { margin: 0; font: normal 28px/1.25 var(--serif); }

.crumb {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 13px;
}
.crumb span[aria-hidden] { margin: 0 4px; color: var(--accent); }

/* ---------------------------------------------------------------- content grid */

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 44px;
  padding: 34px var(--gutter) 44px;
}

.main > :first-child { margin-top: 0; }

.main h2 {
  margin: 30px 0 10px;
  font: normal 22px/1.3 var(--serif);
  color: var(--ink);
}
.main h3 {
  margin: 26px 0 8px;
  font: bold 17px/1.35 var(--serif);
  color: var(--ink);
}
.main p,
.main ul { margin: 0 0 14px; }
.main ul { padding-left: 22px; }
.main li { margin-bottom: 6px; }

.main .lead { font-size: 17px; }

.section + .section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.section > h2:first-child { margin-top: 0; }

.note {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--paper-shade);
  border-left: 3px solid var(--accent);
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

.updated { color: var(--ink-soft); font-size: 14px; }

/* ---------------------------------------------------------------- sidebar panels */

.sidebar { display: flex; flex-direction: column; gap: 22px; }

.panel {
  background: #fff;
  border: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.55;
}
.panel-primary { border-top: 3px solid var(--accent); }

.panel-head {
  margin: 0;
  padding: 11px 18px 10px;
  background: var(--paper-shade);
  border-bottom: 1px solid var(--rule);
  font: normal 17px/1.3 var(--serif);
}

.panel-body { padding: 14px 18px 16px; }
.panel-body p { margin: 0 0 10px; }
.panel-body p:last-child { margin-bottom: 0; }
.panel-more a { font-weight: bold; }
.panel-more a::after { content: " \203A"; }

.panel-links { margin: 0; padding: 6px 0; list-style: none; }
.panel-links a {
  display: block;
  padding: 7px 18px;
  text-decoration: none;
}
.panel-links a:hover { background: var(--paper-shade); text-decoration: underline; }

/* ---------------------------------------------------------------- contact block */

.contact-block {
  margin: 22px 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
}
.contact-block p:last-child { margin-bottom: 0; }
.contact-head { margin: 0 0 6px !important; font-size: 18px !important; }
.contact-email { font-size: 18px; font-weight: bold; }

.dev-placeholder {
  background: repeating-linear-gradient(-45deg, #fffaf0, #fffaf0 10px, #fbf1d5 10px, #fbf1d5 20px);
  border: 2px dashed #b8963e;
}
.dev-tag {
  display: inline-block;
  margin: 0 0 10px !important;
  padding: 2px 8px;
  background: #4d3f1c;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 22px var(--gutter) 24px;
  background: var(--bar);
  border-top: 3px solid var(--accent);
  color: var(--on-bar-muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.footer-links li + li::before { content: "|"; margin: 0 12px; color: #5a6267; }
.footer-links a { color: var(--on-bar); }
.footer-links a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: var(--focus-on-bar); }

.disclosure { max-width: 720px; margin: 0 0 8px; color: var(--on-bar); }
.copyright { margin: 0; font-size: 13px; }

/* ---------------------------------------------------------------- payments */

.pay-lookup { margin: 26px 0 30px; padding: 22px 24px 8px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--accent); }
.pay-lookup > h2:first-child { margin-top: 0; }
.field-short input { max-width: 200px; }

.data-table { width: 100%; margin: 0 0 22px; border-collapse: collapse; background: #fff; font-size: 15px; }
.data-table th,
.data-table td { padding: 9px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data-table tbody th { width: 38%; background: var(--paper-shade); }
.data-table thead th { background: var(--paper-shade); }
.schedule-table td:last-child,
.schedule-table th:last-child { white-space: nowrap; }

.plan-fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.plan-fieldset legend { margin-bottom: 10px; font-weight: bold; }
.plan-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; }
.plan-option + .plan-option { border-top: 0; }
.plan-option input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--link); }
.plan-option label { flex: 1; cursor: pointer; }

.authorization { margin: 0 0 18px; padding: 16px 18px; background: var(--paper-shade); border-left: 3px solid var(--accent); font-size: 15px; }
.authorization h3 { margin-top: 0 !important; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: bold; }
.agree input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--link); }

.payment-element { max-width: 560px; margin: 0 0 18px; }
.dev-card { padding: 28px 16px; text-align: center; }

.notice { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid; font-size: 15px; }
.notice p { margin: 0 !important; }
.notice-ok { background: #edf4ee; border-color: #3d6b47; color: #1e3b25; }
.notice-info { background: #eef2f5; border-color: var(--link); color: #1f3545; }
.notice-warn { background: #fbf1d5; border-color: #b8963e; color: #4d3f1c; }
.notice-error { background: #fbeeee; border-color: #9b3b3b; color: #5c1f1f; }

.button-secondary { background: #fff; color: var(--link); }
.button-secondary:hover { background: var(--paper-shade); color: var(--link-hover); }
.button:disabled { opacity: 0.6; cursor: wait; }
.link-button { padding: 8px 0; background: none; border: 0; color: var(--link); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.pay-signout { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- tablet */

@media (max-width: 1080px) {
  .page { margin: 0 auto 32px; border-left: 0; border-right: 0; }
  .draft-banner { border-left: 0; border-right: 0; }
}

@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .content { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }

}

/* ---------------------------------------------------------------- mobile */

/* collapsed menu: seven items no longer fit on one line below this width */
@media (max-width: 940px) {
  .js .nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 var(--gutter);
    background: none;
    border: 0;
    color: var(--on-bar);
    font: bold 14px/1 var(--sans);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 3px solid var(--focus-on-bar); outline-offset: -3px; }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .nav-list { flex-direction: column; padding: 0; }
  .js .nav-list { display: none; border-top: 1px solid #3a4248; }
  .js .nav-list.is-open { display: flex; }
  .nav-list li + li { border-left: 0; border-top: 1px solid #3a4248; }
  .nav-list a,
  .nav-list li:first-child a { padding: 14px var(--gutter); font-size: 14px; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--focus-on-bar); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .masthead { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 22px; padding-bottom: 18px; }
  .wm-name { font-size: 26px; }
  .utility { padding-left: 0; border-left: 0; font-size: 14px; }


  .intro { padding: 26px var(--gutter) 26px; }
  .intro h1 { font-size: 25px; }
  .title-strip h1 { font-size: 24px; }

  .content { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 32px; }
  .sidebar { border-top: 1px solid var(--rule); padding-top: 28px; }

  .button { padding: 12px 20px; }
  .panel-links a { padding-top: 11px; padding-bottom: 11px; }
  .footer-links li { line-height: 2.4; }

  .data-table tbody th { width: 44%; }
  .pay-lookup { padding: 18px 16px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; border-top: 0; }
  .page { margin: 0; border: 0; box-shadow: none; }
  .primary-nav, .sidebar, .skip-link, .draft-banner { display: none; }
  .content { display: block; }
}

/* ---------------------------------------------------------------- contact form */

.contact-form-wrap { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.contact-form-wrap > h2:first-child { margin-top: 0; }
.contact-form { max-width: 560px; }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 15px; }
.field .req,
.field .opt { color: var(--ink-soft); font-weight: normal; font-size: 14px; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #a9a397;
  border-radius: 2px;
  color: var(--ink);
  font: 16px/1.4 var(--sans);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.hint { margin: 5px 0 0 !important; color: var(--ink-soft); font-size: 14px; }
.form-note { color: var(--ink-soft); font-size: 14px; }
button.button { cursor: pointer; font-family: var(--sans); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fbeeee;
  border-left: 3px solid #9b3b3b;
  color: #5c1f1f;
  font-size: 15px;
}

/* ---------------------------------------------------------------- footer credit */

.site-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-text { min-width: 0; }
.built-by {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid #4a5258;
  color: var(--on-bar-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.built-by strong { color: var(--on-bar); letter-spacing: 0.08em; }
.built-by:hover { border-color: #6b7378; color: var(--on-bar); }
.built-by img { display: block; }

@media (max-width: 760px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
}

.mail-address { margin: 0 0 10px; font-style: normal; font-size: 17px; line-height: 1.5; }

/* Accessible native payment authorization dialog. */
.payment-authorization-modal { width: min(640px, calc(100% - 32px)); max-height: 88vh; padding: 24px; border: 1px solid #777; border-radius: 3px; color: #282b2d; background: #fff; overflow-y: auto; }
.payment-authorization-modal::backdrop { background: rgba(15, 24, 31, .65); }
.payment-authorization-modal input[type="text"] { display: block; width: 100%; box-sizing: border-box; margin: 8px 0 18px; padding: 10px; border: 1px solid #777; font: inherit; }
.authorization-terms { padding: 14px; background: #f4f3ef; line-height: 1.6; }
.authorization-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.payment-authorization-modal :focus-visible { outline: 3px solid #456e8b; outline-offset: 3px; }
