/* Brindlewood Market team site. One light look, like a real company intranet. */
:root {
  --green: #1f4d3a;
  --green-deep: #163829;
  --green-soft: #e4eee6;
  --sage: #eef3ec;
  --white: #ffffff;
  --cream: #fbf7ee;
  --tomato: #c8472b;
  --tomato-deep: #a63a22;
  --mustard: #e5a937;
  --mustard-soft: #fbefd2;
  --ink: #1d2420;
  --muted: #5f6a63;
  --line: #dfe6dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(29 36 32 / 6%), 0 6px 18px rgb(29 36 32 / 7%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
a { color: var(--green); }
a:hover { color: var(--tomato-deep); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-deep); color: var(--white); }
.btn-gold { background: var(--mustard); color: var(--ink); }
.btn-gold:hover { background: #d29a2c; color: var(--ink); }
.btn-ghost-light { border-color: rgb(255 255 255 / 60%); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--green); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tomato);
}
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; }
.aside { color: var(--muted); font-size: 15px; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.actions:empty { display: none; }

/* Utility bar and header */
.utility { background: var(--green-deep); color: #d8e6dc; font-size: 13.5px; }
.utility-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  flex-wrap: wrap;
}
.utility b { color: var(--white); }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
  flex-shrink: 0;
}
.brand:hover { color: var(--green); }
.logo-mark { display: block; flex-shrink: 0; }
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}
.wordmark span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-top: 4px;
}
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--sage); color: var(--green); }

/* Hub home */
.hub-hero {
  background:
    radial-gradient(circle at 90% 0%, rgb(229 169 55 / 25%), transparent 40%),
    var(--green);
  color: var(--white);
}
.hub-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hub-hero-copy { display: grid; gap: 16px; }
.hub-hero .eyebrow { color: var(--mustard); }
.hub-hero h1 { font-size: clamp(38px, 5.5vw, 60px); }
.hub-hero .lede { color: #d8e6dc; }
.hub-hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.week li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.week li:last-child { border-bottom: 0; padding-bottom: 0; }
.week b { font-size: 14px; color: var(--green); }

.quick { padding-top: 40px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-link {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.quick-link:hover { box-shadow: var(--shadow); border-color: var(--green); color: var(--ink); }
.quick-link .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--green);
}
.quick-link span { display: grid; gap: 4px; }
.quick-link b { font-size: 17px; }
.quick-link em { font-style: normal; color: var(--muted); font-size: 14.5px; }

.hub-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 64px;
}
.news { display: grid; border-top: 1px solid var(--line); }
.news li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.news time { font-size: 13.5px; font-weight: 600; color: var(--tomato); }
.news h3 { font-family: var(--serif); font-size: 22px; }
.news p { color: var(--muted); max-width: 68ch; }

/* Inner pages */
.page-head {
  background: linear-gradient(180deg, var(--sage), var(--white));
  padding-top: 48px;
  padding-bottom: 36px;
}
.page-head .wrap { display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); color: var(--green); }
.stack { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.dept {
  font-size: 28px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--sage);
}
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.panel h2 { font-size: 22px; }
.panel p { color: var(--muted); }
.side { background: var(--cream); }
.bullets { display: grid; gap: 10px; }
.bullets li { padding-left: 22px; position: relative; color: var(--muted); }
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mustard);
}
.dates li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dates li:last-child { border-bottom: 0; }
.dates span { color: var(--muted); font-size: 14.5px; }
.notices { display: grid; gap: 12px; }
.notices li { border-left: 4px solid var(--mustard); padding: 4px 0 4px 12px; }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perks li { border-top: 4px solid var(--mustard); padding-top: 14px; display: grid; gap: 4px; }
.perks b { font-family: var(--serif); font-size: 26px; color: var(--green); }
.perks span { color: var(--muted); }

