/* ============================================================
   Rekryteringsguiden 2026, after design/hrnytt/project/ui_kits/
   rekryteringsguiden (ListPage, Parts.jsx: HeroBand, FilterPanel,
   PremiumMark, AreaTag, VerifiedTag, LogoPlate). Values come from
   cms/css/hr-tokens.css. Scoped to .rg-page; kept separate from the
   Utbildning CSS until the site-wide CSS refactor.
   Content follows the site container (1180 px, 24 px padding) so it
   lines up with the header and footer.
   ============================================================ */

body.page-home main.container:has(.rg-hero) {
  padding-top: 0;
}

.page-rekryteringsguiden .nav-links a[href="/rekryteringsguiden/"] {
  color: var(--hr-green-link);
}

.rg-page {
  font-family: var(--hr-font-body);
  color: var(--hr-ink);
  padding-bottom: var(--hr-space-9);
}

/* The site has no global border-box; set it for this page's own components. */
.rg-page [class^="rg-"],
.rg-page [class*=" rg-"] {
  box-sizing: border-box;
}

.rg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rg-kicker {
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
  color: var(--hr-label);
  margin: 0;
  padding: 0;
}

/* ---------- Hero: dark band, full bleed (HeroBand tone="dark") ---------- */
.rg-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: var(--hr-green-deep);
  background-image:
    linear-gradient(rgba(10, 42, 27, 0.62), rgba(10, 42, 27, 0.62)),
    url("../../cms/media/images/utbildning-hero-dark.jpg");
  background-size: cover;
  background-position: center 40%;
  border-bottom: var(--hr-section-rule);
  color: var(--hr-paper);
}


.rg-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--hr-space-7);
}

.rg-crumb {
  font-size: var(--hr-meta-sm);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--hr-space-6) 0 var(--hr-space-10);
}

.rg-crumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-crumb li + li::before {
  content: "/";
  margin: 0 var(--hr-space-2);
  color: rgba(255, 255, 255, 0.5);
}

.rg-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.rg-crumb a:hover {
  color: var(--hr-paper);
}

/* Same height on every platform page (Parts.jsx HeroBand): at least 290 px of content + 48 px. */
.rg-hero__body {
  max-width: var(--hr-maxw-read);
  padding-bottom: var(--hr-space-12);
  min-height: 290px;
}

/* content-box like Parts.jsx (the section reset sets border-box) */
.rg-page .rg-hero__body {
  box-sizing: content-box;
}

.rg-hero__lead--last {
  margin-bottom: 0;
}

.rg-hero__kicker {
  font-size: var(--hr-kicker);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-xwide);
  text-transform: uppercase;
  color: var(--hr-illu-200);
  margin: 0 0 var(--hr-space-5);
}

.rg-hero__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-page);
  line-height: var(--hr-lh-tight);
  color: var(--hr-paper);
  max-width: 22ch;
  margin: 0 0 var(--hr-space-5);
  text-wrap: balance;
}

.rg-hero__lead {
  font-size: 19px;
  font-weight: var(--hr-w-semibold);
  line-height: 1.45;
  color: var(--hr-paper);
  max-width: 760px;
  margin: 0 0 var(--hr-space-8);
  text-wrap: pretty;
}

.rg-hero__link {
  font-size: var(--hr-meta);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-illu-200);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.rg-hero__link:hover {
  color: var(--hr-paper);
}

/* ---------- Buttons: pill; filled cta, outline for "Filtrera" ---------- */
.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--hr-h-btn);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--hr-radius-pill);
  font-family: var(--hr-font-body);
  font-size: var(--hr-ui-lg);
  font-weight: var(--hr-w-semibold);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--hr-dur-color) var(--hr-ease),
    color var(--hr-dur-color) var(--hr-ease),
    border-color var(--hr-dur-color) var(--hr-ease);
}

.rg-btn:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

.rg-btn--cta {
  background: var(--hr-green-cta);
  color: var(--hr-paper);
}

.rg-btn--cta:hover {
  background: var(--hr-green-deep);
  color: var(--hr-paper);
}

.rg-btn--outline {
  height: var(--hr-h-input);
  padding: 0 30px;
  background: transparent;
  color: var(--hr-green-link);
  border-color: var(--hr-green-link);
}

.rg-btn--outline:hover {
  background: var(--hr-green-deep);
  border-color: var(--hr-green-deep);
  color: var(--hr-paper);
}

