.family-main {
  min-height: 78vh;
  background: var(--cream);
}
.gate {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 8vw, 140px);
  padding-block: 60px;
}
.gate-copy {
  position: relative;
}
.gate-copy .family-title {
  margin: 15px 0;
}
.gate-copy > p:not(.eyebrow) {
  max-width: 44ch;
}
.gate-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: 50% 56%;
  margin-top: 22px;
  border-radius: 3px;
}
.gate-bug {
  right: 10%;
  top: 20%;
  width: 69px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
}
.gate-form {
  padding: clamp(24px, 3.4vw, 54px);
}
.panel h2 {
  font: normal 28px/1.2 var(--serif);
  letter-spacing: -0.035em;
  margin-bottom: 17px;
}
.gate-form h2 {
  font: 800 44px var(--display);
  margin: 20px 0;
}
.auth-tabs {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button,
.plain,
#signout {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
}
.auth-tabs [aria-pressed="true"] {
  color: var(--red);
  box-shadow: inset 0 -2px var(--red);
}
.family-main label {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.family-main input:not([type="file"]),
.family-main select,
.family-main textarea {
  display: block;
  width: 100%;
  border: 1px solid #b9af9f;
  border-radius: 5px;
  background: #fffdf7;
  color: var(--ink);
  padding: 10px 12px;
  margin: 5px 0 15px;
  font-size: 16px;
}
.family-main textarea {
  resize: vertical;
  min-height: 80px;
}
.family-main small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.gate-form .button {
  width: 100%;
  margin-top: 10px;
}
.notice {
  font-size: 14px;
  color: var(--red);
  margin-top: 12px;
}
.notice:empty {
  display: none;
}
.inside {
  padding-block: 32px 65px;
}
.circle-head {
  position: relative;
}
.circle-head h1 {
  font-size: clamp(52px, 5.5vw, 78px);
  margin-bottom: 25px;
}
.circle-bug {
  right: 8%;
  top: 6%;
  width: 56px;
}
.social-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(300px, 2.2fr) minmax(
      160px,
      0.85fr
    );
  gap: 18px;
  align-items: start;
}
.sidebar,
.members {
  padding: 17px;
}
.profile,
.person,
.post-by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--butter);
  color: #5d4222;
}
.profile {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
#circle-nav {
  padding-block: 10px;
}
#circle-nav button,
.person {
  font: 700 14px/1.5 var(--sans);
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
  padding: 11px 9px;
  border-radius: 5px;
}
#circle-nav button[aria-pressed="true"] {
  color: var(--red);
  background: #f6e9d7;
}
#circle-nav button:hover,
.person:hover {
  background: #f6eede;
}
#signout {
  color: var(--muted);
  font-size: 13px;
  margin-left: 9px;
}
.members h2 {
  font: 700 14px/1.5 var(--sans);
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
  margin: 0 0 5px;
}
.person {
  padding: 8px 0;
}
.family-main .sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.compose h2 {
  font-size: 25px;
}
.compose-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.compose-bottom .button {
  padding: 9px 25px;
}
.family-main .attachment {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 7px;
  color: var(--red);
  cursor: pointer;
  border-radius: 4px;
  padding: 5px;
}
.attachment input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.attachment:focus-within {
  outline: 2px solid #247174;
}
.attachment svg {
  width: 19px;
}
#photo-selection,
.post time,
.chat-time {
  font-size: 12px;
  color: var(--muted);
}
.plain {
  color: var(--red);
  text-decoration: underline;
}
.feed-post,
.empty {
  margin-top: 14px;
}
.feed-post .post-by {
  font-size: 15px;
}
.post-by time {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.post-text,
.comment-text,
.chat-msg p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-text {
  margin-top: 14px;
}
.post-photo {
  max-height: 420px;
  margin: 16px auto 0;
  object-fit: contain;
  border-radius: 4px;
}
.post-actions {
  display: flex;
  gap: 18px;
  border-block: 1px solid var(--line);
  margin-top: 16px;
}
.post-actions button {
  border: 0;
  background: none;
  padding: 9px 0;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-actions svg {
  width: 17px;
}
.post-actions [aria-pressed="true"] {
  color: var(--red);
}
.post-actions [aria-pressed="true"] svg {
  fill: var(--red);
}
.comment {
  font-size: 14px;
  background: #f6eedf;
  border-radius: 6px;
  padding: 9px 12px;
  margin-top: 9px;
}
.comment strong {
  display: block;
  font-size: 12px;
}
.comment-form {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 12px;
}
.family-main .comment-form input {
  margin: 0;
  min-width: 0;
  font-size: 14px;
}
.comment-form button {
  padding: 9px 16px;
}
.empty h3 {
  font: normal 23px var(--serif);
  margin-bottom: 5px;
}
.empty p {
  color: var(--muted);
  font-size: 15px;
}
.more {
  margin-top: 14px;
}
.chat-msg {
  margin: 10px 0;
  padding: 9px 14px;
  background: #f0e7d9;
  border-radius: 10px;
  max-width: 85%;
  width: fit-content;
}
.chat-msg.mine {
  margin-left: auto;
  background: #f9e8b7;
}
.chat-time {
  font-size: 11px;
}
.chat-log {
  max-height: 440px;
  overflow-y: auto;
}
#conversation {
  margin: 16px 0;
}
#message-form {
  margin-top: 20px;
}
#social-notice:not(:empty) {
  position: fixed;
  z-index: 5;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8e9;
  border: 1px solid var(--red);
  border-radius: 5px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px #48301b1f;
}
#published a {
  text-decoration: underline;
}
#published {
  margin-top: 12px;
}
@media (max-width: 950px) {
  .social-layout {
    grid-template-columns: minmax(155px, 0.7fr) minmax(280px, 2fr);
  }
  .members {
    grid-column: 1/-1;
  }
  .members #members {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .members .person {
    width: auto;
  }
  .panel {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  .gate {
    grid-template-columns: 1fr;
    padding-block: 29px;
    gap: 24px;
  }
  .gate-photo {
    height: 145px;
  }
  .gate-copy .family-title br {
    display: none;
  }
  .gate-copy .family-title br:after {
    content: " ";
  }
  .gate-copy .family-title em:before {
    content: " ";
  }
  .gate-bug {
    right: 4%;
    top: 12%;
    width: 45px;
  }
  .gate-copy .family-title {
    font-size: 54px;
  }
  .social-layout {
    display: flex;
    flex-direction: column;
  }
  .social-layout > * {
    width: 100%;
  }
  .sidebar {
    padding: 12px 15px;
  }
  .profile {
    border: 0;
    padding: 0;
  }
  .sidebar {
    position: relative;
  }
  .sidebar #signout {
    position: absolute;
    right: 14px;
    top: 12px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  .sidebar #circle-nav {
    padding: 9px 0 0;
  }
  #circle-nav button {
    width: auto;
    font-size: 13px;
    padding: 7px;
  }
  .inside {
    padding-inline: 16px;
  }
  .circle-head {
    padding-inline: 6px;
  }
  .circle-bug {
    width: 43px;
    right: 3%;
  }
  .chat-msg {
    max-width: 95%;
  }
}
.circle-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 143px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 8px;
  background: #f0dfba;
}
.circle-head-copy {
  padding: 24px 30px;
  align-self: center;
}
.circle-head .family-title {
  margin: 8px 0 0;
}
.circle-cover {
  width: 43%;
  background: url(assets/garden.webp) center 43% / cover;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}
