/* Shared component layer for the Eazdrop web reader, and the base every
 * server page builds on (both the content frame and the account frame load
 * this file).
 *
 * Every class here maps to a named layer in the Figma file. Card templates
 * compose these; they should not need bespoke CSS beyond a card-specific
 * block at the bottom of this file.
 *
 * Theme: the Lovable site system (tokens.css, --ez-*). The base below sets
 * the plum page ground, Plus Jakarta Sans for text, Outfit for headings and
 * the saffron keyboard focus; the "Site system utilities" section near the
 * end has the eyebrow, card panel and light (Ivory) section classes. */

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

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  /* Dark whatever the device's light or dark setting: the browser's own
   * fields, menus and scrollbars too, and no browser recolours the page. */
  color-scheme: dark;
}

/* The site's plum gradient over its base colour, drawn once (a short page
 * ends on the base colour rather than repeating the gradient). */
body {
  margin: 0;
  background: var(--ez-page-bg);
  background-color: var(--bg-page);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

/* Keyboard focus, site-wide: a 2px saffron outline, 3px off. A component
 * may restyle it but should keep it this visible. */
:focus-visible {
  outline: var(--ez-focus);
  outline-offset: var(--ez-focus-offset);
}

/* ===================================================================== */
/* App chrome                                                             */
/* ===================================================================== */

/* "Skip to main content" (layouts/content), visible only when focused; the
 * same look as the account pages' .ac-skip. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ez-violet-sweep);
  color: var(--ez-pearl);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--ez-pearl);
  outline-offset: 2px;
}

/* The skip link's target: focus moves to it, no ring (it is not a control). */
main[tabindex="-1"]:focus {
  outline: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  min-height: 56px;
  /* Nav indigo with an ivory hairline, as on eazdrop.com; clear over the
   * top of a page outside the card frame (header-scroll.js). */
  border-bottom: 1px solid var(--ez-ivory-12);
  background-color: var(--ez-nav);
  transition: background-color 0.3s, border-color 0.3s;
}

.hdr-clear:not(.hdr-scrolled) body:not(:has(.frame)) .header {
  border-bottom-color: transparent;
  background-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .header {
    transition: none;
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.5px;
}

/* The primary call to action: the site's bevelled saffron (tokens.css
 * --ez-saffron-bevel*), black Outfit 700, 8px corners; no glow. */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--ez-radius-btn);
  background: var(--ez-saffron-bevel);
  box-shadow: var(--ez-saffron-bevel-shadow);
  color: var(--ez-on-saffron);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.btn-cta:hover {
  background: var(--ez-saffron-bevel-hover);
  box-shadow: var(--ez-saffron-bevel-shadow-hover);
  color: var(--ez-on-saffron);
}

.btn-cta:active {
  box-shadow: var(--ez-saffron-bevel-shadow-active);
}

.btn-cta--sm {
  height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
}

.btn-cta--md {
  height: 44px;
  padding: 12px 28px;
  font-size: 14px;
  line-height: 20px;
}

.btn-cta--lg {
  height: 54px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  line-height: 24px;
}

/* The old violet brand mark some buttons still carry: the site's buttons
 * have no logo, and it would not read on saffron. */
.btn-cta__mark {
  display: none;
}

/* ===================================================================== */
/* Page shell                                                             */
/* ===================================================================== */

.page {
  /* --content-width is the width of the CARD, as drawn in Figma. Because
   * box-sizing is border-box, max-width includes the side padding, so the
   * gutter has to be added back or every card renders 24px narrow. */
  max-width: calc(var(--content-width) + (var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 28px var(--page-gutter) 64px;
}

.pov-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 8px;
}

.pov-tag__state {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pov-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.pov-tag__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.pov-tag--live .pov-tag__dot {
  background: var(--state-live);
}
.pov-tag--live .pov-tag__text {
  color: var(--state-live);
}
.pov-tag--locked .pov-tag__dot {
  background: var(--state-locked);
}
.pov-tag--locked .pov-tag__text {
  color: var(--state-locked);
}
.pov-tag--paid .pov-tag__dot {
  background: var(--state-paid);
}
.pov-tag--paid .pov-tag__text {
  color: var(--state-paid);
}

.pov-tag__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--hairline);
}

/* ===================================================================== */
/* Card primitives                                                        */
/* ===================================================================== */

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ez-line);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: var(--ez-card-shadow);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 16px 12px;
}

.card__head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card__body {
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 5px 12px;
  border: 0.5px solid var(--accent-55);
  border-radius: var(--radius-pill);
  background: var(--accent-20);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
  white-space: nowrap;
}