.rg-textlink {
  font-size: var(--hr-meta);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-green-link);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.rg-textlink:hover {
  color: var(--hr-green-deep);
}

/* ---------- Key figures: the number carries the box, no icon ---------- */
.rg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hr-space-7);
  margin-top: var(--hr-space-12);
}

.rg-stat {
  flex: 1 1 200px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  padding: var(--hr-space-7) 26px;
}

.rg-stat__n {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-num-date);
  line-height: var(--hr-lh-flat);
  color: var(--hr-ink);
  margin: 0 0 10px;
}

/* ---------- Search + Filtrera ---------- */
.rg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--hr-space-9);
}

.rg-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 380px;
}

.rg-search__icon {
  position: absolute;
  left: 20px;
  display: flex;
  color: var(--hr-graphite);
  pointer-events: none;
}

.rg-search__input {
  width: 100%;
  height: var(--hr-h-input);
  padding: 0 20px 0 var(--hr-space-13);
  border: var(--hr-input-border);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-paper);
  font-family: var(--hr-font-body);
  font-size: var(--hr-dek);
  color: var(--hr-ink);
  outline: none;
  transition: border-color var(--hr-dur-color) ease, box-shadow var(--hr-dur-color) ease;
}

.rg-search__input::placeholder {
  color: var(--hr-graphite);
}

.rg-search__input:focus {
  border-color: var(--hr-green-cta);
  box-shadow: var(--hr-focus-ring);
}

/* ---------- Filter panel (FilterPanel) ---------- */
.rg-filter-panel {
  margin-top: var(--hr-space-4);
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  background: var(--hr-paper);
}

.rg-filter-panel[hidden] {
  display: none;
}

.rg-filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hr-space-4);
  padding: 20px var(--hr-space-8) 0;
}

.rg-filter-panel__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
}

.rg-icon-btn {
  display: grid;
  place-items: center;
  width: var(--hr-h-icon-btn);
  height: var(--hr-h-icon-btn);
  border: var(--hr-card-border);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-paper);
  color: var(--hr-ink);
  cursor: pointer;
}

.rg-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

.rg-filter-panel__body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--hr-space-8) var(--hr-space-10);
  padding: var(--hr-space-6) var(--hr-space-8) 26px;
}

.rg-group {
  min-width: 0;
  border: none;
  margin: 0;
  padding: 0;
}

.rg-group .rg-kicker {
  font-size: var(--hr-kicker-sm);
  letter-spacing: var(--hr-track-kicker);
  margin-bottom: var(--hr-space-3);
}

.rg-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-group li {
  break-inside: avoid;
}

.rg-group--wide {
  grid-column: span 2;
}

.rg-group--wide ul {
  columns: 2;
  column-gap: var(--hr-space-10);
}

.rg-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: var(--hr-dek-sm);
  line-height: var(--hr-lh-title);
  color: var(--hr-ink);
  cursor: pointer;
}

.rg-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hr-green-cta);
}

.rg-filter-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hr-space-4);
  padding: var(--hr-space-4) var(--hr-space-8);
  border-top: var(--hr-row-divider);
}

/* ---------- Results ---------- */
.rg-results__count {
  font-size: var(--hr-meta);
  color: var(--hr-graphite);
  margin: 20px 0 0;
}

.rg-empty {
  font-size: var(--hr-dek-sm);
  color: var(--hr-ink);
  margin: var(--hr-space-9) 0 0;
}

.rg-empty a {
  color: var(--hr-green-link);
  font-weight: var(--hr-w-semibold);
}

/* ---------- Company grid and card (CompanyCard) ---------- */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hr-grid-gap);
  margin-top: var(--hr-space-9);
}

.rg-grid--first {
  margin-top: var(--hr-space-12);
}

/* Hairline border, no shadow. The whole card is the link; hover turns only
   the title and the arrow green, nothing moves. Fixed zones keep every card
   in a row the same height with the arrow on one line. */
.rg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: var(--hr-grid-border);
  border-radius: var(--hr-radius);
  padding: 20px var(--hr-space-7) 18px;
  background: var(--hr-paper);
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.rg-card:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

.rg-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hr-space-3);
  margin-bottom: var(--hr-space-3);
}

/* Logo plate: paper + hairline. Real logos get a wide plate (many are
   wordmarks); the initials fallback is the design's 52 px square. */
.rg-logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 52px;
  max-width: 180px;
  padding: var(--hr-space-2) var(--hr-space-3);
  border: none;
  border-radius: var(--hr-radius-avatar);
  background: var(--hr-paper);
}

