/*
  compare.css
  Styling for the /compare/ pages. Layers on top of hire.css and reuses its
  tokens, so the comparison pages read as part of the how-to-hire family rather
  than a separate section.
*/

.cmp-hero{
  background:var(--paper,#F3EFE7);
  padding:72px 0 52px;
  border-bottom:1px solid rgba(15,32,51,.10);
}
.cmp-hero h1{
  font-family:'Fraunces',Georgia,serif;
  font-weight:600;
  font-size:clamp(30px,4.4vw,50px);
  line-height:1.08;
  letter-spacing:-.015em;
  color:var(--ink,#0F2033);
  margin:10px 0 0;
}
.cmp-hero .eyebrow{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--teal,#1B6E76);
}

/* Breadcrumb. Mirrors the BreadcrumbList JSON-LD so the structured data has
   matching visible content on the page. */
.crumbs{margin:0 0 18px;}
.crumbs ol{
  list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:11px;letter-spacing:.09em;text-transform:uppercase;
}
.crumbs li{display:flex;align-items:center;gap:6px;color:rgba(15,32,51,.55);}
.crumbs li + li::before{content:'/';opacity:.45;}
.crumbs a{color:rgba(15,32,51,.55);text-decoration:none;border-bottom:1px solid transparent;}
.crumbs a:hover{color:var(--teal,#1B6E76);border-bottom-color:var(--teal,#1B6E76);}
.crumbs li[aria-current="page"]{color:var(--ink,#0F2033);}

/* AEO answer block. Self-contained, specific, placed high so an answer engine
   can lift it whole. Styled as a pull quote so it earns its place for readers. */
.aeo-answer{
  margin:26px 0 0;
  padding:20px 24px;
  border-left:3px solid var(--amber,#D98F3E);
  background:rgba(217,143,62,.08);
  border-radius:0 6px 6px 0;
  max-width:820px;
}
.aeo-answer p{margin:0;font-size:16px;line-height:1.62;color:var(--ink,#0F2033);}
.aeo-answer p + p{margin-top:10px;}
.aeo-answer .aeo-q{font-size:15px;}

.cmp-verdict{
  margin:22px 0 0;max-width:820px;
  font-size:16.5px;line-height:1.55;color:var(--ink,#0F2033);
}
.cmp-verdict-label{
  display:block;
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--teal,#1B6E76);margin-bottom:6px;
}

/* Vertical padding only. The shorthand form (padding:52px 0) would reset the
   horizontal padding, and these sections carry .wrap, whose 0 24px is what
   keeps content off the viewport edge. Using the shorthand here silently
   knocked every section 24px out of line with the hero. */
.cmp-section{padding-top:52px;padding-bottom:52px;}
.cmp-section h2{
  font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(23px,2.7vw,31px);color:var(--ink,#0F2033);
  margin:0 0 8px;letter-spacing:-.01em;
}
.cmp-note{
  font-size:14.5px;line-height:1.6;color:rgba(15,32,51,.68);
  max-width:760px;margin:0 0 26px;
}

/* Side-by-side table. Collapses to stacked cards on narrow screens rather than
   forcing a horizontal scroll, since these pages get read on phones. */
.cmp-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.cmp-table{
  width:100%;border-collapse:collapse;
  background:#fff;border:1px solid rgba(15,32,51,.12);border-radius:8px;
  font-size:15px;line-height:1.55;
}
.cmp-table th,.cmp-table td{
  padding:15px 18px;text-align:left;vertical-align:top;
  border-bottom:1px solid rgba(15,32,51,.09);
}
.cmp-table thead th{
  font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:17px;
  color:var(--ink,#0F2033);background:rgba(27,110,118,.06);
  border-bottom:2px solid rgba(27,110,118,.22);
}
.cmp-table thead th a{color:var(--teal,#1B6E76);text-decoration:none;}
.cmp-table thead th a:hover{text-decoration:underline;}
.cmp-table tbody tr:last-child th,.cmp-table tbody tr:last-child td{border-bottom:none;}
.cmp-rowlabel{
  width:190px;
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;
  color:rgba(15,32,51,.62);font-weight:500;
}

.cmp-distinction{
  background:#fff;border:1px solid rgba(15,32,51,.12);border-radius:8px;
  padding:22px 24px;margin-bottom:16px;max-width:860px;
}
.cmp-distinction h3{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:11.5px;letter-spacing:.13em;text-transform:uppercase;
  color:var(--teal,#1B6E76);margin:0 0 10px;font-weight:500;
}
.cmp-distinction p{margin:0;font-size:15.5px;line-height:1.65;color:var(--ink,#0F2033);}

.cmp-faq{max-width:860px;}
.cmp-faq details{
  background:#fff;border:1px solid rgba(15,32,51,.12);border-radius:8px;
  padding:0;margin-bottom:10px;
}
.cmp-faq summary{
  cursor:pointer;padding:16px 20px;font-weight:600;font-size:15.5px;
  color:var(--ink,#0F2033);list-style:none;position:relative;padding-right:46px;
}
.cmp-faq summary::-webkit-details-marker{display:none;}
.cmp-faq summary::after{
  content:'+';position:absolute;right:20px;top:50%;transform:translateY(-50%);
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:18px;color:var(--amber,#D98F3E);
}
.cmp-faq details[open] summary::after{content:'\2013';}
.cmp-faq details p{
  margin:0;padding:0 20px 18px;font-size:15px;line-height:1.65;
  color:rgba(15,32,51,.82);
}

.cmp-grid{
  display:grid;gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(330px,1fr));
}
.cmp-card{
  display:flex;flex-direction:column;gap:10px;
  background:#fff;border:1px solid rgba(15,32,51,.12);border-radius:8px;
  padding:22px 24px;text-decoration:none;
  transition:border-color .18s,transform .18s,box-shadow .18s;
}
.cmp-card:hover{
  border-color:var(--amber,#D98F3E);transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(15,32,51,.08);
}
.cmp-card-pair{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;}
.cmp-card-role{
  font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:18px;
  color:var(--ink,#0F2033);line-height:1.2;
}
.cmp-card-vs{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--amber,#D98F3E);
}
.cmp-card-q{font-size:14.5px;color:var(--teal,#1B6E76);font-weight:500;line-height:1.45;}
.cmp-card-verdict{font-size:14px;line-height:1.6;color:rgba(15,32,51,.72);}

.cmp-next-grid{
  display:grid;gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  margin-top:20px;
}
.cmp-next-card{
  display:flex;flex-direction:column;gap:7px;
  background:var(--ink,#0F2033);border-radius:8px;padding:22px 24px;
  text-decoration:none;transition:transform .18s;
}
.cmp-next-card:hover{transform:translateY(-2px);}
.cmp-next-label{
  font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--amber,#D98F3E);
}
.cmp-next-title{
  font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:18px;
  color:#F3EFE7;line-height:1.25;
}
.cmp-next-desc{font-size:14px;line-height:1.55;color:rgba(243,239,231,.72);}
.cmp-hub-link{margin-top:24px;}
.cmp-hub-link a{color:var(--teal,#1B6E76);font-weight:600;text-decoration:none;}
.cmp-hub-link a:hover{text-decoration:underline;}

@media (max-width:720px){
  .cmp-hero{padding:52px 0 40px;}
  .aeo-answer{padding:16px 18px;}
  .aeo-answer p{font-size:15px;}
  .cmp-section{padding-top:40px;padding-bottom:40px;}

  /* Stack the table into labelled rows instead of scrolling sideways. */
  .cmp-table,.cmp-table tbody,.cmp-table tr,.cmp-table td,.cmp-table th{display:block;width:auto;}
  .cmp-table thead{display:none;}
  .cmp-table tbody tr{
    border-bottom:1px solid rgba(15,32,51,.14);padding:6px 0 12px;
  }
  .cmp-table tbody tr:last-child{border-bottom:none;}
  .cmp-table th.cmp-rowlabel{
    width:auto;padding:14px 16px 4px;color:var(--teal,#1B6E76);
  }
  .cmp-table td{padding:4px 16px 6px;position:relative;padding-left:16px;}
  .cmp-table td::before{
    content:attr(data-role);display:block;
    font-family:'IBM Plex Mono',ui-monospace,monospace;
    font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
    color:rgba(15,32,51,.5);margin-bottom:3px;
  }
}

/* Explicit colours on table content. hire.css styles `.hire a` broadly, and
   without these the cell text inherits link colouring and reads as though
   every value is a link. Set here rather than loosening the hire.css rule,
   which other pages depend on. */
.cmp-table td,
.cmp-table tbody th{color:var(--ink,#152A42);}
.cmp-table td strong{color:var(--ink,#152A42);}
.cmp-table tbody th.cmp-rowlabel{color:rgba(21,42,66,.62);}
