/* Terra Tag customer pages: login, purchase confirmation, account (Task 4.9).
   Uploaded to public_html and linked ONLY from those WordPress pages' own
   Custom HTML blocks. Never loaded site-wide.

   ⛔ EVERY SELECTOR STARTS WITH `.tt-wp`. The page wraps its own content in
   `<div class="tt-wp">`; nothing outside that wrapper can be touched by this
   file. A selector without `.tt-wp` is a defect (checked by script).

   ⛔ DESIGN SYSTEM FIRST. Every value below is copied from the guide's
   `production-guide-static-shell.css` and named after its Design System section
   (`02_Current Content/Design System/manual-design-system.md`). Change the
   Design System, then this file — never this file alone. The two pieces that
   are new (full-picture hero, fields without the grey panel) are recorded in
   the Design System under "Customer pages (WordPress)". */

/* ── Tokens (Design System: Core Tokens) ───────────────────────────────── */
.tt-wp {
  --tt-font: "Public Sans", Arial, Helvetica, sans-serif;
  --tt-text: #1a1a1a;
  --tt-muted: #696969;
  --tt-card-pink: #faeff4;
  --tt-blue: #2f5bea;
  --tt-blue-hover: #2a55e0; /* product page accessibility colour (DECISIONS) */
  --tt-purple: #4F3B7A;
  --tt-purple-hover: #3E2E61;
  --tt-accent: #91099E;
  --tt-border: rgba(0, 0, 0, .10);
  --tt-panel-radius: 10px;
  --tt-kicker-heading-gap: 14px;

  box-sizing: border-box;
  color: var(--tt-text);
  font-family: var(--tt-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 32px 0 48px;

  /* The theme's content column is 960px; the design is 1160px. The wrapper
     breaks out of the column, centred, the same way the Design Kit header
     does (measured live 2 October 2026: at 960px the kicker wrapped and the
     login picture was trimmed; at 1160px card and picture are both 502px). */
  --tt-wp-width: min(1160px, calc(100vw - 64px));
  margin-left: calc((100% - var(--tt-wp-width)) / 2);
  margin-right: calc((100% - var(--tt-wp-width)) / 2);
  max-width: none;
  width: var(--tt-wp-width);
}

/* The theme styles bare elements; inside the wrapper they follow the guide. */
.tt-wp *,
.tt-wp *::before,
.tt-wp *::after {
  box-sizing: inherit;
}

.tt-wp :is(h1, h2, h3, p, ul, ol) {
  color: inherit;
  font-family: var(--tt-font);
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

.tt-wp a {
  color: var(--tt-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tt-wp a:hover {
  text-decoration-thickness: 2px;
}

/* ── Kicker (Typography Scale: Labels and metadata) ─────────────────────── */
.tt-wp .tt-kicker {
  color: var(--tt-muted);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  text-transform: uppercase;
}

.tt-wp .tt-kicker:has(+ :is(h1, h2)) {
  margin-bottom: var(--tt-kicker-heading-gap);
}

/* ── Landing hero (Component Inventory: Step Hero / landing hero) ───────── */
.tt-wp .tt-landing-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 16px;
}

.tt-wp .tt-landing-hero-card {
  background: var(--tt-card-pink);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
}

.tt-wp .tt-landing-hero-card h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 14px;
}

.tt-wp .tt-landing-hero-card p {
  font-size: 16px;
  line-height: 24px;
}

.tt-wp .tt-landing-hero-image {
  background: #dddaf8;
  border-radius: 15px;
  overflow: hidden;
}

.tt-wp .tt-landing-hero-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tt-wp .tt-landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* NEW (login page): the picture shows in full and sets the height; the card
   takes the narrower column and matches it. 38 / 62 measured so both are the
   same height at desktop width (Rhonda, 2 October 2026). No lavender behind it. */
.tt-wp .tt-landing-hero--full-image {
  align-items: stretch;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
}

.tt-wp .tt-landing-hero--full-image .tt-landing-hero-image {
  background: none;
}

/* ── Buttons (14A Buttons In A Panel; Home hero exception) ──────────────── */
/* Hero button: the Home hero's blue `Start Step 1`. */
.tt-wp .tt-primary-action--hero {
  align-items: center;
  appearance: none;
  background: var(--tt-blue);
  border: 0;
  border-radius: 100px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  line-height: 24px;
  min-height: 52px;
  min-width: 240px;
  padding: 12px 24px;
  text-decoration: none;
  white-space: nowrap;
}

.tt-wp .tt-primary-action--hero:hover {
  background: var(--tt-blue-hover);
  color: #fff;
}

/* Panel button: the filled purple primary action, centred in its row. */
.tt-wp .tt-inline-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.tt-wp .tt-primary-action {
  align-items: center;
  background: var(--tt-purple);
  border: 0;
  border-radius: 100px;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  line-height: 24px;
  min-height: 48px;
  min-width: min(240px, 100%);
  padding: 14px 22px;
  text-decoration: none;
  white-space: nowrap;
}

.tt-wp .tt-primary-action:hover {
  background: var(--tt-purple-hover);
  color: #fff;
}

.tt-wp :is(.tt-primary-action, .tt-primary-action--hero, a, input, button):focus-visible {
  outline: 2px solid var(--tt-text);
  outline-offset: 2px;
}

/* ── Fields (11B Support Form fields; NEW: without the grey panel) ──────── */
.tt-wp .tt-field-grid {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.tt-wp .tt-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.tt-wp .tt-field label {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.tt-wp .tt-field input {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.16);
  border-radius: 10px;
  box-shadow: none;
  color: var(--tt-text);
  font: inherit;
  min-width: 0;
  padding: 12px 14px;
  width: 100%;
}

/* ── White panel (16 Status / Validation panels) ────────────────────────── */
.tt-wp .tt-panel {
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-panel-radius);
  padding: 18px;
}

.tt-wp .tt-panel h3 {
  font-size: 24px;
  font-weight: 475;
  line-height: 32px;
  margin-bottom: 8px;
}

.tt-wp .tt-panel p + p {
  margin-top: 8px;
}

.tt-wp .tt-panel-pair {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tt-wp .tt-panel-tip {
  margin-top: 24px;
}

/* ── Numbered list (9 Numbered and Star Lists; Help "Quick checks") ─────── */
.tt-wp .tt-help-checks {
  background: #f6f5f8;
  border-radius: 18px;
  margin-top: 22px;
  padding: clamp(24px, 4vw, 36px);
}

.tt-wp .tt-help-checks h3 {
  font-size: 24px;
  font-weight: 475;
  line-height: 32px;
  margin-bottom: 12px;
}

.tt-wp .tt-help-check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.tt-wp .tt-list-item {
  align-items: start;
  display: grid;
  gap: 2px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.tt-wp .tt-list-marker {
  color: var(--tt-accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
}

.tt-wp .tt-list-text {
  font-size: 18px;
  line-height: 28px;
}

/* ── PMPro login form inside the login hero (NEW) ───────────────────────── */
/* ⛔ WHY THESE SELECTORS CARRY `#loginform`: PMPro 3.7.4 (`variation_1.css`)
   styles this form inside native CSS nesting, `.pmpro { .pmpro_section
   #loginform … }`, i.e. `.pmpro .pmpro_section #loginform …` — an id — so a
   class-only rule loses (measured 2 October 2026 against the live theme, PMPro and
   Additional CSS: labels 500 not 700, fields #777 / 8px, a full-width 8px
   button). Matching the id is the smallest change that wins; no !important.
   The look is the same Design System field and hero button as above. */
.tt-wp .tt-wp-login :is(.pmpro, .pmpro_section, .pmpro_card, .pmpro_card_content, .pmpro_card_actions) {
  background: none;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform {
  display: grid;
  gap: 14px;
  margin: 0;
  max-width: 460px;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform :is(.login-username, .login-password) {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

/* PMPro's label rule is `.pmpro .pmpro_section #loginform label:not(.pmpro_section
   #loginform .login-remember label)` — specificity (2,4,2) because :not() counts
   its argument. With PMPro's own wrappers in the chain, `:not(#tt-wp-none)` and
   `p`, this rule is (2,5,2) and wins outright. Still no !important. */
.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform:not(#tt-wp-none) :is(p.login-username, p.login-password) label {
  color: var(--tt-text);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin: 0;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform .input {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.16);
  border-radius: 10px;
  box-shadow: none;
  color: var(--tt-text);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  min-width: 0;
  padding: 12px 14px;
  width: 100%;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform .input:focus {
  border-color: var(--tt-text);
  box-shadow: none;
  outline: 2px solid var(--tt-text);
  outline-offset: 2px;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform .login-submit {
  margin: 8px 0 0;
  padding: 0;
}

/* The hero button (Home `Start Step 1`). */
.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform #wp-submit {
  appearance: none;
  background: var(--tt-blue);
  border: 0;
  border-radius: 100px;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  min-height: 52px;
  min-width: 240px;
  padding: 12px 24px;
  width: auto;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform #wp-submit:is(:hover, :focus) {
  background: var(--tt-blue-hover);
  border: 0;
  color: #fff;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section #loginform #wp-submit:focus-visible {
  outline: 2px solid var(--tt-text);
  outline-offset: 2px;
}

.tt-wp .tt-wp-login .pmpro_card_actions {
  margin-top: 16px;
}

/* Forgot-password and choose-a-new-password views (PMPro's own forms on the
   same page): the same Design System field, label and hero button. */
.tt-wp .tt-wp-login .pmpro .pmpro_section :is(.pmpro_form_fields, .pmpro_cols-2) {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 460px;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_form_field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_form_label {
  color: var(--tt-text);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin: 0;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_asterisk {
  display: none;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_form_input {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.16);
  border-radius: 10px;
  box-shadow: none;
  color: var(--tt-text);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 14px;
  width: 100%;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_form_input:focus {
  border-color: var(--tt-text);
  box-shadow: none;
  outline: 2px solid var(--tt-text);
  outline-offset: 2px;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_form_submit {
  margin: 22px 0 0;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_btn-submit {
  appearance: none;
  background: var(--tt-blue);
  border: 0;
  border-radius: 100px;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  min-height: 52px;
  min-width: 240px;
  padding: 12px 24px;
  width: auto;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_btn-submit:is(:hover, :focus) {
  background: var(--tt-blue-hover);
  color: #fff;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section :is(.pmpro_lost_password-instructions, .pmpro_message) {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 18px;
}

.tt-wp .tt-wp-login .pmpro .pmpro_section .pmpro_spacer {
  display: none;
}
