/* =========================================================
   Confédération Clarity — Swiss Minimal design system
   Kendros redesign proposal 01
   8px modular grid · single grotesk, two weights · hairlines
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root{
  --navy: #0b2545;
  --navy-deep: #071a33;
  --magenta: #d10a6b;
  --magenta-dark: #a80856;
  --ground: #ffffff;
  --ground-alt: #f4f5f7;
  --grey-100: #f4f5f7;
  --grey-200: #e6e8eb;
  --grey-400: #b7bcc4;
  --grey-600: #6b7280;
  --grey-800: #2b2f36;
  --ink: #14181f;
  --hairline: #d5d8dd;
  --focus: #0b2545;
  --unit: 8px;
  --font: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 0; /* square corners, Swiss signage */
}

/* Local fallback in case the network font is unreachable — system grotesk stack still reads as a single neutral family */
@font-face{
  font-family:'Inter-fallback';
  src:local('Arial');
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--font);
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

body{ min-height:100vh; display:flex; flex-direction:column; }

h1,h2,h3,h4{
  font-weight:600;
  color:var(--navy);
  margin:0 0 16px 0;
  line-height:1.25;
}
h1{ font-size:28px; letter-spacing:-0.01em; }
h2{ font-size:20px; }
h3{ font-size:16px; text-transform:uppercase; letter-spacing:.04em; }
h4{ font-size:14px; text-transform:uppercase; letter-spacing:.04em; color:var(--grey-600); }

p{ margin:0 0 16px 0; color:var(--grey-800); }

a{ color:var(--navy); text-decoration:underline; text-underline-offset:2px; }
a:hover{ color:var(--magenta); }

button, .btn{
  font-family:var(--font);
  cursor:pointer;
}

/* tabular numerals everywhere numbers appear, per spec */
table, .num{
  font-variant-numeric: tabular-nums;
}

