/* Compact resident support journeys, retaining the site's ivory and green identity. */
.resident-layout {
  --resident-danger: #933e34;
  --resident-line: #dce3d9;
  background: #fcfbf7;
}

.resident-layout svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.resident-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, 1200px);
  min-height: 88px;
  margin-inline: auto;
  border-bottom: 1px solid var(--resident-line);
}

.resident-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 0.875rem;
}

.resident-header nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.resident-header nav svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.resident-header .resident-header-emergency {
  color: var(--resident-danger);
  font-weight: 600;
}

.resident-container {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

.resident-page {
  padding: 22px 0 72px;
}

.resident-page .section-kicker {
  margin: 0 0 16px;
  font-size: 0.875rem;
}

.resident-page h1,
.resident-page h2,
.resident-page h3 {
  margin: 0;
  text-wrap: pretty;
}

.resident-page h1,
.resident-page h2 {
  font-family: var(--kitaki-serif);
  font-weight: 500;
  letter-spacing: 0.035em;
}

.resident-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.5;
}

.resident-page h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.65;
}

.resident-page h3 {
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 600;
}

.resident-page p {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.resident-page svg {
  flex-shrink: 0;
}

.resident-page .resident-note {
  font-size: 0.875rem;
  line-height: 1.9;
}

.resident-breadcrumb {
  margin-bottom: 26px;
}

.resident-breadcrumb ol,
.resident-breadcrumb li {
  display: flex;
  align-items: center;
}

.resident-breadcrumb ol {
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.resident-breadcrumb li {
  gap: 8px;
}

.resident-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #a4b3a3;
}

.resident-heading {
  max-width: 840px;
}

.resident-page .resident-lead {
  margin-top: 14px;
  color: #59665c;
}

.resident-emergency-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid #ddbeb8;
  border-left: 4px solid var(--resident-danger);
  background: #fff7f4;
  color: var(--resident-danger);
}

.resident-emergency-link > svg {
  width: 24px;
  height: 24px;
}

.resident-emergency-link > svg:last-child {
  width: 20px;
  height: 20px;
}

.resident-emergency-link b {
  font-size: 1rem;
}

.resident-emergency-link > span > span {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: #714d46;
}

.resident-emergency-link:hover {
  background: #fff0e9;
}

.resident-needs-panel {
  padding-top: 4px;
}

.resident-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.resident-choice-grid a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  padding: 20px;
  border: 1px solid var(--resident-line);
  border-radius: 8px;
  background: #fff;
}

.resident-choice-grid a > svg {
  width: 24px;
  height: 24px;
  color: var(--kitaki-primary);
}

.resident-choice-grid a > svg:last-child {
  width: 16px;
  height: 16px;
}

.resident-choice-grid b {
  font-size: 1rem;
  font-weight: 500;
}

.resident-choice-grid a:hover {
  border-color: var(--kitaki-primary);
  background: #f0f5ee;
}

.resident-section-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--resident-line);
}

.resident-section-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-size: 0.875rem;
}

.resident-section-nav a + a {
  border-left: 1px solid var(--resident-line);
}

.resident-section-nav svg {
  width: 16px;
  height: 16px;
  color: var(--kitaki-primary);
}

.resident-section-nav a:hover {
  background: #f0f5ee;
}

.resident-section {
  padding-top: 52px;
}

.resident-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--resident-line);
}

.resident-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--resident-line);
}

.resident-step-number {
  color: var(--kitaki-primary);
  font-family: var(--kitaki-serif);
  font-size: 1.5rem;
  line-height: 1.4;
}

.resident-steps p {
  max-width: 820px;
  color: #59665c;
  margin-top: 8px;
}

.resident-preparation {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  margin-top: 48px;
  padding: 32px;
  background: #f0f4ed;
  border-radius: 8px;
}

.resident-preparation > div > svg {
  width: 26px;
  height: 26px;
  margin-bottom: 20px;
  color: var(--kitaki-primary);
}

.resident-preparation ul {
  align-self: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.resident-preparation li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 13px;
  border-bottom: 1px solid #d2ddcd;
  font-size: 1rem;
}

.resident-preparation li svg {
  width: 16px;
  height: 16px;
  color: var(--kitaki-primary);
  transform: translateY(2px);
}

