.study-figure .foundation-paper {
  --ink: #28322e;
  --rule: #bead88;
  --yellow: #ffdf65;
  --mint: #c9ebd7;
  --blue: #c9e8ef;
  color: var(--ink);
  background: #fffaf0;
  padding: clamp(.85rem, 2.5vw, 1.65rem);
}

.foundation-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.foundation-table caption { text-align: left; padding: 0 0 .45rem; font-size: 1.15rem; font-weight: 800; }
.foundation-table :is(th, td) { border-bottom: 1px solid var(--rule); padding: .5rem .45rem; }
.foundation-table thead { background: var(--blue); }
.foundation-table thead th { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.foundation-table tbody th { white-space: nowrap; text-align: left; }
.foundation-table small { display: block; font-weight: 500; }
.foundation-paper img { object-fit: contain; }
.foundation-note { margin: 1rem 0 0; padding: .55rem .9rem; border-inline-start: 4px solid #006057; background: var(--mint); line-height: 1.45; }
.foundation-arrow, .route-join { display: grid; justify-items: center; gap: .15rem; align-self: center; color: #00554f; font-size: .9rem; font-weight: 750; text-align: center; }
.foundation-arrow [data-diagram-arrow], .route-join [data-diagram-arrow] { width: min(100%, 5.7rem); }
.foundation-paper [data-diagram-arrow]::before {
  width: 100%;
  height: .95rem;
  clip-path: polygon(0 36%, calc(100% - 1.15rem) 36%, calc(100% - 1.15rem) 12%, calc(100% - 1rem) 4%,
    100% 45%, 100% 55%, calc(100% - 1rem) 96%, calc(100% - 1.15rem) 88%, calc(100% - 1.15rem) 64%, 0 64%);
}

.rfm-map { display: grid; grid-template-columns: minmax(0, 1fr) 6.7rem minmax(0, 1.25fr); align-items: start; }
.rfm-map .foundation-arrow { margin-top: 3.15rem; padding-inline: .45rem; }
.rfm-map .foundation-table tbody tr { height: 3.9rem; }
.rfm-map .foundation-table thead tr { height: 3.65rem; }
.rfm-map .foundation-table thead th { padding-inline: .25rem; line-height: 1.35; }
.rfm-result { text-align: center; }
.rfm-receipts :is(th, td):first-child { width: 4rem; }
.rfm-receipts tbody td { padding-block: .3rem; }
.rfm-map .rfm-receipts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; list-style: none; margin: 0; padding: 0; }
.rfm-map .rfm-receipts li { display: grid; padding: .2rem .2rem; margin: 0; border: 1px solid var(--rule); border-block-end: 2px dashed var(--rule); background: #fffdf7; text-align: center; white-space: nowrap; line-height: 1.26; }
.rfm-last { font-weight: 800; }
.rfm-map .rfm-receipts .rfm-last { background: var(--blue); }
.rfm-result .rfm-last { background: #ffec9e; }
.foundation-action { display: flex; align-items: center; gap: .8rem; padding: .2rem .8rem; margin-top: 1rem; background: var(--mint); border-inline-start: 4px solid #006057; }
.foundation-action img { width: 4.5rem; height: 3.45rem; }
.foundation-action p { margin: .4rem 0; }

.plan-map { display: grid; grid-template-columns: minmax(0, .7fr) 6.4rem minmax(0, 1.65fr); align-items: center; }
.plan-research { text-align: center; }
.plan-research img { display: block; height: 6rem; max-width: 100%; margin-inline: auto; }
.plan-research p { margin: .2rem 0; }
.plan-results { border-inline-start: 3px solid #00554f; padding-inline-start: 1rem; }
.plan-results p { display: grid; grid-template-columns: 3.5rem 5.2rem 1fr; align-items: center; gap: .6rem; margin: 0; padding: .22rem 0; }
.plan-results p + p { border-top: 1px dashed var(--rule); }
.plan-results img { width: 3.5rem; height: 2.9rem; }

.foundation-route { display: grid; grid-template-columns: minmax(0, 1fr) 7.8rem minmax(0, 1fr) 7.8rem minmax(0, 1fr); align-items: start; list-style: none; margin: 0; padding: 0; text-align: center; }
.foundation-route img { display: block; width: min(100%, 8.3rem); height: 6.2rem; margin: 0 auto .2rem; }
.foundation-route b { display: inline-block; background: #ffec9e; border-radius: .3rem; padding: .1rem .42rem; }
.foundation-route p { margin: .23rem 0 0; line-height: 1.35; }
.foundation-route .route-join { align-self: start; margin-top: 2.25rem; }
.channel-ticket { display: inline-block; background: var(--blue); border: 1px dashed #296577; border-radius: .35rem; padding: .12rem .38rem; font-variant-numeric: tabular-nums; }
.foundation-paper :is(.foundation-route, .journey-table, .brand-contact) + .foundation-note { margin-top: .85rem; }

.journey-strip { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .24rem .6rem; margin: 0 0 .55rem; color: #00554f; background: var(--mint); }
.journey-strip i { flex: 0 1 16%; }
.journey-table th img { display: block; width: min(100%, 5.5rem); height: 3.9rem; margin: 0 auto .2rem; }
.journey-table :is(th, td):not(:first-child) { width: 22.5%; text-align: center; }
.journey-focus { background: #ffec9e; }

.position-map { display: grid; grid-template-columns: 6.8rem minmax(0, 2fr) minmax(8rem, .75fr); grid-template-rows: auto auto; align-items: center; gap: .5rem 1rem; }
.position-plot { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(5rem, 1fr)); border-left: 3px solid #00554f; border-bottom: 3px solid #00554f; }
.position-plot::before, .position-plot::after { content: ""; position: absolute; width: .65rem; height: .65rem; border-top: 3px solid #00554f; border-right: 3px solid #00554f; }
.position-plot::before { left: -.47rem; top: -.15rem; transform: rotate(-45deg); }
.position-plot::after { right: .08rem; bottom: -.43rem; transform: rotate(45deg); }
.position-square { display: grid; place-items: center; padding: .75rem .4rem; }
.position-square:nth-child(odd) { border-right: 1px dashed var(--rule); }
.position-square:nth-child(-n+2) { border-bottom: 1px dashed var(--rule); }
.position-dot { text-align: center; padding: .2rem .5rem; border-radius: .4rem; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 750; background: var(--blue); line-height: 1.25; }
.position-ours { background: var(--yellow); }
.position-x, .position-y { margin: 0; color: #00554f; text-align: center; }
.position-x { grid-column: 2; grid-row: 2; }
.position-callout { grid-column: 3; grid-row: 1 / 3; display: grid; justify-items: center; gap: .25rem; text-align: center; padding: .65rem .5rem; border-inline-start: 1px solid var(--rule); }
.position-callout .music-stand { transform: scale(.8); margin-bottom: -.35rem; }
.brand-band { background: var(--blue); padding: .45rem .6rem; text-align: center; border-block: 2px solid var(--ink); }
.brand-band strong { margin-inline-start: .6rem; }
.brand-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; padding-top: .65rem; }
.brand-contact div { display: grid; justify-items: center; padding: .2rem .55rem; }
.brand-contact div + div { border-inline-start: 1px dashed var(--rule); }
.brand-contact img { max-width: 100%; height: 5.3rem; }

@media (max-width: 950px) {
  .rfm-map { grid-template-columns: 1fr; }
  .rfm-map .foundation-arrow { margin-top: 0; padding: .22rem; }
  .rfm-map .foundation-arrow i { transform: rotate(90deg); width: 1.5rem; }
  .foundation-route { grid-template-columns: minmax(0, 1fr) 4.7rem minmax(0, 1fr) 4.7rem minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .plan-map, .foundation-route, .brand-contact { grid-template-columns: 1fr; gap: .6rem; }
  .foundation-route .route-join { margin: 0; }
  .plan-map .foundation-arrow i, .foundation-route .route-join i { transform: rotate(90deg); width: 1.85rem; }
  .position-map { grid-template-columns: 4rem minmax(0, 1fr); }
  .position-callout { grid-column: 1 / -1; grid-row: 3; }
  .brand-contact div + div { border-inline-start: none; border-block-start: 1px dashed var(--rule); }
}