/* ---------------- Utility bar ---------------- */
.utility-bar{
  background:var(--navy-deep);
  color:#cdd6e4;
  font-size:12px;
}
.utility-bar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:6px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.lang-toggle{
  display:flex;
  gap:2px;
}
.lang-toggle a, .lang-toggle span{
  color:#cdd6e4;
  text-decoration:none;
  padding:2px 6px;
  font-size:12px;
}
.lang-toggle .active{
  color:#fff;
  font-weight:600;
  border-bottom:1px solid var(--magenta);
}
.utility-links a{
  color:#cdd6e4;
  text-decoration:none;
  margin-left:16px;
  font-size:12px;
}
.utility-links a:hover{ color:#fff; text-decoration:underline; }

/* ---------------- Header ---------------- */
header.site-header{
  border-bottom:1px solid var(--hairline);
  background:var(--ground);
}
.header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:20px 24px 16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.wordmark{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}
.wordmark svg{ display:block; }
.wordmark-text{
  font-size:28px;
  font-weight:600;
  color:var(--navy);
  letter-spacing:-0.02em;
}
.wordmark-tagline{
  font-size:11px;
  color:var(--grey-600);
  letter-spacing:.08em;
  text-transform:uppercase;
  border-left:1px solid var(--hairline);
  padding-left:14px;
  margin-left:2px;
}
.header-account{
  display:flex;
  gap:8px;
}
.account-btn{
  border:1px solid var(--navy);
  color:var(--navy);
  background:transparent;
  padding:8px 16px;
  font-size:13px;
  text-decoration:none;
  font-weight:600;
}
.account-btn:hover{ background:var(--navy); color:#fff; }
.account-btn.primary{
  background:var(--navy);
  color:#fff;
}
.account-btn.primary:hover{ background:var(--navy-deep); }

/* ---------------- Top nav: 5-6 sections ---------------- */
nav.top-nav{
  background:var(--ground);
  border-bottom:1px solid var(--navy);
}
.top-nav-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
}
.top-nav-inner a{
  display:block;
  padding:14px 20px;
  font-size:14px;
  font-weight:600;
  color:var(--navy);
  text-decoration:none;
  border-bottom:3px solid transparent;
  margin-bottom:-1px;
}
.top-nav-inner a:hover{
  color:var(--magenta);
}
.top-nav-inner a.current{
  color:var(--magenta);
  border-bottom-color:var(--magenta);
}

/* ---------------- Layout shell ---------------- */
main.shell{
  max-width:1200px;
  width:100%;
  margin:0 auto;
  padding:32px 24px 64px 24px;
  flex:1;
  display:flex;
  gap:32px;
  align-items:flex-start;
}
main.shell.no-rail{ display:block; }

.content{ flex:1; min-width:0; }

/* Left rail — only present inside a section */
aside.section-rail{
  width:220px;
  flex-shrink:0;
  border-right:1px solid var(--hairline);
  padding-right:24px;
}
.section-rail h4{ margin-bottom:8px; }
.section-rail ul{
  list-style:none;
  margin:0 0 24px 0;
  padding:0;
}
.section-rail li{ margin:0; }
.section-rail a{
  display:block;
  padding:6px 0;
  font-size:14px;
  color:var(--navy);
  text-decoration:none;
  border-bottom:1px solid var(--grey-200);
}
.section-rail a:hover{ color:var(--magenta); }
.section-rail a.current{
  color:var(--magenta);
  font-weight:600;
}

/* breadcrumb */
.breadcrumb{
  font-size:12px;
  color:var(--grey-600);
  margin-bottom:16px;
}
.breadcrumb a{ color:var(--grey-600); text-decoration:none; }
.breadcrumb a:hover{ color:var(--magenta); }
.breadcrumb .sep{ margin:0 6px; }

/* ---------------- Rationale panel ---------------- */
.rationale{
  border-left:3px solid var(--magenta);
  background:var(--grey-100);
  padding:16px 20px;
  margin:0 0 32px 0;
}
.rationale h4{
  color:var(--navy);
  margin-bottom:12px;
  display:flex;
  align-items:center;
  gap:8px;
}
.rationale h4::before{
  content:"";
  width:8px;
  height:8px;
  background:var(--magenta);
  display:inline-block;
  border-radius:50%;
}
.rationale ul{
  margin:0;
  padding:0 0 0 18px;
  font-size:13px;
  color:var(--grey-800);
}
.rationale li{ margin-bottom:8px; }
.rationale li:last-child{ margin-bottom:0; }
.rationale strong{ color:var(--navy); }
aside.rationale-float{
  width:280px;
  flex-shrink:0;
}
aside.rationale-float .rationale{ position:sticky; top:24px; }

/* ---------------- Panels / sections ---------------- */
.panel{
  border:1px solid var(--hairline);
  margin-bottom:32px;
}
.panel-header{
  padding:12px 20px;
  border-bottom:1px solid var(--hairline);
  background:var(--grey-100);
}
.panel-header h3{ margin:0; color:var(--navy); }
.panel-body{ padding:20px; }

/* ---------------- Forms ---------------- */
.field{ margin-bottom:20px; max-width:420px; }
.field label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--navy);
  margin-bottom:6px;
}
.field input[type=text], .field input[type=password], .field input[type=email], .field select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--grey-400);
  background:#fff;
  font-family:var(--font);
  font-size:14px;
  color:var(--ink);
  border-radius:0;
}
.field input:focus, .field select:focus{
  outline:2px solid var(--focus);
  outline-offset:1px;
  border-color:var(--navy);
}
.field-hint{ font-size:12px; color:var(--grey-600); margin-top:4px; }
.field-error{
  font-size:12px;
  color:var(--magenta-dark);
  margin-top:4px;
  font-weight:600;
}
.field.has-error input{
  border-color:var(--magenta-dark);
  background:#fdf1f6;
}

.btn-primary{
  display:inline-block;
  background:var(--magenta);
  color:#fff;
  border:1px solid var(--magenta);
  padding:11px 28px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  border-radius:0;
}
.btn-primary:hover{ background:var(--magenta-dark); border-color:var(--magenta-dark); }
.btn-secondary{
  display:inline-block;
  background:transparent;
  color:var(--navy);
  border:1px solid var(--navy);
  padding:10px 24px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
}
.btn-secondary:hover{ background:var(--navy); color:#fff; }

.checkbox-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.checkbox-group label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:400;
  color:var(--ink);
}
.checkbox-group input{ accent-color:var(--navy); }