.rg-logo img {
  display: block;
  max-height: 34px;
  max-width: 154px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rg-logo--initials {
  width: 52px;
  padding: 0;
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-dek-sm);
  color: var(--hr-green-link);
}

.rg-premium {
  flex: none;
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
  color: var(--hr-label);
}

.rg-card__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  color: var(--hr-ink);
  text-wrap: pretty;
  transition: color var(--hr-dur-title) var(--hr-ease);
}

/* At most two lines (ListPage.jsx CompanyCard). */
.rg-card__dek {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.55;
  color: var(--hr-ink);
  margin: 0 0 14px;
}

.rg-card__areas {
  margin-bottom: 14px;
}

.rg-card__areas .rg-kicker,
.rg-card__stamps .rg-kicker {
  margin-bottom: var(--hr-space-2);
}

.rg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hr-space-2);
  min-height: 32px;
}

.rg-tag {
  font-size: var(--hr-meta-sm);
  line-height: 1.2;
  color: var(--hr-graphite);
  border: var(--hr-card-border);
  border-radius: var(--hr-radius-pill);
  padding: 7px 14px;
  white-space: nowrap;
}

.rg-tag--more {
  border: none;
  padding: 7px var(--hr-space-1);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-green-link);
}

.rg-verified-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hr-space-2) var(--hr-space-5);
  padding-bottom: var(--hr-space-5);
}

.rg-verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--hr-meta-sm);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-green-link);
  white-space: nowrap;
}

.rg-verified svg {
  flex: none;
}

/* Kompetensföretagen's stamp images (round marks) on cards and the company page. */
.rg-stamp {
  display: block;
  flex: none;
  width: var(--hr-space-11);
  height: var(--hr-space-11);
  object-fit: contain;
}

.rg-stamp--sm {
  width: var(--hr-space-10);
  height: var(--hr-space-10);
}

/* Some air between the area tags and the stamp heading. */
.rg-card__stamps {
  margin-top: 0;
}

/* Same spacing between the stamps on the cards as on the company page. */
.rg-card__stamps .rg-verified-list {
  column-gap: var(--hr-space-3);
}

.rg-stamps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hr-space-3);
}

/* A stamp with a small popup naming it, on hover (and keyboard focus on the
   company page). Hoverable: a bridge covers the gap, so the pointer can move
   onto the popup. Persistent while hovered or focused; Escape hides it
   (site.js). Shown at once: no fade. */
.rg-stamp-tip {
  position: relative;
  display: inline-flex;
}

.rg-stamp-tip:focus-visible {
  outline: none;
  border-radius: var(--hr-radius-pill);
  box-shadow: var(--hr-focus-ring);
}

.rg-stamp-tip__text {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 5;
  margin-bottom: var(--hr-space-1);
  padding: var(--hr-space-1) var(--hr-space-2);
  border-radius: var(--hr-radius-input);
  background: var(--hr-graphite);
  color: var(--hr-paper);
  font-size: var(--hr-meta-sm);
  font-weight: var(--hr-w-semibold);
  line-height: var(--hr-lh-title);
  white-space: nowrap;
}

.rg-stamp-tip__text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--hr-space-1);
}

.rg-stamp-tip:is(:hover, :focus-visible):not(.is-tip-dismissed) .rg-stamp-tip__text {
  display: block;
}

/* On the company page the stamps sit at the right edge of the facts box:
   open the popup towards the left so it stays inside the box. */
.rg-stamps .rg-stamp-tip__text {
  left: auto;
  right: 0;
}

.rg-card__foot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0;
  align-items: flex-end;
  gap: var(--hr-space-3);
  min-height: 40px;
}

.rg-card__foot .rg-verified-list {
  padding-bottom: 0;
}

.rg-card__arrow {
  display: flex;
  margin-left: auto; /* right edge, also when the card has no stamps */
  color: var(--hr-ink);
  transition: color var(--hr-dur-title) var(--hr-ease);
}

.rg-card:hover .rg-card__title,
.rg-card:hover .rg-card__arrow {
  color: var(--hr-green-brand);
}

/* ---------- Pagination: current page in a mint pill ---------- */
.rg-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--hr-space-2);
  margin-top: var(--hr-space-13);
}

.rg-pagination__item {
  padding: 10px var(--hr-space-4);
  font-size: var(--hr-dek-sm);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-graphite);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

a.rg-pagination__item:hover {
  color: var(--hr-green-deep);
}

