/* Content pages opened from the HUD menu (About, Team, Contact, Services and so on).
   They render inside a resizable window, so the layout follows the page's own width
   (container queries) rather than the viewport. */

.cp {
  container-type: inline-size;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text-secondary);
}

.cp-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero */
.cp-eyebrow {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 10px;
}

.cp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.2cqi, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 14px;
}

.cp-lead {
  font-size: clamp(1rem, 0.95rem + 0.3cqi, 1.15rem);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

/* Sections */
.cp-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.8cqi, 1.6rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 12px;
}

.cp-section > p,
.cp-prose p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 68ch;
  margin: 0 0 12px;
}

.cp strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.cp a {
  color: var(--color-teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cards and grids */
.cp-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
}

/* Black-on-transparent logos turn white in dark mode */
html.dark .cp-logo-mono {
  filter: brightness(0) invert(1);
}

.cp-card h3,
.cp-flat h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 8px;
}

.cp-card p,
.cp-flat p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.cp-card p + p {
  margin-top: 10px;
}

.cp-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cp-min, 220px)), 1fr));
}

/* Flat grid: items sit on a thin rule instead of inside a box */
.cp-grid.cp-flat {
  gap: 24px;
}

.cp-flat > * {
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

.cp-flat > .cp-stat {
  padding: 14px 0 0;
}

/* Key numbers */
.cp-stats {
  --cp-min: 160px;
}

.cp-stat {
  padding: 18px 20px;
}

.cp-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-teal);
  margin-bottom: 6px;
}

.cp-stat span {
  font-size: 13.5px;
  line-height: 1.45;
}

/* Photos: fixed shapes so a row of mixed portrait and landscape shots lines up */
/* Always an even split so four photos sit 2x2, never 3 + 1 */
.cp-grid.cp-gallery {
  grid-template-columns: 1fr;
}

@container (min-width: 520px) {
  .cp-grid.cp-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cp-figure {
  margin: 0;
}

.cp-figure img,
.cp-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--glass-bg);
}

.cp-figure figcaption {
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* Person: photo beside the text once there is room */
.cp-person {
  display: grid;
  gap: 24px;
  align-items: start;
}

.cp-person-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.cp-role {
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-teal);
  margin: 0 0 12px;
}

.cp-person h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.cp-facts {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-facts li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

@container (min-width: 640px) {
  .cp-person {
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 32px;
  }
}

/* AI agents */
.cp-person-square .cp-person-photo {
  aspect-ratio: 1;
}

.cp a.cp-button {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--color-teal);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.cp a.cp-button:hover {
  filter: brightness(1.08);
}

.cp-agents {
  --cp-min: 200px;
}

.cp-agent img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--glass-bg);
}

.cp-agent .cp-role {
  margin-bottom: 8px;
}

/* Label / value rows for contact and company details */
.cp-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.cp-details div {
  display: grid;
  gap: 2px;
}

.cp-details dt {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.cp-details dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}

.cp-details dd small {
  display: block;
  font-size: 13px;
  color: var(--color-text-secondary);
}

@container (min-width: 640px) {
  .cp-details div {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }
}

/* Contact methods */
.cp-contacts {
  --cp-min: 200px;
}

.cp-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-contact .cp-label {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.cp-contact .cp-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}

.cp-contact a.cp-value {
  color: var(--color-text-primary);
  text-decoration: none;
}

.cp-contact a.cp-value:hover {
  color: var(--color-teal);
}

.cp-contact small {
  font-size: 13px;
}

/* FAQ */
.cp-faq {
  --cp-min: 280px;
}

/* Secondary button */
.cp a.cp-button-ghost {
  background: transparent;
  color: var(--color-teal);
  border: 1px solid var(--glass-border);
}

.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

/* Small label above a card title, or a category badge */
.cp-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* Plain label: same type, no chip background or border */
.cp-tag.cp-tag-plain {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Cards that hold a footer row stretch so their buttons line up */
.cp-card-col {
  display: flex;
  flex-direction: column;
}

.cp-card-col > .cp-tag {
  align-self: flex-start;
}

.cp-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 12px;
}

.cp-card-head h3 {
  margin: 0;
}

.cp-card-head img {
  max-height: 32px;
  max-width: 140px;
  object-fit: contain;
}

.cp-card-head svg {
  flex-shrink: 0;
}

.cp-emoji {
  font-size: 24px;
  line-height: 1;
}

/* Bullet list inside a card */
.cp-list {
  list-style: square;
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.5;
}

/* Expandable detail inside a card */
.cp-more {
  margin-top: 14px;
  border-top: 1px solid var(--glass-border);
  padding-top: 10px;
}

.cp-more summary {
  cursor: pointer;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
  list-style-position: inside;
}

.cp-more .cp-details,
.cp-details.cp-more {
  gap: 10px;
}

.cp-more .cp-details {
  margin-top: 12px;
}

/* Inside a column card the label stays above the value, whatever the page width */
.cp-card-col .cp-details div {
  grid-template-columns: 1fr;
  gap: 2px;
}

.cp-card-col .cp-details dd {
  font-size: 14px;
}

/* Cross-link banner: text on the left, button on the right once there is room */
.cp-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-banner > div {
  flex: 1 1 320px;
}

.cp-banner h3 {
  margin-bottom: 4px;
}

.cp-banner .cp-tag {
  margin-bottom: 8px;
}

/* Numbered steps */
.cp-step-num {
  display: block;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 10px;
}

/* Results with a quote */
.cp-quote {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--color-teal);
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}

/* Closing call to action */
.cp-cta {
  text-align: center;
  padding: 32px 24px;
}

.cp-cta h2 {
  margin-bottom: 10px;
}

.cp-cta p {
  max-width: 56ch;
  margin: 0 auto 16px;
}

.cp-cta small {
  display: block;
  margin-top: 12px;
  font-size: 13px;
}

/* Fixed column counts for groups that should never leave one card on its own row */
.cp-grid.cp-grid-2,
.cp-grid.cp-grid-4 {
  grid-template-columns: 1fr;
}

@container (min-width: 520px) {
  .cp-grid.cp-grid-2,
  .cp-grid.cp-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 900px) {
  .cp-grid.cp-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* LOKO.travel wordmark: the SVG uses classes for its colors */
.loko-logo .logo-text {
  fill: currentColor;
}

.loko-logo .hat-body {
  fill: #f59e0b;
}

.loko-logo .hat-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

/* AskLawyer.vn wordmark: brand navy, swapped for the light text color on the dark theme */
.asklawyer-logo .al-navy {
  fill: #10203F;
}

html.dark .asklawyer-logo .al-navy {
  fill: var(--color-text-primary);
}

/* Wide architecture diagrams scroll inside their card on narrow windows */
.cp-diagram {
  overflow-x: auto;
}

.cp-diagram svg {
  display: block;
  width: 100%;
  min-width: 600px;
  height: auto;
  color: var(--color-text-primary);
}

/* Plain comparison table: thin rules, scrolls sideways on narrow windows */
.cp-table-wrap {
  overflow-x: auto;
}

.cp-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.cp-table th,
.cp-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.cp-table thead th {
  color: var(--color-text-primary);
  font-weight: 700;
}

.cp-table tbody th {
  font-weight: 600;
  color: var(--color-text-primary);
}
