/* =====================================================================
   HME FED assets v1 — Home landing (not signed in and signed in)
   Transcribed from: Home landing pages (design), 13 Nov 2026
   Styles checked against: ISP stylesheet v7
   Prefix: hme-  ·  Mobile first: xs is the default, sm (576px) and up
   override. No global selectors: every rule starts with an hme- class.
   ===================================================================== */

:root {
  /* breakpoints: read by the script if it ever needs one. Media queries
     cannot read custom properties, so the value is repeated there once. */
  --hme-bp-sm: 576px;

  /* type */
  --hme-font: proxima-nova, "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;

  /* ink and text */
  --hme-ink: #20262B;               /* intro */
  --hme-text-secondary: #6E6863;    /* the notes under the buttons */
  --hme-white: #FFFFFF;

  /* actions */
  --hme-action: #066D72;            /* Dark teal: title, primary fill, secondary edge and label, links */
  --hme-action-hover: #00959C;      /* Bright teal: primary hover (fill and edge), primary focus fill */
  --hme-action-tint: #D7E9EA;       /* Teal tint: secondary hover and focus */
  --hme-link-line: 1px;             /* link underline at rest */
  --hme-link-line-hover: 2px;       /* link underline on hover (the colour stays Dark teal) */

  /* badge */
  --hme-badge: #DD0707;             /* Red: count badge on Make a submission */

  /* states */
  --hme-link-focus-shade: rgba(87, 83, 78, .10);
  --hme-focus-shadow: 0 0 0 3px rgba(32, 38, 43, .18), 0 2px 8px rgba(32, 38, 43, .22);
  --hme-transition: background-color .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out;

  /* surfaces and lines */
  --hme-page: #FCFAF6;
  --hme-line: #E4E1DC;              /* card edge */
  --hme-shadow-card: 0 12px 30px rgba(50, 59, 66, .16);

  /* radii */
  --hme-radius-card: 10px;
  --hme-radius-btn: 8px;

  /* sizes: xs (below 576px) */
  --hme-card-padding: 28px 20px 28px;
  --hme-card-gap: 14px;
  --hme-title-size: 28px;
  --hme-intro-size: 14px;
  --hme-btn-size: 14px;
  --hme-btn-padding: 12px 20px;
  --hme-actions-gap: 10px;
  --hme-note-size: 12.5px;
  --hme-badge-size: 20px;
  --hme-badge-text: 11.5px;
  --hme-badge-top: -9px;
  --hme-badge-right: -7px;

  /* fixed at every width */
  --hme-card-max: 720px;
  --hme-intro-signed-in-max: 560px;
  --hme-notes-gap: 14px;
}

@media (min-width: 576px) {
  :root {
    --hme-card-padding: 48px 56px 44px;
    --hme-card-gap: 20px;
    --hme-title-size: 44px;
    --hme-intro-size: 18px;
    --hme-btn-size: 16px;
    --hme-btn-padding: 14px 32px;
    --hme-actions-gap: 14px;
    --hme-note-size: 14px;
    --hme-badge-size: 24px;
    --hme-badge-text: 12.5px;
    --hme-badge-top: -11px;
    --hme-badge-right: -9px;
  }
}

/* ---------- page ---------- */

.hme-page-body {
  margin: 0;
  background: var(--hme-page);
  font-family: var(--hme-font);
  color: var(--hme-ink);
}

/* The sample page stacks every state; in production one section shows. */
.hme-app {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 40px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.hme-home {
  box-sizing: border-box;
  width: 100%; /* the section fills the page column; the card caps itself at 720px */
  max-width: var(--hme-card-max);
}

/* ---------- card ---------- */

.hme-card {
  box-sizing: border-box;
  background: var(--hme-white);
  border: 1px solid var(--hme-line);
  border-radius: var(--hme-radius-card);
  box-shadow: var(--hme-shadow-card);
  padding: var(--hme-card-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hme-card-gap);
  text-align: center;
}

.hme-title {
  margin: 0;
  font-weight: 700;
  font-size: var(--hme-title-size);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--hme-action);
}

.hme-intro {
  margin: 0;
  font-size: var(--hme-intro-size);
  line-height: 1.55;
  color: var(--hme-ink);
  text-wrap: pretty;
}

.hme-intro--signed-in {
  max-width: var(--hme-intro-signed-in-max);
}

/* ---------- actions ---------- */

/* xs: buttons stack and fill the card (design). sm and up: side by side. */
.hme-actions {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: center;
  gap: var(--hme-actions-gap);
  margin: 8px 0 4px;
}

.hme-btn {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--hme-btn-size);
  line-height: 1;
  border-radius: var(--hme-radius-btn);
  border: 1.5px solid var(--hme-action);
  padding: var(--hme-btn-padding);
  cursor: pointer;
  transition: var(--hme-transition);
}

.hme-btn:focus-visible {
  outline: none;
  box-shadow: var(--hme-focus-shadow);
}

.hme-btn--primary {
  color: var(--hme-white);
  background: var(--hme-action);
}

.hme-btn--primary:hover {
  background: var(--hme-action-hover);
  border-color: var(--hme-action-hover);
}

/* focus: Bright teal fill, Dark teal edge kept */
.hme-btn--primary:focus-visible {
  background: var(--hme-action-hover);
  border-color: var(--hme-action);
}

.hme-btn--secondary {
  color: var(--hme-action);
  background: var(--hme-white);
}

.hme-btn--secondary:hover,
.hme-btn--secondary:focus-visible {
  background: var(--hme-action-tint);
}

/* ---------- count badge ---------- */

.hme-badge {
  box-sizing: border-box;
  position: absolute;
  top: var(--hme-badge-top);
  right: var(--hme-badge-right);
  min-width: var(--hme-badge-size);
  height: var(--hme-badge-size);
  padding: 0 6px;
  border-radius: 999px;
  background: var(--hme-badge);
  color: var(--hme-white);
  border: 2px solid var(--hme-white);
  font-size: var(--hme-badge-text);
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- notes and link ---------- */

.hme-notes {
  display: flex;
  flex-direction: column;
  gap: var(--hme-notes-gap);
}

.hme-note {
  margin: 0;
  font-size: var(--hme-note-size);
  line-height: 1.5;
  color: var(--hme-text-secondary);
  text-wrap: pretty;
}

/* keeps the two lines closer in length on phones */
.hme-note--account {
  text-wrap: balance;
}

.hme-link {
  color: var(--hme-action);
  text-decoration-line: underline;
  text-decoration-thickness: var(--hme-link-line);
  text-underline-offset: 2px;
  transition: text-decoration-thickness .15s ease-out;
}

.hme-link:hover {
  color: var(--hme-action);
  text-decoration-thickness: var(--hme-link-line-hover);
}

.hme-link:focus-visible {
  outline: none;
  border-radius: 4px;
  padding: 1px 3px;
  margin: 0 -3px;
  background-color: var(--hme-link-focus-shade);
  box-shadow: var(--hme-focus-shadow);
}

/* ---------- sm (576px) and up ---------- */

@media (min-width: 576px) {
  .hme-actions {
    flex-direction: row;
    align-self: center;
  }
}