fieldset{
  border:none;
  padding:0;
  margin:0 0 24px 0;
}
legend{
  font-size:13px;
  font-weight:600;
  color:var(--navy);
  padding:0;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.filter-reset{
  font-size:12px;
  color:var(--grey-600);
  text-decoration:underline;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
}

/* ---------------- Error / banner ---------------- */
.banner-error{
  border:1px solid var(--magenta-dark);
  background:#fdf1f6;
  color:var(--magenta-dark);
  padding:14px 18px;
  font-size:14px;
  font-weight:600;
  margin-bottom:24px;
}

/* ---------------- Login layout ---------------- */
.login-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  max-width:960px;
  margin:0 auto;
}
.login-panel{
  border:1px solid var(--hairline);
  padding:32px;
}
.login-panel h2{ margin-bottom:24px; }
.login-help{
  margin-top:20px;
  font-size:13px;
}
.login-help p{ font-size:13px; margin-bottom:8px; }
.promo-box{
  background:var(--grey-100);
  padding:24px;
  border-left:3px solid var(--navy);
}
.promo-box p{ font-size:14px; }

.user-select-list{
  list-style:none;
  margin:0;
  padding:0;
  max-width:420px;
}
.user-select-list li{ border-bottom:1px solid var(--hairline); }
.user-select-list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 4px;
  text-decoration:none;
  color:var(--ink);
  font-size:16px;
  font-weight:600;
}
.user-select-list a:hover{ color:var(--magenta); }
.user-select-list a .chev{ color:var(--grey-400); }

/* ---------------- Homepage ---------------- */
.search-hero{
  border:1px solid var(--hairline);
  padding:40px;
  margin-bottom:32px;
  background:var(--grey-100);
}
.search-hero h1{ margin-bottom:6px; }
.search-hero .sub{ color:var(--grey-600); margin-bottom:24px; font-size:14px; }
.search-hero-form{
  display:flex;
  gap:0;
  max-width:720px;
}
.search-hero-form input[type=text]{
  flex:1;
  padding:14px 16px;
  border:1px solid var(--grey-400);
  border-right:none;
  font-size:16px;
  font-family:var(--font);
}
.search-hero-form input:focus{ outline:2px solid var(--focus); }
.search-hero-form button{
  background:var(--magenta);
  color:#fff;
  border:1px solid var(--magenta);
  padding:0 28px;
  font-size:15px;
  font-weight:600;
}
.search-hero-form button:hover{ background:var(--magenta-dark); }

.tile-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--hairline);
  border:1px solid var(--hairline);
  margin-bottom:40px;
}
.tile{
  background:#fff;
  padding:24px 20px;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:130px;
}
.tile:hover{ background:var(--grey-100); }
.tile .tile-icon{ color:var(--navy); }
.tile .tile-label{ font-size:15px; font-weight:600; color:var(--navy); }
.tile .tile-desc{ font-size:12px; color:var(--grey-600); }

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin-bottom:32px;
}
.teaser h3{ margin-bottom:12px; }
.teaser ul{ list-style:none; margin:0; padding:0; }
.teaser li{
  border-bottom:1px solid var(--grey-200);
  padding:10px 0;
  font-size:14px;
}
.teaser li a{ color:var(--ink); text-decoration:none; font-weight:600; }
.teaser li a:hover{ color:var(--magenta); }
.teaser li .meta{ display:block; font-size:12px; color:var(--grey-600); margin-top:2px; }

