@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
:root {
  --cream: #f4eddf;
  --paper: #fffdf8;
  --brown: #614838;
  --dark: #351407;
  --peach: #f9ae8e;
  --orange: #f5834e;
  --blue: #8399ac;
  --sage: #d8d8aa;
  --olive: #b1a44f;
  --yellow: #f6c946;
  --lemon: #f2e45c;
  --line: rgba(97, 72, 56, 0.2);
  --shadow: 0 18px 55px rgba(53, 20, 7, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    url("assets/brand-leaf-soft.png"),
    url("assets/brand-star.png"),
    url("assets/brand-wattle.png"),
    url("assets/brand-branch.png"),
    url("assets/brand-grass.png");
  background-position:
    -105px 155px,
    calc(100% + 54px) 215px,
    calc(100% + 115px) 860px,
    -135px 1180px,
    calc(100% + 72px) calc(100% - 80px);
  background-size: 250px, 165px, 330px, 300px, 220px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--brown);
  font-family: Bricolage, Arial, sans-serif;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  z-index: 50;
  padding: 10px;
  background: white;
}
.skip-link:focus {
  top: 15px;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(244, 237, 223, 0.96);
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.brand-logo:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.brand-logo img {
  width: 125px;
  display: block;
}
.brand-title {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--brown);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-decoration: none;
}
.brand-title:hover {
  color: var(--orange);
}
.brand-title:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 700;
}
.account > div {
  display: grid;
}
.account small {
  text-transform: capitalize;
}
.account button {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--brown);
  text-decoration: underline;
  cursor: pointer;
}
.loading,
.error {
  min-height: calc(100vh - 82px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.loading span {
  width: 36px;
  height: 36px;
  border: 4px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
h1,
h2,
h3 {
  margin-top: 0;
  color: var(--dark);
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}
.kicker,
.meta {
  margin: 0 0 9px;
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary,
.secondary {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--brown);
  border-radius: 99px;
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
}
.primary {
  background: var(--yellow);
}
.review-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--paper) 0 64%, #f3dfd4 100%);
  box-shadow: var(--shadow);
}
.review-section::before {
  position: absolute;
  right: -22px;
  bottom: -36px;
  width: 150px;
  height: 150px;
  background: url("assets/brand-leaf.png") center / contain no-repeat;
  content: "";
  opacity: 0.13;
  transform: rotate(-12deg);
  pointer-events: none;
}
.secondary {
  background: transparent;
}
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.auth-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 82px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 75px;
  align-items: center;
  padding: 60px 0;
}
.auth-copy {
  max-width: 520px;
}
.auth-copy h1 {
  font-size: clamp(4rem, 7vw, 6.5rem);
}
.auth-copy h1 em {
  color: var(--orange);
  font-weight: 400;
}
.auth-copy > p {
  font-size: 1.08rem;
}
.auth-copy form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.auth-copy label,
.editor label,
dialog label,
.filters label {
  display: grid;
  gap: 7px;
  color: var(--dark);
  font-weight: 700;
}
.auth-copy input,
.editor input,
.editor select,
.editor textarea,
dialog input,
dialog select,
.filters input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--dark);
}
.form-note {
  font-size: 0.75rem;
  color: #725e53;
}
.auth-art {
  position: relative;
}
.auth-art:before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border-radius: 48% 48% 20px 20px;
  background: var(--sage);
}
.auth-art img {
  position: relative;
  width: 100%;
  height: 590px;
  display: block;
  object-fit: cover;
  border-radius: 48% 48% 20px 20px;
}
.demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.demo-links a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--brown);
}
code {
  padding: 2px 5px;
  background: white;
  border-radius: 4px;
}
.journal-hero {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: center;
  padding: 65px 0;
}
.journal-hero h1 {
  font-size: clamp(4rem, 7vw, 6.8rem);
}
.journal-hero h1 em {
  color: var(--orange);
  font-weight: 400;
}
.journal-hero > div > p:not(.kicker) {
  max-width: 530px;
  font-size: 1.08rem;
}
.journal-hero > img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 48% 48% 18px 18px;
  box-shadow: var(--shadow);
}
.progress-copy {
  display: flex;
  justify-content: space-between;
  max-width: 480px;
  margin-top: 35px;
  font-size: 0.78rem;
}
.progress {
  max-width: 480px;
  height: 9px;
  margin-top: 8px;
  border-radius: 99px;
  background: #e1d5c7;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}
.journal-head {
  width: min(960px, calc(100% - 40px));
  margin: 30px auto 45px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.journal-head h2 {
  font-size: 3.5rem;
}
.private-pill {
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--sage);
  font-size: 0.72rem;
  font-weight: 700;
}
.timeline {
  width: min(960px, calc(100% - 40px));
  margin: auto;
  display: grid;
  gap: 36px;
}
.entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
}
.day {
  display: grid;
  place-items: center;
  align-self: start;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
}
.day b {
  font:
    1.6rem/1 Instrument,
    serif;
}
.day span {
  font-size: 0.58rem;
  text-transform: uppercase;
}
.entry-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) 1.28fr;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.entry-card > img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}
.entry-body {
  padding: 34px;
}
.entry-body h3 {
  margin: 10px 0 14px;
  font-size: 2.4rem;
}
.entry-body footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.heart {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--brown);
  cursor: pointer;
}
.heart.active {
  color: #c65331;
  background: #fff0e8;
}
.privacy-note {
  max-width: 680px;
  margin: 70px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}