.circle-bug {
  right: 47%;
  top: 25%;
  width: 53px;
}
#circle-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
}
#circle-nav svg {
  width: 17px;
  height: 17px;
}
.post-photo {
  width: 100%;
  background: #f5eddd;
}
@media (max-width: 700px) {
  .circle-head {
    min-height: 102px;
  }
  .circle-head-copy {
    padding: 14px;
  }
  .circle-head .family-title {
    font-size: 44px;
  }
  .circle-head .eyebrow {
    font-size: 8px;
  }
  .circle-cover {
    width: 28%;
  }
  .circle-bug {
    width: 32px;
    right: 29%;
    top: 3%;
  }
  #circle-nav svg {
    width: 15px;
  }
  .sidebar #circle-nav button {
    gap: 5px;
  }
}
.form-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
#publisher input[type="file"] {
  display: block;
  max-width: 100%;
  margin: 8px 0;
  font-size: 14px;
}
#publisher label small {
  margin-bottom: 15px;
}
#custom-cover {
  margin-bottom: 15px;
}
#custom-cover img,
.submission-cover {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 5px;
  margin: 12px 0;
}
#submission-panel,
.submission {
  min-width: 0;
  overflow-wrap: anywhere;
}
.submission {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.submission h3 {
  font: normal 25px/1.2 var(--serif);
  margin: 8px 0;
}
.submission-meta {
  font-size: 13px;
  color: var(--muted);
}
.submission audio,
.episode-player {
  width: 100%;
  display: block;
  margin: 16px 0;
}
.review-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#forgot { margin-top: 1rem; }
#issue-form { align-self: start; padding: clamp(20px, 4vw, 38px); }
.reset-code { display: block; overflow-wrap: anywhere; user-select: all; margin: 1rem 0; }
