/* Stackcut Exits: the cancel library (/cancel). Builds on styles.css tokens and blog.css layout. */

.cx-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.cx-route { margin: 18px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cx-route h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.cx-meta { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cx-meta .bl-tag { margin: 0 6px 0 0; }
.cx-steps { margin: 10px 0 12px; padding-left: 22px; }
.cx-steps li { margin: 6px 0; line-height: 1.5; }
.cx-do { display: block; }
.cx-expect { display: block; color: var(--muted); font-size: 13px; }
.cx-expect q { color: var(--ink); }
.cx-dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; margin: 10px 0; font-size: 14px; }
.cx-dl dt { color: var(--muted); }
.cx-dl dd { margin: 0; }
.cx-route-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cx-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-src { font-size: 13px; color: var(--muted); }
.cx-src .cite { margin-left: 4px; }
.cx-keep { padding-left: 0; list-style: none; }
.cx-keep li { margin: 8px 0; line-height: 1.5; }
.cx-keep .bl-tag { margin: 0 6px 0 0; }
.cx-rep { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 500; }
.cx-sources q { color: var(--muted); }
.cx-sources li { margin: 6px 0; line-height: 1.5; }

/* questions people ask: each answer restates the facts above, one line per route, with its sources */
.cx-faq { margin-top: 6px; }
.cx-faq-item { padding: 16px 0 14px; border-top: 1px solid var(--line); }
.cx-faq-item:first-child { border-top: 0; padding-top: 4px; }
.cx-faq-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.bl-article .cx-faq-a { margin: 0; }
.cx-faq-s { display: block; }
.cx-faq-s + .cx-faq-s { margin-top: 6px; }
.cx-faq-r { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cx-faq-r:hover { color: var(--green); text-decoration-color: currentColor; }
.bl-article .cx-faq .cx-src { margin: 6px 0 0; font-size: 13px; }

/* related cancel guides, at the foot of a service page */
.cx-related .cx-list { padding: 0; }
.cx-related .cx-list li { margin: 0; }

/* the index's most searched row, under the search box */
.cx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: 980px; margin-top: 4px; }
.cx-top-h { font-size: 13px; font-weight: 600; color: var(--muted); }
.cx-top .cx-hubs { margin: 6px 0; gap: 6px; }
.cx-top .cx-hubs a { padding: 0 14px 0 10px; }
.cx-search { margin-top: 20px; max-width: 520px; }
.cx-search input { width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.cx-search input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.cx-live { margin: 8px 0 0; min-height: 1.4em; font-size: 13.5px; color: var(--muted); }
.cx-index { padding-bottom: 48px; }
.cx-index [hidden], .cx-hub [hidden] { display: none !important; } /* the search hides items that are display: flex */
.cx-n { color: var(--muted); font-weight: 400; }

/* vendor logos: the vendor's own icon on a white tile (dark marks stay visible in dark mode), or a plain letter badge */
.cx-logo { flex: none; display: inline-block; box-sizing: border-box; border: 1px solid var(--line); border-radius: 25%; background: #fff; object-fit: contain; vertical-align: middle; }
.cx-logo--20 { width: 20px; height: 20px; }
.cx-logo--28 { width: 28px; height: 28px; }
.cx-logo--56 { width: 56px; height: 56px; }
.cx-logo--letter { display: inline-flex; align-items: center; justify-content: center; background: var(--fill); color: var(--ink); font-weight: 600; line-height: 1; }
.cx-logo--20.cx-logo--letter { font-size: 11px; }
.cx-logo--28.cx-logo--letter { font-size: 14px; }
.cx-logo--56.cx-logo--letter { font-size: 26px; }
.cx-title { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.cx-title .page-title { margin: 0; min-width: 0; }

/* the index: two halves (personal, business), each by category */
.cx-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin-top: 18px; }
.cx-part-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.cx-part-card:hover { border-color: var(--ink); color: var(--ink); }
.cx-part-t { font-family: var(--serif); font-size: 25px; line-height: 1.1; letter-spacing: -0.01em; }
.cx-part-n { font-size: 13px; font-weight: 600; color: var(--green); }
.cx-part-d { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cx-part { padding-top: 34px; }
.cx-part + .cx-part { margin-top: 26px; border-top: 1px solid var(--line); }
.cx-part-h { margin-bottom: 0; }
.cx-hubs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding: 0; list-style: none; }
.cx-hubs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.cx-hubs a:hover { border-color: var(--ink); color: var(--ink); }
.cx-hubs .cx-n { font-family: var(--mono); font-size: 12px; }
.cx-cat { padding-top: 26px; }
.cx-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cx-cat-head h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.cx-cat-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; }
.cx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.cx-list li { display: flex; }
.cx-item { display: flex; flex: 1; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.cx-item:hover { border-color: var(--ink); color: var(--ink); }
.cx-item:hover .cx-item-n { text-decoration: underline; }
.cx-item-t { display: flex; flex-direction: column; min-width: 0; }
.cx-item-n { font-weight: 500; }
.cx-badges { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* hub pages: one table per category */
.cx-hub { padding-bottom: 48px; }
.cx-table td { font-family: var(--sans); font-size: 14px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.cx-table tbody th { min-width: 170px; }
.cx-table td:nth-child(2) { min-width: 220px; }
.cx-table td:nth-child(3) { min-width: 170px; }
.cx-table td:nth-child(4) { min-width: 220px; }
.cx-svc { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.cx-svc span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cx-svc:hover { color: var(--green); }
.cx-svc:hover span { text-decoration-color: currentColor; }
.cx-table tbody th small { margin-top: 0; font-family: var(--sans); }
.cx-table td small { font-size: 12.5px; }
.cx-rule { display: block; }
.cx-rule + .cx-rule { margin-top: 6px; }
.cx-k { font-weight: 600; }
.cx-more h3 { margin: 18px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cx-more .cx-hubs { margin-top: 10px; }

/* localized guides (/<lang>/cancel, data/exits/build_i18n.py): the "Also in:" line, with 44px tap targets that don't move the line */
.cx-langs a { display: inline-block; padding: 13px 4px; margin: -13px -4px; }

@media (max-width: 720px) {
  .cx-parts { grid-template-columns: minmax(0, 1fr); }
  /* the hub table becomes one card per service */
  .cx-table thead { display: none; }
  .cx-table tr { display: block; padding: 12px 14px; border-top: 1px solid var(--line); }
  .cx-table tbody tr:first-child { border-top: 0; }
  .cx-table tbody th, .cx-table td { display: block; min-width: 0 !important; padding: 4px 0; border: 0; }
  .cx-table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 640px) {
  .cx-dl { grid-template-columns: 1fr; gap: 2px; }
  .cx-dl dd { margin-bottom: 6px; }
  .cx-route { padding: 14px 14px; }
  .cx-title { gap: 12px; }
  .cx-logo--56 { width: 44px; height: 44px; }
  .cx-logo--56.cx-logo--letter { font-size: 21px; }
  .cx-cat-head h3 { font-size: 23px; }
}
@media (prefers-color-scheme: dark) {
  .cx-rep { background: #3a2a14; color: #f0c089; }
  body.bl img.cx-logo { border-color: transparent; }
}
