/* ==========================================================
   AHONIM — One Global Stylesheet
   Goal: airy, calm, modern. One width. No surprises.
   ========================================================== */

/* ----------------------------------------------------------
   Tokens
---------------------------------------------------------- */

:root{
  /* Layout */
  --wrap: 1120px;
  --pad: 24px;
  --radius: 18px;

  /* Surfaces */
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #fbfbf8;

  /* Text (calmer contrast) */
  --text: #222620;
  --muted: #5f6b5a;

  /* Palette */
  --leaf: #6b7f5a;
  --sun: #d4a64f;
  --stone: #e6e1d6;

  /* Accent */
  --accent: var(--leaf);

  /* Tints */
  --leaf-tint: rgba(107,127,90,0.10);
  --sun-tint: rgba(212,166,79,0.14);
  --stone-tint: rgba(230,225,214,0.55);

  /* Lines and shadows */
  --line: rgba(34,38,32,0.12);
  --line-soft: rgba(34,38,32,0.06);

  --shadow-ink: rgba(34,38,32,0.06);
  --shadow: 0 18px 48px rgba(34,38,32,0.08);
  --shadow-soft: 0 10px 30px var(--shadow-ink);
  --shadow-sm: 0 1px 2px var(--shadow-ink);

  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Rhythm */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 26px;
  --space-5: 40px;
  --space-6: 56px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Glass */
  --ah-glass-1: rgba(255,255,255,.22);
  --ah-glass-2: rgba(255,255,255,.26);
  --ah-glass-3: rgba(255,255,255,.58);

  /* Ink opacities */
  --ah-ink-55: .55;
  --ah-ink-62: .62;
  --ah-ink-70: .70;

  /* Card page specific soft fills */
  --ah-soft-1: rgba(0,0,0,.018);
  --ah-soft-2: rgba(0,0,0,.028);
}

/* ----------------------------------------------------------
   Utilities
---------------------------------------------------------- */

.bg{ background: var(--bg); }
.surface{ background: var(--surface); }
.surface-soft{ background: var(--surface-soft); }

.tint-leaf{background: var(--leaf-tint) !important;}
.tint-sun{ background: var(--sun-tint); }
.tint-stone{ background: var(--stone-tint); }

/* Alias, because card.php uses tint-cream */
.tint-cream{ background: var(--stone-tint); }

.muted{ color: var(--muted); }
.center{ text-align: center; }

.small{ font-size: 0.9rem; }

/* ----------------------------------------------------------
   Row utility (global)
   ---------------------------------------------------------- */

.row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Quick spacing helpers used in templates */
.row-top{ margin-top: 16px; }

/* Keep legacy misspelling working */
.buttom-space-top{ margin-top: 16px; }

/* ----------------------------------------------------------
   Base
---------------------------------------------------------- */

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body.ahonim{
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }

:focus-visible{
  outline: 3px solid rgba(212,166,79,0.30);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ----------------------------------------------------------
   Layout
---------------------------------------------------------- */

.wrap,
.container{
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.layout-primary .wrap,
.layout-secondary .wrap,
.layout-tertiary .wrap{ max-width: var(--wrap); }

.section-block{ padding: var(--space-6) 0; }
.band-inner{ padding: var(--space-6) 0; }

/* Band helpers (simple, consistent) */
.band-surface{ background: transparent; }
.band-surface.tint-sun{ background: var(--sun-tint); }
.band-surface.tint-stone{ background: var(--stone-tint); }
.band-surface.tint-cream{ background: var(--stone-tint); }
.band-surface.tint-leaf{ background: var(--leaf-tint); }

/* ----------------------------------------------------------
   Typography
---------------------------------------------------------- */

h1, h2, h3{
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 720;
  color: var(--text);
}

h1{ font-size: 2rem; }
h2{ font-size: 1.45rem; }
h3{ font-size: 1.05rem; }

p{ margin: 0 0 12px; color: var(--muted); }

.section-kicker,
.eyebrow{
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-text,
.section-text{ max-width: 86ch; }

.prose p{ color: var(--muted); }
.prose ul{ margin: 10px 0 0 18px; color: var(--muted); }
.prose li{ margin: 6px 0; }
.prose strong{ color: var(--text); }

/* ----------------------------------------------------------
   Tier 1 — Profile typography polish (scoped)
---------------------------------------------------------- */

#tier1-profile .tier1-prose{
  max-width: 82ch;
}

#tier1-profile .tier1-prose p{
  margin: 0 0 14px;
}

#tier1-profile .tier1-prose p:first-child{
  font-style: italic;
  opacity: var(--ah-a-70);
}

