/* patients.opera.systems — site-specific overrides on top of NHS.UK frontend */

.frontdoor-env-banner {
  background: #ffd800;
  color: #212b32;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  padding: 2px 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Header: match the clinician OPERA NG header spacing */
.nhsuk-header .nhsuk-width-container {
  padding-top: 0;
  padding-bottom: 0;
}

.frontdoor-header__container {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* The OPERA wordmark's intrinsic width would otherwise take a full flex row. */
.nhsuk-header__logo {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.nhsuk-header__logo .nhsuk-header__link {
  display: block;
  line-height: 0;
}

.nhsuk-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.nhsuk-header__content {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 0;
}

.nhsuk-header__service {
  flex-grow: 0;
  margin-right: 0;
}

.nhsuk-header__service-name {
  display: block;
  margin-right: 0;
  padding-top: 0;
  color: #fff;
  font-weight: 600;
}

.frontdoor-header__partner {
  margin-left: auto;
  line-height: 0;
}

.frontdoor-header__partner-logo {
  display: block;
  height: 44px;
  width: auto;
}

/* Footer: RMSL branding row */
.frontdoor-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.frontdoor-footer__logo {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.9;
}

/* Primary sub-navigation (white bar under the NHS blue header) */
.frontdoor-subnav {
  background: #fff;
  border-bottom: 1px solid #d8dde0;
  box-shadow: 0 -1px 0 0 #337ec6;
}

.frontdoor-subnav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frontdoor-subnav__list > li > a {
  display: inline-block;
  padding: 12px 0;
  color: #005eb8;
  font-weight: 600;
  text-decoration: none;
}

.frontdoor-subnav__list > li > a:hover {
  color: #7c2855;
  text-decoration: underline;
}

.frontdoor-subnav__account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.frontdoor-subnav__user {
  color: #4c6272;
  font-size: 0.875rem;
}

.nhsuk-radios__item--disabled .nhsuk-radios__label,
.nhsuk-radios__item--disabled .nhsuk-radios__hint {
  color: #626a6e;
}

.nhsuk-main-wrapper {
  padding-top: 24px;
}

.patient-image-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-weight: 600;
}

.patient-image-progress[hidden] {
  display: none;
}

.patient-image-spinner {
  width: 28px;
  height: 28px;
  border: 4px solid #d8dde0;
  border-top-color: #005eb8;
  border-radius: 50%;
  animation: patient-image-spin 0.8s linear infinite;
}

@keyframes patient-image-spin {
  to { transform: rotate(360deg); }
}

.patient-image-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.patient-image-thumbnail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.patient-image-thumbnail img,
.patient-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #d8dde0;
  border: 2px solid #768692;
}

.patient-image-placeholder {
  display: grid;
  place-items: center;
}

.patient-image-thumbnail span {
  overflow-wrap: anywhere;
}

.patient-image-thumbnail .nhsuk-button {
  margin-bottom: 0;
}

/* Wider than default NHS.UK 960px / prior 1080px so desktop at 100% zoom uses
   more of the viewport, while side margins remain on typical laptop widths. */
.nhsuk-width-container {
  max-width: 1200px;
}

/*
  Typography (WCAG 2.2):
  - Keep a 16px root so browser zoom to 200% still works (SC 1.4.4).
  - Use 16px body text (≥1rem) with ≥1.5 line-height for readability /
    text-spacing (SC 1.4.12), instead of NHS.UK’s 19px desktop body which
  feels oversized at 100% zoom on wide screens.
  - Headings stay clearly larger than body for hierarchy without dominating.
*/
html {
  font-size: 100%; /* 16px when the browser default is 16px */
}

body.nhsuk-body {
  font-size: 1rem;
  line-height: 1.5;
}

body.nhsuk-body p,
body.nhsuk-body .nhsuk-body,
body.nhsuk-body .nhsuk-body-m,
body.nhsuk-body .nhsuk-label,
body.nhsuk-body .nhsuk-hint,
body.nhsuk-body .nhsuk-list,
body.nhsuk-body .nhsuk-summary-list,
body.nhsuk-body .nhsuk-radios__label,
body.nhsuk-body .nhsuk-checkboxes__label,
body.nhsuk-body .nhsuk-fieldset__legend,
body.nhsuk-body .nhsuk-table,
body.nhsuk-body .nhsuk-input,
body.nhsuk-body .nhsuk-select,
body.nhsuk-body .nhsuk-textarea,
body.nhsuk-body .nhsuk-button,
body.nhsuk-body .nhsuk-back-link__link,
body.nhsuk-body .nhsuk-details__summary-text {
  font-size: 1rem;
  line-height: 1.5;
}

body.nhsuk-body .nhsuk-body-l {
  font-size: 1.125rem; /* 18px lead-in copy */
  line-height: 1.45;
}

body.nhsuk-body .nhsuk-body-s,
body.nhsuk-body .nhsuk-caption-m {
  font-size: 0.875rem; /* 14px secondary — still ≥14px for UI chrome */
  line-height: 1.5;
}

body.nhsuk-body .nhsuk-heading-xl {
  font-size: 2rem; /* 32px */
  line-height: 1.25;
}

.frontdoor-dashboard-intro {
  margin-bottom: 12px;
}

.frontdoor-letter-inset {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 12px 16px;
}

.frontdoor-letter-inset p {
  margin-bottom: 0;
  font-weight: 700;
}

body.nhsuk-body .nhsuk-heading-l {
  font-size: 1.5rem; /* 24px */
  line-height: 1.3;
}

body.nhsuk-body .nhsuk-heading-m,
body.nhsuk-body .nhsuk-card__heading {
  font-size: 1.25rem; /* 20px */
  line-height: 1.35;
}

body.nhsuk-body .nhsuk-fieldset__legend--m {
  font-size: 1.25rem;
  line-height: 1.35;
}

body.nhsuk-body .nhsuk-fieldset__legend--l {
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Sort preference radios */
.frontdoor-sort {
  margin: 0 0 28px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d8dde0;
}

.frontdoor-sort__radios {
  margin-bottom: 0;
}

.frontdoor-sort .nhsuk-radios--inline .nhsuk-radios__item {
  margin-right: 16px;
}

/* Compact radios — default NHS size (2.75rem) dominates this bar visually. */
.frontdoor-sort .nhsuk-radios__input {
  width: 2rem;
  height: 2rem;
}

.frontdoor-sort .nhsuk-radios__label {
  max-width: calc(100% - 2rem);
  padding: 2px 0.75rem 2px 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.frontdoor-sort .nhsuk-radios__label::before {
  width: 1.75rem;
  height: 1.75rem;
}

.frontdoor-sort .nhsuk-radios__input:checked + .nhsuk-radios__label::after {
  top: 0.5rem;
  left: 0.5rem;
  border-width: 0.4375rem;
}

.frontdoor-choice-table-wrap--error {
  outline: 3px solid #d4351c;
  outline-offset: 0;
}

.frontdoor-choice-table-wrap--declined {
  opacity: 0.55;
}

.frontdoor-decline {
  max-width: 40rem;
  padding-top: 0.5rem;
  border-top: 1px solid #d8dde0;
}

/* Provider-choice table — one compact row per provider */
.frontdoor-choice-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d8dde0;
  background: #fff;
}

.frontdoor-choice-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin-bottom: 0;
  font-size: 0.9375rem; /* 15px — table density; body remains 16px */
  line-height: 1.35;
}

.frontdoor-choice-table thead th {
  text-align: left;
  background: #f0f4f5;
  color: #212b32;
  font-weight: 600;
  padding: 10px 10px;
  border-bottom: 1px solid #d8dde0;
  white-space: nowrap;
}

.frontdoor-choice-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #e8edee;
  vertical-align: middle;
  white-space: normal;
}