.privacy-note p {
  margin: 4px 0 0;
  font-size: 0.82rem;
}
.portal-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 82px);
}
.side {
  display: flex;
  flex-direction: column;
  padding: 28px 17px;
  background: var(--brown);
  color: white;
}
.side .kicker,
.side h2 {
  color: white;
}
.side h2 {
  font-size: 2rem;
}
.side a {
  padding: 11px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
}
.side a.active {
  background: var(--yellow);
  color: var(--dark);
}
.security-card {
  margin-top: auto;
  padding: 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.75rem;
}
.security-card small {
  color: rgba(255, 255, 255, 0.68);
}
.workspace {
  position: relative;
  width: min(900px, calc(100% - 50px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.workspace::after {
  position: absolute;
  top: 24px;
  right: -78px;
  z-index: -1;
  width: 120px;
  height: 120px;
  background: url("assets/brand-billy-two.png") center / contain no-repeat;
  content: "";
  pointer-events: none;
  transform: rotate(8deg);
}
.workspace > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.workspace h1 {
  margin-bottom: 8px;
  font-size: 4rem;
}
.workspace header p:last-child {
  max-width: 590px;
}
.draft-badge {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
}
.editor {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
.editor .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.editor label > small {
  text-align: right;
  color: #79675e;
  font-size: 0.7rem;
}
.upload {
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: 12px;
}
.upload input {
  padding: 0;
  border: 0;
}
.confirm {
  grid-template-columns: 22px 1fr !important;
  align-items: start;
  padding: 14px;
  background: var(--cream);
  border-radius: 10px;
}
.confirm input {
  width: 20px;
  height: 20px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
}
.permissions {
  width: min(1050px, calc(100% - 50px));
}
.filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 30px 0 15px;
}
.filters label {
  width: min(440px, 60%);
}
.filters span {
  font-size: 0.78rem;
}
.access-list {
  display: grid;
  gap: 9px;
}
.journey-lists {
  display: grid;
  gap: 42px;
}
.journey-group {
  display: grid;
  gap: 16px;
}
.journey-group > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.journey-group > header h2,
.journey-group > header p {
  margin-bottom: 0;
}
.journey-group > header h2 {
  font-size: 2.25rem;
}
.journey-group > header > span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--dark);
  font-weight: 700;
}
.completed-journeys {
  padding: 24px;
  border: 1px solid rgba(97, 72, 56, 0.16);
  border-radius: 20px;
  background: rgba(215, 215, 173, 0.28);
}
.completed-journeys > header > span {
  background: var(--sage);
}
.journey-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: #76645a;
  text-align: center;
}
.access-row.journey-complete {
  border-color: rgba(97, 72, 56, 0.28);
  background: var(--paper);
}
.access-row {
  display: grid;
  grid-template-columns: 42px 1fr 86px 110px 88px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.child-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage);
  font-weight: 700;
}
.admin-child-thumbnail {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--sage);
  object-fit: cover;
  object-position: 50% 30%;
  box-shadow: 0 3px 12px rgba(53, 20, 7, 0.16);
}
.admin-child-thumbnail.child-mark {
  display: grid;
  place-items: center;
}
.access-row small {
  display: block;
  color: #76645a;
}
.status {
  padding: 5px 8px;
  border-radius: 99px;
  text-align: center;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status.active {
  background: #dcebd8;
  color: #315d35;
}
.status.invited {
  background: #fff0bd;
  color: #725a10;
}
.status.revoked {
  background: #f7d9d1;
  color: #883120;
}
.status.complete {
  background: var(--sage);
  color: var(--dark);
}
.last b {
  font-size: 0.76rem;
}
.access-menu {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  color: var(--brown);
  font-weight: 700;
  cursor: pointer;
}
dialog {
  width: min(470px, calc(100% - 30px));
  padding: 30px;
  border: 0;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 30px 90px rgba(53, 20, 7, 0.4);
}
dialog::backdrop {
  background: rgba(53, 20, 7, 0.7);
}
dialog form {
  display: grid;
  gap: 17px;
}
dialog h2 {
  font-size: 2.5rem;
}
.dialog-close {
  justify-self: end;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 20px;
  padding: 11px 17px;
  border-radius: 99px;
  background: var(--dark);
  color: white;
  transform: translate(-50%, 100px);
  opacity: 0;
  transition: 0.25s;
  font-size: 0.8rem;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.error span {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 1.5rem;
}
.error h1 {
  margin: 15px 0 5px;
  font-size: 3rem;
}
.empty {
  padding: 50px;
  border-radius: 18px;
  background: white;
  text-align: center;
}
@media (max-width: 780px) {
  .topbar {
    height: 72px;
    padding: 0 14px;
  }
  .brand-logo img {
    width: 105px;
  }
  .brand-title,
  .account > div {
    display: none;
  }
  .account button {
    font-size: 0.72rem;
  }
  .auth-shell,
  .journal-hero {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 600px);
    gap: 45px;
    padding: 42px 0;
  }
  .auth-copy h1,
  .journal-hero h1 {
    font-size: 4.2rem;
  }
  .auth-art img {
    height: 410px;
  }
  .journal-hero > img {
    height: 400px;
  }
  .journal-head {
    align-items: start;
  }
  .journal-head h2 {
    font-size: 2.7rem;
  }
  .private-pill {
    max-width: 120px;
  }
  .entry {
    grid-template-columns: 45px 1fr;
    gap: 9px;
  }
  .day {
    width: 44px;
    height: 44px;
  }
  .entry-card {
    grid-template-columns: 1fr;
  }
  .entry-card > img {
    height: 220px;
    min-height: 0;
  }
  .entry-body {
    padding: 23px 20px;
  }
  .entry-body h3 {
    font-size: 2.05rem;
  }
  .portal-shell {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
  .workspace,
  .permissions {
    width: min(100% - 28px, 650px);
    padding-top: 30px;
  }
  .workspace > header {
    align-items: start;
  }
  .workspace h1 {
    font-size: 3.1rem;
  }
  .editor {
    padding: 22px 16px;
  }
  .editor .two {
    grid-template-columns: 1fr;
  }
  .access-row {
    grid-template-columns: 42px 1fr 80px;
  }
  .access-row .last {
    display: none;
  }
  .access-menu {
    grid-column: 2/4;
    justify-self: start;
  }
  .filters {
    align-items: start;
  }
  .filters label {
    width: 70%;
  }
}
@media (max-width: 480px) {
  .journal-head {
    display: block;
  }
  .private-pill {
    display: inline-block;
    margin-top: 15px;
  }
  .form-actions {
    gap: 10px;
  }
  .form-actions button {
    flex: 1;
  }
  .workspace > header {
    display: block;
  }
  .workspace > header > .primary {
    margin-top: 12px;
  }
  .access-row {
    grid-template-columns: 38px 1fr;
  }
  .access-row .status {
    grid-column: 2;
  }
  .access-menu {
    grid-column: 2;
  }
  .filters {
    display: grid;
    gap: 10px;
  }
  .filters label {
    width: 100%;
  }
  .completed-journeys {
    padding: 18px 12px;
  }
  .journey-group > header {
    align-items: start;
  }
  .journey-group > header h2 {
    font-size: 1.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.workflow-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #725e53;
  font-size: 0.76rem;
  font-weight: 700;
}
.workflow-steps b,
.section-heading > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
}
.form-section {
  display: grid;
  gap: 18px;
  padding: 8px 0 25px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.section-heading > span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}
.section-heading h2 {
  margin: 1px 0 4px;
  font:
    1.9rem Instrument,
    serif;
}
.section-heading p {
  margin: 0;
  color: #725e53;
  font-size: 0.84rem;
}
.recipient-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--dark);
}
.recipient-summary span {
  font-size: 0.78rem;
}
.publish-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 22px;
  border-radius: 14px;
  background: var(--cream);
}
.publish-review > div {
  display: grid;
  gap: 4px;
}
.publish-review .kicker {
  margin: 0;
}
.publish-review small {
  color: #725e53;
}
.publish-button {
  min-width: 165px;
}
.editor input:focus,
.editor select:focus,
.editor textarea:focus {
  outline: 3px solid rgba(244, 200, 68, 0.45);
  border-color: var(--brown);
}
@media (max-width: 600px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  .workflow-steps span {
    padding: 3px 0;
  }
  .recipient-summary,
  .publish-review {
    display: grid;
  }
  .publish-button {
    width: 100%;
  }
  .form-section {
    padding-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 1.7rem;
  }
}
.timeline-scale {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  color: #725e53;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timeline {
  position: relative;
}
.timeline:before,
.timeline:after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 4px;
  border-radius: 99px;
  background: #dfd4c7;
}
.timeline:after {
  bottom: auto;
  height: 0;
  background: linear-gradient(var(--orange), var(--yellow));
}
.entry {
  position: relative;
  z-index: 1;
}
.day {
  border: 3px solid var(--cream);
  background: #dfd4c7;
}
.entry.passed .day {
  background: var(--yellow);
}
.entry.current .day {
  background: var(--orange);
  color: white;
  box-shadow: 0 0 0 5px rgba(243, 127, 75, 0.18);
}
.editor .three {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr;
  gap: 18px;
}
@media (max-width: 780px) {
  .editor .three {
    grid-template-columns: 1fr;
  }
  .timeline:before,
  .timeline:after {
    left: 21px;
  }
  .timeline-scale b {
    display: none;
  }
}
.publish-only {
  align-items: center;
  gap: 18px;
}
.publish-only > span {
  max-width: 330px;
  color: #725e53;
  font-size: 0.75rem;
}
.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.empty .primary {
  margin-top: 12px;
}
@media (max-width: 480px) {
  .header-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }
  .publish-only {
    display: grid;
  }
  .publish-only > span {
    max-width: none;
  }
}
[hidden] {
  display: none !important;
}
.error form {
  width: min(360px, 100%);
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.error form label {
  display: grid;
  gap: 7px;
  text-align: left;
  font-weight: 700;
}
.error form input {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.mfa-qr {
  width: 210px;
  height: 210px;
  margin: 18px;
  border: 12px solid white;
  border-radius: 10px;
}

/* day-progress-classes */
@font-face {
  font-family: Comfortaa;
  src: url("assets/comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
body,
button,
input,
select,
textarea {
  font-family: Comfortaa, Arial, sans-serif;
}
h1,
h2,
h3,
.day b,
.overview-grid b {
  font-family: Bricolage, Arial, sans-serif;
}
.child-overview {
  background: #f3b7a2;
  color: var(--dark);
}
.child-overview h2,
.child-overview .kicker {
  color: var(--dark);
}
.overview-grid > div {
  background: rgba(255, 253, 248, 0.82);
}
.edit-posts {
  padding: 8px 11px;
  border: 1px solid var(--brown);
  border-radius: 99px;
  background: white;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.post-dialog {
  width: min(650px, calc(100% - 30px));
}
.post-dialog .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.post-dialog textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--dark);
  resize: vertical;
}
@media (max-width: 560px) {
  .post-dialog .two {
    grid-template-columns: 1fr;
  }
}
.progress {
  background: #f3b7a2;
}
.progress span {
  background: var(--blue);
}
.timeline:before {
  background: #f3b7a2;
}
.timeline:after {
  background: var(--blue);
}
.child-overview {
  width: min(960px, calc(100% - 40px));
  margin: 10px auto 70px;
  padding: 30px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
  border-radius: 20px;
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow);
}
.child-overview h2 {
  margin: 4px 0 10px;
  color: white;
  font-size: 2.6rem;
}
.child-overview .kicker {
  color: white;
}
.child-overview > div > p:last-child {
  margin: 0;
  font-size: 0.82rem;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.overview-grid > div {
  display: grid;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--dark);
}
.overview-grid span {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.overview-grid b {
  font:
    1.25rem Instrument,
    serif;
}
.edit-overview {
  padding: 8px 11px;
  border: 1px solid var(--brown);
  border-radius: 99px;
  background: white;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
@media (max-width: 780px) {
  .child-overview {
    grid-template-columns: 1fr;
    margin-bottom: 45px;
    padding: 24px 18px;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .access-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 430px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 781px) {
  .access-row {
    grid-template-columns: 42px 1fr 86px 110px minmax(180px, auto);
  }
}
.access-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.view-blog {
  padding: 8px 11px;
  border: 1px solid var(--brown);
  border-radius: 99px;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.view-blog:hover,
.view-blog:focus {
  background: var(--yellow);
  color: var(--dark);
}
.preview-banner {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100% - 1120px) / 2));
  background: var(--dark);
  color: white;
  box-shadow: 0 8px 25px rgba(53, 20, 7, 0.2);
}
.preview-banner > div {
  display: grid;
}
.preview-banner span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
}
.preview-banner .secondary {
  border-color: white;
  color: white;
}
@media (max-width: 780px) {
  .access-actions {
    grid-column: 2/4;
    justify-content: flex-start;
  }
  .preview-banner {
    position: relative;
    align-items: flex-start;
  }
  .preview-banner > div {
    max-width: 210px;
  }
}
@media (max-width: 480px) {
  .access-actions {
    grid-column: 2;
  }
  .preview-banner {
    display: grid;
  }
  .preview-banner .secondary {
    width: 100%;
  }
}
.progress-day-0 span {
  width: 0;
}
.timeline-day-0:after {
  height: 0;
}
.progress-day-1 span {
  width: 3.3333%;
}
.timeline-day-1:after {
  height: 3.3333%;
}
.progress-day-2 span {
  width: 6.6667%;
}
.timeline-day-2:after {
  height: 6.6667%;
}
.progress-day-3 span {
  width: 10%;
}
.timeline-day-3:after {
  height: 10%;
}
.progress-day-4 span {
  width: 13.3333%;
}
.timeline-day-4:after {
  height: 13.3333%;
}
.progress-day-5 span {
  width: 16.6667%;
}
.timeline-day-5:after {
  height: 16.6667%;
}
.progress-day-6 span {
  width: 20%;
}
.timeline-day-6:after {
  height: 20%;
}
.progress-day-7 span {
  width: 23.3333%;
}
.timeline-day-7:after {
  height: 23.3333%;
}
.progress-day-8 span {
  width: 26.6667%;
}
.timeline-day-8:after {
  height: 26.6667%;
}
.progress-day-9 span {
  width: 30%;
}
.timeline-day-9:after {
  height: 30%;
}
.progress-day-10 span {
  width: 33.3333%;
}
.timeline-day-10:after {
  height: 33.3333%;
}
.progress-day-11 span {
  width: 36.6667%;
}
.timeline-day-11:after {
  height: 36.6667%;
}
.progress-day-12 span {
  width: 40%;
}
.timeline-day-12:after {
  height: 40%;
}
.progress-day-13 span {
  width: 43.3333%;
}
.timeline-day-13:after {
  height: 43.3333%;
}
.progress-day-14 span {
  width: 46.6667%;
}
.timeline-day-14:after {
  height: 46.6667%;
}
.progress-day-15 span {
  width: 50%;
}
.timeline-day-15:after {
  height: 50%;
}
.progress-day-16 span {
  width: 53.3333%;
}
.timeline-day-16:after {
  height: 53.3333%;
}
.progress-day-17 span {
  width: 56.6667%;
}
.timeline-day-17:after {
  height: 56.6667%;
}
.progress-day-18 span {
  width: 60%;
}
.timeline-day-18:after {
  height: 60%;
}
.progress-day-19 span {
  width: 63.3333%;
}
.timeline-day-19:after {
  height: 63.3333%;
}
.progress-day-20 span {
  width: 66.6667%;
}
.timeline-day-20:after {
  height: 66.6667%;
}
.progress-day-21 span {
  width: 70%;
}
.timeline-day-21:after {
  height: 70%;
}
.progress-day-22 span {
  width: 73.3333%;
}
.timeline-day-22:after {
  height: 73.3333%;
}
.progress-day-23 span {
  width: 76.6667%;
}
.timeline-day-23:after {
  height: 76.6667%;
}
.progress-day-24 span {
  width: 80%;
}
.timeline-day-24:after {
  height: 80%;
}
.progress-day-25 span {
  width: 83.3333%;
}
.timeline-day-25:after {
  height: 83.3333%;
}
.progress-day-26 span {
  width: 86.6667%;
}
.timeline-day-26:after {
  height: 86.6667%;
}
.progress-day-27 span {
  width: 90%;
}
.timeline-day-27:after {
  height: 90%;
}
.progress-day-28 span {
  width: 93.3333%;
}
.timeline-day-28:after {
  height: 93.3333%;
}
.progress-day-29 span {
  width: 96.6667%;
}
.timeline-day-29:after {
  height: 96.6667%;
}
.progress-day-30 span {
  width: 100%;
}
.timeline-day-30:after {
  height: 100%;
}

/* final-brand-overrides */
.child-overview {
  background: #f3b7a2;
  color: var(--dark);
}
.child-overview h2,
.child-overview .kicker {
  color: var(--dark);
}
.overview-grid > div {
  background: rgba(255, 253, 248, 0.82);
}
.overview-grid b {
  font-family: Bricolage, Arial, sans-serif;
}
.access-actions {
  flex-wrap: wrap;
}
/* admin-dashboard */
.dashboard {
  width: min(1100px, calc(100% - 50px));
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.dashboard-stats article {
  display: grid;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.dashboard-stats span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.dashboard-stats b {
  font:
    2.6rem/1 Bricolage,
    Arial,
    sans-serif;
  color: var(--dark);
  margin: 8px 0;
}
.dashboard-stats small {
  color: #725e53;
}
.workflow-panel {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 25px;
  align-items: center;
  padding: 25px;
  margin-bottom: 35px;
  border-radius: 18px;
  background: var(--peach, #f3b7a2);
}
.workflow-panel h2 {
  margin: 0;
  font-size: 2rem;
}
.workflow-panel ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
}
.workflow-panel li {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.78);
  font-size: 0.75rem;
}
.workflow-panel li b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-title h2 {
  margin: 0;
  font-size: 2.5rem;
}
.dashboard-section {
  margin-top: 34px;
}
.journal-windows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.journal-window {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 10px 30px rgba(53, 20, 7, 0.06);
}
.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.journal-window h3 {
  margin: 5px 0 0;
  font-size: 1.65rem;
}
.journal-window > p {
  margin: 0;
  color: #725e53;
  font-size: 0.76rem;
}
.window-progress {
  display: flex;
  justify-content: space-between;
  padding: 11px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 0.76rem;
}
.window-meta {
  display: grid;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: #725e53;
  font-size: 0.7rem;
}
.blog-update-label {
  width: fit-content;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 99px;
  background: #dcebd8;
  color: #315d35;
  font-weight: 700;
}
.blog-update-label.stale {
  background: #fde2df;
  color: #a42620;
}
.window-actions {
  display: flex;
  gap: 8px;
}
.window-actions a,
.window-actions button,
.activity-list a {
  padding: 8px 11px;
  border: 1px solid var(--brown);
  border-radius: 99px;
  background: white;
  color: var(--brown);
  font:
    700 0.7rem Comfortaa,
    Arial,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.window-actions a {
  background: var(--yellow);
  color: var(--dark);
}
.window-actions .view-blog-pdf {
  border-color: var(--orange);
  background: var(--peach);
  color: var(--brown);
}
.window-actions .view-blog-pdf:hover {
  background: var(--orange);
  color: white;
}
.window-actions .view-blog-pdf:disabled {
  cursor: wait;
  opacity: 0.7;
}
.activity-list {
  display: grid;
  gap: 8px;
}
.activity-list article {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.activity-list article > div {
  display: grid;
}
.activity-list small {
  color: #725e53;
}
.activity-kebab {
  justify-self: end;
}
.activity-day {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}
.staff-journal-list {
  display: grid;
  gap: 9px;
}
.staff-journal-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.staff-journal-list article > div:nth-child(2) {
  display: grid;
}
.staff-journal-list small {
  color: #725e53;
}
.staff-journal-list button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--brown);
  border-radius: 99px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 980px) {
  .journal-windows {
    grid-template-columns: 1fr 1fr;
  }
  .workflow-panel {
    grid-template-columns: 1fr;
  }
  .workflow-panel ol {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 780px) {
  .side {
    position: sticky;
    z-index: 18;
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    padding: 9px 14px;
    background: var(--brown);
  }
  .side > .kicker,
  .side > h2,
  .side .nav-brand,
  .side .security-card {
    display: none;
  }
  .side a {
    flex: 0 0 auto;
    padding: 9px 12px;
  }
  .dashboard {
    width: min(100% - 28px, 650px);
  }
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }
  .journal-windows {
    grid-template-columns: 1fr;
  }
  .workspace {
    padding-top: 24px;
  }
}
@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .workflow-panel ol {
    grid-template-columns: 1fr;
  }
  .section-title {
    display: grid;
  }
  .activity-list article {
    grid-template-columns: 58px 1fr 40px;
  }
  .activity-list a {
    grid-column: 2;
    justify-self: start;
  }
  .staff-journal-list article {
    grid-template-columns: 38px 1fr;
  }
  .staff-journal-list button {
    grid-column: 2;
    justify-self: start;
  }
} /* dashboard-progress-and-mobile-blog */
.journal-window > .progress {
  width: 100%;
  max-width: none;
  height: 8px;
  margin: 0;
}
.window-progress {
  display: grid;
  gap: 2px;
}
.window-progress span {
  font-size: 0.68rem;
  color: #725e53;
}
.window-actions {
  flex-wrap: wrap;
}
.window-actions a,
.window-actions button {
  min-height: 38px;
}
.window-actions a {
  display: grid;
  place-items: center;
}
@media (max-width: 480px) {
  .journal-hero {
    gap: 24px;
    padding: 30px 0;
  }
  .journal-hero h1 {
    font-size: 3.35rem;
  }
  .journal-hero > div > p:not(.kicker) {
    font-size: 0.95rem;
  }
  .journal-hero > img {
    height: 290px;
    border-radius: 42% 42% 16px 16px;
  }
  .progress-copy {
    display: grid;
    gap: 2px;
    margin-top: 24px;
  }
  .child-overview {
    width: calc(100% - 28px);
    margin-top: 0;
    padding: 21px 16px;
    gap: 18px;
  }
  .child-overview h2 {
    font-size: 2.15rem;
  }
  .journal-head {
    width: calc(100% - 28px);
    margin: 18px auto 28px;
  }
  .journal-head h2 {
    font-size: 2.35rem;
  }
  .timeline-scale {
    width: calc(100% - 28px);
    margin-bottom: 13px;
  }
  .timeline {
    width: calc(100% - 28px);
    gap: 24px;
  }
  .entry {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }
  .day {
    width: 40px;
    height: 40px;
  }
  .day b {
    font-size: 1.25rem;
  }
  .entry-card {
    border-radius: 14px;
  }
  .entry-card > img {
    height: 200px;
  }
  .entry-body {
    padding: 19px 16px;
  }
  .entry-body h3 {
    font-size: 1.8rem;
  }
  .entry-body footer {
    align-items: flex-start;
    gap: 10px;
  }
  .privacy-note {
    margin: 45px 14px;
  }
  .preview-banner {
    padding: 14px;
  }
  .preview-banner span {
    font-size: 0.7rem;
  }
  .journal-window {
    padding: 16px;
  }
  .window-actions > * {
    flex: 1;
  }
} /* private-child-portrait */
.child-portrait-placeholder {
  width: 100%;
  height: 500px;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 48% 48% 18px 18px;
  background: linear-gradient(145deg, var(--blue), #aebdc8);
  color: white;
  box-shadow: var(--shadow);
  text-align: center;
}
.child-portrait-placeholder span {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font:
    3.5rem Bricolage,
    Arial,
    sans-serif;
}
.child-portrait-placeholder b {
  font:
    1.8rem Bricolage,
    Arial,
    sans-serif;
}
.child-portrait-placeholder small {
  opacity: 0.8;
}
.portrait-upload {
  padding: 16px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: white;
}
.portrait-upload input {
  padding: 0;
  border: 0;
}
.portrait-upload span {
  font-size: 0.82rem;
}
.portrait-upload small {
  color: #725e53;
}
@media (max-width: 780px) {
  .child-portrait-placeholder {
    height: 400px;
  }
}
@media (max-width: 480px) {
  .journal-hero > .child-portrait-placeholder {
    height: 290px;
    border-radius: 42% 42% 16px 16px;
  }
  .child-portrait-placeholder span {
    width: 86px;
    height: 86px;
    font-size: 2.8rem;
  }
} /* journal-pdf-and-brand-accents */
.journal-tools {
  width: min(1120px, calc(100% - 40px));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.journal-tools span {
  color: #725e53;
  font-size: 0.76rem;
}
.child-overview {
  position: relative;
  overflow: hidden;
}
.child-overview:after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -72px;
  width: 135px;
  height: 220px;
  background: url("assets/brand-leaf.png") center/contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
}
.child-overview > * {
  position: relative;
  z-index: 1;
}
.journal-head {
  position: relative;
}
.journal-head:before {
  content: "";
  position: absolute;
  left: -34px;
  top: -25px;
  width: 72px;
  height: 55px;
  background: url("assets/brand-scribble.png") center/contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 480px) {
  .journal-tools {
    width: calc(100% - 28px);
    margin-top: 14px;
    display: grid;
    justify-items: stretch;
  }
  .journal-tools span {
    display: none;
  }
  .journal-tools button {
    width: 100%;
  }
  .child-overview:after {
    right: -35px;
    bottom: -85px;
    opacity: 0.2;
  }
  .journal-head:before {
    left: -8px;
    top: -28px;
    width: 50px;
    opacity: 0.42;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  html,
  body {
    background: white;
    color: #614838;
  }
  .topbar {
    height: auto;
    padding: 0 0 8mm;
    border-bottom: 1px solid #d7c9bd;
    background: white;
  }
  .topbar .account,
  .journal-tools,
  .preview-banner,
  .heart,
  .privacy-note,
  .skip-link {
    display: none !important;
  }
  .brand-logo img {
    width: 38mm;
  }
  .brand-title {
    display: block;
  }
  .journal-hero {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1.15fr 0.65fr;
    gap: 10mm;
    padding: 10mm 0;
  }
  .journal-hero h1 {
    font-size: 34pt;
  }
  .journal-hero > img,
  .child-portrait-placeholder {
    height: 78mm;
    box-shadow: none;
  }
  .progress {
    max-width: none;
  }
  .child-overview {
    width: 100%;
    margin: 0 0 10mm;
    padding: 7mm;
    box-shadow: none;
    break-inside: avoid;
  }
  .journal-head,
  .timeline-scale,
  .timeline {
    width: 100%;
  }
  .journal-head {
    margin: 8mm 0;
  }
  .timeline {
    gap: 7mm;
  }
  .entry {
    display: block;
    min-height: 0;
    padding-left: 17mm;
    break-before: page;
    page-break-before: always;
    break-inside: auto;
    page-break-inside: auto;
  }
  .day {
    position: absolute;
    top: 0;
    left: 0;
    width: 12mm;
    height: 12mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .entry-card {
    display: block;
    overflow: visible;
    box-shadow: none;
    break-inside: auto;
    page-break-inside: auto;
  }
  .entry-card > img {
    min-height: 55mm;
  }
  .entry-body {
    padding: 7mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .entry-body h3 {
    font-size: 20pt;
  }
  .timeline:before,
  .timeline:after {
    display: none;
  }
  .journal-head:before,
  .child-overview:after {
    opacity: 0.18;
  }
  .toast {
    display: none !important;
  }
}

/* family-portal-home */
.family-home-hero {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 330px;
  align-items: center;
  gap: 70px;
  padding: 65px 0;
}
.family-home-hero h1 {
  font-size: clamp(3.8rem, 6vw, 6rem);
}
.family-home-hero h1 em {
  color: var(--orange);
  font-style: normal;
}
.family-home-hero > div > p:last-child {
  max-width: 570px;
  font-size: 1.05rem;
}
.family-home-hero .child-portrait,
.family-home-hero .child-portrait-placeholder {
  width: 330px;
  height: 330px;
}
.portal-actions {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.portal-action {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--brown);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.portal-action > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage);
  font-weight: 700;
}
.portal-action > div {
  margin: auto 0;
}
.portal-action h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}
.portal-action p {
  margin-bottom: 0;
}
.portal-action > b {
  align-self: flex-end;
  font-size: 1.5rem;
}
.journal-action {
  grid-row: 1 / span 2;
  min-height: 430px;
  padding: 36px;
  background: var(--blue);
  color: white;
}
.journal-action h2 {
  max-width: 620px;
  font-size: clamp(2.7rem, 4.6vw, 4.6rem);
  line-height: 0.98;
}
.journal-action > b {
  font-size: 2.2rem;
}
.secondary-portal-action {
  min-height: 0;
  padding: 18px 20px;
}
.secondary-portal-action > span {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}
.secondary-portal-action h2 {
  margin-bottom: 5px;
  font-size: 1.45rem;
}
.secondary-portal-action p {
  font-size: 0.9rem;
}
.family-journey-progress {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 22px;
  padding: 25px 28px 22px;
  border: 1px solid rgba(53, 20, 7, 0.12);
  border-radius: 22px;
  background: linear-gradient(110deg, #f5eadf, #fffaf4);
}
.family-journey-progress header,
.family-journey-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.family-journey-progress header {
  margin-bottom: 17px;
}
.family-journey-progress h2,
.family-journey-progress p {
  margin: 0;
}
.family-journey-progress h2 {
  font-size: 2rem;
}
.family-journey-progress header > span {
  padding: 8px 13px;
  border-radius: 99px;
  background: var(--blue);
  color: white;
  font-weight: 700;
}
.family-journey-progress .progress {
  height: 16px;
  margin: 0 0 10px;
}
.family-journey-labels {
  font-size: 0.82rem;
}
.family-journey-labels strong {
  color: var(--orange);
}
.journal-action h2,
.journal-action .kicker {
  color: white;
}
.journal-action > span {
  background: var(--yellow);
  color: var(--dark);
}
.community-section {
  padding: 75px max(20px, calc((100% - 1120px) / 2));
  background: var(--brown);
  color: white;
}
.community-section > header {
  max-width: 620px;
  margin-bottom: 32px;
}
.community-section h2,
.community-section .kicker {
  color: white;
}
.community-section h2 {
  font-size: 3.6rem;
}
.social-feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.social-feed-card {
  overflow: hidden;
  border-radius: 20px;
  background: white;
  color: var(--brown);
}
.social-feed-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}
.social-feed-card h3 {
  margin: 0;
  font-size: 1.8rem;
}
.social-feed-card > header a {
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 700;
}
.embedsocial-hashtag {
  min-height: 390px;
  background: var(--cream);
}
.feed-fallback {
  display: grid;
  place-items: center;
  min-height: 390px;
  color: var(--brown);
}
.parent-social-links {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
}
.parent-social-links > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.parent-social-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--brown);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.parent-social-links a:hover,
.parent-social-links a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(53, 38, 29, 0.1);
}
.parent-social-links span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.parent-social-links strong {
  grid-column: 1;
}
.parent-social-links b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.25rem;
}
.team-invitation {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 48px;
  padding: 34px 38px;
  border-radius: 22px;
  background: var(--sage);
  color: white;
}
.team-invitation h2,
.team-invitation .kicker {
  color: white;
}
.team-invitation h2 {
  margin-bottom: 8px;
  font-size: 2.7rem;
}
.team-invitation p:not(.kicker) {
  max-width: 650px;
  margin-bottom: 0;
}
.team-invitation > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 20px;
  border-radius: 16px;
  background: white;
  color: var(--brown);
  text-decoration: none;
}
.team-invitation > a span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-invitation > a strong {
  grid-column: 1;
}
.team-invitation > a b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.3rem;
}
.review-section,
.family-contact {
  width: min(1120px, calc(100% - 40px));
  margin: 70px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 38px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--paper) 0 64%, #f3dfd4 100%);
}
.review-section h2,
.family-contact h2 {
  font-size: 3rem;
}
.review-copy,
.review-options {
  position: relative;
  z-index: 1;
}
.review-copy > p:not(.kicker) {
  max-width: 570px;
}
.review-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.review-trust span {
  color: var(--orange);
  letter-spacing: 0.12em;
}
.review-trust small {
  color: var(--brown);
}
.review-options {
  display: grid;
  gap: 12px;
}
.review-options a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--brown);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.review-options a:hover,
.review-options a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
}
.review-options span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.review-options strong {
  grid-column: 1;
}
.review-options b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.25rem;
}
.review-options > p {
  margin: 4px 4px 0;
  font-size: 0.82rem;
  opacity: 0.82;
}
.family-contact {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
}
.family-contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.family-contact label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.family-contact input,
.family-contact select,
.family-contact textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--dark);
}
.family-contact .comment-field,
.family-contact button,
.family-contact .form-note {
  grid-column: 1/-1;
}
.preview-contact-form {
  display: grid;
  gap: 14px;
  min-width: min(520px, 72vw);
}
.preview-contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.preview-contact-form input,
.preview-contact-form select,
.preview-contact-form textarea {
  width: 100%;
}
.journal-back {
  width: min(1120px, calc(100% - 40px));
  margin: 20px auto 0;
}
.journal-back a {
  color: var(--brown);
  font-weight: 700;
}
@media (max-width: 850px) {
  .family-home-hero {
    grid-template-columns: 1fr 230px;
    gap: 30px;
  }
  .family-home-hero .child-portrait,
  .family-home-hero .child-portrait-placeholder {
    width: 230px;
    height: 230px;
  }
  .portal-actions {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .portal-action {
    min-height: 190px;
  }
  .journal-action {
    grid-row: auto;
    min-height: 310px;
  }
  .secondary-portal-action {
    min-height: 140px;
  }
  .social-feed-grid {
    grid-template-columns: 1fr;
  }
  .parent-social-links > div {
    grid-template-columns: 1fr;
  }
  .team-invitation {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .review-section,
  .family-contact {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
@media (max-width: 560px) {
  .family-home-hero {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }
  .family-home-hero h1 {
    font-size: 3.35rem;
  }
  .family-home-hero .child-portrait,
  .family-home-hero .child-portrait-placeholder {
    width: 100%;
    height: 280px;
  }
  .portal-actions {
    margin-bottom: 50px;
  }
  .journal-action {
    min-height: 270px;
    padding: 25px;
  }
  .journal-action h2 {
    font-size: 2.65rem;
  }
  .secondary-portal-action {
    min-height: 125px;
  }
  .secondary-portal-action > div {
    margin: 12px 0 0;
  }
  .secondary-portal-action > b {
    margin-top: -24px;
  }
  .team-invitation {
    width: calc(100% - 28px);
    padding: 26px 22px;
  }
  .team-invitation h2 {
    font-size: 2.25rem;
  }
  .family-journey-progress {
    width: calc(100% - 28px);
    padding: 20px 18px;
  }
  .family-journey-progress header {
    align-items: flex-start;
  }
  .family-journey-progress h2 {
    font-size: 1.65rem;
  }
  .family-journey-progress header > span {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .family-journey-labels strong {
    text-align: center;
  }
  .community-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .community-section h2 {
    font-size: 2.8rem;
  }
  .review-section,
  .family-contact {
    width: calc(100% - 28px);
    margin: 45px auto;
    padding: 24px 18px;
  }
  .family-contact form {
    grid-template-columns: 1fr;
  }
  .family-contact label {
    grid-column: 1/-1;
  }
  .embedsocial-hashtag,
  .feed-fallback {
    min-height: 300px;
  }
}

/* admin-family-kebab */
.family-kebab,
.activity-kebab {
  position: relative;
}
.family-kebab summary,
.activity-kebab summary {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--dark);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}
.family-kebab summary::-webkit-details-marker,
.activity-kebab summary::-webkit-details-marker {
  display: none;
}
.family-kebab[open] summary,
.activity-kebab[open] summary {
  background: var(--yellow);
}
.family-kebab > div,
.activity-kebab > div {
  position: absolute;
  z-index: 30;
  right: 0;
  top: 46px;
  width: 215px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: 0 18px 50px rgba(53, 20, 7, 0.2);
}
.family-kebab button,
.activity-kebab button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--brown);
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.family-kebab button:hover,
.family-kebab button:focus,
.activity-kebab button:hover,
.activity-kebab button:focus {
  background: var(--cream);
}
.family-kebab button.danger,
.activity-kebab button.danger {
  color: #9b2f1f;
}
.family-kebab button.danger:hover,
.family-kebab button.danger:focus,
.activity-kebab button.danger:hover,
.activity-kebab button.danger:focus {
  background: #fbe4de;
}
.family-details {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}
.family-details > div {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.family-details dt {
  color: #725e53;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.family-details dd {
  margin: 0;
  color: var(--dark);
  font-weight: 700;
}
.blog-hidden {
  opacity: 0.86;
}
.blog-hidden:after {
  content: "Hidden by centre";
  align-self: flex-end;
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
}
.family-kebab + * {
  position: relative;
}
@media (max-width: 780px) {
  .family-kebab > div,
  .activity-kebab > div {
    position: fixed;
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 14px;
    width: auto;
    padding: 10px;
    border-radius: 17px;
  }
  .family-kebab button,
  .activity-kebab button {
    padding: 14px;
  }
  .family-details > div {
    grid-template-columns: 1fr;
  }
}

/* timed-post-photo-carousel */
.post-carousel {
  position: relative;
  width: 100%;
  min-height: 330px;
  overflow: hidden;
  background: #e8ded2;
}
.post-carousel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transition: opacity 1.1s ease;
  cursor: zoom-in;
  pointer-events: none;
}
.post-carousel > img:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -8px;
}
.post-carousel > img.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 13px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  padding: 6px 8px;
  border-radius: 99px;
  background: rgba(53, 20, 7, 0.42);
}
.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.carousel-dots span.active {
  background: white;
}
.image-viewer {
  width: min(1120px, calc(100vw - 28px));
  max-width: none;
  height: min(880px, calc(100dvh - 28px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #221610;
  color: white;
}
.image-viewer::backdrop {
  background: rgba(25, 15, 10, 0.86);
  backdrop-filter: blur(6px);
}
.image-viewer-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}
.image-viewer-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 18px;
}
.image-viewer-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-viewer-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(25, 15, 10, 0.72);
  color: white;
  font-size: 28px;
}
.image-viewer footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #f6eee4;
  color: #351407;
}
.image-viewer footer p {
  margin: 0;
  font-weight: 700;
}
.image-viewer footer div {
  display: flex;
  gap: 10px;
}
@media (max-width: 600px) {
  .image-viewer {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .image-viewer footer {
    align-items: stretch;
    flex-direction: column;
  }
  .image-viewer footer div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media print {
  .image-viewer {
    display: none !important;
  }
}
.entry-card > .post-carousel {
  grid-column: 1;
}
@media (max-width: 780px) {
  .post-carousel {
    height: 220px;
    min-height: 0;
  }
  .entry-card > .post-carousel {
    grid-column: 1;
  }
}
@media (max-width: 480px) {
  .post-carousel {
    height: 200px;
  }
}
@media print {
  .post-carousel {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }
  .post-carousel > img {
    display: block !important;
    position: static;
    width: 100%;
    height: auto;
    max-height: 105mm;
    margin: 0 0 5mm;
    object-fit: contain;
    object-position: 50% 30%;
    opacity: 1;
    transition: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .carousel-dots {
    display: none !important;
  }
}
.publish-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.dialog-actions .primary {
  flex: 1;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--brown);
  text-decoration: underline;
  cursor: pointer;
}
.password-setup {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.password-setup > div {
  width: min(560px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.password-setup h1 {
  font-size: 3.6rem;
}
.password-setup form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.password-setup label {
  display: grid;
  gap: 7px;
  color: var(--dark);
  font-weight: 700;
}
.password-setup input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.password-setup small {
  color: #725e53;
  font-size: 0.72rem;
}
.questionnaire-page {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 50px 20px;
}
.questionnaire-page > div {
  width: min(900px, 100%);
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.questionnaire-page h1 {
  font-size: 4rem;
}
.questionnaire-placeholder {
  margin: 30px 0;
  padding: 30px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--cream);
  text-align: center;
}
.questionnaire-placeholder span {
  color: var(--dark);
  font-weight: 700;
}
.questionnaire-placeholder p {
  margin: 6px 0 0;
}
.questionnaire-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #dcebd8;
  color: #315d35;
}
.questionnaire-status.new {
  background: var(--cream);
  color: var(--brown);
}
.questionnaire-status span {
  font-size: 0.82rem;
}
.questionnaire-questions {
  display: grid;
  gap: 16px;
}
.birthday-field {
  display: grid;
  gap: 9px;
  max-width: 34rem;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.birthday-field > span {
  font-weight: 700;
  color: var(--sage-dark);
}
.birthday-field input {
  width: 100%;
}
.birthday-field small {
  color: var(--muted);
}
.birthday-soon {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff0dc;
  color: #8a4b19;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.questionnaire-questions label {
  display: grid;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.questionnaire-questions label > span {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 700;
}
.questionnaire-questions label > span b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  font-size: 0.75rem;
}
.questionnaire-questions textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}
.questionnaire-questions small {
  justify-self: end;
  color: #76645a;
}
.questionnaire-submit {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: var(--shadow);
}
.questionnaire-submit p {
  margin: 0;
  font-size: 0.78rem;
}
.questionnaire-updates {
  padding: 22px;
  border: 1px solid rgba(49, 93, 53, 0.22);
  border-radius: 18px;
  background: #f2f7ef;
}
.questionnaire-updates .section-title > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  font-weight: 700;
}
.questionnaire-update-list {
  display: grid;
  gap: 10px;
}
.questionnaire-update-list article {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 13px;
  background: white;
}
.questionnaire-update-list article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
}
.questionnaire-update-list small {
  display: block;
  color: #76645a;
}
.questionnaire-review-dialog {
  width: min(880px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  padding: 34px;
  background: var(--paper);
}
.questionnaire-answer-list {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}
.questionnaire-answer-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 13px;
  background: white;
}
.questionnaire-answer-list article > span {
  font-weight: 700;
  color: var(--orange);
}
.questionnaire-answer-list p {
  margin: 7px 0 0;
  white-space: pre-wrap;
}
.questionnaire-preview-list {
  display: grid;
  gap: 8px;
  max-height: 52vh;
  margin: 20px 0 0;
  padding: 0 0 0 26px;
  overflow-y: auto;
}
.questionnaire-preview-list li {
  padding: 8px 10px;
  border-radius: 9px;
  background: white;
}
@media (max-width: 480px) {
  .questionnaire-page > div {
    padding: 30px 20px;
  }
  .questionnaire-page h1 {
    font-size: 3rem;
  }
  .questionnaire-status,
  .questionnaire-submit {
    align-items: stretch;
    flex-direction: column;
  }
  .questionnaire-submit {
    position: static;
  }
  .questionnaire-submit button {
    width: 100%;
  }
  .questionnaire-questions label {
    padding: 16px;
  }
  .questionnaire-update-list article {
    grid-template-columns: 34px 1fr;
  }
  .questionnaire-update-list button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .questionnaire-review-dialog {
    width: calc(100% - 16px);
    padding: 28px 16px 20px;
  }
}
.credential-box {
  display: grid;
  gap: 5px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 14px;
  background: white;
}
.credential-box span {
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.credential-box b,
.credential-box code {
  overflow-wrap: anywhere;
  font-size: 1rem;
}
.credential-box code {
  padding: 10px;
  background: var(--sage);
}
#inviteDialog {
  width: min(720px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  background: var(--paper);
}
#inviteDialog .dialog-close {
  position: sticky;
  z-index: 3;
  top: -18px;
  width: 38px;
  height: 38px;
  margin-bottom: -38px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(53, 20, 7, 0.08);
}
.family-setup-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.family-setup-section > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.family-setup-section > div:first-child span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--dark);
  font-weight: 700;
}
.family-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.family-setup-grid label {
  display: grid;
  gap: 6px;
  color: var(--dark);
  font-weight: 700;
}
.family-setup-grid .wide {
  grid-column: 1 / -1;
}
.family-setup-summary {
  padding: 15px 17px;
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: #f3dfd4;
}
.family-setup-summary span {
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.family-setup-summary p {
  margin: 5px 0 0;
}
@media (max-width: 480px) {
  .password-setup > div {
    padding: 26px 20px;
  }
  .password-setup h1 {
    font-size: 2.8rem;
  }
  #inviteDialog {
    padding: 24px 18px;
  }
  .family-setup-grid {
    grid-template-columns: 1fr;
  }
  .family-setup-grid .wide {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .publish-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .publish-actions button {
    width: 100%;
  }
  .dialog-actions {
    display: grid;
  }
  .dialog-actions button {
    width: 100%;
  }
}

/* Branded botanical page accents supplied by Wattle & Wonder. */
@media (max-width: 780px) {
  body {
    background-image:
      url("assets/brand-leaf-soft.png"),
      url("assets/brand-star.png"),
      url("assets/brand-grass.png");
    background-position:
      -76px 150px,
      calc(100% + 46px) 420px,
      calc(100% + 58px) calc(100% - 40px);
    background-size: 170px, 125px, 150px;
    background-attachment: scroll;
  }
  .workspace::after {
    top: 16px;
    right: -18px;
    width: 72px;
    height: 72px;
    opacity: 0.78;
  }
}

@media print {
  body {
    background: white !important;
  }
  .workspace::after {
    display: none !important;
  }
}

/* completed-journey keepsake PDF */
.print-brand-art {
  display: none;
}
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  html,
  body {
    font-size: 10.5pt;
  }
  body {
    background: #fffdf8 !important;
  }
  .topbar {
    margin: 12mm 14mm 0;
    padding: 0 0 5mm;
    border-bottom: 0;
  }
  .brand {
    gap: 5mm;
  }
  .brand-logo img {
    width: 33mm;
  }
  .brand-title {
    padding-left: 5mm;
    border-color: #d8d8aa;
    font-size: 10pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .journal-back,
  .journal-head,
  .timeline-scale {
    display: none !important;
  }
  .journal-hero {
    position: relative;
    min-height: 116mm;
    width: auto;
    margin: 0 14mm;
    padding: 12mm;
    border: 1px solid #eadac9;
    border-radius: 8mm;
    background:
      radial-gradient(circle at 88% 10%, rgba(246, 201, 70, 0.26) 0 20mm, transparent 20.5mm),
      radial-gradient(circle at 4% 95%, rgba(249, 174, 142, 0.3) 0 26mm, transparent 26.5mm),
      linear-gradient(145deg, #f4eddf 0%, #fffdf8 68%);
    overflow: hidden;
    break-inside: avoid;
  }
  .journal-hero::before {
    content: "WONDER CAPTURE";
    position: absolute;
    top: 8mm;
    right: 10mm;
    color: #8399ac;
    font-size: 7pt;
    font-weight: 800;
    letter-spacing: 0.2em;
  }
  .journal-hero .kicker {
    color: #b1a44f;
  }
  .journal-hero h1 {
    margin: 4mm 0;
    font-size: 32pt;
    line-height: 0.98;
  }
  .journal-hero h1 em {
    color: #f5834e;
  }
  .journal-hero > div > p:not(.kicker) {
    max-width: 82mm;
    font-size: 11pt;
    line-height: 1.55;
  }
  .journal-hero > img,
  .journal-hero > .child-portrait-placeholder {
    height: 90mm;
    border: 2.5mm solid #fffdf8;
    border-radius: 50% 50% 6mm 6mm;
    box-shadow: 0 4mm 10mm rgba(97, 72, 56, 0.12);
    object-fit: cover;
    object-position: 50% 28%;
  }
  .journal-hero .progress {
    height: 3mm;
    background: rgba(97, 72, 56, 0.1);
  }
  .journal-hero .progress span {
    background: linear-gradient(90deg, #f5834e, #f6c946, #b1a44f);
  }
  .child-overview {
    width: auto;
    margin: 7mm 14mm 0;
    padding: 7mm 8mm;
    border: 1px solid #eadac9;
    border-radius: 6mm;
    background: #fffaf0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  .child-overview h2 {
    color: #614838;
    font-size: 18pt;
  }
  .overview-grid > div {
    border-color: #eadac9;
    background: white;
  }
  .timeline {
    display: block;
    margin: 0;
  }
  .entry {
    position: relative;
    display: block;
    width: auto;
    min-height: 297mm;
    margin: 0 14mm;
    padding: 18mm 0 15mm;
    break-before: page;
    page-break-before: always;
  }
  .entry::before {
    content: "A LITTLE MOMENT, HELD CLOSE";
    position: absolute;
    top: 2mm;
    left: 0;
    color: #8399ac;
    font-size: 7pt;
    font-weight: 800;
    letter-spacing: 0.18em;
  }
  .day {
    top: 0;
    right: 0;
    left: auto;
    width: 15mm;
    height: 15mm;
    border: 0;
    background: #f5834e;
    color: white;
    box-shadow: none;
  }
  .day b {
    font-size: 14pt;
  }
  .day span {
    font-size: 5.5pt;
    letter-spacing: 0.08em;
  }
  .entry-card {
    overflow: visible;
    border: 1px solid #eadac9;
    border-radius: 7mm;
    background: #fffdf8;
    box-shadow: none;
  }
  .entry-card::after {
    content: attr(data-keepsake-name) " • First 30 Days  •  Wattle & Wonder";
    display: block;
    padding: 4mm 7mm;
    border-top: 1px solid #eadac9;
    color: #8a7567;
    font-size: 7pt;
    letter-spacing: 0.08em;
    text-align: right;
  }
  .entry-card > img,
  .post-carousel > img {
    width: calc(100% - 10mm);
    max-height: 112mm;
    margin: 5mm 5mm 0;
    border-radius: 5mm;
    background: #f4eddf;
    object-fit: contain;
    object-position: 50% 30%;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .post-carousel > img + img {
    margin-top: 5mm;
  }
  .entry-body {
    padding: 7mm 8mm 6mm;
    background: transparent;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .entry-body .meta {
    color: #b1a44f;
    font-size: 7.5pt;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .entry-body h3 {
    margin: 2mm 0 3mm;
    color: #614838;
    font-size: 21pt;
    line-height: 1.08;
  }
  .entry-body > p:not(.meta) {
    font-size: 10.5pt;
    line-height: 1.6;
    orphans: 3;
    widows: 3;
  }
  .entry-body footer {
    margin-top: 5mm;
    padding-top: 4mm;
    border-top: 1px solid #eadac9;
    color: #725e53;
    font-style: italic;
  }

  /* Layer the supplied Wattle & Wonder artwork through the keepsake. */
  .journal-hero {
    background-image:
      url("assets/brand-wattle.png"),
      url("assets/brand-leaf-soft.png"),
      url("assets/brand-billy-two.png"),
      radial-gradient(circle at 88% 10%, rgba(246, 201, 70, 0.24) 0 20mm, transparent 20.5mm),
      radial-gradient(circle at 4% 95%, rgba(249, 174, 142, 0.28) 0 26mm, transparent 26.5mm),
      linear-gradient(145deg, #f4eddf 0%, #fffdf8 68%);
    background-position:
      -18mm -20mm,
      calc(100% + 23mm) calc(100% + 22mm),
      46% calc(100% + 31mm),
      center,
      center,
      center;
    background-repeat: no-repeat;
    background-size: 64mm, 70mm, 62mm, auto, auto, auto;
  }
  .child-overview {
    background-image:
      url("assets/brand-branch.png"),
      url("assets/brand-star.png"),
      linear-gradient(110deg, #fffaf0 0%, #f4eddf 100%);
    background-position:
      calc(100% + 20mm) calc(100% + 20mm),
      -24mm -25mm,
      center;
    background-repeat: no-repeat;
    background-size: 64mm, 55mm, auto;
  }
  .entry {
    background-repeat: no-repeat;
  }
  .entry:nth-child(4n + 1) {
    background-image:
      url("assets/brand-star.png"),
      url("assets/brand-leaf-blue.png");
    background-position: -25mm -24mm, calc(100% + 26mm) calc(100% + 30mm);
    background-size: 58mm, 73mm;
  }
  .entry:nth-child(4n + 2) {
    background-image:
      url("assets/brand-wattle.png"),
      url("assets/brand-branch.png");
    background-position: calc(100% + 24mm) -29mm, -23mm calc(100% + 25mm);
    background-size: 68mm, 66mm;
  }
  .entry:nth-child(4n + 3) {
    background-image:
      url("assets/brand-grass.png"),
      url("assets/brand-billy-two.png");
    background-position: -22mm -28mm, calc(100% + 23mm) calc(100% + 28mm);
    background-size: 62mm, 69mm;
  }
  .entry:nth-child(4n) {
    background-image:
      url("assets/brand-leaf-soft.png"),
      url("assets/brand-billy-one.png");
    background-position: calc(100% + 22mm) -25mm, -22mm calc(100% + 26mm);
    background-size: 68mm, 63mm;
  }
  .entry:nth-child(4n + 1) .entry-card {
    border-top: 2.5mm solid #8399ac;
  }
  .entry:nth-child(4n + 2) .entry-card {
    border-top: 2.5mm solid #f6c946;
  }
  .entry:nth-child(4n + 3) .entry-card {
    border-top: 2.5mm solid #f9ae8e;
  }
  .entry:nth-child(4n) .entry-card {
    border-top: 2.5mm solid #b1a44f;
  }
  .entry:nth-child(4n + 2) .day {
    background: #b1a44f;
  }
  .entry:nth-child(4n + 3) .day {
    background: #8399ac;
  }
  .entry:nth-child(4n) .day {
    background: #614838;
  }

  /* Turn the existing privacy panel into a final keepsake page. */
  .privacy-note {
    position: relative;
    display: grid !important;
    width: auto;
    min-height: 269mm;
    margin: 14mm;
    padding: 30mm 24mm;
    place-content: center;
    border: 1px solid #eadac9;
    border-radius: 8mm;
    background-color: #f4eddf;
    background-image:
      url("assets/brand-wattle.png"),
      url("assets/brand-leaf-blue.png"),
      url("assets/brand-billy-two.png"),
      url("assets/brand-grass.png"),
      url("assets/brand-star.png");
    background-position:
      50% 16mm,
      calc(100% + 20mm) calc(100% + 18mm),
      -18mm calc(100% + 24mm),
      calc(100% + 21mm) -20mm,
      -22mm -23mm;
    background-repeat: no-repeat;
    background-size: 62mm, 72mm, 68mm, 58mm, 60mm;
    color: #614838;
    text-align: center;
    break-before: page;
    page-break-before: always;
    break-inside: avoid;
  }
  .privacy-note > b,
  .privacy-note > p {
    display: none;
  }
  .privacy-note::before,
  .privacy-note::after {
    content: none;
  }
  .print-brand-art {
    display: block;
    pointer-events: none;
  }
  .print-brand-art img {
    position: absolute;
    z-index: 0;
    display: block;
    object-fit: contain;
  }
  .journal-hero > div:not(.print-brand-art),
  .journal-hero > .child-portrait,
  .journal-hero > .child-portrait-placeholder,
  .entry-card,
  .entry > .day,
  .entry::before,
  .privacy-note::before,
  .privacy-note::after {
    position: relative;
    z-index: 2;
  }
  .print-cover-dedication {
    position: absolute !important;
    right: 12mm;
    bottom: 8mm;
    z-index: 3 !important;
    color: #725e53;
    font-family: Instrument, Georgia, serif;
    font-size: 10pt;
    text-align: right;
  }
  .print-cover-dedication strong {
    display: block;
    color: #614838;
    font-family: Bricolage, Arial, sans-serif;
    font-size: 15pt;
  }
  .print-finale-copy {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    max-width: 130mm;
  }
  .print-finale-copy small {
    color: #b1a44f;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .print-finale-copy h2 {
    margin: 5mm 0;
    color: #614838;
    font-size: 31pt;
    line-height: 1.02;
  }
  .print-finale-copy h2 em {
    color: #f5834e;
    font-family: Instrument, Georgia, serif;
    font-weight: 400;
  }
  .print-finale-copy p {
    margin: 0;
    color: #725e53;
    font-family: Instrument, Georgia, serif;
    font-size: 14pt;
  }
  .print-finale-copy span {
    margin-top: 9mm;
    padding-top: 5mm;
    border-top: 1px solid #d8d8aa;
    color: #614838;
    font-size: 9pt;
    font-weight: 700;
  }
  .print-cover-art img:nth-child(1) {
    top: -19mm;
    left: -18mm;
    width: 65mm;
  }
  .print-cover-art img:nth-child(2) {
    right: -22mm;
    bottom: -22mm;
    width: 74mm;
  }
  .print-cover-art img:nth-child(3) {
    bottom: -27mm;
    left: 43%;
    width: 63mm;
  }
  .print-entry-art img:first-child {
    top: -24mm;
    left: -24mm;
    width: 61mm;
  }
  .print-entry-art img:last-child {
    right: -27mm;
    bottom: -28mm;
    width: 73mm;
  }
  .print-finale-art img:nth-child(1) {
    top: 7mm;
    left: 50%;
    width: 62mm;
    transform: translateX(-50%);
  }
  .print-finale-art img:nth-child(2) {
    top: -22mm;
    left: -22mm;
    width: 61mm;
  }
  .print-finale-art img:nth-child(3) {
    right: -24mm;
    bottom: -20mm;
    width: 74mm;
  }
  .print-finale-art img:nth-child(4) {
    bottom: -25mm;
    left: -20mm;
    width: 70mm;
  }
}
