/* =========================================================
   IA Vendor Risk Calculator — presentation only.
   Pairs with /css/calculator.css and /site-v4.css; adds nothing
   they already provide. All rules are namespaced .iavr-* so this
   file cannot affect the pricing or data-risk calculators.
   ========================================================= */

.iavr-wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- headline ---------- */
.iavr-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  background: linear-gradient(135deg, #0b1b2e 0%, #0a1526 100%);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1rem;
}
.iavr-hero-empty { grid-template-columns: 1fr; }
.iavr-hero .k {
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8fa3bd;
  margin-bottom: .35rem;
}
.iavr-hero .big {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -.02em;
}
.iavr-hero .big2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffb347;
}
.iavr-hero .rng { font-size: .80rem; color: #8fa3bd; margin-top: .35rem; }
.iavr-hero-side {
  border-left: 1px solid rgba(255, 255, 255, .10);
  padding-left: 1.5rem;
}

.iavr-note {
  background: rgba(245, 158, 11, .10);
  border: 1px solid rgba(245, 158, 11, .30);
  color: #d98c0b;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .86rem;
  margin: 0 0 1.25rem;
}

/* ---------- vendor cards ---------- */
.iavr-grid {
  display: grid;
  /* auto-fit, not auto-fill: with two vendors an auto-fill grid leaves a
     dead third column and the row reads as unfinished. auto-fit collapses
     the empty track so the cards use the full width, and it still reflows
     to three across once a third vendor is added. */
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.iavr-card {
  border: 1px solid rgba(15, 30, 55, .12);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #fff;
}
.iavr-card-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.iavr-name {
  flex: 1;
  padding: .5rem .65rem;
  border: 1px solid rgba(15, 30, 55, .18);
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
}
.iavr-x {
  background: none;
  border: 1px solid rgba(15, 30, 55, .15);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
  color: #7a8ba3;
  cursor: pointer;
}
.iavr-x:hover { background: rgba(220, 38, 38, .08); color: #c62828; border-color: rgba(220, 38, 38, .3); }

.iavr-types { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.iavr-type {
  font-size: .74rem;
  padding: .25rem .55rem;
  border: 1px solid rgba(15, 30, 55, .16);
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.iavr-type.on { background: rgba(0, 145, 124, .10); border-color: rgba(0, 145, 124, .45); color: #00715f; font-weight: 600; }
.iavr-type input { margin: 0; }

.iavr-recgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .75rem; }
.iavr-recgrid label { display: block; font-size: .70rem; color: #5b6b80; margin-bottom: .2rem; }
.iavr-recgrid input,
.iavr-acvrow input {
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid rgba(15, 30, 55, .18);
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
}
.iavr-per { color: #93a1b3; font-weight: 400; }
.iavr-acvrow { margin-bottom: .8rem; }
.iavr-acvrow label { display: block; font-size: .70rem; color: #5b6b80; margin-bottom: .2rem; }
.iavr-opt { color: #a3aec0; }

.iavr-card-fig {
  border-top: 1px solid rgba(15, 30, 55, .10);
  padding-top: .7rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.iavr-card-fig .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #7a8ba3; }
.iavr-card-fig .big { font-size: 1.5rem; font-weight: 800; color: #0f2038; letter-spacing: -.01em; }
.iavr-card-fig .rng { font-size: .74rem; color: #8b98a9; }
.iavr-card-fig .shr { font-size: .74rem; color: #00715f; font-weight: 600; }
.iavr-acv { font-size: .78rem; color: #5b6b80; margin: .5rem 0 0; line-height: 1.5; }

.iavr-hint { font-size: .78rem; color: #8b98a9; margin: .3rem 0 0; }

.iavr-actions { margin-bottom: 1.75rem; }
.iavr-add {
  background: none;
  border: 1px dashed rgba(0, 145, 124, .5);
  color: #00715f;
  border-radius: 8px;
  padding: .6rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.iavr-add:hover { background: rgba(0, 145, 124, .07); }

/* ---------- tables ---------- */
.iavr-break { margin-bottom: 1.75rem; }
.iavr-break h3, .iavr-gap h3 { font-size: 1rem; margin: 0 0 .7rem; }
/* Wide tables scroll inside their own box so the PAGE never scrolls sideways. */
.iavr-scroll { overflow-x: auto; }
.iavr-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.iavr-table th, .iavr-table td {
  padding: .5rem .7rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 30, 55, .08);
  vertical-align: top;
}
.iavr-table th {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #5b6b80;
  background: rgba(15, 30, 55, .035);
  font-weight: 700;
}
.iavr-table td.r, .iavr-table th.r { text-align: right; }

/* ---------- the honest gap ---------- */
.iavr-gap {
  background: rgba(15, 30, 55, .035);
  border: 1px solid rgba(15, 30, 55, .10);
  border-left: 3px solid #00917c;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.25rem;
}
.iavr-gap p { font-size: .87rem; line-height: 1.65; margin: 0 0 .7rem; color: #40506a; }
.iavr-gap p:last-child { margin-bottom: 0; }
.iavr-cta-line { border-top: 1px solid rgba(15, 30, 55, .10); padding-top: .8rem; }
.iavr-gap a { color: #00715f; font-weight: 600; }

.iavr-src { margin-bottom: 1rem; }
.iavr-src summary { cursor: pointer; font-size: .84rem; font-weight: 600; color: #40506a; padding: .4rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .iavr-hero { grid-template-columns: 1fr; }
  .iavr-hero-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .10); padding-top: 1rem; }
  .iavr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .iavr-recgrid { grid-template-columns: 1fr; }
}