#tier1-profile .tier1-prose ul{
  margin: 8px 0 0 18px;
}

#tier1-profile .tier1-prose li{
  margin: 8px 0;
}

#tier1-profile .tier1-prose p + ul{
  margin-top: 6px;
}

.card hr.soft-divider{
  border: none;
  height: 3px;
  background-color: rgba(0,0,0,0.12);
  margin: 20px 0;
}

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

.hero{
  padding: 72px 0 52px;
  text-align: center;
}

.hero .eyebrow{ display: inline-block; margin-bottom: 10px; }

.hero .hero-title{
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero .hero-text{
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
}

.hero .row{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;        /* space between buttons */
  justify-content: center;
  flex-wrap: wrap;     /* prevents crowding on smaller screens */
}

.hero-actions .btn {
  padding: 0.85rem 1.75rem;  /* slightly taller buttons */
  line-height: 1.2;
}

.hero-description {
  margin-bottom: 2.25rem;
}

@media (max-width: 720px){
  .hero{ padding: 54px 0 40px; text-align: left; }
  .hero .hero-title,
  .hero .hero-text{ margin-left: 0; margin-right: 0; }
  .hero .row{ justify-content: flex-start; }
  .hero .btn{ width: 100%; }
}
/* 30px margin-control */
.add-margin-top {
	margin-top: 30px;
}
.add-margin-bottom {
	margin-bottom: 30px;
}
.add-margin-left {
	margin-left: 30px;
}
.add-margin-right {
	margin-right: 30px;
}
/* ----------------------------------------------------------
   Header
---------------------------------------------------------- */

.ah-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.ah-header .wrap{
  padding-top: 6px;
  padding-bottom: 6px;
}

.ah-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.ah-nav-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark{
  width: 50px;
  height: 50px;
  display: inline-block;
}

.brand-mark img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-text > *{
  margin: 0;
}

.brand-name{
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-tagline{
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.9;
}

.ah-nav-right{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 23px;
  flex: 0 0 auto;
	width: 300px !important;
	height: 100px !important;
	background-color: red !important;
}

.nav-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: color 140ms var(--ease), transform 140ms var(--ease), filter 140ms var(--ease);
}

.nav-link:hover{ color: var(--text); }
.nav-link:active{ transform: translateY(0.5px); filter: brightness(0.95); }

.nav-link.is-active{
  color: var(--text);
  font-weight: 700;
}

.nav-link.is-active::after{
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  pointer-events: none;
}

@media (max-width: 720px){
  .brand-tagline{ display: none; }
  .ah-nav-right{ gap: 12px; }
  .nav-link{ font-size: 0.83rem; }
}

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34,38,32,0.10);
  background: var(--accent);
  color: #fff;

  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

  transition: transform 140ms var(--ease), filter 140ms var(--ease);
}

.btn:hover{ filter: brightness(0.95); }
.btn:active{ transform: translateY(0.5px); filter: brightness(0.92); }

.btn.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

/* ----------------------------------------------------------
   Cards / Surfaces
---------------------------------------------------------- */

.card,
.mini-card{
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(34,38,32,0.05);
}

.card{ padding: 22px; }
.mini-card{ padding: 16px; }

.mini-title{ margin: 0 0 6px; font-weight: 720; color: var(--text); }
.mini-text{ margin: 0; color: var(--muted); }

/* ----------------------------------------------------------
   Grids
---------------------------------------------------------- */

.grid-3,
.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