.rg-pagination__item--off {
  opacity: 0.45;
}

.rg-pagination__current {
  padding: 10px var(--hr-space-6);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-mint);
  color: var(--hr-green-deep);
  font-size: var(--hr-dek-sm);
  font-weight: var(--hr-w-bold);
}

/* ============================================================
   Company page (ProfilePage): "← Alla rekryteringsföretag" above the
   breadcrumb, content left, one action card to the right.
   ============================================================ */
.rg-profile {
  padding-bottom: var(--hr-space-18);
}

/* The trail sits right under the menu (main already has 30px top padding). */
.rg-trail {
  padding: 0 0 var(--hr-space-10);
  font-size: var(--hr-meta-sm);
  color: var(--hr-graphite);
}

.rg-trail a {
  color: var(--hr-graphite);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.rg-trail a:hover {
  color: var(--hr-ink);
}

.rg-trail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.rg-trail__crumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-trail__crumbs li + li::before {
  content: "/";
  margin: 0 var(--hr-space-2);
  color: var(--hr-middot);
}

.rg-trail__crumbs [aria-current] {
  color: var(--hr-ink);
}

.rg-profile__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hr-sidebar-w);
  gap: var(--hr-col-gap);
  align-items: start;
}

.rg-profile__premium {
  margin: 0 0 var(--hr-space-5);
}

.rg-logo--lg {
  height: 64px;
  min-width: 64px;
  max-width: 240px;
  padding: 10px 14px;
  margin-bottom: var(--hr-space-6);
}

.rg-logo--lg img {
  max-height: 42px;
  max-width: 210px;
}

.rg-logo--lg.rg-logo--initials {
  width: 64px;
  padding: 0;
  font-size: var(--hr-h-row);
}

.rg-profile__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-page);
  line-height: var(--hr-lh-tight);
  color: var(--hr-ink);
  margin: 0 0 20px;
  text-wrap: balance;
}

/* Description is rich text from the admin; it fills the main column. */
.rg-profile__bio {
  font-size: var(--hr-lead);
  line-height: 1.55;
  color: var(--hr-ink);
  max-width: var(--hr-maxw-read);
}

.rg-profile__bio > * {
  margin: 0 0 14px;
}

.rg-profile__bio > :last-child {
  margin-bottom: 0;
}

.rg-profile__bio a {
  color: var(--hr-green-link);
}

.rg-h2 {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-box);
  line-height: var(--hr-lh-heading);
  color: var(--hr-ink);
}

.rg-profile__section {
  margin-top: var(--hr-space-11);
  padding-top: var(--hr-space-9);
  border-top: var(--hr-section-rule);
}

/* A bullet list with green dots in up to three columns, as "Ur kursinnehållet"
   in Utbildning (ProfilePage.jsx, sync 2026-11-13). */
.rg-customers {
  columns: 3 200px;
  column-gap: var(--hr-space-9);
  margin: 0;
  padding-left: var(--hr-space-6);
  font-size: var(--hr-dek);
  line-height: 1.5;
  color: var(--hr-ink);
}

.rg-customers li {
  margin: 0 0 10px;
  break-inside: avoid;
}

.rg-customers li::marker {
  color: var(--hr-green-link);
}

/* Forms sit on sand: "here you hand something over". */
.rg-form-box {
  margin-top: var(--hr-space-11);
  padding: 34px 36px;
  border-radius: var(--hr-radius);
  background: var(--hr-sand);
  scroll-margin-top: 120px;
}

.rg-form-box__lead {
  margin: -8px 0 var(--hr-space-7);
  font-size: var(--hr-dek-sm);
  color: var(--hr-graphite);
}

.rg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.rg-field {
  display: block;
}

.rg-field--wide {
  grid-column: 1 / -1;
}

.rg-field__label {
  display: block;
  margin-bottom: var(--hr-space-2);
  font-size: var(--hr-meta);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-ink);
}

.rg-field input,
.rg-field textarea {
  display: block;
  width: 100%;
  height: var(--hr-h-btn);
  padding: 0 var(--hr-space-4);
  border: var(--hr-input-border);
  border-radius: var(--hr-radius-input);
  background: var(--hr-paper);
  font-family: var(--hr-font-body);
  font-size: var(--hr-dek-sm);
  color: var(--hr-ink);
  outline: none;
  box-sizing: border-box;
  transition:
    border-color var(--hr-dur-color) var(--hr-ease),
    box-shadow var(--hr-dur-color) var(--hr-ease);
}

