.accounts {
  padding: clamp(28px, 4vw, 56px) 0 80px;
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.accounts__hero {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}
@media (max-width: 720px) {
  .accounts__hero { grid-template-columns: 1fr; }
}
.accounts__hero-text { min-width: 0; }
.accounts__hero-mark {
  position: relative;
  width: clamp(180px, 22vw, 260px);
  aspect-ratio: 1.1 / 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
/* Brand circle — masked SVG painted in p2, like the homepage badge
 * but smaller and quieter. */
.accounts__brand-circle {
  position: absolute;
  width: 70%;
  aspect-ratio: 1 / 1;
  background: var(--p2);
  -webkit-mask: url("/assets/svg/rbco-black-circle.svg") no-repeat center / contain;
          mask: url("/assets/svg/rbco-black-circle.svg") no-repeat center / contain;
  z-index: 1;
}
/* Buddy stage — provides the absolute-positioned outer box that the
 * inlined scene's inner CSS expects (`.creature` is positioned via
 * the homepage's `.hero__buddy--html > .creature` rule, which we
 * mirror here so the scene works on /accounts/ too). */
.accounts__buddy-stage {
  position: absolute;
  right: -8%;
  bottom: -4%;
  width: 60%;
  aspect-ratio: 931 / 1246;
  z-index: 2;
}
.accounts__buddy-stage > .creature {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.accounts__h1 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.accounts__lede {
  max-width: 64ch;
  margin: 0 0 18px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  opacity: .88;
}
.accounts__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.accounts__quick {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  transition: background .2s ease, color .2s ease;
}
.accounts__quick:hover,
.accounts__quick:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.accounts__quick--alt {
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
}

/* Filled variant — a solid colored chip that re-tints with the palette
 * cycle. Default fill is --p2; add --p1 or --p3 to switch. Each
 * modifier swaps the fill and its matching readable text color
 * together, so the label stays legible in every palette.
 *
 * Note: --p1 clears 4.5:1 in every palette EXCEPT the default one
 * (#E04040 behind paper text is 3.59:1), so avoid it for text this
 * small unless that token pairing is retuned.
 *
 * Hover borrows the .btn idiom (lift + hard ink shadow) rather than
 * swapping colors: a fast color swap would fight the slow palette
 * crossfade and could leave the label unreadable mid-fade. */
.accounts__quick--fill {
  --quick-fill: var(--p2);
  --quick-on:   var(--on-p2);
  background: var(--quick-fill);
  color: var(--quick-on);
  border-color: var(--quick-fill);
  transition:
    background-color var(--fade) var(--ease),
    border-color var(--fade) var(--ease),
    color var(--fade) var(--ease),
    transform .16s ease,
    box-shadow .16s ease;
}
.accounts__quick--fill.accounts__quick--p1 {
  --quick-fill: var(--p1);
  --quick-on:   var(--on-p1);
}
.accounts__quick--fill.accounts__quick--p3 {
  --quick-fill: var(--p3);
  --quick-on:   var(--on-p3);
}
.accounts__quick--fill:hover,
.accounts__quick--fill:focus-visible {
  background: var(--quick-fill);
  color: var(--quick-on);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.accounts__quick--fill:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 0 var(--ink);
}
.accounts__quick--fill:focus-visible {
  outline: 3px solid var(--p3);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .accounts__quick--fill:hover,
  .accounts__quick--fill:focus-visible { transform: none; }
}

/* ---------- Common section chrome ---------- */

.accounts__h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.005em;
  margin: 0;
}
.accounts__panel { margin-top: 48px; }
.accounts__panel-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.accounts__panel-sub {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
}
.accounts__empty {
  font-style: italic;
  opacity: .7;
  margin: 12px 0;
}

/* ---------- Contact card grid ---------- */

.accounts__contacts { margin-top: 28px; }
.accounts__contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.accounts__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.accounts__contact-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.accounts__contact-photo--placeholder {
  display: grid;
  place-items: center;
  background: var(--p2);
  color: var(--on-p2);
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
}
.accounts__contact-body { flex: 1; min-width: 0; }
.accounts__contact-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 2px;
}
.accounts__contact-title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}
.accounts__contact-body p { margin: 2px 0; font-size: 13px; }
.accounts__contact-body a {
  color: var(--p1);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--p1) 40%, transparent);
}
.accounts__contact-body a:hover { border-bottom-color: var(--p1); }