.resident-preparation-text {
  display: grid;
  gap: 3px;
}

.resident-preparation-text small {
  color: #667069;
  font-size: 0.75rem;
  line-height: 1.6;
}

.resident-contact-guide h2 > span {
  display: block;
}

.resident-contact-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  margin-top: 56px;
  padding-block: 40px;
  border-block: 1px solid var(--resident-line);
}

.resident-contact-guide > div > p:first-child:not(.section-kicker) {
  margin-top: 0;
}

.resident-contact-guide .resident-note {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid #a9bea1;
  color: #59665c;
}

.resident-contact-guide .button {
  min-height: 52px;
  height: auto;
  max-width: 100%;
  padding: 14px 20px;
  margin-top: 24px;
  white-space: normal;
  font-size: 0.875rem;
}

.resident-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 32px;
}

.resident-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
  font-size: 0.875rem;
}

.resident-related svg,
.resident-text-link svg,
.resident-back-link svg {
  width: 18px;
  height: 18px;
}

.resident-faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--resident-line);
}

.resident-faq-list details {
  border-bottom: 1px solid var(--resident-line);
}

.resident-faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 22px 8px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
}

.resident-faq-list summary::-webkit-details-marker {
  display: none;
}

.resident-faq-toggle {
  color: var(--kitaki-primary);
  font-size: 1.25rem;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

.resident-faq-list details[open] .resident-faq-toggle {
  transform: rotate(45deg);
}

.resident-faq-list details > div {
  max-width: 860px;
  padding: 0 8px 24px;
}

.resident-faq-list details p {
  margin-top: 0;
  color: #59665c;
}

.resident-text-link,
.resident-back-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.resident-text-link {
  margin-top: 16px;
  color: var(--kitaki-primary);
}

.resident-back-link {
  margin-top: 36px;
}

.resident-sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--resident-line);
}

.resident-page .resident-sources > p {
  margin-top: 0;
  font-size: 0.875rem;
  color: #59665c;
}

.resident-sources a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  padding-block: 8px;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.resident-sources svg {
  width: 13px;
  height: 13px;
}

.resident-mobile-actions {
  display: none;
}

.resident-emergency-page .section-kicker,
.resident-emergency-page .resident-step-number {
  color: var(--resident-danger);
}

.resident-danger-notice {
  display: flex;
  align-items: start;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  color: #fff;
  background: var(--resident-danger);
  border-radius: 6px;
}

.resident-danger-notice > svg {
  width: 28px;
  height: 28px;
  margin-top: 4px;
}

.resident-danger-notice p {
  margin: 0;
}

.resident-danger-notice b {
  display: block;
  font-size: 1.25rem;
}

.resident-danger-notice p span {
  display: block;
  margin-top: 8px;
}

.resident-emergency-steps ol {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.resident-emergency-steps li {
  border-top: 2px solid #ddbeb8;
  padding-top: 18px;
}

.resident-emergency-page .resident-emergency-steps h2 {
  margin-top: 12px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
}

.resident-emergency-steps p {
  margin-top: 10px;
}

.resident-emergency-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 44px;
  margin-top: 48px;
  padding: 36px;
  border: 1px solid #ddbeb8;
  background: #fff;
}

.resident-call-information {
  padding-left: 28px;
  border-left: 1px solid #ddbeb8;
}

.resident-call-information ul {
  padding-left: 1.2em;
  margin: 18px 0 0;
}

.resident-call-information li {
  padding-bottom: 10px;
  font-size: 1rem;
}

.resident-pending {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid #ddbeb8;
}

.resident-pending b {
  display: block;
  font-size: 1rem;
}

.resident-company-contact > a {
  display: inline-block;
  margin-top: 8px;
  color: var(--resident-danger);
  font-family: var(--kitaki-sans);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.resident-pending p {
  font-size: 0.875rem;
}

.resident-fire-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 24px;
  background: #f4ede6;
}

.resident-emergency-page .resident-fire-guide h2 {
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
}

.resident-fire-guide p {
  max-width: 650px;
}

.resident-fire-guide > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 160px;
  padding: 12px 24px;
  border: 1px solid var(--resident-danger);
  color: var(--resident-danger);
  background: #fff;
}