.rg-field textarea {
  height: auto;
  min-height: 112px;
  padding: 14px var(--hr-space-4);
  resize: vertical;
}

.rg-field input::placeholder,
.rg-field textarea::placeholder {
  color: var(--hr-graphite);
}

.rg-field input:focus,
.rg-field textarea:focus {
  border-color: var(--hr-green-cta);
  box-shadow: var(--hr-focus-ring);
}

.rg-honeypot {
  position: absolute;
  left: -9999px;
}

.rg-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.rg-form-error {
  margin: var(--hr-space-4) 0 0;
  font-size: var(--hr-meta);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-ink);
}

.rg-form-success {
  display: flex;
  align-items: flex-start;
  gap: var(--hr-space-4);
  outline: none;
}

.rg-form-success[hidden] {
  display: none;
}

.rg-form-success__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--hr-radius-pill);
  background: var(--hr-paper);
  color: var(--hr-green-link);
}

.rg-form-success__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
}

.rg-form-success__text {
  margin: 0;
  font-size: var(--hr-dek-sm);
  color: var(--hr-ink);
}

.rg-admin-link {
  margin: var(--hr-space-7) 0 0;
  font-size: var(--hr-meta);
}

.rg-admin-link a {
  color: var(--hr-graphite);
}

/* Right column: one action card. Facts, the one filled CTA, then links. */
.rg-profile__aside {
  position: sticky;
  top: var(--hr-sticky-top);
}

.rg-facts {
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  padding: 26px var(--hr-space-8) var(--hr-space-8);
}

.rg-facts__kicker {
  margin-bottom: var(--hr-space-5);
}

.rg-facts__list {
  margin: 0;
}

.rg-facts__row {
  display: flex;
  justify-content: space-between;
  gap: var(--hr-space-4);
  padding: var(--hr-space-3) 0;
  font-size: var(--hr-meta-sm);
}

.rg-facts__row + .rg-facts__row {
  border-top: var(--hr-row-divider);
}

.rg-facts__row dt {
  flex: none;
  color: var(--hr-graphite);
}

.rg-facts__row dd {
  margin: 0;
  font-weight: var(--hr-w-semibold);
  color: var(--hr-ink);
  text-align: right;
}

.rg-btn--block {
  display: flex;
  width: 100%;
  margin-top: var(--hr-space-3);
  white-space: normal;
  text-align: center;
}

.rg-facts__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: var(--hr-space-6);
  padding-top: 20px;
  border-top: var(--hr-row-divider);
}

.rg-iconlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--hr-dek-sm);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-green-link);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.rg-iconlink:hover {
  color: var(--hr-green-deep);
}

.rg-iconlink svg {
  flex: none;
}

/* ============================================================
   Annonsera (AdPage): packages, the order form in four steps, and
   the receipt after sending.
   ============================================================ */
.rg-order {
  padding-bottom: 80px;
}

.rg-h2--lg {
  font-size: var(--hr-h-puff);
}

.rg-section-lead {
  margin: 0 0 var(--hr-space-8);
  font-size: var(--hr-lead);
  line-height: 1.55;
  color: var(--hr-graphite);
}

.rg-notice {
  margin-top: var(--hr-space-9);
  padding: var(--hr-space-5) var(--hr-space-6);
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  background: var(--hr-sand);
  font-size: var(--hr-dek-sm);
}

.rg-notice p {
  margin: 0;
}

.rg-notice a {
  color: var(--hr-green-link);
  font-weight: var(--hr-w-semibold);
}

/* ---------- Packages ---------- */
.rg-packages {
  margin-top: var(--hr-space-16);
  scroll-margin-top: 120px;
}

.rg-packages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.rg-package {
  display: flex;
  flex-direction: column;
}

/* Fixed-height flag row so every card starts on the same line. */
.rg-package__flag {
  height: 16px;
  margin-bottom: 10px;
  color: var(--hr-green-link);
  text-align: center;
}

.rg-package__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--hr-space-8) 26px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  background: var(--hr-paper);
}

.rg-package__card:has(.rg-package__radio:checked) {
  outline: 2px solid var(--hr-green-link);
  outline-offset: -1px;
}

.rg-package__name {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  color: var(--hr-ink);
}

.rg-package__pitch {
  min-height: 42px;
  margin: 0 0 20px;
  font-size: var(--hr-meta);
  color: var(--hr-graphite);
}