@media (min-width: 920px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
  .grid-2{ grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------
   Forms
---------------------------------------------------------- */

.field{ display: grid; gap: 6px; }
label{ font-size: 0.85rem; color: var(--muted); }
.req{ color: var(--sun); font-weight: 800; }

input,
select,
textarea{
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

textarea{ min-height: 120px; resize: vertical; }

.hint{
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 920px){
  .form-grid{ grid-template-columns: 1fr 1fr; }
}

/* Subscribe section should use the same form panel styling */
.band-subscribe .form-section {
  margin-top: 16px;
}

/* Button breathing inside the subscribe panel */
.band-subscribe .subscribe-action {
  padding-top: 18px;
}

.subscribe-action {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
	display: block !important;
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */

.ah-footer{
  margin-top: 56px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a{
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover{
  color: var(--text);
  text-decoration: underline;
}

/* -------------------------------------------------
   AHONIM — Section lock indicators
-------------------------------------------------- */

.lock {
  display: inline-flex;
  align-items: center;
  font-size: 1.1em;
  line-height: 1;
  margin-right: 0.4rem;
}

.lock[title="Unlocked"],
.lock[aria-label="Unlocked"]{
  display: none;
}

.lock[title="Locked"],
.lock[aria-label="Locked"]{
  opacity: 0.7;
}

.section-title-row{
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* =========================================================
   AHONIM — Assessment (edge-to-edge bands, consistent fields)
   Scope: body.ahonim-assessment
   ========================================================= */

.ahonim.ahonim-assessment main{ padding: 0; }
.ahonim.ahonim-assessment .wrap{ padding-left: var(--space-6); padding-right: var(--space-6); }

@media (max-width: 720px){
  .ahonim.ahonim-assessment .wrap{ padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* Hero band */
.ahonim.ahonim-assessment .assessment-hero{
  padding: var(--space-8) 0 var(--space-6);
}

.ahonim.ahonim-assessment .assessment-hero h1{
  margin: 0;
}

.ahonim.ahonim-assessment .assessment-hero .muted{
  margin-top: 10px;
  max-width: 70ch;
}

/* Band section rhythm */
.ahonim.ahonim-assessment .assessment-band{
  padding: var(--space-7) 0;
}

.ahonim.ahonim-assessment .assessment-band .band-head{
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.ahonim.ahonim-assessment .assessment-band .band-title{
  margin: 0;
  font-weight: 750;
}

.ahonim.ahonim-assessment .assessment-band .band-note{
  margin: 0;
  color: var(--muted);
  max-width: 78ch;
}

/* Form grid */
.ahonim.ahonim-assessment .form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

@media (max-width: 720px){
  .ahonim.ahonim-assessment .form-grid{ grid-template-columns: 1fr; }
}

/* Field */
.ahonim.ahonim-assessment .field{
  display: grid;
  gap: 8px;
}

.ahonim.ahonim-assessment label{
  font-size: 0.85rem;
  color: var(--muted);
}

.ahonim.ahonim-assessment .req{
  color: var(--sun);
  font-weight: 800;
}

/* Inputs, selects, textarea: consistent height and style */
.ahonim.ahonim-assessment input,
.ahonim.ahonim-assessment select,
.ahonim.ahonim-assessment textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(34,38,32,0.12);
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
}

.ahonim.ahonim-assessment input,
.ahonim.ahonim-assessment select{
  min-height: 46px;
}

.ahonim.ahonim-assessment textarea{
  min-height: 130px;
  resize: vertical;
}

/* Make selects visually match inputs */
.ahonim.ahonim-assessment select{
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(34,38,32,0.55) 50%),
    linear-gradient(135deg, rgba(34,38,32,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

/* Focus state: calm and obvious */
.ahonim.ahonim-assessment input:focus,
.ahonim.ahonim-assessment select:focus,
.ahonim.ahonim-assessment textarea:focus{
  outline: none;
  border-color: rgba(107,127,90,0.55);
  box-shadow: 0 0 0 4px rgba(107,127,90,0.14);
}

/* Helper text */
.ahonim.ahonim-assessment .hint{
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

/* Full-width field on desktop when needed */
.ahonim.ahonim-assessment .span-2{
  grid-column: 1 / -1;
}

/* Consent checkbox: styled, aligned, clickable row */
.ahonim.ahonim-assessment .check-row{
  display: grid;
  gap: 10px;
  margin-top: var(--space-2);
}

.ahonim.ahonim-assessment .check{
  display: flex;
  gap: 10px;
  align-items: center;   /* key change */
  line-height: 1.4;
  cursor: pointer;
}

.ahonim.ahonim-assessment .check input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  accent-color: rgba(107,127,90,0.95);
}

/* Actions band */
.ahonim.ahonim-assessment .assessment-actions{
  padding: var(--space-7) 0 var(--space-9);
}

.ahonim.ahonim-assessment .form-actions{
  display: grid;
  gap: 12px;
  align-items: start;
}

/* Button spacing: make it breathe */
.ahonim.ahonim-assessment .form-actions .btn{
  padding: 14px 18px;
  border-radius: 999px;
}

/* Divider inside bands if you keep it anywhere */
.ahonim.ahonim-assessment .divider{
  border: none;
  height: 1px;
  background: rgba(34,38,32,0.10);
  margin: var(--space-6) 0;
}

.ahonim.ahonim-assessment input[inputmode="numeric"]{
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   AHONIM — Card UI (token-driven, no hard-coded colors in components)
-------------------------------------------------------------------------- */

:root{
  /* Alphas (reusable) */
  --ah-a-22: .22;
  --ah-a-26: .26;
  --ah-a-55: .55;
  --ah-a-65: .65;
  --ah-a-70: .70;
  --ah-a-86: .86;

  /* Tokenized rgba surfaces (still derived from your existing palette) */
  --ah-surface-glass: rgba(255,255,255,var(--ah-a-86));
  --ah-surface-pill:  rgba(255,255,255,var(--ah-a-22));
  --ah-surface-soft:  rgba(255,255,255,var(--ah-a-26));

  /* Shadows (soft, not "lined") */
  --ah-shadow-soft: 0 14px 40px rgba(34,38,32,0.06);

  /* Focus ring */
  --ah-focus-ring: rgba(212,166,79,0.30);
}

/* Header as a surface (no rule lines) */
.ah-header{
  background: var(--ah-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--ah-shadow-soft);
}

/* Active nav "pill" */
.nav-link.is-active{
  background: var(--ah-surface-pill);
  border-radius: 999px;
  padding-left: .55rem;
  padding-right: .55rem;
}

/* Focus */
:focus-visible{
  outline: 3px solid var(--ah-focus-ring);
  outline-offset: 2px;
}

/* Card hero meta grid (not buttons) */
.meta-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;

  background: var(--ah-surface-pill);
  border-radius: 14px;
  padding: 12px 14px;
}

.meta-item{
  padding: 0 10px;
}

.meta-label{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: var(--ah-a-55);
  margin-bottom: 2px;
}

.meta-value{
  font-weight: 600;
  opacity: var(--ah-a-86);
}

/* Snapshot note italics */
.snapshot-note,
.tier-desc{
  font-style: italic;
  opacity: var(--ah-a-70);
}

/* Locks */
.ah-lock{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  opacity: var(--ah-a-70);
}

/* Hide open lock icons globally (Snapshot is always open anyway) */
.ah-lock-open{
  display: none;
}

/* Purchase panel */
.purchase-shell{
  margin-top: 14px;
}
.100w {
	display: block;
	width: 100%;
}
.purchase-row{
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--ah-surface-soft);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.purchase-row + .purchase-row{
  margin-top: 10px; /* no lines, just air */
}

.purchase-row:hover{
  background: var(--ah-surface-pill);
}

/* Selected option: use existing tint class if it's already defined */
.purchase-row.selected{
  /* If .tint-leaf exists in your system, this will feel native */
  background: var(--accent);
  color: #fff;
}

.purchase-title{
  font-weight: 700;
}

.purchase-note{
  font-size: .92rem;
  opacity: var(--ah-a-65);
}

.purchase-right{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
}

.was{
  display: none;
  opacity: var(--ah-a-55);
  text-decoration: line-through;
}

.btn-row-tight{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--leaf-tint);   /* same as inputs */
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  box-shadow:
    0 1px 2px var(--leaf);
}

/* ==========================================================
   AHONIM — Card purchase polish (card.php)
   Fixes: lock alignment, spacing, selected states, list striping,
   share form display rules, and nicer email fields.
   ========================================================== */

/* Card hero: focus line + centered CTA */
.ahonim-card .hero-center{
  text-align: center;
}

.ahonim-card .focus-block{
  margin: 18px auto 0;
  max-width: 720px;
  display: grid;
  gap: 6px;
}

.ahonim-card .focus-label{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ahonim-card .focus-body{
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.ahonim-card .btn-row{
  justify-content: center;
}

.ahonim-card .stack{
  display: grid;
  gap: var(--space-4);
}

/* Give breathing room between the "paid sections" cards */
.ahonim-card .card + .card{
  margin-top: 0; /* spacing handled by .stack gap */
}

/* Card header row alignment (title left, lock right) */
.ahonim-card .card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.ahonim-card .card-head h2{
  margin: 0;
}

.ahonim-card .tier-desc{
  margin: 6px 0 0;
}

/* Keep lock on the same line as title, far right */
.ahonim-card .ah-lock{
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 2px;
}

/* Button row spacing */
.ahonim-card .btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* When one of the 3 tier buttons is the active one */
.ahonim-card .btn.selected{
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--line);
}

/* Purchase list shell */
.ahonim-card .purchase-shell{
  margin-top: 14px;
}

.ahonim-card .purchase-list{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* Alternating row colors, gentle */
.ahonim-card .purchase-row{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(34,38,32,0.06);
  border-radius: 14px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  cursor: pointer;
  background: var(--ah-soft-1);
  transition: transform 140ms var(--ease), filter 140ms var(--ease), background 140ms var(--ease);
}

.ahonim-card .purchase-row:nth-child(even){
  background: var(--ah-soft-2);
}

.ahonim-card .purchase-row:hover{
  filter: brightness(0.98);
  background: var(--ah-surface-pill);
}

.ahonim-card .purchase-row:active{
  transform: translateY(0.5px);
}

/* Selected option */
.ahonim-card .purchase-row.selected{
  background: var(--accent);
  color: #fff;
  border-color: rgba(107,127,90,0.22);
  box-shadow: 0 10px 26px rgba(34,38,32,0.06);
}

.ahonim-card .purchase-title{
  font-weight: 750;
}

.ahonim-card .purchase-note{
  font-size: 0.92rem;
  opacity: var(--ah-a-65);
}

.ahonim-card .purchase-right{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 750;
}

.ahonim-card .was{
  opacity: var(--ah-a-55);
  text-decoration: line-through;
}

/* Share section polish */
.ahonim-card .share{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.ahonim-card .share-line{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ah-soft-1);
}

.ahonim-card .share-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: underline;
  color: var(--text);
}

/* Share fields — one friend per row: first | last | email */
.ahonim-card .share-form .fields{
  display: grid;
  gap: 12px 14px;               /* row gap | column gap */
  margin-top: 12px;

  /* 3 columns, stable and roomy */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Ensure wrappers and inputs fill their grid cells */
.ahonim-card .share-form .field{
  width: 100%;
}

.ahonim-card .share-form input{
  width: 100%;
  min-height: 46px;
}

/* Mobile stack */
@media (max-width: 920px){
  .ahonim-card .share-form .fields{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Hide Apply/Close unless the share form is open */
.ahonim-card .share-form{
  display: none;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(34,38,32,0.05);
  border: 1px solid rgba(34,38,32,0.06);
}

.ahonim-card .share-form.is-open{
  display: block;
}

.ahonim-card .form-head h3{
  margin: 0 0 6px;
}

.ahonim-card .share-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Small button sizing helper */
.ahonim-card .btn.btn-sm{
  padding: 10px 14px;
  font-size: 0.9rem;
}

/* Badge */
.ahonim-card .badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ah-surface-pill);
  margin-top: 12px;
  font-weight: 700;
}

/* Card sections: keep "Get ..." CTAs on the left */
.ahonim-card .card .btn-row{
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Lock badge — matches step number circles */
.ah-lock{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--sun-tint);
  box-shadow: 0 1px 2px var(--sun);
  font-size: 0.9rem;
}

/* Hide lock entirely when unlocked */
.ah-lock-open{
  display: none;
}

/* -------------------------------------------------
   AHONIM — Share form layout (match Identity spacing)
-------------------------------------------------- */

.ahonim-card .share-form{
  border-radius: 18px;
  padding: 18px;
}

.ahonim-card .share-form .fields{
  display: grid;
  gap: var(--space-4);
  margin-top: 12px;
}

/* One friend per row: First | Last | Email */
.ahonim-card .share-form .share-row{
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: var(--space-4);
}

/* Inputs should feel like the assessment form */
.ahonim-card .share-form input[type="text"],
.ahonim-card .share-form input[type_toggle="text"],
.ahonim-card .share-form input[type="email"]{
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34,38,32,0.12);
  background: var(--surface-soft);
}

@media (max-width: 920px){
  .ahonim-card .share-form .share-row{
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------
   AHONIM — Share friend rows (Identity-like layout)
-------------------------------------------------- */

.ahonim-card #shareFields{
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.ahonim-card .share-friend{
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.4fr;
  gap: 14px;
  align-items: start;
}

.ahonim-card .share-friend .friend-label{
  grid-column: 1 / -1;
  font-weight: 750;
  margin-bottom: 6px;
}

@media (max-width: 820px){
  .ahonim-card .share-friend{
    grid-template-columns: 1fr;
  }
}


/* Increase separation BETWEEN friends */
.ahonim-card #shareFields{
  gap: 28px;            /* more isolation per friend */
}

/* Force Share fields to stack one friend per row */
.ahonim-card #shareFields{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

/* Each friend row: 3 columns */
.ahonim-card #shareFields .share-friend{
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.4fr;
  gap: 5px;
  align-items: start;
  width: 100%;
}

/* Tighten label-to-field relationship */
.ahonim-card #shareFields .share-friend .friend-label{
  grid-column: 1 / -1;
  font-weight: 750;
  margin-bottom: 0px;   /* closer to inputs */
  line-height: 1.2;
}
@media (max-width: 820px){
  .ahonim-card #shareFields .share-friend{
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   Card header — mobile refinements
-------------------------------------------------- */
@media (max-width: 640px){

  /* Soften the hero vertical rhythm */
  .ahonim-card .hero-center{
    padding-top: 12px;
  }

  /* Meta strip: allow clean wrapping */
  .ahonim-card .meta-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .ahonim-card .meta-item{
    text-align: center;
  }

  /* Focus block: calmer on mobile */
  .ahonim-card .focus-block{
    margin-top: 20px;
    padding: 0 8px;
  }

  .ahonim-card .focus-label{
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    opacity: 0.7;
  }

  .ahonim-card .focus-body{
    font-size: 1rem;
    line-height: 1.45;
  }

  /* CTA: more separation from focus text */
  .ahonim-card .btn-row{
    margin-top: 22px;
  }

  .ahonim-card .btn{
    width: 100%;
    max-width: 320px;
  }
}

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

@media print{
  .ah-header,
  .ah-footer{
    position: static;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .nav-link.is-active::after{ display: none; }

  body.ahonim{
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .card, .mini-card{
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .btn{ display: none; }
}

/* ---------------------------------
   Informational notes (Tier 1+)
---------------------------------- */

.note {
  border-left: 4px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 14px;
  border-radius: 4px;
}

.note p {
  margin: 0;
  line-height: 1.5;
}

/* Subtle attention without alarm */
.note-warn {
  border-left-color: rgba(160, 120, 40, 0.6);
  background: rgba(160, 120, 40, 0.06);
}

/* Optional sizing helpers */
.note.small p {
  font-size: 0.875rem;
}

.note .muted {
  opacity: 0.75;
}

/* Tier 1 note placement */
.note-tier1 {
  margin-top: 12px;
}

.note-tier1 .note-text {
  margin: 0;
  font-size: 0.875rem;
}

/* ----------------------------------------------------------
   Long-link safety (URLs, examples, JSON endpoints)
---------------------------------------------------------- */

.wrap a,
.mini-text a,
.prose a {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* ----------------------------------------------------------
   Calendar service — compact helper rows
---------------------------------------------------------- */

.calendar-help-inline{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.calendar-help-inline .mini-text{
  margin: 0;
}

.calendar-help-inline strong{
  color: var(--text);
}

.marginTop2rem {
	margin-top: 2rem;
}

/* ====== Share Profile Button ====== */

.ah-share-profile-btn {
  background: #111111;
  border: 1px solid #111111;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.18);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ah-share-profile-btn:hover,
.ah-share-profile-btn:focus {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.24);
  transform: translateY(-1px);
}

.ah-share-profile-btn:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.28);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .nav-link-how {
    display: none;
  }
}