.badge__icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-70);
  white-space: nowrap;
}

.meta__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--state-live-dot);
  opacity: 0.71;
  flex-shrink: 0;
}

.author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author__avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: var(--radius-pill);
  object-fit: cover;
}

/* A person's name plus its verified mark, as one inline unit. Cards drop this
   inside the element they already style as the name, so it has to bring its own
   layout: inline-flex keeps the mark on the name's line, and the inner text
   takes the ellipsis so a long name never eats the badge. */
.pname {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  min-width: 0;
}

.pname__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The verified mark, beside a name. Sized in em so it matches whatever row it
   lands in — the app draws a 16px mark next to a 15px name — and spaced by the
   4px the app puts between them. Never shrinks: a long name ellipsizes and the
   mark stays. */
.verified {
  flex: 0 0 auto;
  display: inline-block;
  width: auto;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.14em;
}

.card__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--text);
}

.card__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 22.75px;
  color: var(--text-70);
}

.card__cta {
  margin-top: 12px;
}

/* ---- Gates that size their container -------------------------------- */

/* A container that sizes to its gate instead of clipping it.

   Gate copy has no fixed length: a community name can run to a hundred
   characters and a service can supply the wording outright, so a designed
   height is a floor rather than a ceiling. The trick is inverting the two
   layers — the media becomes the backdrop and the gate is what has height.
   Each card keeps its own floor and names its own backdrop; this is the half
   they share. */
.fits-gate {
  display: flex;
  height: auto;
}

/* Keeps .gate's own `padding: 0 24px`. Vertical padding here would be added
   to the gate's height and so to the container's, which puts every card whose
   gate already fills its frame above its floor, even on ordinary copy. The
   floor exists to leave short copy untouched, so the gate has to measure as
   its content alone. */
.fits-gate > .gate {
  position: relative;
  inset: auto;
  flex: 1;
}

.is-blurred {
  filter: blur(6px);
}

/* ---- Gate overlay ---------------------------------------------------- */

.gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  text-align: center;
  background: var(--overlay-strong);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.gate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  border: 1px solid var(--surface-raised-border);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
}

.gate__icon img {
  width: 20px;
  height: 20px;
}

.gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

.gate__text {
  margin: 0;
  font-size: 14px;
  line-height: 22.75px;
  color: var(--text-70);
}

/* ---- Panel (message / detail previews) ------------------------------- */

.panel {
  position: relative;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--surface-panel-border);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
}

.panel__label {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-50);
}

/* Skeleton bars stand in for message text behind a gate. */
.skel {
  display: block;
  border-radius: 6px;
  background: var(--skeleton-weak);
}

.skel--name {
  width: 132.5px;
  height: 10px;
  background: var(--skeleton-strong);
}

.skel--line {
  width: 397.5px;
  max-width: 100%;
  height: 8px;
  margin-top: 4px;
}

/* ===================================================================== */
/* Responsive                                                             */
/* ===================================================================== */

@media (max-width: 680px) {
  .header__inner {
    padding: 10px 14px;
  }
}

/* ===================================================================== */
/* Open-in-app affordance (Android)                                       */
/* ===================================================================== */

/* Hidden by default and revealed only for Android user agents by the
 * inline script in the content layout. iOS gets the native Smart App
 * Banner instead, and desktop needs neither. */
.open-in-app {
  display: none;
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: 13px;
}

.open-in-app a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.is-android .open-in-app {
  display: block;
}

/* ===================================================================== */
/* Share                                                                  */
/* ===================================================================== */

/* Sits below the card with a clear gap, so it reads as an action ON the
 * content rather than part of it. The button itself wears the shared
 * .btn-cta classes, so there is nothing to style here beyond that spacing.
 *
 * The .js rule is load-bearing rather than decorative: the flex parent is
 * what stretches the button to the card's width. Without scripting the
 * button renders at content width and does nothing when pressed, since both
 * behaviours behind it — the native share sheet and the clipboard fallback —
 * need JS. */
.share {
  margin-top: 48px !important;
}

.js .share {
  display: flex;
}

/* The icon-only share button, for a bar that has no room for a full-width
 * one (the Broadcast Call listener). Hidden without JS like the full one. */
.share-round {
  display: none;
  flex: none;
}

.js .share-round {
  display: block;
}

.share-round__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--ez-ivory-12);
  border-radius: var(--radius-pill);
  background: var(--ob-ink-07);
  color: var(--text);
  cursor: pointer;
}

.share-round__btn:hover {
  background: var(--ez-ivory-12);
}