.rg-package__price {
  margin-bottom: var(--hr-space-6);
  padding-bottom: var(--hr-space-6);
  border-bottom: var(--hr-row-divider);
}

.rg-package__amount {
  margin: 0;
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-puff);
  line-height: var(--hr-lh-flat);
  font-variant-numeric: lining-nums;
  color: var(--hr-ink);
}

.rg-package__amount span {
  font-size: var(--hr-h-card);
}

.rg-package__vat {
  margin: var(--hr-space-2) 0 0;
  font-size: var(--hr-meta-sm);
  color: var(--hr-graphite);
}

.rg-package__includes {
  margin-bottom: 14px;
}

.rg-package__features {
  display: flex;
  flex-direction: column;
  gap: var(--hr-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rg-package__features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: var(--hr-dek-sm);
  line-height: var(--hr-lh-body);
  color: var(--hr-ink);
}

.rg-package__features svg {
  flex: none;
  margin-top: 3px;
  color: var(--hr-green-link);
}

/* The label is the button. Unchosen: the filled cta "Välj paket".
   Chosen: a toggle state on mint with a check, "Valt". */
.rg-package__choose {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--hr-h-btn);
  margin-top: 26px;
  border: 1px solid transparent;
  border-radius: var(--hr-radius-pill);
  background: var(--hr-green-cta);
  color: var(--hr-paper);
  font-size: var(--hr-ui-lg);
  font-weight: var(--hr-w-semibold);
  cursor: pointer;
  transition: background var(--hr-dur-color) var(--hr-ease);
}

.rg-package__choose:hover {
  background: var(--hr-green-deep);
}

.rg-package__choose-on {
  display: none;
  align-items: center;
  gap: 9px;
}

.rg-package__radio:checked ~ .rg-package__choose {
  border-color: var(--hr-green-link);
  background: var(--hr-mint);
  color: var(--hr-green-link);
}

.rg-package__radio:checked ~ .rg-package__choose .rg-package__choose-off {
  display: none;
}

.rg-package__radio:checked ~ .rg-package__choose .rg-package__choose-on {
  display: inline-flex;
}

.rg-package__radio:focus-visible ~ .rg-package__choose {
  box-shadow: var(--hr-focus-ring);
}

/* ---------- Order form ---------- */
.rg-order__form {
  max-width: var(--hr-maxw-read);
  margin: var(--hr-space-18) auto 0;
  scroll-margin-top: 120px;
}

.rg-step {
  min-width: 0;
  margin: 38px 0 0;
  padding: 30px 0 0;
  border: none;
  border-top: var(--hr-section-rule);
}

.rg-step__legend {
  display: block;
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 6px;
}

.rg-step__legend + * {
  clear: both;
}

.rg-step__legend--solo {
  margin-bottom: var(--hr-space-7);
}

.rg-step__count {
  display: block;
  margin-bottom: 10px;
  color: var(--hr-green-link);
}

.rg-step__title {
  display: block;
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-box);
  line-height: var(--hr-lh-heading);
  color: var(--hr-ink);
}

.rg-step__sub {
  margin: 0 0 var(--hr-space-7);
  font-size: var(--hr-dek-sm);
  color: var(--hr-graphite);
}

.rg-step .rg-fields {
  margin-bottom: 0;
}

.rg-optional {
  font-weight: var(--hr-w-regular);
  color: var(--hr-graphite);
}

.rg-field__hint {
  display: block;
  margin-top: 7px;
  font-size: var(--hr-meta-sm);
  color: var(--hr-graphite);
}

.rg-field textarea[rows="2"] {
  min-height: 72px;
}

.rg-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--hr-space-3);
  height: var(--hr-h-btn);
  padding: 0 var(--hr-space-4);
  border: 1px dashed rgba(0, 0, 0, 0.22);
  border-radius: var(--hr-radius-input);
  background: var(--hr-paper);
  font-size: var(--hr-dek-sm);
  color: var(--hr-graphite);
  cursor: pointer;
  transition: border-color var(--hr-dur-color) ease, box-shadow var(--hr-dur-color) ease;
}

.rg-file__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rg-file:focus-within {
  border-color: var(--hr-green-cta);
  box-shadow: var(--hr-focus-ring);
}

.rg-summary {
  padding: 26px var(--hr-space-8);
  border-radius: var(--hr-radius);
  background: var(--hr-sand);
}

.rg-summary [hidden] {
  display: none;
}

.rg-summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--hr-space-4);
}

