/* Inner pages: title column on the left, work column on the right. Homepage does not load this file. */

.spine {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px 48px;
  align-items: start;
}

.spine-side {
  position: sticky;
  top: 96px;
}

.spine-side h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1e3a5f;
}

.spine-side .lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3d4d60;
}

.spine-side .crumbs { margin: 0 0 14px; }

.spine-side .fare-chips {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 18px;
}

.spine-date {
  margin: 8px 0 0;
  color: #6b7c90;
  font-size: 0.9rem;
}

.spine-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.spine-work {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.spine-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  background: #d5dee8;
}

.spine-panel,
.spine-facts > div,
.spine-clause {
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.06);
}

.spine-panel .tiny,
.spine-facts .tiny,
.spine-clause .tiny { margin: 18px 0 8px; }

.spine-panel .tiny:first-child,
.spine-facts .tiny:first-child { margin-top: 0; }

.spine-panel h2,
.spine-work h2 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #1e3a5f;
}

.spine-work .text-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 8px;
}

.spine-work .text-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.05);
}

.spine-work .text-links a::after {
  content: "→";
  color: #c2410c;
  flex-shrink: 0;
}

.spine-work .text-links a:hover {
  background: #1e3a5f;
  color: #fff;
}

.spine-work .text-links a:hover::after { color: #f3c7b2; }

.spine-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spine-facts h3 {
  margin: 4px 0 6px;
  font-family: var(--display);
  color: #1e3a5f;
}

.spine-film {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 10px;
}

.spine-film img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background: #d5dee8;
}

.spine-film img:first-child { height: 180px; }

.spine-copy p { margin: 0 0 14px; }

.spine-work .search-card { margin-top: 0; }

.spine-work .svc-problem-grid,
.spine-work .svc-pairs-list,
.spine-work .fare-note-list,
.spine-work .read-board,
.spine-work .read-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
}

.spine-work .svc-problem-card {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 0;
  border-radius: 14px;
  background: #fff;
}

.spine-work .cat-band {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 10px;
  padding: 12px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

.spine-work .cat-band-media,
.spine-work .cat-band:nth-child(even) .cat-band-media {
  order: 0;
  min-height: 0;
  border-radius: 12px;
}

.spine-work .cat-band-media img {
  width: 92px;
  height: 92px;
  object-fit: cover;
}

.spine-work .svc-mix-board,
.spine-work .svc-lex-grid,
.spine-work .fare-guides {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#city-list.place-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#city-list .place-tile,
#city-list .place-tile-lg {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-column: auto;
  min-height: 0;
  align-items: center;
  border-radius: 16px;
  background: #fff;
  color: #1c2836;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

#city-list .place-tile.is-plain {
  grid-template-columns: minmax(0, 1fr);
}

#city-list .place-tile::after { display: none; }

#city-list .place-tile img {
  position: relative;
  inset: auto;
  width: 84px;
  height: 72px;
  object-fit: cover;
}

#city-list .place-tile > div {
  position: static;
  grid-column: 2;
  padding: 12px 40px 12px 16px;
}

#city-list .place-tile.is-plain > div { grid-column: 1; }

#city-list .place-tile h3 {
  color: #1e3a5f;
  font-size: 1.15rem;
}

#city-list .place-tile small { color: #6b7c90; }

#city-list .place-tile > div::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #c2410c;
}

.spine-side .svc-jump,
.spine-side .read-jump,
.spine-side .flow-jump {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 58, 95, 0.12);
}

.spine-side .svc-jump a,
.spine-side .read-jump-btn,
.spine-side .flow-jump a {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #1e3a5f;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.spine-side .svc-jump a:hover,
.spine-side .read-jump-btn:hover,
.spine-side .read-jump-btn.is-on,
.spine-side .flow-jump a:hover {
  background: #fff;
  color: #c2410c;
  box-shadow: none;
}

body[data-page="guide"] .essay {
  width: min(720px, calc(100% - 48px));
  margin: 36px auto 80px;
}

body[data-page="guide"] .guide-article { padding: 0; }

body[data-page="guide"] .guide-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 8px;
}

body[data-page="guide"] .guide-kicker span:last-child {
  color: #6b7c90;
  font-size: 0.92rem;
}

body[data-page="guide"] .guide-head h1 {
  max-width: none;
  margin: 0 0 12px;
  font-size: clamp(2.15rem, 4.2vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1e3a5f;
}

body[data-page="guide"] .guide-head .lede {
  max-width: none;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
}

body[data-page="guide"] .guide-cover { margin: 22px 0 0; }

body[data-page="guide"] .guide-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 22px;
}

body[data-page="guide"] .guide-toc {
  margin: 16px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="guide"] .guide-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="guide"] .guide-toc a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.05);
  text-decoration: none;
}

body[data-page="guide"] .guide-toc a:hover,
body[data-page="guide"] .guide-toc a.is-on {
  background: #1e3a5f;
  color: #fff;
  text-decoration: none;
}

body[data-page="guide"] .kort-sagt {
  max-width: none;
  margin: 22px 0 8px;
  padding: 22px 24px 18px;
  background: #fff;
  border: 0;
  border-radius: 20px;
  border-left: 4px solid #c2410c;
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.06);
}

body[data-page="guide"] .kort-sagt h2 {
  color: #1e3a5f;
  margin: 0 0 12px;
}

body[data-page="guide"] .kort-sagt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body[data-page="guide"] .kort-sagt li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef2f6;
  color: #1c2836;
}

body[data-page="guide"] .prose-article,
body[data-page="guide"] .guide-faq { max-width: none; }

body[data-page="guide"] .guide-article .prose-article h2 {
  color: #1e3a5f;
  margin: 36px 0 10px;
}

body[data-page="guide"] .guide-article .prose-article p {
  font-size: 1.05rem;
  line-height: 1.75;
}

body[data-page="guide"] .guide-faq { margin-top: 28px; }

body[data-page="guide"] .guide-faq h2 { color: #1e3a5f; }

body[data-page="guide"] .guide-faq .faq-item {
  background: #fff;
  border: 0;
  border-radius: 16px;
  margin: 0 0 10px;
  padding: 4px 18px;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

body[data-page="guide"] .essay-next { margin: 28px 0 8px; }

body[data-page="guide"] .guide-more { margin-top: 36px; }

body[data-page="guide"] .guide-more h2 {
  color: #1e3a5f;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

body[data-page="guide"] .guide-more-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
}

body[data-page="guide"] .guide-more-row {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

body[data-page="guide"] .guide-more-row h3 { color: #1e3a5f; }

body[data-page="how"] .spine-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="how"] .spine-steps .flow-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-height: 100%;
}

body[data-page="how"] .spine-steps .flow-step > b { font-size: 2rem; }

body[data-page="faq"] .spine-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="faq"] .spine-links a {
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

@media (max-width: 900px) {
  .spine { grid-template-columns: 1fr; gap: 18px; }
  .spine-side { position: static; }
  .spine-film { grid-template-columns: 1fr 1fr; }
  body[data-page="how"] .spine-steps,
  body[data-page="faq"] .spine-links { grid-template-columns: 1fr; }
  body[data-page="guide"] .essay { width: min(720px, calc(100% - 32px)); }
}