/* "Link copied" floats above the button: there is no label to swap. */
.share-round__toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px 10px;
  border: 1px solid var(--surface-raised-border);
  border-radius: 8px;
  /* Solid, unlike --surface-raised: it floats over the listener's stage. */
  background: var(--ez-card);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.share-round__toast:empty {
  display: none;
}

/* ---- Clamped copy ------------------------------------------------------
 *
 * Collapses long descriptions and captions to a fixed line count, with the
 * more/less toggle inline at the end of the last visible line.
 *
 * -webkit-line-clamp cannot do that: it hides the overflow, and anything
 * placed after the text is part of that overflow. So clamp.js cuts the text
 * itself, to a length that leaves room for the toggle on the last line, and
 * the clamp below is only the pre-JS floor that stops a long paragraph
 * flashing at full height before the script runs.
 *
 * All of it is gated on .js: without scripting the toggle cannot work, and a
 * permanently cut description would hide content outright, so a no-JS reader
 * gets the whole thing.
 *
 * The line count arrives as a data attribute rather than an inline style —
 * html/template refuses to interpolate into a style attribute. */

.clamp {
  display: block;
}

.clamp[data-clamp-lines="2"] { --clamp-lines: 2; }
.clamp[data-clamp-lines="3"] { --clamp-lines: 3; }
.clamp[data-clamp-lines="4"] { --clamp-lines: 4; }
.clamp[data-clamp-lines="5"] { --clamp-lines: 5; }
.clamp[data-clamp-lines="6"] { --clamp-lines: 6; }

/* Pre-JS floor only. Once clamp.js has trimmed the text the element goes back
   to normal flow — a clamped box would clip the very toggle we just made room
   for. */
.js .clamp:not(.is-measured) .clamp__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 2);
  line-clamp: var(--clamp-lines, 2);
  overflow: hidden;
}

/* Inherit the type so the toggle shares a baseline with the words it follows;
   only the weight and colour set it apart. Never let it wrap on its own. */
.clamp__toggle {
  display: inline;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--text-72);
  white-space: nowrap;
  cursor: pointer;
}

.clamp__toggle:hover {
  color: var(--text);
}

.clamp__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* An explicit rule is required: the display above would otherwise beat the
   hidden attribute's default styling. */
.clamp__toggle[hidden] {
  display: none;
}


/* ---- Media carousel ----------------------------------------------------
 *
 * A drop can carry several images or videos. The track is a scroll-snap list,
 * which means swiping and trackpad scrolling work with no JavaScript at all;
 * carousel.js only adds the arrows, dots and counter on top, and they ship
 * hidden so a no-JS reader never sees a dead control. */

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Firefox and the standard property; the WebKit rule below hides the bar in
     Safari and Chrome. The track stays keyboard-scrollable either way. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Every slide shares one row height, so without a definite box the tallest
   image sets it: a single portrait shot stretched the frame and left every
   landscape slide stranded at the top above a band of dead space, and the
   scrim then washed the bottom of the tall ones. One bounded viewport with the
   media centred inside it letterboxes mixed aspect ratios symmetrically
   instead, and nothing is cropped.

   Only the carousel does this. A single-media drop keeps its natural height. */
.carousel__track {
  aspect-ratio: 1 / 1;
  max-height: 70vh;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel__slide > img,
.carousel__slide > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--surface-raised-border);
  border-radius: var(--radius-pill);
  background: var(--overlay-strong);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }

.carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel__nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel__count {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--overlay-strong);
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel__dot {
  display: block;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text-50);
  cursor: pointer;
}

.carousel__dot[aria-current="true"] {
  background: var(--text);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Explicit rules: the displays above would otherwise beat the hidden
   attribute's default styling. */
.carousel__nav[hidden],
.carousel__count[hidden],
.carousel__dots[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    scroll-behavior: auto;
  }
}

/* ---- Community attribution ---------------------------------------------
 *
 * Content that lives in a community names it above the author, with the
 * community's picture stacked behind the author's — the same treatment the
 * app's feed cards use. Personal content renders its usual author row and
 * never reaches these rules. */

.author-community {
  /* One avatar. Every other number in the stack is derived from it, the way
     the app derives them from EAccountAvatar's `size`. */
  --avatar: 34px;

  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* The community sits behind and above-left of the author. The geometry is the
   app's, from FeedAuthorHeader._buildAvatar and the story header: two avatars
   of the SAME size in a box 1.4x one of them, the community at the top left and
   the author at the bottom right — so the offset is 0.4 of an avatar. */
.author-community__stack {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--avatar) * 1.4);
  height: calc(var(--avatar) * 1.4);
}

.author-community__stack--solo {
  width: var(--avatar);
  height: var(--avatar);
}

