/*
 * thePointsPage Travel Insurance Claims Database
 * Version 1.5.3
 * Uses the approved thePointsPage daily-post article structure and visual language.
 */

.tpp-daily-post,
.tpp-daily-post * {
  box-sizing: border-box;
}

.tpp-daily-post h2,
.tpp-daily-post h3 {
  color: #102a43;
  line-height: 1.25;
  margin-top: 34px;
  margin-bottom: 14px;
  font-weight: 800;
}

.tpp-daily-post h2 {
  font-size: 30px;
}

.tpp-daily-post h3 {
  font-size: 24px;
}

.tpp-daily-post h4 {
  color: #102a43;
  line-height: 1.3;
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
}

/* Claim-internal labels intentionally are not heading elements so page TOCs ignore them. */
.tpp-claim-section-label {
  color: #102a43;
  line-height: 1.3;
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
}

.tpp-daily-post p {
  margin: 0 0 18px;
}

.tpp-daily-post ul,
.tpp-daily-post ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.tpp-daily-post li {
  margin-bottom: 10px;
}

.tpp-daily-post a {
  color: #316ff6;
}

.tpp-quick-card {
  background: #f7fbff;
  border: 1px solid #d9e8ff;
  border-left: 6px solid #316ff6;
  border-radius: 18px;
  padding: 22px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(49, 111, 246, 0.08);
}

.tpp-warning-card {
  background: #fff9e8;
  border: 1px solid #f3d27a;
  border-left: 6px solid #d4a017;
  border-radius: 18px;
  padding: 22px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.10);
}

.tpp-cta-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.tpp-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.tpp-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #316ff6;
  color: #ffffff !important;
  border: 2px solid #316ff6;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

.tpp-pill-button.secondary {
  background: #ffffff;
  color: #316ff6 !important;
  border: 2px solid #316ff6;
}

.tpp-small-note {
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.tpp-source-list a {
  color: #316ff6;
  font-weight: 700;
  text-decoration: underline;
}

.tpp-social-preserve {
  white-space: pre-wrap;
}

.tpp-daily-post .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.tpp-daily-post [hidden] {
  display: none !important;
}

/* Claims tool */
.tpp-claims-tool {
  margin: 34px 0;
}

.tpp-claims-tool-header {
  margin-bottom: 20px;
}

.tpp-claims-tool-header h2 {
  margin-top: 0;
}

.tpp-claims-meta,
.tpp-filter-help,
.tpp-result-count,
.tpp-claim-trigger,
.tpp-documentation p {
  color: #64748b;
}

.tpp-claims-meta,
.tpp-filter-help {
  font-size: 15px;
  line-height: 1.55;
}

.tpp-filter-shell {
  background: #f7fbff;
  border: 1px solid #d9e8ff;
  border-radius: 18px;
  padding: 22px;
  margin: 22px 0 24px;
  box-shadow: 0 8px 24px rgba(49, 111, 246, 0.08);
}

.tpp-filter-row--primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.tpp-search {
  position: relative;
  display: block;
}

.tpp-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
}

.tpp-search input,
.tpp-sort select {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  line-height: 1.25;
}

.tpp-search input {
  padding: 12px 14px 12px 44px;
}

.tpp-sort select {
  padding: 12px 14px;
}

.tpp-search input:focus,
.tpp-sort select:focus,
.tpp-filter-pill:focus-visible,
.tpp-tool-button:focus-visible,
.tpp-claim-card summary:focus-visible {
  outline: 3px solid rgba(49, 111, 246, 0.28);
  outline-offset: 2px;
}

.tpp-sort > span,
.tpp-filter-label {
  display: block;
  margin-bottom: 8px;
  color: #102a43;
  font-weight: 800;
}

.tpp-filter-group + .tpp-filter-group {
  margin-top: 18px;
}

.tpp-chip-row {
  display: grid;
  gap: 8px;
  width: 100%;
}

.tpp-chip-row[aria-label="Filter by claim type"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpp-chip-row[aria-label="Filter by coverage type"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpp-daily-post .tpp-claims-tool button.tpp-filter-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px !important;
  padding: 4px 9px !important;
  background: #ffffff;
  color: #316ff6;
  border: 2px solid #316ff6;
  border-radius: 999px;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.1 !important;
  cursor: pointer;
  width: 100% !important;
  text-align: center;
}

.tpp-daily-post .tpp-claims-tool button.tpp-filter-pill.is-active,
.tpp-daily-post .tpp-claims-tool button.tpp-filter-pill[aria-pressed="true"] {
  background: #316ff6;
  color: #ffffff;
}

.tpp-filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #d9e8ff;
}

