/* Discovery hub; existing game styles remain in cairn.css. */
:root {
  --ink: var(--cairn-ink);
  --muted: #625d54;
  --paper: var(--cairn-parchment);
  --edge: var(--cairn-edge);
  --green: #344a3e;
  --display: "Playfair Display", Georgia, serif;
}
.cairn-discovery-page::before,
.cairn-discovery-page::after {
  display: none;
}
.cairn-discovery-page {
  background: var(--paper);
}
.cairn-discovery {
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
}
.cairn-discovery h1,
.cairn-discovery h2,
.cairn-discovery h3,
.cairn-discovery h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
}
.cairn-discovery .eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.new-badge {
  display: inline-block;
  background: #344a3e;
  color: white;
  border-radius: 3px;
  font: 600 10px/1.3 sans-serif;
  padding: 3px 6px;
  vertical-align: middle;
}
.inline-new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.inline-new h1 {
  margin: 0;
}
.cairn-discovery .text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
.cairn-discovery p {
  color: var(--muted);
}
.widget-content {
  padding: 20px 22px;
  min-height: 190px;
}
.widget-content h4 {
  font-size: 26px;
  margin-bottom: 15px;
}
.widget-content p {
  font-size: 13px;
}
.widget-pastview .widget-content p {
  color: #e1e5d9;
}
.discovery-row {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.discovery-row + .discovery-row {
  border-top: 1px solid var(--edge);
}
.discovery-row strong {
  display: block;
  font: 400 23px/1.25 var(--display);
}
.discovery-row small,
.discovery-row span {
  display: block;
  font-size: 11px;
  margin: 5px 0;
}
.discovery-row:hover strong {
  text-decoration: underline;
}
.discovery-page {
  padding: 35px 0;
}
.discovery-page h1 {
  font-size: 45px;
}
.discovery-lead {
  font-size: 18px;
  margin: 18px 0 28px;
  max-width: 700px;
}
.discovery-note {
  font-size: 13px;
  background: #e8eadf;
  padding: 17px 20px;
  border-left: 3px solid var(--green);
}
.discovery-empty {
  padding: 30px 0;
}
.discovery-empty h2 {
  font-size: 29px;
}
.discovery-article {
  padding: 25px 0;
  border-top: 1px solid var(--edge);
}
.discovery-article h2 {
  font-size: 30px;
}
.discovery-place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin: 30px 0;
}
.discovery-place {
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 23px;
}
.discovery-place h2 {
  font-size: 28px;
  margin: 15px 0;
}
.discovery-place p {
  font-size: 14px;
}
/* /pastview/ city filter: All · Newcastle · Edinburgh */
.scene-city-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.scene-city-filter a {
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.scene-city-filter a span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 2px;
}
.scene-city-filter a:hover {
  border-color: var(--green);
}
.scene-city-filter a.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.scene-city-filter a.active span {
  color: rgba(255, 255, 255, 0.75);
}
.discovery-place .scene-city {
  display: inline-block;
  margin-top: 14px;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--green);
  font: 600 10px/1.3 sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 6px;
  text-decoration: none;
  vertical-align: middle;
}
.discovery-place .scene-city:hover {
  background: var(--green);
  color: white;
}
.scene-preview {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 3px;
}
.scene-teaser {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--paper);
  text-decoration: none;
}
.scene-teaser img {
  width: 45%;
  border-radius: 4px;
}
.scene-teaser strong {
  display: block;
  font: 400 24px/1.25 var(--display);
}
.scene-teaser small,
.scene-teaser span > span {
  display: block;
  font-size: 11px;
  margin-top: 9px;
}
.cairn-nav-links .new-badge {
  margin-left: 4px;
}
.cairn-nav-links a {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .discovery-place-grid {
    grid-template-columns: 1fr;
  }
  .discovery-page h1 {
    font-size: 33px;
  }
  .discovery-lead {
    font-size: 16px;
  }
  .widget-content {
    padding: 18px;
  }
  .cairn-discovery-page main.container {
    padding-top: 0;
  }
}
/* Home v3: a live PastView model, today's quest, then tools and updates. */
.cairn-discovery [hidden] {
  display: none !important;
}
.home-tools {
  padding: 25px 0 37px;
}
.tools-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 16px;
}
.tools-heading h2 {
  font-size: 25px;
}
.tools-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  border: 1px solid #ccbea8;
  background: #faf6ed;
  padding: 20px 20px 16px;
  border-radius: 4px;
  transition:
    background 0.16s,
    transform 0.16s;
}
.tool-card:hover {
  background: #eee6d7;
  transform: translateY(-3px);
}
.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 15px;
}
.tool-icon {
  width: 34px;
  height: 34px;
  color: #6b5544;
}
.tool-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tool-number {
  font-size: 10px;
  letter-spacing: 1px;
  color: #827664;
}
.tool-card h3 {
  font-size: 23px;
  line-height: 1.2;
  min-height: 55px;
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 12px;
  line-height: 1.65;
  min-height: 41px;
  color: #655c50;
}
.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  border-top: 1px solid var(--edge);
  padding-top: 12px;
  margin-top: 16px;
}
.tool-pastview {
  background: #edf0e6;
  border-color: #b9c3b1;
}
.tool-pastview .tool-icon {
  color: var(--green);
}
.tool-pastview:hover {
  background: #e2e7d7;
}
.home-updates {
  padding: 27px 0 10px;
  border-top: 1px solid var(--edge);
}
.updates-heading {
  margin-bottom: 24px;
}
.updates-heading .eyebrow {
  margin-bottom: 10px;
}
.updates-heading h2 {
  font-size: 32px;
}
.updates-heading p {
  font-size: 13px;
  margin-top: 8px;
}
.widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.update-widget {
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: #faf7f0;
  overflow: hidden;
  min-width: 0;
}
.widget-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--edge);
}
.widget-heading h3 {
  font-size: 21px;
}
.widget-heading > a {
  font-size: 10px;
  white-space: nowrap;
  text-decoration: none;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.widget-heading > a:hover {
  text-decoration: underline;
}
.story-widget-link {
  display: grid;
  grid-template-columns: 38% 62%;
  text-decoration: none;
}
.widget-art {
  position: relative;
  overflow: hidden;
  min-height: 225px;
  background: #dfd5bf;
}
.widget-art svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.widget-art .art-label {
  font-size: 7px;
  right: 5px;
  bottom: 7px;
  padding: 3px 4px;
}
.widget-story-copy {
  padding: 23px 21px 15px;
}
.widget-story-copy .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  line-height: 1.7;
  margin-bottom: 11px;
}
.widget-story-copy h4,
.pastview-update h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.widget-story-copy p {
  font-size: 12px;
  line-height: 1.7;
}
.widget-story-copy .text-link {
  font-size: 11px;
  margin-top: 6px;
}
.quest-update-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 21px;
  text-decoration: none;
  min-height: 112px;
}
.quest-update-row + .quest-update-row {
  border-top: 1px solid var(--edge);
}
.quest-update-icon {
  flex: 0 0 40px;
  height: 40px;
  color: #7e6654;
}
.quest-update-icon svg {
  width: 100%;
  height: 100%;
}
.quest-update-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.quest-update-row small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #71634e;
  margin-bottom: 4px;
}
.quest-update-row strong {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}
.quest-update-row > span > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.place-update-list {
  padding: 0 21px;
}
.place-update-row {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 111px;
  text-decoration: none;
  padding: 16px 0;
}
.place-update-row + .place-update-row {
  border-top: 1px solid var(--edge);
}
.place-update-art {
  width: 85px;
  height: 73px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #dfd5bf;
}
.place-update-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.place-update-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.place-update-row strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
}
.place-update-row small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  color: var(--muted);
}
.widget-pastview {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}
.widget-pastview .widget-heading {
  border-bottom-color: #ffffff30;
}
.widget-pastview .new-badge {
  background: var(--paper);
  color: var(--green);
}
.pastview-update {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  min-height: 223px;
}
.pastview-update > div:first-child {
  padding: 22px 0 17px 21px;
  z-index: 1;
}
.pastview-update .eyebrow {
  color: #d5dbc8;
  font-size: 8px;
  letter-spacing: 1.1px;
  margin-bottom: 12px;
}
.pastview-update p {
  color: #e0e5d8;
  font-size: 12px;
  line-height: 1.7;
}
.pastview-update .text-link {
  font-size: 11px;
  margin-top: 8px;
}
.pastview-widget-art {
  position: relative;
  overflow: hidden;
}
.pastview-widget-art svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.home-view .site-footer {
  margin-top: 38px;
}
@media (max-width: 1000px) and (min-width: 701px) {
  .tool-grid {
    gap: 10px;
  }
  .tool-card {
    padding: 16px 13px;
  }
  .tool-card h3 {
    font-size: 21px;
  }
  .tool-card p {
    font-size: 11px;
  }
  .widget-story-copy {
    padding: 17px 15px;
  }
  .widget-story-copy h4 {
    font-size: 22px;
  }
  .widget-heading {
    padding: 15px;
  }
  .widget-heading h3 {
    font-size: 19px;
  }
}
@media (max-width: 700px) {
  .home-tools {
    padding: 20px 0 25px;
  }
  .tools-heading {
    margin-bottom: 13px;
  }
  .tools-heading h2 {
    font-size: 23px;
  }
  .tools-heading > span {
    display: none;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tool-card {
    padding: 13px;
    min-height: 172px;
  }
  .tool-top {
    margin-bottom: 9px;
    min-height: 26px;
  }
  .tool-icon {
    height: 26px;
    width: 26px;
  }
  .tool-card h3 {
    font-size: 20px;
    min-height: 0;
    margin-bottom: 7px;
  }
  .tool-card p {
    font-size: 10px;
    line-height: 1.55;
    min-height: 31px;
    flex: 1;
  }
  .tool-action {
    font-size: 10px;
    margin-top: 10px;
    padding-top: 9px;
  }
  .updates-heading h2 {
    font-size: 29px;
  }
  .widget-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .widget-heading {
    padding: 14px 16px;
  }
  .widget-heading h3 {
    font-size: 21px;
  }
  .widget-heading > a {
    font-size: 9px;
  }
  .widget-story-copy {
    padding: 18px 15px;
  }
  .widget-story-copy h4 {
    font-size: 23px;
  }
  .widget-art {
    min-height: 235px;
  }
  .quest-update-row {
    padding: 17px 16px;
    gap: 12px;
  }
  .place-update-list {
    padding: 0 16px;
  }
  .place-update-art {
    width: 75px;
  }
  .pastview-update > div:first-child {
    padding-left: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Inherited blog link colours must not override card contrast. */
.cairn-discovery a:not(.cairn-btn) {
  color: inherit;
}
.cairn-discovery .widget-pastview a {
  color: var(--paper);
}
.cairn-discovery a:focus-visible,
.cairn-discovery button:focus-visible {
  outline: 3px solid #38654c;
  outline-offset: 4px;
}

/* Home: today's quest, full width at the head of the widget grid. */
.live-quest-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  color: var(--ink);
  text-decoration: none;
}
.live-quest-card.live-quest-nopic {
  grid-template-columns: 1fr;
}
.live-quest-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
.live-quest-copy {
  display: block;
  padding: 23px 24px;
}
.live-quest-copy small {
  display: block;
  font-size: 11px;
  letter-spacing: .04em;
}
.live-quest-copy strong {
  display: block;
  font: 400 30px/1.2 var(--display);
  margin: 9px 0 12px;
}
.live-quest-copy p {
  font-size: 15px;
  margin-bottom: 18px;
}
.live-quest-action {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 4px;
}
.live-quest-count {
  margin-top: 12px;
}
.live-quest-card:hover strong {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .live-quest-card {
    grid-template-columns: 1fr;
  }
  .live-quest-card img {
    min-height: 0;
    aspect-ratio: 16/10;
    height: auto;
  }
  .live-quest-copy {
    padding: 18px 16px;
  }
  .live-quest-copy strong {
    font-size: 25px;
  }
}

/* Home v3 — the stage: a PastView poster that home-stage.js turns into the
   live model. The caption sits on a dark fade at the foot of the picture;
   only its links and chips take the pointer, the rest goes to the model. */
.home-stage {
  position: relative;
  overflow: hidden;
  /* model + the quest's button on the first screen of a laptop */
  height: clamp(380px, 54vh, 540px);
  margin-top: 4px;
  border-radius: 6px;
  background: #c4d0d1;
  isolation: isolate;
}
.home-stage-poster,
.home-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.home-stage:not([data-loaded]) {
  cursor: pointer;
}
.home-stage-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 36, 32, 0.28) 0%, rgba(31, 36, 32, 0) 22%, rgba(31, 36, 32, 0) 42%, rgba(31, 36, 32, 0.86) 100%);
}
.home-stage-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.home-stage-badge > span {
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f6f2e9;
  background: rgba(31, 36, 32, 0.6);
  padding: 7px 11px;
  border-radius: 999px;
}
.home-stage-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.home-stage-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9fd3a8;
  box-shadow: 0 0 0 3px rgba(159, 211, 168, 0.25);
}
.home-stage-progress {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  color: #f6f2e9;
  background: rgba(31, 36, 32, 0.6);
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  max-width: calc(100% - 28px);
}
.home-stage-cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 26px 22px;
  color: #f6f2e9;
  pointer-events: none;
}
.home-stage-cap a,
.home-stage-cap button {
  pointer-events: auto;
}
.cairn-discovery .home-stage-claim {
  font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9e6d6;
  margin: 0 0 10px;
}
.cairn-discovery .home-stage-period {
  color: rgba(246, 242, 233, 0.85);
  font-size: 14px;
  margin: 0 0 4px;
}
.cairn-discovery .home-stage-title {
  font-size: 36px;
  line-height: 1.12;
  color: #f6f2e9;
  margin: 0;
  text-wrap: balance;
}
.home-stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.cairn-discovery a.home-stage-open {
  background: #f6f2e9;
  /* beats cairn.css's warm colour for every content link */
  color: #2b2b28 !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 17px;
  border-radius: 4px;
  text-decoration: none;
}
.cairn-discovery a.home-stage-site {
  border: 1px solid rgba(246, 242, 233, 0.6);
  color: #f6f2e9 !important;
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 4px;
  text-decoration: none;
}
.cairn-discovery a.home-stage-open:hover,
.cairn-discovery a.home-stage-site:hover {
  text-decoration: underline;
}
.home-stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}
.home-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f6f2e9;
  background: rgba(246, 242, 233, 0.14);
  border: 1px solid rgba(246, 242, 233, 0.35);
  border-radius: 999px;
  padding: 3px 12px 3px 3px;
  cursor: pointer;
}
.home-stage-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.home-stage-chip[aria-pressed="true"] {
  background: #f6f2e9;
  color: #2b2b28;
}
.home-stage-empty {
  height: auto;
  min-height: 0;
  background: #2b2b28;
}
.home-stage-empty .home-stage-cap {
  position: static;
}

