/* Sierra palette: navy #003B71, green #759808, page #f6f8fb.
   Per-site theming overrides these via Site.theme_json later. */
:root {
  --navy: #003b71;
  --green: #759808;
  --bg: #f6f8fb;
  --ink: #1b2733;
  --muted: #5b6b7c;
  --line: #d9e1ea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem; background: var(--navy); color: #fff;
}
.topbar img { max-height: 40px; display: block; }
.brand-name { font-weight: 600; letter-spacing: .01em; }
.topnav { display: flex; align-items: center; gap: 1rem; }
.who { opacity: .85; font-size: .9rem; }
/* Default to navy so the button is visible on white cards. The white variant
   is scoped to the dark topbar, where it was originally written -- unscoped it
   made "Update proof" invisible on the product page. */
.linklike {
  background: none; border: 0; color: var(--navy); text-decoration: underline;
  cursor: pointer; font: inherit; padding: 0;
}
.topbar .linklike { color: #fff; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.back { display: inline-block; margin-bottom: .75rem; color: var(--navy); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem; margin: 1rem 0;
}
.card-narrow { max-width: 420px; margin: 3rem auto; }

label { display: block; margin: .875rem 0 .25rem; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: .55rem .65rem; border: 1px solid var(--line);
  border-radius: 6px; font: inherit; background: #fff;
}
input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.req { color: #b3261e; }

.btn-primary {
  margin-top: 1.25rem; width: 100%; padding: .6rem 1rem; border: 0;
  border-radius: 6px; background: var(--navy); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn-primary:hover { background: #00294f; }

.flash { padding: .65rem .85rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-error { background: #fdecea; border: 1px solid #f5c6c2; color: #8c1d18; }
.flash-message, .flash-info { background: #eef4fb; border: 1px solid #cfe0f2; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .25rem .75rem; font-size: .875rem;
}

.grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.tile a { display: block; padding: .85rem; color: inherit; text-decoration: none; }
.tile img { width: 100%; height: 120px; object-fit: contain; display: block; margin-bottom: .5rem; }
.tile-name { font-weight: 600; font-size: .925rem; }
.tile:hover { border-color: var(--navy); }

.fields { display: grid; gap: .5rem 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.prices th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.split { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .card { margin: 1rem 0 0; }
.hint { margin: .25rem 0 0; font-size: .8rem; color: var(--muted); }
.proof {
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  background: repeating-conic-gradient(#f2f5f8 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  border: 1px solid var(--line); border-radius: 8px; padding: 1rem;
}
.proof img { max-width: 100%; height: auto; box-shadow: 0 1px 6px rgba(0,0,0,.18); background:#fff; }

.cart-table td { vertical-align: top; }
.actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.btn-primary.inline { width: auto; display: inline-block; margin: 0; text-decoration: none; }
.linklike.danger { color: #b3261e; }
.summary { list-style: none; padding: 0; margin: 0; }
.summary li { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.total { margin-top: .75rem; font-size: 1.05rem; }
select, textarea {
  width: 100%; padding: .55rem .65rem; border: 1px solid var(--line);
  border-radius: 6px; font: inherit; background: #fff;
}
.status { font-size: .8rem; padding: .15rem .5rem; border-radius: 999px; background: #eef4fb; }
.status-pending_approval { background: #fff4e5; }
.status-submitted { background: #e8f5e9; }
.status-denied { background: #fdecea; }
.topnav a { color: #fff; text-decoration: none; font-size: .9rem; opacity: .9; }
.topnav a:hover { opacity: 1; text-decoration: underline; }

/* Approvals */
.badge {
  display: inline-block; min-width: 1.15rem; padding: 0 .35rem; margin-left: .2rem;
  border-radius: 999px; background: #f0a202; color: #1a1a1a;
  font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.3rem;
}
.approval-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.approval-item:first-of-type { border-top: 0; }
.approval-item h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.approval-item th { text-align: left; font-weight: 600; width: 12rem; color: #555; }