.frontdoor-choice-table tbody tr:last-child td {
  border-bottom: 0;
}

.frontdoor-choice-row--selected {
  background: #f7fafc;
}

.frontdoor-choice-table__select {
  width: 76px;
}

.frontdoor-choice-table thead th.frontdoor-choice-table__center,
.frontdoor-choice-table tbody td.frontdoor-choice-table__center {
  text-align: center;
}

.frontdoor-choice-table__provider {
  width: auto;
  font-weight: 400;
  color: #212b32;
}

.frontdoor-choice-table__num {
  width: 58px;
  text-align: center;
  white-space: nowrap;
}

.frontdoor-choice-table tbody td.frontdoor-choice-table__num {
  white-space: nowrap;
}

.frontdoor-choice-table__indicator {
  width: 72px;
  text-align: center;
}

.frontdoor-choice-table__wait {
  width: 7rem;
  min-width: 7rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.frontdoor-choice-table tbody td.frontdoor-choice-table__wait {
  white-space: nowrap;
}

.frontdoor-choice-table__wait-value {
  display: inline-block;
  white-space: nowrap;
}

.frontdoor-choice-table__pc {
  width: 70px;
  white-space: nowrap;
  text-align: center;
}

.frontdoor-postcode {
  white-space: nowrap;
}

/* Clear Select control */
.frontdoor-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}