/* ---------------- Tables ---------------- */
.table-wrap{ overflow-x:auto; }
table.data{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
table.data thead th{
  position:sticky;
  top:0;
  background:var(--navy);
  color:#fff;
  text-align:left;
  font-weight:600;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.03em;
  padding:10px 14px;
  white-space:nowrap;
}
table.data thead th.num, table.data thead th.right{ text-align:right; }
table.data thead th a{ color:#fff; text-decoration:none; }
table.data thead th .sort-arrow{ font-size:10px; margin-left:4px; opacity:.7; }
table.data tbody td{
  padding:12px 14px;
  border-bottom:1px solid var(--hairline);
  vertical-align:top;
}
table.data tbody tr:hover{ background:var(--grey-100); }
table.data td.num, table.data td.right{ text-align:right; }
table.data td a{ font-weight:600; text-decoration:none; }
table.data td a:hover{ color:var(--magenta); }
.status-chip{
  display:inline-block;
  font-size:11px;
  font-weight:600;
  padding:3px 8px;
  border:1px solid var(--grey-400);
  color:var(--grey-800);
  white-space:nowrap;
}
.status-chip.verified{
  border-color:var(--navy);
  color:var(--navy);
}
.status-chip.unverified{
  border-color:var(--grey-400);
  color:var(--grey-600);
}

/* ---------------- Filters ---------------- */
.search-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin-bottom:8px;
}
.filters-sidebar{
  width:240px;
  flex-shrink:0;
  border-right:1px solid var(--hairline);
  padding-right:20px;
}
.filters-sidebar h4{ margin-bottom:12px; }
.filters-sidebar .field{ max-width:none; }
.filters-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

/* ---------------- Empty state ---------------- */
.empty-state{
  border:1px solid var(--hairline);
  padding:48px 32px;
  text-align:center;
}
.empty-state .icon{ margin-bottom:16px; color:var(--grey-400); }
.empty-state h3{ text-transform:none; font-size:18px; color:var(--navy); margin-bottom:8px; }
.empty-state p{ max-width:420px; margin:0 auto 20px auto; color:var(--grey-600); }

/* ---------------- Job listings ---------------- */
.job-list{ list-style:none; margin:0 0 32px 0; padding:0; }
.job-card{
  border:1px solid var(--hairline);
  padding:20px;
  margin-bottom:1px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}
.job-card + .job-card{ border-top:none; }
.job-title{ font-size:16px; font-weight:600; color:var(--navy); margin-bottom:4px; }
.job-meta{ font-size:13px; color:var(--grey-600); }
.job-tag{
  display:inline-block;
  font-size:11px;
  border:1px solid var(--hairline);
  padding:3px 8px;
  margin-right:6px;
  color:var(--grey-600);
}
.badge-sample{
  display:inline-block;
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--magenta-dark);
  border:1px solid var(--magenta-dark);
  padding:2px 6px;
  margin-left:8px;
}

.newsletter-box{
  border:1px solid var(--hairline);
  background:var(--grey-100);
  padding:24px;
  margin:32px 0;
}
.newsletter-form{ display:flex; gap:0; max-width:480px; margin-top:12px; }
.newsletter-form input{
  flex:1;
  padding:10px 12px;
  border:1px solid var(--grey-400);
  border-right:none;
  font-family:var(--font);
  font-size:14px;
}
.newsletter-form button{
  background:var(--navy);
  color:#fff;
  border:1px solid var(--navy);
  padding:0 20px;
  font-size:14px;
  font-weight:600;
}
.newsletter-form button:hover{ background:var(--navy-deep); }

/* ---------------- Provider detail ---------------- */
.provider-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:24px;
}
.provider-logo-badge{
  width:64px;
  height:64px;
  background:var(--navy);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:22px;
  flex-shrink:0;
}
.kv-table{ width:100%; border-collapse:collapse; }
.kv-table tr{ border-bottom:1px solid var(--grey-200); }
.kv-table tr:last-child{ border-bottom:none; }
.kv-table th{
  text-align:left;
  font-size:13px;
  font-weight:600;
  color:var(--navy);
  padding:12px 16px 12px 0;
  width:160px;
  vertical-align:top;
  white-space:nowrap;
}
.kv-table td{ padding:12px 0; font-size:14px; vertical-align:top; }

/* ---------------- Index / cover page ---------------- */
.cover-hero{
  border-bottom:1px solid var(--hairline);
  padding:56px 0 40px 0;
  margin-bottom:40px;
}
.cover-hero .eyebrow{
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--magenta);
  margin-bottom:12px;
}
.cover-hero h1{ font-size:40px; margin-bottom:12px; }
.cover-hero .tagline{ font-size:18px; color:var(--grey-600); max-width:700px; }
.cover-hero .cta-row{ margin-top:24px; }