.fixes, .handbook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fixes li, .handbook li { background: var(--sage); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.fixes h3, .handbook h3 { font-size: 18px; color: var(--green); }
.fixes p, .handbook p { color: var(--muted); }

.roles { display: grid; border-top: 1px solid var(--line); }
.role {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.role h3 { font-size: 18px; }
.role p { color: var(--muted); }
.role-meta { text-align: right; }
.role-meta p:first-child { color: var(--ink); font-weight: 600; }

/* Store directory */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.store {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.store-num { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tomato); }
.store h2 { font-size: 24px; color: var(--green); }
.store-name { font-weight: 600; margin-bottom: 6px; }
.store p { color: var(--muted); }
.store .store-name, .store .store-num { color: inherit; }
.store .store-num { color: var(--tomato); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--sage);
  color: var(--green);
}
.tag-rx { background: #fbe4dc; color: var(--tomato-deep); }
.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sites li { background: var(--cream); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; }
.sites h2 { font-size: 22px; color: var(--green); }
.sites p { color: var(--muted); }

/* Sign-in pages */
.auth { background: linear-gradient(180deg, var(--sage), var(--cream)); }
.auth-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}
.auth-copy { display: grid; gap: 18px; }
.auth-copy h1 { font-size: clamp(32px, 4.4vw, 50px); color: var(--green); }
.auth-copy > p { color: var(--muted); font-size: 17px; max-width: 54ch; }
.card-form {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 32px;
  display: grid;
  gap: 8px;
}
.card-form h1, .card-form h2 { font-size: 28px; margin-bottom: 6px; }
.card-form > p { color: var(--muted); font-size: 15px; }
.card-form label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.card-form input {
  font: inherit;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid #c9d3c6;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.card-form input:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }
.card-form button { margin-top: 14px; width: 100%; }
.card-form .form-note { font-size: 13.5px; margin-top: 8px; }
.error {
  background: #fbe4dc;
  color: var(--tomato-deep);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14.5px;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th {
  text-align: left;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: var(--sage); }
table.num td:not(:first-child), table.num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
code { font: 13.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--sage); padding: 2px 6px; border-radius: 6px; }

/* Footer */
.site-footer { background: var(--green-deep); color: #c9d8ce; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 32px;
}
.footer-grid h2 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 10px;
}
.footer-grid div { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.footer-grid a { color: var(--white); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; color: var(--white); }
.footer-brand p { margin-top: 10px; }
.brand-light, .brand-light:hover { color: var(--white); }
.fine {
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-top: 18px;
  padding-bottom: 28px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* Staff Portal (the sign-in and the store dashboard) */
body.staff { background: var(--sage); min-height: 100vh; }
.staff-login { max-width: 440px; margin: 0 auto; padding: 56px 20px; display: grid; gap: 24px; }
.staff-brand { display: grid; justify-items: center; gap: 8px; color: var(--green); text-align: center; }
.staff-brand .logo-mark { width: 60px; height: 60px; }
.staff-brand .wordmark { align-items: center; font-size: 28px; }
.staff-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 14px;
}
.staff-foot { text-align: center; font-size: 13px; color: var(--muted); }
.staff-bar { background: var(--green); color: #d8e6dc; }
.staff-bar-in { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.staff-bar .wordmark { font-size: 20px; }
.staff-bar .wordmark span { color: var(--mustard); }
.staff-bar p { margin-left: auto; font-size: 14px; }
.staff-bar .btn-ghost-light { min-height: 38px; padding: 0 16px; }
.dash { display: grid; gap: 20px; padding-top: 32px; padding-bottom: 56px; }
.dash h1 { font-size: 34px; color: var(--green); }
.dash .panel { border: 0; box-shadow: var(--shadow); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  gap: 2px;
  box-shadow: var(--shadow);
}
.kpis span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.kpis b { font-size: 30px; font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-size: 13px; font-weight: 600; }
.up { color: #2f7a4f; }
.down { color: var(--tomato-deep); }

/* Smaller screens */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-in { justify-content: space-between; }
  .hub-hero-in, .auth-in, .hub-cols { grid-template-columns: minmax(0, 1fr); }
  .quick-grid, .perks, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .utility-in p:first-child { display: none; }
  .header-in { min-height: 64px; gap: 12px; }
  .wordmark { font-size: 19px; }
  .header-in .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .hub-hero-in { padding-top: 40px; padding-bottom: 40px; }
  .quick-grid, .info-grid, .fixes, .handbook, .sites { grid-template-columns: minmax(0, 1fr); }
  .role-meta { text-align: left; }
  .card-form { padding: 24px; }
  .staff-bar p { margin-left: 0; width: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