.frontdoor-select input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.frontdoor-choice-table__provider-text {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.frontdoor-choice-keys {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid #d8dde0;
  background: #f8fafc;
}

.frontdoor-choice-key {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 20px;
}

.frontdoor-choice-key:not(:last-child) {
  border-right: 1px solid #e2e8ee;
}

.frontdoor-choice-key__title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #212b32;
}

.frontdoor-choice-key__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #425563;
}

.frontdoor-choice-key__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.frontdoor-choice-key__list li:last-child {
  margin-bottom: 0;
}

.frontdoor-choice-key__list--cqc {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.frontdoor-indicator {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.frontdoor-indicator--green {
  background: #007f3b;
  border-color: #005a30;
}

.frontdoor-indicator--amber {
  background: #f47738;
  border-color: #c45a20;
}

.frontdoor-indicator--red {
  background: #d5281b;
  border-color: #a31f15;
}

.frontdoor-indicator--grey {
  background: #768692;
  border-color: #5c6b78;
}

.frontdoor-cqc-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #007f3b;
  vertical-align: middle;
}

.frontdoor-cqc-star__icon {
  display: block;
  width: 18px;
  height: 18px;
}

.frontdoor-select__btn {
  display: inline-block;
  min-width: 64px;
  min-height: 36px;
  padding: 8px 10px;
  border: 2px solid #005eb8;
  color: #005eb8;
  background: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.1;
}

.frontdoor-select input:focus + .frontdoor-select__btn {
  outline: 3px solid #ffeb3b;
  outline-offset: 1px;
}

.frontdoor-select input:checked + .frontdoor-select__btn {
  background: #005eb8;
  color: #fff;
}

/* Confirmation: make the selected provider stand out from surrounding copy */
.frontdoor-chosen-card {
  border-color: #005eb8;
  border-top-width: 4px;
  box-shadow: 0 1px 0 0 rgba(0, 94, 184, 0.08);
}

/* Keep label + value on one row (as in the original summary list), even in
   the narrower card column / on smaller viewports. */
.frontdoor-chosen-card .nhsuk-summary-list {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 0;
}

.frontdoor-chosen-card .nhsuk-summary-list__row {
  display: table-row;
  margin-bottom: 0;
  border-bottom: 1px solid #d8dde0;
}

.frontdoor-chosen-card .nhsuk-summary-list__row:last-child {
  border-bottom: 0;
}

.frontdoor-chosen-card .nhsuk-summary-list__key,
.frontdoor-chosen-card .nhsuk-summary-list__value {
  display: table-cell;
  padding-top: 12px;
  padding-bottom: 12px;
  vertical-align: top;
  float: none;
  width: auto;
}

.frontdoor-chosen-card .nhsuk-summary-list__key {
  width: 28%;
  padding-right: 16px;
  font-weight: 600;
}

.frontdoor-chosen-card .nhsuk-summary-list__value {
  width: 72%;
}

#confirm-provider-confirmed {
  outline: none;
}