.rg-summary__row .rg-kicker {
  margin-bottom: var(--hr-space-2);
}

.rg-summary__name {
  margin: 0;
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-box-sm);
  color: var(--hr-ink);
}

.rg-summary__price {
  text-align: right;
}

.rg-summary__vat {
  margin: var(--hr-space-1) 0 0;
  font-size: var(--hr-meta-sm);
  color: var(--hr-graphite);
}

.rg-summary__change {
  margin: var(--hr-space-5) 0 0;
  padding-top: var(--hr-space-4);
  border-top: var(--hr-row-divider);
}

.rg-summary__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hr-space-4);
  font-size: var(--hr-dek-sm);
  color: var(--hr-graphite);
}

.rg-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--hr-space-3);
  margin-top: var(--hr-space-7);
  font-size: var(--hr-dek-sm);
  line-height: var(--hr-lh-body);
  color: var(--hr-ink);
  cursor: pointer;
}

.rg-consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--hr-green-cta);
}

.rg-consent a {
  color: var(--hr-green-link);
  font-weight: var(--hr-w-semibold);
}

.rg-btn--lg {
  height: 52px;
  margin-top: 26px;
}

/* Locked: grey, says why underneath (rg-order__status). */
.rg-btn--cta:disabled,
.rg-btn--cta:disabled:hover {
  background: var(--hr-border-grid);
  color: var(--hr-graphite);
  opacity: 1;
}

.rg-order__status {
  margin: var(--hr-space-4) 0 0;
  font-size: var(--hr-meta-sm);
  color: var(--hr-graphite);
  text-align: center;
}

/* ---------- Receipt ---------- */
.rg-receipt {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--hr-space-18) 0 88px;
  text-align: center;
}

.rg-receipt__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  border-radius: var(--hr-radius-pill);
  background: var(--hr-mint);
  color: var(--hr-green-link);
}

.rg-receipt__title {
  margin: 0 0 var(--hr-space-4);
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-page);
  line-height: var(--hr-lh-tight);
  color: var(--hr-ink);
  text-wrap: balance;
}

.rg-receipt__lead {
  margin: 0 0 36px;
  font-size: 19px;
  font-weight: var(--hr-w-semibold);
  line-height: 1.45;
  color: var(--hr-ink);
  text-wrap: pretty;
}

.rg-receipt__card {
  margin-bottom: var(--hr-space-8);
  padding: var(--hr-space-6) 26px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  text-align: left;
}

.rg-receipt__card .rg-kicker {
  margin-bottom: var(--hr-space-3);
}

.rg-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--hr-space-4);
  font-size: var(--hr-dek-sm);
}

.rg-receipt__name {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-row);
}

.rg-receipt__help {
  margin: 0 0 30px;
  font-size: var(--hr-dek-sm);
  color: var(--hr-graphite);
}

.rg-receipt__help a {
  color: var(--hr-green-link);
}

.rg-textlink--caps {
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
}

/* ---------- Site typography overrides ----------
   pages.css applies the homepage typography to every .page-home page:
   .page-home h1 (28px), .page-home main h2/h3 (20px, margins with
   !important) and p line-height 1.6. Out-specify it for this page's own
   elements. */
body.page-home .rg-page h1,
body.page-home .rg-page h2,
body.page-home .rg-page h3 {
  letter-spacing: normal;
}

body.page-home .rg-page h1.rg-hero__title {
  font-size: var(--hr-h-page);
  line-height: var(--hr-lh-tight);
  margin: 0 0 var(--hr-space-5);
}

body.page-home .rg-page h2.rg-filter-panel__title {
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  font-weight: var(--hr-w-bold);
  margin: 0;
}

body.page-home .rg-page h3.rg-card__title {
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  font-weight: var(--hr-w-bold);
  margin: 0 0 6px;
}

body.page-home .rg-page .rg-kicker,
body.page-home .rg-page .rg-hero__kicker {
  line-height: var(--hr-lh-title);
}

body.page-home .rg-page .rg-hero__lead {
  line-height: 1.45;
}

body.page-home .rg-page .rg-stat__n {
  line-height: var(--hr-lh-flat);
}

body.page-home .rg-page .rg-card__dek,
body.page-home .rg-page .rg-profile__bio p {
  line-height: 1.55;
}

body.page-home .rg-page .rg-results__count,
body.page-home .rg-page .rg-empty,
body.page-home .rg-page .rg-form-box__lead,
body.page-home .rg-page .rg-form-success__text {
  line-height: var(--hr-lh-body);
}

