/* Applications Premium: catalogue and detail surfaces. */

/* Approved AI offers share the catalogue without changing app filters. */
.ai-offers { padding-block: 0 56px; scroll-margin-top: 92px; }
.ai-offers .section-heading { margin-bottom: 20px; }
.ai-offers h2 { margin-block: 7px 0; font-size: clamp(1.55rem, 2.7vw, 2rem); font-weight: 620; letter-spacing: -0.035em; line-height: 1.25; }
.ai-offers .section-intro { max-width: 42ch; color: var(--muted); font-size: 0.88rem; }
.offer-card { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-raised); }
.offer-monogram { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #b6d7f5; border-radius: 13px; background: #edf5ff; color: #15539e; font-weight: 700; font-size: 1.15rem; }
.offer-card h3 { margin-block: 4px 8px; font-size: 1.2rem; font-weight: 640; line-height: 1.35; letter-spacing: -0.025em; }
.offer-card h3 a { text-decoration: none; }
.offer-card h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.offer-card p:not(.eyebrow) { max-width: 68ch; margin-block: 0 12px; color: var(--muted); font-size: 0.88rem; }
.offer-card > .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); white-space: nowrap; }
.offer-card .app-status { white-space: normal; }
.offer-detail .apps-detail-header { margin-bottom: 28px; }
.offer-detail h1 { max-width: 18ch; }
.offer-verification { margin-top: 16px; color: var(--muted); font-size: 0.78rem; }
.offer-section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.offer-section > p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.offer-steps { padding-left: 24px; margin-block: 20px 0; }
.offer-steps li { padding-left: 7px; }
.offer-steps li + li { margin-top: 24px; }
.offer-steps li::marker { color: var(--accent); font-weight: 650; }
.offer-steps h3 { margin-bottom: 7px; font-size: 1.02rem; font-weight: 620; }
.offer-steps p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.8; }
.offer-action-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; border-block-start: 1px solid var(--line); font-size: 0.9rem; font-weight: 580; }
.offer-action-row small { color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.offer-icon-link { display: inline-flex; flex: 0 0 46px; width: 46px; min-width: 46px; height: 46px; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--control-line); border-radius: 12px; color: var(--accent); background: var(--paper-raised); text-decoration: none; }
.offer-icon-link:hover { background: #edf5ff; border-color: var(--accent); }
.offer-icon-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.offer-icon-link svg { flex: 0 0 23px; pointer-events: none; }
.offer-sources { list-style: none; padding: 0; margin-top: 18px; }
.offer-sources li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 0.86rem; scroll-margin-top: 92px; }
.offer-source-number { color: var(--muted); }
.offer-section .offer-references { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 15px 0 0; font-size: 0.77rem; }
.offer-references a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--accent); }
@media (max-width: 760px) {
  .ai-offers { padding-block: 0 42px; }
  .ai-offers .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .offer-card { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 17px; }
  .offer-monogram { width: 52px; height: 52px; align-self: start; }
  .offer-card > .text-link { grid-column: 2; }
  .offer-section { margin-top: 28px; padding-top: 22px; }
}

.apps-breadcrumb { align-items: center; }