.author-community__behind,
.author-community__front {
  position: absolute;
  object-fit: cover;
}

/* A rounded square, not a circle: EAccountAvatar draws a community as
   BoxShape.rectangle, which is what tells the two apart at a glance. Its corner
   is the widget's own `size / 5`. */
.author-community__behind {
  top: 0;
  left: 0;
  width: var(--avatar);
  height: var(--avatar);
  border-radius: calc(var(--avatar) / 5);
}

/* Offset down-right so the community peeks out at the top left. The app draws
   no ring here — the round author against the square community is what reads as
   "in front" — so neither do we. */
.author-community__front {
  top: calc(var(--avatar) * 0.4);
  left: calc(var(--avatar) * 0.4);
  width: var(--avatar);
  height: var(--avatar);
  border-radius: 50%;
  z-index: 1;
}

/* With no community picture there is nothing to offset from. */
.author-community__stack--solo .author-community__front {
  top: 0;
  left: 0;
}

.author-community__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The community line sits UNDER the person and carries the sub-line with it,
   separated by a middot — one line, not two. */
.author-community__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-72);
  min-width: 0;
}

.author-community__name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.author-community__name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-community__name > img {
  flex: 0 0 auto;
}

.author-community__person {
  display: flex;
  align-items: baseline;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

/* The name is the part that gives up room: "started this" is the same width on
   every card, the name is not. */
.author-community__who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A label about what the author did belongs on the author's line, not on the
   community's. It stays quiet so the name still reads first. */
.author-community__tag {
  flex: 0 0 auto;
  margin-left: 5px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-60);
}

.author-community__sub {
  flex: 0 0 auto;
  color: var(--text-60);
}

.author-community__dot {
  flex: 0 0 auto;
  color: var(--text-60);
}

/* ===================================================================== */
/* Site system utilities (eazdrop.com's site-system.css, for these pages) */
/* ===================================================================== */

/* Section eyebrow: Outfit 700, 16px, uppercase, 4px tracking, saffron, with
 * the tapered saffron rule (60 x 3px, 48px on phones) under it. Centred
 * text gets a centred rule: add .ez-eyebrow--center. On a light section
 * (.ez-light) it turns deep indigo; the rule stays saffron. */
.ez-eyebrow {
  margin: 0;
  color: var(--ez-saffron);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ez-eyebrow::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.6rem 0 0;
  border-radius: 50% / 50%;
  background: var(--ez-saffron);
}

.ez-eyebrow--center {
  text-align: center;
}

.ez-eyebrow--center::after {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 640px) {
  .ez-eyebrow {
    letter-spacing: 3px;
  }
  .ez-eyebrow::after {
    width: 48px;
  }
}

/* A card or panel: card indigo, ivory hairline, 12px, the soft shadow. */
.ez-panel {
  border: 1px solid var(--ez-line);
  border-radius: var(--ez-radius-card);
  background: var(--ez-card);
  box-shadow: var(--ez-card-shadow);
  color: var(--ez-text);
}

/* A light section: Ivory ground, deep indigo headings, plum-grey body,
 * deep indigo links underlined in saffron. Cards inside keep their own
 * (dark) surface unless they are .ez-panel--light. Use it for reading
 * content and footer-adjacent bands, not for app-like UI. */
.ez-light {
  background: var(--ez-ivory);
  color: var(--ez-ink-body);
}

.ez-light :is(h1, h2, h3, h4, h5, h6) {
  color: var(--ez-ink);
}

.ez-light .ez-eyebrow {
  color: var(--ez-ink-eyebrow);
}

.ez-light a:not([class]) {
  color: var(--ez-ink);
  text-decoration-color: var(--ez-saffron);
}

.ez-light :focus-visible {
  outline-color: var(--ez-ink);
}

.ez-panel--light {
  border-color: var(--ez-ink-line);
  background: var(--ez-pearl);
  box-shadow: var(--ez-light-card-shadow);
  color: var(--ez-ink-body);
}

/* Full-bleed waves on a light band's edges: add .ez-wave-top and/or
 * .ez-wave-bottom to an .ez-light block (it must not clip overflow-y). */
.ez-wave-top,
.ez-wave-bottom {
  position: relative;
}

.ez-wave-top::before,
.ez-wave-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 100vw;
  height: var(--ez-wave-h);
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.ez-wave-top::before {
  top: calc(var(--ez-wave-h) * -1 + 1px);
  background-image: var(--ez-wave-top-ivory);
}

.ez-wave-bottom::after {
  bottom: calc(var(--ez-wave-h) * -1 + 1px);
  background-image: var(--ez-wave-bottom-ivory);
}
