@import url('/assets/immigration-identity.css');
@font-face {
  font-family: Newsreader;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #f8f7f2;
  --sheet: #fdfcf8;
  --ink: #172c32;
  --muted: #505f5e;
  --line: #d2d6cd;
  --strong-line: #a0ada4;
  --green: #235347;
  --green-ink: #1f5145;
  --on-green: #fffdf6;
  --pale: #e9ede4;
  --gold: #977038;
  --alert: #88372d;
  --shadow: 0 16px 80px #122b2f26;
  --serif: Newsreader, Georgia, serif;
  font:
    100%/1.5 'Inter Tight',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121c20;
    --sheet: #19252a;
    --ink: #f0f1e8;
    --muted: #b5c2bb;
    --line: #37464a;
    --strong-line: #637575;
    --green: #b9d8bc;
    --green-ink: #c0dbbf;
    --on-green: #183128;
    --pale: #253631;
    --gold: #d4ad71;
    --alert: #ffafa0;
    --shadow: 0 16px 80px #0006;
  }
}
* {
  box-sizing: border-box;
}
body,
figure,
p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 0.19em;
  text-decoration-thickness: 1px;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: none;
}
label {
  font-weight: 550;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
[hidden],
html:not(.interactive) [data-needs-js] {
  display: none !important;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 5;
  background: var(--sheet);
  padding: 0.6rem 1rem;
}
.shell {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
}
.masthead {
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--eb5-family-brand-gap);
  min-height: 3.5rem;
  text-decoration: none;
  font-size: 1.56rem;
  font-weight: 660;
  letter-spacing: -0.06em;
}
.brand img {
  width: var(--eb5-family-mark-size);
  height: calc(var(--eb5-family-mark-size) * 34 / 32);
  display: block;
}
.masthead nav {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
}
.masthead nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 570;
  color: var(--muted);
}
.masthead nav svg {
  width: 1rem;
  height: 1rem;
}
.masthead nav a[aria-current] {
  border-color: var(--green);
  color: var(--green-ink);
}
main {
  flex: 1;
  padding-block: 1.5rem 3.2rem;
  min-width: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 460;
  line-height: 1.05;
  letter-spacing: -0.038em;
}
h1 {
  font-size: clamp(3.15rem, 8vw, 5.8rem);
  letter-spacing: -0.057em;
}
h2 {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
}
h3 {
  font-size: 1.55rem;
}
.cover {
  display: grid;
  background: var(--pale);
  overflow: hidden;
  border: 1px solid var(--line);
}
.cover-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.65rem 1.35rem;
}
.cover h1 {
  font-size: clamp(3.15rem, 7vw, 6rem);
  line-height: 0.98;
}
.period {
  color: var(--gold);
}
.cover-copy p,
.page-intro > p {
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 48ch;
  line-height: 1.48;
}
.cover-copy p {
  margin: 0.64rem 0 1.15rem;
  max-width: 40ch;
}
.primary,
.subtle,
.bookmark,
.text-link,
.plan-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  font-size: 0.94rem;
  font-weight: 610;
  line-height: 1.22;
  text-decoration: none;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: var(--on-green);
  padding: 0.65rem 1rem;
  border-radius: 0.22rem;
}
.subtle,
.bookmark {
  color: var(--green-ink);
  border: 1px solid var(--strong-line);
  padding: 0.5rem 0.82rem;
  border-radius: 0.22rem;
}
.arrow,
.external {
  font-family: system-ui, sans-serif;
  font-weight: 400;
}
.arrow {
  font-size: 1.15em;
}
.external {
  font-size: 0.86em;
}
.cover-photo {
  position: relative;
  min-width: 0;
  background: #304542;
}
.cover-photo picture,
.cover-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.cover-photo img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 44%;
  filter: sepia(0.16);
}
.cover-photo figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 1.2rem 0.65rem 0.42rem;
  background: linear-gradient(transparent, #101915b8);
  color: white;
  text-align: right;
}
.cover-photo figcaption a {
  font-size: 0.72rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.overview-section {
  margin-top: 2.05rem;
}
.section-heading,
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.section-heading {
  margin-bottom: 1rem;
}
.device {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.device svg {
  width: 1rem;
  height: 1rem;
}
.plan-cards {
  display: grid;
  gap: 0.65rem;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  padding: 1.15rem;
  background: var(--sheet);
  min-width: 0;
  scroll-margin-top: 1rem;
}
.plan-card h3 {
  font-family: inherit;
  font-size: 0.89rem;
  font-weight: 610;
  letter-spacing: 0.005em;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.plan-card h3 svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--green-ink);
}
.card-number,
.pair-summary {
  font-family: var(--serif);
  font-weight: 470;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0.95rem 0 0.3rem;
}
.card-number {
  font-size: 2.7rem;
}
.card-number span {
  font-size: 1.5rem;
  color: var(--muted);
  letter-spacing: -0.03em;
}
.pair-summary {
  font-size: 2.1rem;
}
.card-detail {
  font-size: 0.92rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-bottom: 0.55rem;
}
.plan-card > a,
.text-link {
  margin-top: auto;
  color: var(--green-ink);
  justify-content: flex-start;
  text-underline-offset: 0.21em;
}
.topic-grid {
  display: grid;
  border-top: 1px solid var(--strong-line);
}
.topic-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.topic-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--green-ink);
  background: var(--pale);
  border-radius: 50%;
}
.topic-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.topic-link strong {
  display: block;
  font: 480 1.43rem/1.15 var(--serif);
  letter-spacing: -0.025em;
}
.topic-summary {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.18rem;
}
.topic-link > .arrow {
  color: var(--green-ink);
  font-size: 1.3rem;
}
.page-intro {
  margin: 0 0 1.65rem;
}
.page-intro > p {
  margin-top: 0.75rem;
  max-width: 60ch;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-bottom: 0.7rem;
  color: var(--green-ink);
  font-size: 0.88rem;
  font-weight: 560;
  text-decoration: none;
}
.journey-layout {
  display: grid;
  align-items: start;
  gap: 1.8rem;
}
.journey-aside,
.panel {
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.journey-aside h2,
.panel h2,
.toolbar h2 {
  font-size: 1.85rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
}
.steps li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--strong-line);
}
.steps li > span {
  display: block;
}
.add-step {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  min-height: 2.65rem;
}
.journey-aside .text-link {
  margin-top: 0;
}
.source-row {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.25rem;
  overflow-wrap: anywhere;
}
.source-row:first-of-type {
  border-color: var(--strong-line);
}
.source-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.18rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.source-meta span:first-child {
  font-weight: 640;
  color: var(--green-ink);
}
.source-row h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.88rem);
  margin: 0.4rem 0;
}
.source-row h3 a {
  text-decoration: none;
}
.source-row p {
  color: var(--muted);
  max-width: 63ch;
}
.bookmark {
  margin-top: 0.7rem;
}
.bookmark[aria-pressed='true'] {
  background: var(--pale);
  border-color: var(--green-ink);
}
.shortlist {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}
.shortlist > p {
  color: var(--muted);
  margin-top: 0.4rem;
}
.pair-selects {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 35rem;
  margin: 1rem 0;
}
.pair-selects label,
#editor-fields label,
#copy-fallback label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.92rem;
}
select,
input:not([type='checkbox']) {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--strong-line);
  border-radius: 0.18rem;
  background: var(--sheet);
  font-size: 1rem;
  min-width: 0;
}
select {
  appearance: auto;
}
.buttons,
.row-actions {
  display: flex;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
#copy-fallback {
  max-width: 38rem;
  margin-top: 1rem;
}
.feedback:not(:empty) {
  margin-block: 0.6rem;
}
.work-panel {
  border-top: 1px solid var(--strong-line);
  padding-top: 1.1rem;
}
.save-page {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  min-height: 2.75rem;
  color: var(--green-ink);
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
}
.save-page svg {
  width: 1rem;
  height: 1rem;
}
.save-page:hover {
  text-decoration: underline;
}
.incoming-bookmark {
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--strong-line);
  border-left: 3px solid var(--green);
  background: var(--sheet);
  overflow-wrap: anywhere;
}
.incoming-bookmark h2 {
  margin-top: .15rem;
}
.incoming-bookmark h2:focus {
  outline: none;
}
.incoming-bookmark p:not(:empty) {
  margin-top: .45rem;
}
.incoming-bookmark form {
  max-width: 38rem;
}
.incoming-bookmark label {
  display: block;
  margin: .45rem 0 .25rem;
  font-weight: 580;
}
.incoming-bookmark .buttons {
  margin-top: .8rem;
}
.work-panel .toolbar {
  margin-bottom: 1rem;
}
.filters {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}
.filters button {
  border: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  font-weight: 560;
  border-radius: 0.16rem;
  color: var(--muted);
}
.filters button[aria-pressed='true'] {
  background: var(--pale);
  color: var(--green-ink);
}
.task-row,
.saved-row {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.4rem;
}
.task-row > div,
.saved-row > div {
  min-width: 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  overflow-wrap: anywhere;
  cursor: pointer;
  min-height: 2.75rem;
  padding-top: 0.35rem;
}
.check-label input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  accent-color: var(--green);
  flex: none;
}
.check-label span {
  font: 500 1.3rem/1.2 var(--serif);
}
.check-label:has(input:checked) span {
  text-decoration: line-through;
  color: var(--muted);
}
.task-journey {
  margin-left: 1.95rem;
  padding-block: 0.48rem;
  display: inline-block;
  color: var(--muted);
  font-size: 0.87rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.row-actions {
  flex-shrink: 0;
  gap: 0.35rem;
}
.row-actions button {
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 0.9rem;
  color: var(--green-ink);
}
.saved-row h3 {
  overflow-wrap: anywhere;
  margin: 0.25rem 0;
  font-size: 1.5rem;
}
.saved-row h3 a {
  text-decoration: none;
}
.empty {
  padding: 1.7rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--sheet);
  margin: 1rem 0;
}
.empty h3 {
  font-size: 1.6rem;
}
.empty p {
  margin: 0.45rem 0;
  color: var(--muted);
}
.notice {
  padding: 0.65rem 1rem;
  border: 1px solid var(--strong-line);
  background: var(--pale);
  margin-bottom: 1rem;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  border-top: 1px solid var(--strong-line);
  padding: 1rem 0 1.6rem;
  color: var(--muted);
}
footer > span {
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -0.045em;
  color: var(--ink);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
}
footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  font-size: 0.87rem;
  text-decoration: none;
}
dialog {
  width: min(29rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.55rem;
  border: 1px solid var(--strong-line);
  border-radius: 0.3rem;
  color: var(--ink);
  background: var(--sheet);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #07181391;
}
dialog h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
#editor-fields {
  display: grid;
  gap: 1rem;
}
#editor-fields p {
  overflow-wrap: anywhere;
  color: var(--muted);
}
#editor-form .buttons {
  margin-top: 1.35rem;
}
#editor-error {
  color: var(--alert);
}
@media (hover: hover) {
  a:hover,
  .row-actions button:hover {
    text-decoration: underline;
  }
  .primary:hover {
    filter: brightness(1.12);
    text-decoration: none;
  }
  .subtle:hover,
  .bookmark:hover,
  .filters button:hover {
    background: var(--pale);
  }
  .topic-link:hover {
    background: var(--pale);
    text-decoration: none;
  }
  .topic-link:hover strong,
  .saved-row h3 a:hover,
  .source-row h3 a:hover {
    text-decoration: underline;
  }
}
@media (max-width: 44.99rem) {
  .mast-inner {
    gap: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .brand {
    align-self: flex-start;
  }
  .masthead nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .masthead nav a {
    justify-content: center;
    min-height: 2.8rem;
  }
  .cover-photo {
    height: 6.35rem;
  }
  .cover-photo img {
    object-position: 50% 49%;
  }
  .plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.65rem;
    padding: 0.88rem 1rem;
  }
  .plan-card h3 {
    grid-column: 1;
  }
  .plan-card .card-number,
  .plan-card .pair-summary {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    margin: 0;
    font-size: 1.72rem;
    text-align: right;
  }
  .plan-card .card-number span {
    font-size: 1.02rem;
  }
  .plan-card .pair-summary {
    max-width: 9.5ch;
    line-height: 1;
    font-size: 1.33rem;
  }
  .plan-card .card-detail {
    grid-column: 1;
    margin-bottom: 0;
    margin-top: 0.2rem;
    font-size: 0.86rem;
  }
  .plan-card > a {
    grid-column: 1 / -1;
    margin-bottom: -0.35rem;
    justify-self: start;
  }
  .section-heading .device {
    font-size: 0.76rem;
  }
  .task-row,
  .saved-row {
    display: block;
  }
  .row-actions {
    margin-left: -0.45rem;
  }
  .task-row .row-actions {
    margin-left: 1.5rem;
  }
  .check-label span {
    font-size: 1.26rem;
  }
}
@media (min-width: 45rem) {
  .shell {
    width: min(100% - 5rem, 76rem);
  }
  .masthead nav {
    gap: 2.1rem;
  }
  .brand,
  .masthead nav a {
    min-height: 4.8rem;
  }
  main {
    padding-block: 2.4rem 4.5rem;
  }
  .cover {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    min-height: 18.5rem;
  }
  .cover-copy {
    padding: 2.5rem 3rem;
  }
  .cover-copy p {
    font-size: 1.15rem;
    margin: 1rem 0 1.4rem;
  }
  .cover-photo img {
    object-position: 50% 46%;
  }
  .cover-photo figcaption {
    padding: 0.9rem 0.75rem 0.4rem;
  }
  .plan-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .plan-card {
    padding: 1.3rem 1.45rem 0.9rem;
  }
  .overview-section {
    margin-top: 2.5rem;
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
  .topic-link {
    padding: 1.2rem 0.35rem 1.2rem 0;
    gap: 1rem;
  }
  .topic-icon {
    width: 3rem;
    height: 3rem;
  }
  .page-intro {
    margin-bottom: 2.3rem;
  }
  .page-intro > p {
    font-size: 1.2rem;
  }
  .journey-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(15rem, 1fr);
    gap: clamp(2rem, 7vw, 5.5rem);
  }
  .journey-aside,
  .panel {
    padding: 1.55rem;
  }
  .work-panel {
    max-width: 65rem;
  }
}
@media (max-width: 359px) {
  .shell {
    width: calc(100% - 1.5rem);
  }
  .masthead nav svg {
    display: none;
  }
  .pair-selects {
    grid-template-columns: 1fr;
  }
}
.local-guides {
  margin: 0 0 1.8rem;
  border-block: 1px solid var(--line);
  padding: 0.95rem 0;
}
.local-guides h2 {
  font:
    610 1rem/1.4 'Inter Tight',
    system-ui,
    sans-serif;
  letter-spacing: 0;
}
.local-guides p,
.paired-note {
  font-size: 0.92rem;
  color: var(--muted);
}
#city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.pair-selects select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2.85rem;
  height: 2.85rem;
  padding-right: 2rem;
}
.pair-selects label {
  position: relative;
}
.pair-selects label::after {
  content: '';
  position: absolute;
  bottom: 1.2rem;
  right: 0.85rem;
  width: 0.49rem;
  height: 0.49rem;
  border: solid var(--green-ink);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.returning .cover h1 {
  font-size: clamp(2.85rem, 5.2vw, 4.5rem);
}
@media (min-width: 45rem) {
  .cover h1 {
    font-size: clamp(3.65rem, 5.65vw, 5.15rem);
  }
  .returning .cover {
    min-height: 14.6rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .returning .cover-copy {
    padding-block: 1.65rem;
  }
}
@media (max-width: 44.99rem) {
  .returning .cover-photo {
    display: none;
  }
}
.shared-pair {
  margin-bottom: 1rem;
}
.shared-pair p {
  margin: 0.5rem 0 1rem;
}
.mast-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 1.75rem;
}
.masthead nav {
  justify-self: center;
  gap: clamp(0.7rem, 2.1vw, 2.1rem);
}
.sign-in {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--strong-line);
  border-radius: 0.22rem;
  font-weight: 630;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--green-ink);
}
.case-cover {
  background: #203e39;
  color: #f8f6ed;
  border-color: #203e39;
}
.case-cover .cover-copy p {
  color: #dce5d9;
  max-width: 42ch;
}
.case-cover .period {
  color: #d9b57d;
}
.case-cover .primary {
  background: #eaf0e3;
  color: #193c34;
  border-color: #eaf0e3;
}
.case-cover .text-link {
  color: #edf3e8;
  margin: 0 0.35rem;
}
.case-cover .cover-photo img {
  object-position: center 50%;
}
.research-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 1rem;
  padding: 1.15rem clamp(1rem, 3vw, 2rem);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold);
}
.research-entry h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.research-entry p { max-width: 54ch; margin-top: .3rem; color: var(--muted); }
.filing-grid {
  display: grid;
  gap: 1rem;
}
.filing-group,
.stat-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.filing-group h3 {
  font-size: 1.65rem;
}
.filing-group > p,
.move-handoff p,
.stat-detail,
.stats-trend p {
  color: var(--muted);
  margin: 0.5rem 0;
  line-height: 1.45;
}
.filing-group ul,
.bars {
  list-style: none;
  padding: 0;
}
.filing-group li {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
}
.filing-group li:last-child {
  padding-bottom: 0;
}
.filing-group li a {
  display: inline-block;
  color: var(--green-ink);
  font-weight: 590;
  text-decoration: none;
  line-height: 1.4;
  padding: 0.1rem 0;
}
.filing-group li a:hover,
.sign-in:hover {
  text-decoration: underline;
}
.case-source,
.stat-period {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  font-weight: 550;
  display: block;
}
.save-small {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  height: 2.75rem;
  color: var(--green-ink);
  border: 1px solid var(--line);
  border-radius: 0.2rem;
}
.save-small svg {
  width: 1.1rem;
  height: 1.1rem;
}
.save-small[aria-pressed='true'] {
  background: var(--pale);
  border-color: var(--green-ink);
}
.save-small[aria-pressed='true'] svg {
  fill: currentColor;
}
.move-handoff {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding: 1.2rem;
  background: var(--pale);
  border: 1px solid var(--line);
}
.handoff-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.2rem;
  flex-wrap: wrap;
}
.handoff-links a,
.stat-source,
.stats-trend a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  color: var(--green-ink);
  font-size: 0.9rem;
  line-height: 1.35;
}
.stats-grid {
  display: grid;
  gap: 0.8rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat-card h2 {
  font:
    600 0.98rem/1.4 'Inter Tight',
    system-ui,
    sans-serif;
  letter-spacing: 0;
}
.stat-value {
  font: 470 clamp(2.4rem, 5vw, 3.8rem) / 1.1 var(--serif);
  letter-spacing: -0.045em;
  margin: 0.55rem 0 0.15rem;
}
.stat-period {
  color: var(--green-ink);
}
.stat-source {
  margin-top: auto;
}
.stats-trend {
  background: var(--pale);
  padding: 1.25rem;
  margin-top: 1.2rem;
  display: grid;
  align-items: center;
  gap: 0.75rem 2.5rem;
}
.stats-trend h2 {
  font-size: 1.9rem;
}
.stats-trend a {
  font-size: 0.86rem;
}
.bars li {
  display: grid;
  grid-template-columns: minmax(6.8rem, auto) minmax(2rem, 1fr) 3.1rem;
  align-items: center;
  gap: 0.45rem;
}
.bars strong {
  font-variant-numeric: tabular-nums;
  font-weight: 610;
  text-align: right;
}
.bar-track {
  display: block;
  background: var(--line);
  height: 0.6rem;
}
.bar-track > span {
  display: block;
  height: 100%;
  background: var(--green);
}
@media (min-width: 48rem) {
  .filing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats-grid,
  .stat-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.15rem;
  }
  .stats-trend {
    grid-template-columns: 1fr 1.3fr;
    padding: 1.75rem;
  }
  .filing-group,
  .stat-card,
  .move-handoff {
    padding: 1.45rem;
  }
}
@media (max-width: 47.99rem) {
  .mast-inner {
    grid-template-columns: 1fr auto;
    gap: 0;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .sign-in {
    grid-column: 2;
    grid-row: 1;
  }
  .masthead nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 0.25rem;
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .masthead nav a {
    min-height: 2.8rem;
    font-size: 0.88rem;
  }
  .masthead nav svg {
    display: none;
  }
  .case-cover .cover-copy {
    padding: 1.5rem 1.15rem;
  }
  .case-cover h1 {
    font-size: clamp(2.8rem, 11.9vw, 4rem);
  }
  .case-cover .cover-photo {
    height: 6.15rem;
  }
  .case-cover figcaption a {
    font-size: 0.67rem;
  }
  .case-cover .buttons {
    gap: 0.35rem;
  }
  .case-cover .text-link {
    font-size: 0.89rem;
  }
}

.install-guide {
  margin-top: 0.75rem;
  color: var(--ink);
  border-block: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.install-guide summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.4rem;
  padding: 0.5rem 0.1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 560;
}
.install-guide summary::-webkit-details-marker { display: none; }
.install-guide summary > img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
}
.install-chevron {
  margin: 0 0.45rem 0 auto;
  width: 0.53rem;
  height: 0.53rem;
  border: solid var(--green-ink);
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
}
.install-guide[open] .install-chevron { transform: rotate(225deg); }
.install-clip { min-height: 0; }
.install-body { padding: 0.2rem 0.1rem 1rem; }
.install-select {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-bottom: 0.95rem;
  padding: 0.1rem;
  background: var(--pale);
  border-radius: 0.25rem;
}
.install-select button {
  min-height: 2.75rem;
  padding-inline: 0.8rem;
  color: var(--muted);
  font-weight: 560;
  font-size: 0.87rem;
  border: 1px solid transparent;
  border-radius: 0.18rem;
}
.install-select button[aria-pressed='true'] {
  color: var(--green-ink);
  border-color: var(--strong-line);
  background: var(--sheet);
}
#native-install { margin: 0 0 0.9rem 0.45rem; }
#install-status:not(:empty) { margin-block: 0.4rem 0.75rem; }
.install-steps { padding: 0; list-style: none; }
.install-step {
  display: grid;
  grid-template-columns: minmax(5.5rem, 29%) minmax(0, 1fr);
  align-items: start;
  gap: 0.95rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}