.resident-fire-guide > a > svg {
  width: 24px;
  height: 24px;
}

.resident-fire-guide > a > span {
  font-size: 0.875rem;
}

.resident-fire-guide > a > span > span {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.resident-fire-guide > a > span > span.kitaki-phone-number {
  font-weight: 700;
}

.resident-safety-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px max(24px, calc((100vw - 1080px) / 2));
  border-top: 1px solid var(--resident-line);
}

.resident-safety-footer > a:not(.site-brand) {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 0.875rem;
}

.resident-safety-footer svg {
  width: 18px;
  height: 18px;
}

.resident-safety-footer small {
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .resident-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resident-preparation,
  .resident-contact-guide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resident-emergency-steps ol {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .resident-emergency-steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 18px;
    padding-block: 22px;
  }

  .resident-emergency-page .resident-emergency-steps h2 {
    margin-top: 0;
  }

  .resident-emergency-contact {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .resident-call-information {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid #ddbeb8;
  }
}

@media (max-width: 640px) {
  .resident-layout {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .resident-header {
    width: calc(100% - 32px);
    min-height: 80px;
    gap: 16px;
  }

  .resident-header .site-brand,
  .resident-header .site-brand-logo {
    width: 94px;
  }

  .resident-header nav {
    flex-direction: column;
    align-items: end;
    gap: 2px;
  }

  .resident-header nav a {
    min-height: 30px;
  }

  .resident-container {
    width: calc(100% - 32px);
  }

  .resident-page {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .resident-breadcrumb {
    margin-bottom: 22px;
  }

  .resident-page h1 {
    font-size: 2rem;
  }

  .resident-emergency-link {
    gap: 10px;
    padding: 16px 12px;
    margin-block: 24px;
    grid-template-columns: 20px minmax(0, 1fr) 16px;
  }

  .resident-emergency-link > svg {
    width: 20px;
    height: 20px;
  }

  .resident-emergency-link > svg:last-child {
    width: 16px;
    height: 16px;
  }

  .resident-choice-grid {
    gap: 10px;
    margin-top: 18px;
  }

  .resident-choice-grid a {
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: start;
    gap: 12px;
    padding: 16px;
    min-height: 124px;
  }

  .resident-choice-grid a > svg:first-child {
    grid-column: 1;
  }

  .resident-choice-grid a b {
    grid-column: 1;
    grid-row: 2;
  }

  .resident-choice-grid a > svg:last-child {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .resident-section-nav a {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    white-space: normal;
  }

  .resident-section-nav {
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--resident-line);
    border-radius: 8px;
    background: #fff;
  }

  .resident-section-nav a + a {
    border-left: 0;
    border-top: 1px solid var(--resident-line);
  }

  .resident-section {
    padding-top: 40px;
  }

  .resident-steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }

  .resident-preparation {
    padding: 24px 20px;
    margin-top: 32px;
  }

  .resident-contact-guide {
    margin-top: 40px;
    padding-block: 32px;
  }

  .resident-related {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resident-related a {
    border-bottom: 1px solid var(--resident-line);
  }

  .resident-danger-notice {
    padding: 20px 16px;
    gap: 12px;
  }

  .resident-danger-notice > svg {
    width: 22px;
    height: 22px;
  }

  .resident-danger-notice b {
    font-size: 1.125rem;
  }

  .resident-emergency-contact {
    padding: 24px 20px;
    margin-top: 24px;
  }

  .resident-fire-guide {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
  }

  .resident-safety-footer {
    padding-bottom: 98px;
  }

  .resident-mobile-actions {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--resident-line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fcfbf7;
  }

  .resident-mobile-actions a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px;
    background: #f8ebe6;
    color: var(--resident-danger);
    font-size: 0.875rem;
  }

  .resident-mobile-actions a:last-child {
    flex: 1.6;
    background: var(--kitaki-primary);
    color: #fff;
  }

  .resident-emergency-layout .resident-mobile-actions a:last-child {
    background: var(--resident-danger);
  }

  .resident-mobile-actions svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .resident-page [id] {
    scroll-margin-top: 20px;
  }
}

@media (max-width: 359px) {
  .resident-choice-grid {
    grid-template-columns: 1fr;
  }

  .resident-choice-grid a {
    min-height: 90px;
  }

}