.cairn-discovery a.home-stage-more {
  display: inline-flex;
  align-items: center;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f6f2e9 !important;
  border: 1px dashed rgba(246, 242, 233, 0.55);
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.cairn-discovery a.home-stage-more:hover {
  background: rgba(246, 242, 233, 0.14);
}

/* Home intro: what the site is, in two sentences, with the store badges on
   the same row — above the model so the first screen says there are apps. */
.home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 10px 0 14px;
}
.home-intro-copy {
  max-width: 44rem;
}
.cairn-discovery .home-intro-slogan {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 4px;
}
.cairn-discovery .home-intro-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cairn-stone, #5d5a52);
  margin: 0;
}
.home-intro .cairn-apps-intro {
  flex: none;
}
.home-intro .cairn-apps-intro .cairn-apps-badges {
  flex-wrap: nowrap;
  gap: 10px;
}
.home-intro .cairn-apps-intro .cairn-app-badge img {
  height: 2.6rem;
}

/* Today's quest, straight under the stage. */
.home-quest {
  padding: 18px 0 8px;
}
.home-quest .live-quest-card {
  border: 1px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
}
.home-quest .live-quest-card.live-quest-nopic {
  grid-template-columns: 1fr;
}
.home-quest .live-quest-card img {
  min-height: 0;
  height: 100%;
  max-height: 230px;
}
.home-quest .live-quest-copy {
  padding: 18px 24px;
}
.home-quest .live-quest-copy strong {
  margin: 6px 0 8px;
}
.home-quest .live-quest-copy p {
  margin-bottom: 14px;
}
.live-quest-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.live-quest-meta .live-quest-count {
  margin-top: 0;
}
.live-quest-action.live-quest-done {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.quest-none {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px 26px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: #faf7f0;
  padding: 16px 22px;
}
.quest-none small {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.cairn-discovery .quest-none p {
  margin: 4px 0 0;
}
.quest-none-list .discovery-row {
  padding: 6px 0;
}

/* The four tools as one compact row. */
.home-tools-compact {
  padding: 22px 0 28px;
}
.home-tools-compact .tools-heading {
  margin-bottom: 12px;
}
.home-tools-compact .tools-heading h2 {
  font-size: 22px;
}
.home-tools-compact .tool-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  min-height: 0;
}
.home-tools-compact .tool-icon {
  flex: none;
  width: 28px;
  height: 28px;
}
.home-tools-compact .tool-copy {
  min-width: 0;
}
.home-tools-compact .tool-card h3 {
  font-size: 19px;
  min-height: 0;
  margin-bottom: 3px;
}
.home-tools-compact .tool-card p {
  font-size: 12px;
  line-height: 1.5;
  min-height: 0;
  margin: 0;
}
.home-hub .home-updates .widget-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 900px) {
  .home-stage-chips {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .home-stage-chip {
    flex: none;
  }
}
@media (max-width: 700px) {
  .home-intro {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0 10px;
  }
  .cairn-discovery .home-intro-slogan {
    font-size: 19px;
  }
  .cairn-discovery .home-intro-body {
    font-size: 14px;
  }
  .home-intro .cairn-apps-intro .cairn-app-badge img {
    height: 2.5rem;
  }
  .home-stage {
    height: 400px;
    min-height: 0;
    margin: 6px -15px 0;
    border-radius: 0;
  }
  .home-stage-cap {
    padding: 14px 16px 16px;
  }
  .cairn-discovery .home-stage-claim {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .cairn-discovery .home-stage-period {
    font-size: 12.5px;
  }
  .cairn-discovery .home-stage-title {
    font-size: 25px;
  }
  .home-stage-actions {
    margin-top: 10px;
    gap: 8px;
  }
  .cairn-discovery a.home-stage-open,
  .cairn-discovery a.home-stage-site {
    font-size: 13px;
    padding: 8px 12px;
  }
  .home-quest .live-quest-card {
    grid-template-columns: 1fr;
  }
  .home-quest .live-quest-card img {
    max-height: none;
    aspect-ratio: 2 / 1;
  }
  .quest-none {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
  .home-tools-compact .tool-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin: 0 -15px;
    padding: 0 15px 4px;
    scrollbar-width: none;
  }
  .home-tools-compact .tool-card {
    flex: 0 0 64%;
    min-height: 0;
  }
}