body.page-home .rg-page h1.rg-profile__title {
  font-size: var(--hr-h-page);
  line-height: var(--hr-lh-tight);
  margin: 0 0 20px;
}

body.page-home .rg-page h2.rg-h2 {
  font-size: var(--hr-h-box);
  line-height: var(--hr-lh-heading);
  font-weight: var(--hr-w-bold);
  margin: 0 0 20px;
}

body.page-home .rg-page .rg-form-box h2.rg-h2 {
  margin-bottom: 26px !important;
}

body.page-home .rg-page h3.rg-form-success__title {
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  font-weight: var(--hr-w-bold);
  margin: 6px 0;
}

body.page-home .rg-page h2.rg-h2--lg {
  font-size: var(--hr-h-puff);
  margin: 0 0 10px !important;
}

body.page-home .rg-page h3.rg-package__name {
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  font-weight: var(--hr-w-bold);
  margin: 0 0 var(--hr-space-2);
}

body.page-home .rg-page h1.rg-receipt__title {
  font-size: var(--hr-h-page);
  line-height: var(--hr-lh-tight);
  margin: 0 0 var(--hr-space-4);
}

body.page-home .rg-page .rg-package__pitch,
body.page-home .rg-page .rg-step__sub,
body.page-home .rg-page .rg-receipt__help,
body.page-home .rg-page .rg-order__status {
  line-height: var(--hr-lh-body);
}

body.page-home .rg-page .rg-section-lead {
  line-height: 1.55;
}

body.page-home .rg-page .rg-receipt__lead {
  line-height: 1.45;
}

body.page-home .rg-page .rg-package__amount {
  line-height: var(--hr-lh-flat);
}

body.page-home .rg-page .rg-profile__bio h2,
body.page-home .rg-page .rg-profile__bio h3 {
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  font-weight: var(--hr-w-bold);
  color: var(--hr-ink);
  margin: var(--hr-space-7) 0 var(--hr-space-2) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rg-hero {
    min-height: 0;
  }

  .rg-packages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--hr-space-8);
  }

  /* Stacked: the action card follows the content and no longer sticks. */
  .rg-profile__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hr-space-9);
  }

  .rg-profile__aside {
    position: static;
  }

  /* Stacked, the form is right above: no button that scrolls back up to it. */
  .rg-facts .rg-btn--block {
    display: none;
  }
}

@media (max-width: 768px) {
  .rg-hero__inner {
    padding: 0 var(--hr-space-4);
  }

  body.page-home .rg-page h1.rg-hero__title {
    font-size: 34px;
  }

  .rg-hero__lead {
    font-size: var(--hr-dek);
  }

  .rg-hero__body {
    padding-bottom: var(--hr-space-12);
  }

  .rg-stats {
    gap: var(--hr-space-3);
    margin-top: var(--hr-space-9);
  }

  .rg-stat {
    flex: 1 1 0;
    min-width: 0;
    padding: var(--hr-space-4);
  }

  .rg-stat__n {
    font-size: var(--hr-h-feature);
  }

  .rg-filter-panel__head,
  .rg-filter-panel__body,
  .rg-filter-panel__foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rg-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .rg-card {
    padding: 20px;
  }

  .rg-card__dek {
    min-height: 0;
  }

  .rg-trail {
    padding: 0 0 var(--hr-space-8);
  }

  body.page-home .rg-page h1.rg-profile__title {
    font-size: 34px;
  }

  .rg-profile__bio {
    font-size: var(--hr-dek);
  }

  .rg-form-box {
    padding: 26px 20px;
  }

  .rg-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .rg-facts {
    padding: var(--hr-space-6) 20px var(--hr-space-7);
  }

  body.page-home .rg-page h1.rg-receipt__title {
    font-size: 34px;
  }

  .rg-receipt {
    padding: var(--hr-space-12) 0 var(--hr-space-16);
  }

  .rg-summary {
    padding: var(--hr-space-6) 20px;
  }
}

@media (max-width: 560px) {
  .rg-group--wide {
    grid-column: auto;
  }

  .rg-group--wide ul {
    columns: 1;
  }

  .rg-btn--outline {
    flex: 1 1 auto;
  }

  .rg-packages__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rg-package__pitch {
    min-height: 0;
  }

  /* One column: only "Populärast" needs its flag row. */
  .rg-package__flag:empty {
    display: none;
  }
}
