/* Wave 5 reading and layout fixes. Loaded after site.css and palm-mobile.css. */

body {
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  text-wrap: balance;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 66ch;
}

.prose p,
.prose li {
  text-wrap: pretty;
}

.prose a,
.lede a,
.held-by a,
.crumb a {
  overflow-wrap: anywhere;
}

label {
  font-size: 1rem;
}

input,
select,
textarea {
  min-height: 2.75rem;
  font-size: 1rem;
}

.site-header nav {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.site-footer a,
.doors a,
.home-teasers .cta,
#taba-cookie-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.2rem 0.45rem;
}

/* Keep the nav on system UI so a webfont swap cannot wrap it onto another row. */
.site-header nav,
.site-header nav a {
  font-family: system-ui, sans-serif;
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    padding: 0.35rem 0.5rem;
  }
  .site-header nav {
    width: 100%;
    gap: 0.15rem 0.35rem;
    letter-spacing: 0.02em;
  }
}

.fill-window .pcard-file button,
.fill-window .pcard-fronts button,
.fill-window .pcard-side-toggle button,
.fill-window .pcard-dock button {
  min-height: 2.75rem;
}

.site-footer {
  font-size: 0.875rem;
  line-height: 1.5;
}

.held-by {
  color: var(--ink);
}

.doors {
  font-size: 0.875rem;
}

.eyebrow {
  font-size: 0.75rem;
}

.crumb {
  font-size: 0.8125rem;
}

img,
video {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.factbox {
  border: 1px solid var(--rule);
  background: color-mix(in srgb, #fff 72%, var(--paper));
  padding: 1rem 1.1rem;
  margin: 0 0 1.15rem;
}

.factbox dl {
  margin: 0;
}

.factbox dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.factbox dt:first-child {
  margin-top: 0;
}

.factbox dd {
  margin: 0.2rem 0 0;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 0 1.15rem;
  container-type: inline-size;
}

.table-wrap table {
  border-collapse: collapse;
  min-width: 36rem;
  width: 100%;
}

.table-wrap caption {
  text-align: start;
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-wrap: balance;
}

.table-wrap th,
.table-wrap td {
  text-align: start;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  background: #fff6ef;
}

html {
  scroll-padding-bottom: 12rem;
}

#taba-cookie-banner {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  left: max(1rem, env(safe-area-inset-left, 0px)) !important;
  right: max(1rem, env(safe-area-inset-right, 0px)) !important;
}

#taba-cookie-banner p {
  font-size: 0.9375rem !important;
  line-height: 1.45;
}

.prep-check {
  border: 1px solid var(--rule);
  background: color-mix(in srgb, #fff 72%, var(--paper));
  padding: 1rem 1.1rem 1.1rem;
  margin: 1.1rem 0 1.3rem;
}

.prep-check h3 {
  margin-top: 0;
}

.prep-check ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.prep-check li {
  margin: 0 0 0.35rem;
}

.prep-check label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.45;
  min-height: 2.75rem;
}

.prep-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  min-height: 1.25rem;
}

.prep-check-status {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.pcard-thumb--glyph {
  color: #3b1848 !important;
  background: #fff6ef !important;
  border: 1px solid #3b1848 !important;
}

@media (max-width: 860px) {
  .prose a,
  .lede a,
  .held-by a,
  .crumb a {
    display: inline !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .home-teasers .cta {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 2.75rem !important;
    padding: 0.35rem 0 !important;
  }

  .guide-list a,
  .guide-list--home > li > a {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    min-height: 2.75rem !important;
    width: 100%;
    padding: 1rem 1.1rem 1.05rem !important;
  }

  .site-header nav {
    font-size: 0.8125rem;
  }
}

/* Keep the site header at live typography so body type size does not make the bar taller. */
header.site-header {
  font-size: 16px;
  line-height: 1.45;
}