.tpp-filter-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tpp-daily-post .tpp-claims-tool button.tpp-tool-button {
  appearance: none;
  width: auto !important;
  min-height: 30px !important;
  padding: 5px 10px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.tpp-claim-list {
  display: grid;
  gap: 14px;
}

.tpp-claim-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tpp-claim-card details {
  margin: 0;
}

.tpp-claim-card summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(225px, auto) 22px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.tpp-claim-card summary::-webkit-details-marker {
  display: none;
}

.tpp-claim-card details[open] summary {
  background: #f7fbff;
  border-bottom: 1px solid #d9e8ff;
}

.tpp-claim-number {
  display: grid;
  place-items: center;
  min-width: 50px;
  min-height: 40px;
  padding: 4px 8px;
  background: #316ff6;
  color: #ffffff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.tpp-claim-summary-main,
.tpp-claim-type,
.tpp-claim-title,
.tpp-claim-trigger {
  display: block;
  min-width: 0;
}

.tpp-claim-type {
  margin-bottom: 3px;
  color: #316ff6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tpp-claim-title {
  color: #102a43;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.tpp-claim-trigger {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
}

.tpp-summary-statuses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tpp-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.tpp-status--likely {
  background: #eaf2ff;
  color: #174ac2;
  border: 1px solid #b9d2ff;
}

.tpp-status--possible {
  background: #f7fbff;
  color: #316ff6;
  border: 1px solid #d9e8ff;
}

.tpp-status--unlikely {
  background: #fff9e8;
  color: #8a6500;
  border: 1px solid #f3d27a;
}

.tpp-status--no {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tpp-chevron {
  width: 11px;
  height: 11px;
  border-right: 2px solid #316ff6;
  border-bottom: 2px solid #316ff6;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.tpp-claim-card details[open] .tpp-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.tpp-claim-body {
  padding: 24px;
}

.tpp-claim-body p:last-child,
.tpp-covered-box p:last-child,
.tpp-documentation p:last-child {
  margin-bottom: 0;
}

.tpp-facts__label {
  margin-bottom: 6px !important;
  color: #316ff6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tpp-facts__lead {
  color: #102a43;
  font-weight: 700;
}

.tpp-takeaway {
  background: #f7fbff;
  border-left: 5px solid #316ff6;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0 0;
}

.tpp-covered-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.tpp-covered-box,
.tpp-documentation {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.tpp-covered-box--yes {
  border-left: 5px solid #316ff6;
}

.tpp-covered-box--no {
  border-left: 5px solid #94a3b8;
}

.tpp-comparison {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.tpp-comparison__head,
.tpp-comparison__row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(140px, 0.55fr) minmax(0, 2.1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 17px;
}

.tpp-comparison__head {
  background: #102a43;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tpp-comparison__row + .tpp-comparison__row {
  border-top: 1px solid #e5e7eb;
}

.tpp-coverage-name {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #102a43;
}

.tpp-documentation {
  margin-top: 20px;
  background: #f8fafc;
}

.tpp-no-results,
.tpp-empty {
  padding: 28px;
  text-align: center;
  background: #f7fbff;
  border: 1px solid #d9e8ff;
  border-radius: 18px;
}

.tpp-empty-title {
  color: #102a43;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 10px;
}

@media (max-width: 980px) {
  .tpp-claim-card summary {
    grid-template-columns: 52px minmax(0, 1fr) 22px;
  }

  .tpp-summary-statuses {
    grid-column: 2 / -1;
    grid-row: 2;
    max-width: 540px;
  }

  .tpp-chevron {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .tpp-daily-post {
    font-size: 17px !important;
  }

  .tpp-daily-post h2 {
    font-size: 26px;
  }

  .tpp-daily-post h3 {
    font-size: 22px;
  }

  .tpp-quick-card,
  .tpp-warning-card,
  .tpp-cta-card,
  .tpp-filter-shell {
    padding: 18px;
    border-radius: 16px;
  }

  .tpp-button-row {
    flex-direction: column;
  }

  .tpp-pill-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .tpp-filter-row--primary,
  .tpp-covered-grid {
    grid-template-columns: 1fr;
  }

  .tpp-filter-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .tpp-filter-actions > div:last-child {
    width: 100%;
  }

  .tpp-daily-post .tpp-claims-tool button.tpp-filter-pill {
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 11.5px !important;
  }

  .tpp-daily-post .tpp-claims-tool button.tpp-tool-button {
    width: auto !important;
    flex: 0 0 auto;
    min-height: 29px !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
  }

  .tpp-claim-card summary {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 15px;
  }

  .tpp-claim-number {
    min-width: 42px;
    min-height: 34px;
    font-size: 12px;
  }

  .tpp-summary-statuses {
    grid-template-columns: 1fr;
  }

  .tpp-claim-body {
    padding: 18px;
  }

  .tpp-comparison__head {
    display: none;
  }

  .tpp-comparison__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tpp-comparison__row > div:nth-child(2)::before {
    content: "Typical response: ";
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media print {
  .tpp-filter-shell,
  .tpp-summary-statuses,
  .tpp-chevron,
  .tpp-cta-card {
    display: none !important;
  }

  .tpp-claim-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .tpp-claim-card details > *,
  .tpp-claim-card details:not([open]) .tpp-claim-body {
    display: block !important;
  }
}

@media (max-width: 520px) {
  .tpp-chip-row[aria-label="Filter by claim type"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpp-chip-row[aria-label="Filter by coverage type"] {
    grid-template-columns: 1fr;
  }
}