#confirm-provider-confirmed:focus {
  outline: 3px solid #ffeb3b;
  outline-offset: 0;
}

/* Confirmation: RNIB "See more" uses NHS details (blue summary link) */
.frontdoor-rnib-details {
  margin-top: 8px;
  margin-bottom: 24px;
}

.frontdoor-rnib-details .nhsuk-details__summary-text {
  color: #005eb8;
  text-decoration: underline;
  text-decoration-thickness: max(1px, 0.0625rem);
  text-underline-offset: 0.1578em;
}

.frontdoor-rnib-details .nhsuk-details__summary:hover .nhsuk-details__summary-text {
  color: #7c2855;
  text-decoration: none;
}

.frontdoor-rnib-details .nhsuk-details__summary:focus .nhsuk-details__summary-text {
  color: #212b32;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   NHS login button (official partner guidance)
   https://nhsconnect.github.io/nhslogin/button-guidance/
   Variant: websites/apps without NHS logo on the same screen (logo on button).
   --------------------------------------------------------------------------- */
.nhslogin-button {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 28px;
  -webkit-appearance: none;
  appearance: none;
  background-color: #005eb8;
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow: 0 4px 0 #003087;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  padding: 12px 16px;
  position: relative;
  text-align: center;
  vertical-align: top;
  width: auto;
  text-decoration: none;
}

@media (min-width: 40.0625em) {
  .nhslogin-button {
    font-size: 1.1875rem;
    line-height: 1.47368;
    margin-bottom: 36px;
  }
}

@media (max-width: 40.0525em) {
  .nhslogin-button {
    padding: 8px 16px;
  }
}

.nhslogin-button:link,
.nhslogin-button:visited,
.nhslogin-button:active,
.nhslogin-button:hover {
  color: #fff;
  text-decoration: none;
}

.nhslogin-button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.nhslogin-button:hover {
  background-color: #1e569b;
}

.nhslogin-button:focus {
  background: #ffeb3b;
  box-shadow: 0 4px 0 #003087;
  color: #003087;
  outline: none;
}

.nhslogin-button:active {
  background: #1e569b;
  box-shadow: none;
  color: #fff;
  top: 4px;
}

.nhslogin-button::before {
  background: transparent;
  bottom: -6px;
  content: "";
  display: block;
  left: -2px;
  position: absolute;
  right: -2px;
  top: -2px;
}

.nhslogin-button:active::before {
  top: -6px;
}

.nhslogin-button-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nhslogin-button .button-logo {
  padding-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nhslogin-button:focus .nhsuk-logo__text {
  fill: #003087;
}

.nhslogin-button:focus .nhsuk-logo__background {
  fill: #fff;
}

.frontdoor-actioned-backdrop {
  background: rgba(0, 0, 0, 0.45);
  inset: 0;
  position: fixed;
  z-index: 20;
}

.frontdoor-actioned-modal-wrap {
  left: 50%;
  max-width: 40rem;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  z-index: 21;
}

.frontdoor-actioned-modal {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Your past care (Phase G) */
.frontdoor-record-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .frontdoor-record-layout {
    grid-template-columns: 1fr;
  }
}

.frontdoor-timeline {
  --timeline-gutter: 1.25rem;
  --timeline-line: 3px;
  --timeline-dot: 0.75rem;
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--timeline-gutter);
  list-style: none;
  border-left: var(--timeline-line) solid #d8dde0;
}

.frontdoor-timeline__item {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 0.75rem;
}

.frontdoor-timeline__item::before {
  content: "";
  position: absolute;
  /* Centre the dot on the timeline border */
  left: calc(-1 * var(--timeline-gutter) - (var(--timeline-line) / 2) - (var(--timeline-dot) / 2));
  top: 0.95rem;
  width: var(--timeline-dot);
  height: var(--timeline-dot);
  border-radius: 50%;
  background: #fff;
  border: 3px solid #005eb8;
  box-sizing: border-box;
}

.frontdoor-timeline__item.is-active::before {
  background: #005eb8;
}

.frontdoor-record-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 2px solid #d8dde0;
  background: #fff;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.frontdoor-record-card:hover,
.frontdoor-record-card:focus {
  border-color: #005eb8;
  outline: 3px solid transparent;
  box-shadow: 0 0 0 3px #ffeb3b;
}

.frontdoor-record-card.is-active {
  border-color: #ae2573;
  background: #f9eef5;
}

.frontdoor-record-card__meta {
  color: #4c6272;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.frontdoor-record-detail {
  border: 2px solid #ae2573;
  background: #fff;
  padding: 1.25rem;
  min-width: 0;
}

.frontdoor-record-detail--viewer {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

.frontdoor-record-viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.frontdoor-record-viewer-toolbar .nhsuk-heading-m {
  margin: 0;
  flex: 1 1 12rem;
}

.frontdoor-record-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.frontdoor-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.frontdoor-doc-list li {
  border-top: 1px solid #d8dde0;
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.frontdoor-doc-list li:first-child {
  border-top: 0;
}

.frontdoor-doc-viewer {
  border: 1px solid #d8dde0;
  background: #f0f4f5;
  min-height: 70vh;
}

.frontdoor-doc-viewer--pane {
  flex: 1 1 auto;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}

.frontdoor-doc-viewer--pane .frontdoor-doc-viewer__frame {
  flex: 1 1 auto;
  height: 60vh;
  min-height: 28rem;
}

.frontdoor-doc-viewer__frame {
  width: 100%;
  height: 75vh;
  border: 0;
  background: #fff;
}

.frontdoor-doc-viewer__image {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.frontdoor-image-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.frontdoor-image-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid #d8dde0;
  background: #f0f4f5;
  text-decoration: none;
  color: inherit;
  min-height: 10rem;
  overflow: hidden;
}

.frontdoor-image-tile:hover,
.frontdoor-image-tile:focus {
  border-color: #005eb8;
  box-shadow: inset 0 0 0 2px #005eb8;
}

.frontdoor-image-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #d8dde0;
}

.frontdoor-image-tile__caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #4c6272;
}

.frontdoor-image-tile__caption strong {
  color: #212b32;
  font-size: 0.85rem;
}

/* Post–NHS Login home tiles */
.frontdoor-level-badge {
  display: inline-block;
  background: #003087;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.frontdoor-home-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .frontdoor-home-tiles {
    grid-template-columns: 1fr;
  }
}

