/* Utdelning 3:12 — kalkylator + guide, extends base + anstallningskollen.css */

.hero.u312-hero { padding: 3rem 0 2rem; }
.u312-hero .lead { max-width: 680px; }
@media (max-width: 520px) {
  .site-header nav .btn { display: none; }
}
.u312-updated a { color: var(--ink); text-underline-offset: 3px; }
.u312-updated {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Kalkylator */
.u312-calc-section { padding: 1rem 0 5rem; }
.u312-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 880px) { .u312-calc { grid-template-columns: 1fr; } }
.u312-inputs { padding: 2rem; }
.u312-results {
  padding: 2rem;
  background: var(--ink);
  color: var(--paper);
}
.u312-results h2,
.u312-inputs h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.u312-results h2 { color: var(--paper); }

.u312-field { margin-bottom: 1.5rem; border: 0; }
.u312-field > label,
.u312-field > legend {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.u312-field .hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.u312-field .hint.warn { color: #8a3b12; }
.u312-input-wrap { position: relative; max-width: 260px; }
.u312-input-wrap .unit {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.u312-calc input[type="text"],
.u312-calc input[type="number"],
.u312-calc select {
  width: 100%;
  max-width: 260px;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.7rem 0.9rem;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.u312-input-wrap input { padding-right: 2.6rem; }
.u312-calc input:focus-visible,
.u312-calc select:focus-visible {
  outline: 2px solid var(--accent-payloop);
  outline-offset: 2px;
}
.u312-radios { display: grid; gap: 0.35rem; }
.u312-radios label,
.u312-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.97rem;
  cursor: pointer;
  padding: 0.35rem 0;
  min-height: 44px;
  align-items: center;
}
.u312-radios input,
.u312-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.u312-radios .rate { color: var(--muted); margin-left: auto; padding-left: 0.5rem; white-space: nowrap; }

.u312-big { margin-bottom: 1.25rem; }
.u312-big .label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.7);
}
.u312-big .value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  display: block;
}
.u312-results .note {
  font-size: 0.85rem;
  color: rgba(245, 242, 237, 0.72);
  margin-top: 0.25rem;
}
.u312-results table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.u312-results th,
.u312-results td {
  padding: 0.55rem 0;
  border-top: 1px solid rgba(245, 242, 237, 0.18);
  text-align: left;
  font-weight: 400;
}
.u312-results td { text-align: right; white-space: nowrap; padding-left: 1rem; }
.u312-results caption {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.7);
  margin-bottom: 0.25rem;
}
.u312-results .info { color: var(--paper); font-size: 0.95rem; }
.u312-results .vaxa {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 242, 237, 0.18);
}
.u312-results .disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(245, 242, 237, 0.65);
}
.u312-results a { color: var(--paper); }
.u312-noscript { padding: 1rem 2rem; color: var(--muted); }

/* Artikeltext */
.u312-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}
.u312-article section { padding: 3rem 0 0; }
.u312-article h2 { margin-bottom: 1rem; }
.u312-article h3 { margin: 1.75rem 0 0.5rem; }
.u312-article p,
.u312-article li { color: #2b2824; }
.u312-article p { margin-bottom: 1rem; max-width: 100%; }
.u312-article ul,
.u312-article ol { margin: 0 0 1rem 1.25rem; }
.u312-article li { margin-bottom: 0.35rem; }
.u312-article a { color: var(--accent); text-underline-offset: 3px; }
.u312-table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
.u312-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.u312-table caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.u312-table th,
.u312-table td {
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.u312-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.u312-table td.num,
.u312-table th.num { text-align: right; white-space: nowrap; }
.u312-table td.num .sub {
  display: block;
  white-space: normal;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 11rem;
  margin-left: auto;
}
@media (max-width: 560px) {
  .u312-table { font-size: 0.9rem; }
  .u312-article { padding: 0 1.25rem; }
}

.u312-cta {
  margin: 3rem 0 0;
  padding: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--paper);
}
.u312-cta h2 { color: var(--paper); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.u312-cta p { color: rgba(245, 242, 237, 0.85) !important; }
.u312-cta .btn-primary { background: var(--paper); color: var(--ink); }
.u312-cta .btn-primary:hover { background: #fff; }

.u312-sources { font-size: 0.95rem; }
.u312-sources li { color: var(--muted); }

/* Tillägg för 3:12-kalkylatorn */
.u312-calc select { max-width: 100%; }
.u312-field .u312-hint-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.u312-calc .u312-input-narrow { max-width: 140px; }
.u312-adv { margin: 0 0 1.5rem; }
.u312-adv summary { cursor: pointer; font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
.u312-adv .u312-field { margin-top: 0.75rem; }
.u312-results .u312-rek {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(245, 242, 237, 0.3);
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.97rem;
}
.u312-results .u312-rek strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.u312-results .u312-kvar { margin-top: 1rem; font-size: 0.95rem; color: var(--paper); }
.u312-warning {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid #b8660b;
  background: #fbf3e6;
  color: #3a2a12;
  font-size: 0.95rem;
  border-radius: 0 6px 6px 0;
}
.u312-article .u312-warning { margin: 0 0 1.5rem; }
.u312-results table tbody th { font-size: 0.92rem; padding-right: 0.5rem; }