/* Compact entrance to the catalogue; the resources stay in the foreground. */
.apps-directory-header {
  padding-block: 42px 32px;
  border-bottom: 1px solid var(--line);
}
.apps-directory-header h1 {
  margin-block: 8px 12px;
  font-family: var(--sans);
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.apps-lead {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.apps-directory-note {
  display: flex;
  max-width: 920px;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
}
.apps-directory-note p {
  max-width: 67ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.apps-directory-note .text-link,
.apps-info .text-link,
.apps-detail .text-link { color: var(--accent); }

.apps-main { padding-bottom: 76px; }

.apps-catalogue { padding-block: 30px 60px; }
.apps-catalogue .section-heading { margin-bottom: 20px; }
.apps-catalogue .section-heading h2 {
  margin-top: 7px;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.apps-catalogue .section-intro { max-width: 42ch; color: var(--muted); font-size: 0.88rem; }
.apps-catalogue .catalogue-toolbar {
  padding-block: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.apps-catalogue .filter-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.apps-catalogue .search-field { border-color: var(--control-line); border-radius: 12px; }
.apps-result-count {
  margin-block: 16px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.apps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.app-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.app-card-top { display: flex; align-items: center; justify-content: center; margin: 0; }
.app-card-top .app-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  object-fit: cover;
  font-size: 1.1rem;
  font-weight: 650;
}
.app-icon-screen { color: var(--ink); background: var(--paper-shade); }
.app-icon-network { color: var(--ink); background: var(--paper-shade); }
.app-card-main { min-width: 0; }
.app-card-main .eyebrow { margin-bottom: 3px; font-size: 0.66rem; }
.app-card h3 {
  margin-block: 0 5px;
  font-size: 1.16rem;
  font-weight: 640;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.app-card h3 a { text-decoration: none; }
.app-card-summary { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.app-card-bottom {
  display: grid;
  justify-items: end;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 18px;
  border: 0;
}
.app-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-shade);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.app-card-bottom .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}
.app-card-bottom .text-link:hover,
.app-card h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.app-editorial-note,
.apps-editorial-note { margin-top: 22px; color: var(--muted); font-size: 0.83rem; }
.apps-info {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 72px);
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.apps-info h2 {
  margin-block: 8px 15px;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 620;
  line-height: 1.24;
  letter-spacing: -0.035em;
}
.apps-info > div > p:not(.eyebrow) { max-width: 46ch; color: var(--muted); font-size: 0.9rem; }
.apps-info .faq-list { margin: 0; }

/* Detail page: facts first, availability and next steps alongside. */
.apps-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
  padding-block: 25px 76px;
}
.apps-detail > article { min-width: 0; }
.apps-detail-header { margin-bottom: 36px; }
.apps-detail-header .app-card-top { justify-content: flex-start; margin-bottom: 18px; }
.apps-detail-header .eyebrow { margin-bottom: 3px; }
.apps-detail h1 {
  margin-block: 6px 15px;
  font-family: var(--sans);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.apps-detail-header .apps-lead { max-width: 66ch; font-size: 1rem; }
.apps-detail h2 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.apps-facts { margin: 17px 0 0; border-bottom: 1px solid var(--line); }
.apps-facts > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.apps-facts dt { color: var(--muted); font-size: 0.86rem; }
.apps-facts dd { margin: 0; font-size: 0.9rem; font-weight: 560; overflow-wrap: anywhere; }
.apps-detail-notes { padding-block: 34px 24px; }
.apps-detail-notes .checklist { margin-top: 15px; }
.apps-detail-sidebar { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.apps-detail-sidebar .sidebar-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
}
.apps-detail-sidebar h2 { margin-block: 7px 12px; font-size: 1.28rem; }
.apps-detail-sidebar .sidebar-card > p:not(.eyebrow) { color: var(--muted); font-size: 0.87rem; line-height: 1.7; }
.apps-detail-sidebar .button { width: 100%; margin-top: 14px; }
.apps-detail-sidebar .button:disabled { opacity: 1; }
.apps-detail-sidebar .sidebar-card.subtle { background: var(--paper-shade); }
.apps-next-steps { padding-left: 20px; margin-bottom: 0; color: var(--muted); font-size: 0.84rem; }
.apps-next-steps li + li { margin-top: 10px; }
.apps-share { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.apps-share .button { width: 100%; margin-top: 0; }
.apps-share-status { min-height: 1.5em; margin-top: 9px; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.apps-share-fallback { width: 100%; margin-top: 9px; padding: 8px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--paper-raised); font-size: 0.8rem; }

@media (hover: hover) {
  .app-card:hover { border-color: var(--control-line); box-shadow: 0 5px 18px rgb(23 32 51 / 5%); }
  .apps-catalogue .filter-chip:not([aria-pressed="true"]):hover { border-color: var(--accent); color: var(--accent); }
}

@media (max-width: 900px) {
  .apps-info { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .apps-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .apps-detail-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 760px) {
  .apps-directory-header { padding-block: 30px 24px; }
  .apps-directory-note { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px; }
  .apps-main { padding-bottom: 52px; }
  .apps-catalogue { padding-block: 25px 42px; }
  .apps-catalogue .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .apps-catalogue .catalogue-toolbar { align-items: stretch; gap: 12px; }
  .apps-catalogue .access-filters { width: 100%; }
  .apps-catalogue .filter-chip { flex: 1; padding-inline: 12px; }
  .apps-catalogue .search-field { width: 100%; grid-column: 1 / -1; }
  .app-card { grid-template-columns: 54px minmax(0, 1fr); gap: 12px 15px; padding: 17px; }
  .app-card-top { grid-row: 1 / 3; align-self: start; }
  .app-card-top .app-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .app-card-bottom { grid-column: 2; grid-template-columns: 1fr; justify-items: start; gap: 3px; padding: 0; }
  .apps-info { padding-top: 30px; }
  .apps-detail { padding-block: 17px 48px; }
}

@media (max-width: 520px) {
  .apps-detail-sidebar { display: flex; }
  .apps-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media print {
  .apps-detail-sidebar, .apps-share, .apps-entry { display: none; }
  .apps-detail { display: block; padding: 0; }
  .app-card, .apps-directory-note { break-inside: avoid; }
}