.frontdoor-home-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 11rem;
  padding: 1.25rem 1.35rem;
  border: 2px solid #d8dde0;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.frontdoor-home-tile:hover,
.frontdoor-home-tile:focus {
  border-color: #005eb8;
  box-shadow: 0 0 0 2px #ffeb3b;
  outline: none;
  text-decoration: none;
  color: inherit;
}

.frontdoor-home-tile__title {
  margin: 0 0 0.65rem;
  color: #005eb8;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.frontdoor-home-tile:hover .frontdoor-home-tile__title,
.frontdoor-home-tile:focus .frontdoor-home-tile__title {
  color: #003087;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.frontdoor-home-tile__flag {
  display: inline-block;
  background: #ffeb3b;
  color: #212b32;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.45rem;
  line-height: 1.2;
  text-decoration: none;
}

.frontdoor-home-tile--action {
  border-color: #ffb81c;
  border-left-width: 4px;
  border-left-color: #ffb81c;
}

.frontdoor-home-tile__body {
  margin: 0;
  flex: 1;
  color: #4c6272;
  font-size: 1.05rem;
  line-height: 1.45;
}

.frontdoor-home-tile__cta {
  margin-top: 1.25rem;
  color: #005eb8;
  font-weight: 700;
}

.frontdoor-home-tile__cta::after {
  content: " →";
}

.frontdoor-care-letters {
  margin-top: 1.5rem;
}

.frontdoor-care-letter {
  padding: 1.25rem 0;
  border-top: 1px solid #d8dde0;
}

.frontdoor-care-letter:last-child {
  border-bottom: 1px solid #d8dde0;
}