/* ---------- Pricing tables ---------- */

.accounts__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--display);
  font-size: 14px;
}
.accounts__table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--ink);
}
.accounts__table tbody td {
  padding: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  vertical-align: middle;
}
.accounts__table tbody tr:hover td {
  background: color-mix(in srgb, var(--p1) 6%, transparent);
}
.accounts__col-art       { width: 72px; padding: 0 0 0 0 !important; }
.accounts__col-art img   { width: 64px; height: auto; display: block; }
.accounts__col-name      { min-width: 200px; }
.accounts__col-style     { white-space: nowrap; }
.accounts__col-abv       { width: 60px; }
.accounts__col-price     { width: 100px; white-space: nowrap; }
.accounts__row-note {
  margin: 4px 0 0;
  font-size: 12px;
  font-style: italic;
  opacity: .75;
}

/* Beer-name link inside the cans / kegs tables. The link picks up
 * `currentColor` for the chevron, animates a slide on hover, and
 * lights up the row underneath via tr:has(). */
.accounts__beer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.accounts__beer-link strong {
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.accounts__chev {
  display: inline-block;
  font-weight: 800;
  color: var(--p1);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.accounts__beer-link:hover strong,
.accounts__beer-link:focus-visible strong {
  color: var(--p1);
  border-bottom-color: var(--p1);
}
.accounts__beer-link:hover .accounts__chev,
.accounts__beer-link:focus-visible .accounts__chev {
  opacity: 1;
  transform: translateX(0);
}
.accounts__table tbody tr:has(.accounts__beer-link:hover) td {
  background: color-mix(in srgb, var(--p1) 6%, transparent);
}

.accounts__badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--p3);
  color: var(--on-p3);
}

/* ---------- Beer-report cards ---------- */

.accounts__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.accounts__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 92%, var(--ink) 8%);
  /* Mix-against-ink gives a slight shadow tint that works on every
   * palette including the dark ones, where var(--paper) is near-black. */
}
.accounts__card-art {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}
.accounts__card-style {
  margin: 0;
  color: var(--p1);
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.accounts__card-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}
.accounts__card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: .9;
}
/* Hops chip — renders as a labelled pill so the operator sees what
 * goes into each beer at a glance instead of hunting through prose. */
.accounts__card-hops {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .04em;
  overflow: hidden;
  background: color-mix(in srgb, var(--p3) 18%, transparent);
}
.accounts__card-hops-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--p3);
  color: var(--on-p3);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.accounts__card-hops-list {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-weight: 600;
}

/* Pricing block — table-like definition list with bold prices in
 * p1. Reads better than a small bulleted list and is more
 * print-friendly. */
.accounts__card-pricing {
  margin: 8px 0 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 4px;
  column-gap: 16px;
  font-family: var(--display);
  font-size: 14px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.accounts__card-pricing dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  align-self: center;
}
.accounts__card-pricing dd {
  margin: 0;
  font-weight: 800;
  color: var(--p1);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.accounts__card-note {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--p1);
  font-size: 12px;
  font-style: italic;
  background: color-mix(in srgb, var(--p1) 8%, transparent);
}

.accounts__card-link {
  margin-top: 4px;
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--p1);
  border-bottom: 1.5px solid transparent;
  padding: 2px 0;
  transition: border-color .2s ease, gap .2s ease;
}
.accounts__card-link:hover,
.accounts__card-link:focus-visible {
  border-bottom-color: var(--p1);
}
.accounts__card-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s ease;
}
.accounts__card-link:hover span,
.accounts__card-link:focus-visible span {
  transform: translateX(4px);
}

/* ---------- Upcoming list ---------- */

.accounts__upcoming {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 14px;
}
.accounts__upcoming li {
  padding: 14px 16px;
  border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 10px;
}
.accounts__upcoming li p {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: .85;
}

/* ---------- Print ---------- */

@media print {
  .accounts__quicklinks,
  .footer,
  .nav { display: none !important; }
  .accounts { padding: 0; }
}