.spec-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:0;
  border-top:1px solid var(--hairline);
  border-left:1px solid var(--hairline);
  margin-bottom:48px;
}
.spec-item{
  border-right:1px solid var(--hairline);
  border-bottom:1px solid var(--hairline);
  padding:20px 24px;
}
.spec-item h4{ margin-bottom:8px; }
.spec-item p{ font-size:14px; margin-bottom:0; }

.swot-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--hairline);
  border:1px solid var(--hairline);
  margin-bottom:48px;
}
.swot-item{ background:#fff; padding:20px 24px; }
.swot-item h4{ margin-bottom:10px; }
.swot-item ul{ margin:0; padding:0 0 0 16px; font-size:14px; }
.swot-item li{ margin-bottom:6px; }

.ratings-grid{
  margin-bottom:48px;
}
.rating-row{
  display:grid;
  grid-template-columns:200px 1fr 40px;
  align-items:center;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid var(--grey-200);
}
.rating-row .label{ font-size:14px; font-weight:600; color:var(--navy); }
.rating-bar-track{
  height:8px;
  background:var(--grey-200);
  width:100%;
}
.rating-bar-fill{
  height:8px;
  background:var(--magenta);
}
.rating-row .score{ font-size:13px; text-align:right; font-weight:600; }
.risk-chip{
  display:inline-block;
  font-size:12px;
  font-weight:600;
  padding:4px 12px;
  border:1px solid var(--navy);
  color:var(--navy);
}

.screens-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--hairline);
  border:1px solid var(--hairline);
  margin-bottom:32px;
}
.screen-card{
  background:#fff;
  padding:20px;
  text-decoration:none;
  display:block;
}
.screen-card:hover{ background:var(--grey-100); }
.screen-card .num{ font-size:11px; color:var(--grey-600); font-weight:600; }
.screen-card .name{ font-size:15px; font-weight:600; color:var(--navy); margin:4px 0 6px 0; }
.screen-card .desc{ font-size:12px; color:var(--grey-600); }

.why-fit{
  border-left:3px solid var(--navy);
  background:var(--grey-100);
  padding:24px 28px;
  margin-bottom:48px;
}
.why-fit p{ font-size:15px; margin-bottom:0; }

/* ---------------- Footer ---------------- */
footer.site-footer{
  border-top:1px solid var(--hairline);
  padding:20px 24px;
  margin-top:auto;
}
.footer-inner{
  max-width:1200px;
  margin:0 auto;
  font-size:12px;
  color:var(--grey-600);
  text-align:center;
}
.footer-inner a{ color:var(--grey-600); }

/* ---------------- Responsive ---------------- */
@media (max-width:960px){
  main.shell{ flex-direction:column; }
  aside.section-rail, aside.rationale-float, .filters-sidebar{ width:100%; border-right:none; border-bottom:1px solid var(--hairline); padding:0 0 20px 0; margin-bottom:20px; }
  .login-grid{ grid-template-columns:1fr; }
  .tile-grid{ grid-template-columns:repeat(2,1fr); }
  .two-col{ grid-template-columns:1fr; }
  .spec-grid, .swot-grid, .screens-grid{ grid-template-columns:1fr; }
  .top-nav-inner{ overflow-x:auto; }
}

/* Reviewer toolbar — shared across all 10 prototypes, do not restyle per-proposal */
.kx-reviewer-bar{position:sticky;top:0;z-index:9999;display:flex;align-items:center;gap:10px;background:#1a1b1e;color:#e8e8ea;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:12.5px;padding:8px 16px;border-bottom:1px solid #000;flex-wrap:wrap;}
.kx-reviewer-bar a{color:#e8e8ea;text-decoration:none;padding:4px 8px;border-radius:4px;}
.kx-reviewer-bar a:hover{background:#33343a;}
.kx-reviewer-bar select{background:#2a2b30;color:#e8e8ea;border:1px solid #45464c;border-radius:4px;padding:4px 8px;font-size:12.5px;}
.kx-rb-sep{color:#55565c;}
.kx-rb-name{font-weight:700;letter-spacing:.02em;white-space:nowrap;}
.kx-rb-count{color:#9a9ba1;margin-left:auto;padding:4px 4px;white-space:nowrap;}
@media(max-width:800px){.kx-reviewer-bar{font-size:11.5px}}