.install-figure {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 224 / 132;
  background: var(--pale);
  color: var(--green-ink);
  border-radius: 0.25rem;
}
.install-figure picture, .install-figure picture img { width: 100%; height: auto; }
.install-figure svg { width: 1.9rem; height: 1.9rem; }
.install-figure .install-app-mark { width: min(35%, 3.2rem); height: auto; border-radius: 0.38rem; }
.install-step h3 { font: 600 1.05rem/1.25 'Inter Tight', system-ui, sans-serif; }
.install-step h3 span { color: var(--green-ink); }
.install-step p { margin-top: 0.35rem; font-size: 0.92rem; line-height: 1.42; color: var(--muted); }
.install-fallback-title { margin: 0.65rem 0 0.3rem; }
.install-interactive .install-fallback-title { display: none; }
@media (max-width: 44.99rem) {
  .install-step {
    grid-template-columns: minmax(6.6rem, 39%) 1fr;
    grid-template-areas: 'illustration title' 'instruction instruction';
    align-items: center;
    row-gap: 0.5rem;
  }
  .install-figure { grid-area: illustration; }
  .install-step > div:last-child { display: contents; }
  .install-step h3 { grid-area: title; font-size: 1.12rem; }
  .install-step p { grid-area: instruction; margin: 0; }
}
@media (min-width: 45rem) {
  .install-guide summary { padding-inline: 0.6rem; }
  .install-body { padding: 0.2rem 0.6rem 1.3rem; }
  .install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .install-step { display: flex; flex-direction: column; gap: 0.85rem; padding: 0.4rem 1.3rem; border: 0; }
  .install-step + .install-step { border-inline-start: 1px solid var(--line); }
  .install-step:first-child { padding-inline-start: 0; }
  .install-step:last-child { padding-inline-end: 0; }
  .install-figure { width: 100%; }
  .install-figure picture { width: min(100%, 15rem); }
  .install-step p { max-width: 38ch; }
}
@media (display-mode: standalone) {
  .install-guide, .install-footer { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .install-chevron { transition: transform 180ms ease-out; }
  .install-guide::details-content {
    display: grid;
    grid-template-rows: 0fr;
    content-visibility: visible;
    visibility: hidden;
    transition: grid-template-rows 230ms ease, visibility 0s linear 230ms;
  }
  .install-guide[open]::details-content { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
  .install-clip { overflow: hidden; }
  .install-interactive [data-install-panel]:not([hidden]) { animation: panel-appear 170ms ease-out; }
  .topic-link, .bookmark, .save-small, .subtle, .primary, .filters button, .masthead nav a {
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  }
  .bookmark[aria-pressed='true'] > span, .save-small[aria-pressed='true'] > svg {
    animation: save-mark 190ms ease-out;
  }
  .arrow { display: inline-block; transition: transform 170ms ease; }
  @media (hover: hover) {
    a:hover .arrow { transform: translateX(0.2rem); }
  }
  @supports (transition-behavior: allow-discrete) {
    dialog {
      opacity: 0;
      transform: translateY(0.7rem);
      transition: opacity 150ms ease-out, transform 180ms ease-out,
        display 180ms allow-discrete, overlay 180ms allow-discrete;
    }
    dialog[open] { opacity: 1; transform: none; }
    dialog::backdrop {
      opacity: 0;
      transition: opacity 150ms ease, display 180ms allow-discrete, overlay 180ms allow-discrete;
    }
    dialog[open]::backdrop { opacity: 1; }
    @starting-style {
      dialog[open] { opacity: 0; transform: translateY(0.7rem); }
      dialog[open]::backdrop { opacity: 0; }
    }
  }
  @view-transition { navigation: auto; }
  main { view-transition-name: page-content; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  ::view-transition-old(page-content) { animation: page-leave 130ms ease-out both; }
  ::view-transition-new(page-content) { animation: panel-appear 190ms ease-out both; }
}
@keyframes panel-appear {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: none; }
}
@keyframes page-leave { to { opacity: 0; transform: translateY(-0.2rem); } }
@keyframes save-mark { 50% { transform: scale(1.1); } }
