/* Shared calculator navigation: no changes to calculator formulas or forms.
   Prata, Manrope, and the existing atelier palette are inherited from the site. */
html .ob-calc {
  --obc-bg: var(--d-bg, #f5f3ee);
  --obc-card: var(--d-card, #fffefa);
  --obc-ink: var(--d-ink, #1e211e);
  --obc-muted: var(--d-mut, #5e605a);
  --obc-line: var(--d-line2, #e2e0d8);
  --obc-orange: var(--d-o, #ff8b00);
  --obc-accent: var(--d-o-ink, #b35f00);
  --obc-serif: var(--d-serif, 'Prata', Georgia, serif);
  --obc-sans: var(--d-sans, 'Manrope', system-ui, sans-serif);
  padding: 32px 0;
  background: var(--obc-bg);
  color: var(--obc-ink);
  font-family: var(--obc-sans);
}
html .ob-calc *, html .ob-calc *::before, html .ob-calc *::after { box-sizing: border-box; }
html .ob-calc__container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
/* Existing pages call calculator-links inside their shared .container already. */
html .container .ob-calc__container { width: 100%; }
html .ob-calc__intro { margin: 0 0 24px; }
html .ob-calc__kicker {
  margin: 0 0 10px;
  color: var(--obc-muted);
  font: 600 10px/1.5 var(--obc-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
html .ob-calc__title {
  margin: 0 0 10px;
  padding: 0;
  color: var(--obc-ink);
  font: 400 clamp(26px, 2.6vw, 36px)/1.25 var(--obc-serif);
  letter-spacing: -.025em;
  text-transform: none;
}
html .ob-calc__lead { margin: 0; color: var(--obc-muted); font: 400 15px/1.6 var(--obc-sans); }
html .ob-calc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html .ob-calc__item { min-width: 0; margin: 0; padding: 0; font: inherit; list-style: none; }
html .ob-calc__item::before { content: none; }
html .ob-calc__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--obc-line);
  border-radius: 4px;
  background: var(--obc-card);
  color: var(--obc-ink);
  text-decoration: none;
  transition: border-color .18s ease;
}
html .ob-calc__media {
  position: relative;
  display: block;
  flex: none;
  height: 174px;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  background: #f2f0eb;
}
html .ob-calc__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  transform: none;
}
html .ob-calc__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 16px;
  border-top: 1px solid var(--obc-line);
}
html .ob-calc__name {
  margin: 0 0 9px;
  padding: 0;
  color: inherit;
  font: 400 21px/1.35 var(--obc-serif);
  letter-spacing: -.025em;
  text-transform: none;
  overflow-wrap: break-word;
}
html .ob-calc__description {
  margin: 0 0 13px;
  color: var(--obc-muted);
  font: 400 13px/1.55 var(--obc-sans);
}
html .ob-calc__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--obc-orange);
  border-radius: 2px;
  background: #fff5e8;
  color: var(--obc-ink);
  font: 600 13px/1.4 var(--obc-sans);
  transition: background-color .18s ease;
}
html .ob-calc__cta-text { font: inherit; color: inherit; }
html .ob-calc__arrow { flex: none; display: block; width: 16px; height: 16px; color: var(--obc-accent); }
html .ob-calc__link:focus-visible { outline: 2px solid var(--obc-ink); outline-offset: 4px; }
@media (hover: hover) {
  html .ob-calc__link:hover { border-color: var(--obc-accent); }
  html .ob-calc__link:hover .ob-calc__cta { background: var(--obc-orange); }
}
@media (max-width: 1000px) and (min-width: 701px) {
  html .ob-calc__grid { gap: 12px; }
  html .ob-calc__media { height: 160px; }
  html .ob-calc__body { padding: 16px 14px 14px; }
  html .ob-calc__name { font-size: 18px; min-height: 49px; }
  html .ob-calc__description { font-size: 12px; }
  html .ob-calc__cta { font-size: 12px; padding: 9px 10px; }
}
@media (max-width: 700px) {
  html .ob-calc { padding: 28px 0; }
  html .ob-calc__container { width: calc(100% - 32px); }
  html .ob-calc__intro { margin-bottom: 18px; }
  html .ob-calc__kicker { font-size: 9px; margin-bottom: 8px; }
  html .ob-calc__title { font-size: 26px; line-height: 1.25; }
  html .ob-calc__lead { font-size: 13px; line-height: 1.6; }
  html .ob-calc__grid { grid-template-columns: 1fr; gap: 10px; }
  html .ob-calc__link { flex-direction: row; }
  html .ob-calc__media { flex: 0 0 34%; align-self: stretch; height: auto; min-height: 160px; border-radius: 3px 0 0 3px; }
  html .ob-calc__image { position: absolute; inset: 0; padding: 8px; }
  html .ob-calc__body { flex: 1; padding: 14px; border-top: 0; border-left: 1px solid var(--obc-line); }
  html .ob-calc__name { font-size: 19px; }
  html .ob-calc__description { font-size: 12px; margin-bottom: 10px; }
  html .ob-calc__cta { font-size: 12px; padding: 9px 10px; }
}
@media (max-width: 359px) {
  html .ob-calc__media { flex-basis: 29%; }
  html .ob-calc__body { padding: 12px; }
  html .ob-calc__name { font-size: 18px; }
  html .ob-calc__cta { font-size: 11px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html .ob-calc__link, html .ob-calc__cta { transition: none; }
}
