/* Ragnar 2.0 — editorial, account, CMS, native plugin pages and errors. */
.rg-native-content {
  min-height: 50vh;
  padding-block: 55px 90px;
}
.rg-page-hero {
  padding-block: 55px 60px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--rg-line);
  background:
    radial-gradient(ellipse at 85% 20%, #25567444, transparent 58%),
    linear-gradient(120deg, #10263a, var(--rg-night));
}
.rg-page-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 60px,
    #89e3ff13 60px 61px
  );
  mask-image: linear-gradient(90deg, transparent, #000);
}
.rg-page-hero h1 {
  font-size: 49px;
  max-width: 900px;
  margin-bottom: 22px;
}
.rg-page-description {
  max-width: 660px;
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}
.rg-breadcrumb {
  font-size: 10px;
  color: var(--rg-muted) !important;
  display: inline-flex;
  gap: 15px;
  min-height: 44px;
  align-items: center;
  margin-bottom: 20px;
}
.rg-page-hero .rg-eyebrow {
  font-size: 9px;
}
.rg-native-content h1 {
  font-size: 38px;
  margin-bottom: 28px;
}
.rg-native-content h2 {
  letter-spacing: -0.035em;
}
.rg-native-content
  a:not(.btn):not(.rg-button):not(.dropdown-item):not(.rg-text-link):not(
    .rg-shop-category
  ) {
  color: var(--rg-accent);
}
.rg-page-empty {
  text-align: center;
  padding: 30px 20px 50px;
  margin-inline: auto;
  max-width: 720px;
}
.rg-page-empty > img {
  width: 250px;
  max-height: 190px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}
.rg-page-empty h2 {
  font-size: 29px;
  margin-bottom: 17px;
}
.rg-page-empty p {
  max-width: 530px;
  margin: 0 auto 20px;
  font-size: 14px;
}
.rg-journal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}
.rg-journal-toolbar > .rg-label {
  margin: 0;
}
.rg-journal-toolbar form {
  display: flex;
  gap: 8px;
  max-width: 380px;
  width: 100%;
}
.rg-journal-toolbar .form-control {
  font-size: 13px;
}
.rg-journal-grid .rg-post:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.rg-journal-grid .rg-post:first-child .rg-post-image {
  height: 100%;
  aspect-ratio: auto;
  min-height: 290px;
}
.rg-journal-grid .rg-post:first-child h3 {
  font-size: 28px;
}
.rg-article {
  max-width: 830px;
  margin-inline: auto;
}
.rg-article-wide {
  max-width: 1040px;
}
.rg-article > h1 {
  font-size: 49px;
  line-height: 1.18;
  margin-top: 10px;
  margin-bottom: 23px;
}
.rg-article-back {
  margin-bottom: 30px;
}
.rg-article-byline {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 32px;
}
.rg-article > img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.rg-article > .card {
  background: transparent;
  border: none;
  margin-top: 25px;
}
.rg-article > .card > .card-body {
  padding: 0;
}
.rg-prose {
  font-size: 16px;
  line-height: 1.95;
  color: var(--rg-muted);
  overflow-wrap: anywhere;
}
.rg-prose h2 {
  font-size: 30px;
  margin: 40px 0 20px;
}
.rg-prose h3 {
  font-size: 23px;
  margin: 30px 0 16px;
}
.rg-prose h4 {
  font-size: 20px;
}
.rg-prose p {
  margin-bottom: 22px;
}
.rg-prose li {
  padding-left: 5px;
  margin-bottom: 9px;
}
.rg-prose a {
  color: var(--rg-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rg-prose img,
.rg-prose iframe,
.rg-prose video {
  max-width: 100%;
}
.rg-prose pre {
  overflow: auto;
  padding: 22px;
  background: #06111d;
  border: 1px solid var(--rg-line);
  border-radius: 6px;
}
.rg-prose blockquote {
  border-left: 3px solid var(--rg-accent);
  padding: 15px 22px;
  margin: 30px 0;
  background: #89e3ff06;
  color: var(--rg-text);
}
.rg-prose table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.rg-cms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 65px;
}
.rg-cms-layout:not(:has(.rg-cms-toc:not([hidden]))) {
  display: block;
  max-width: 830px;
  margin-inline: auto;
}
.rg-cms-toc {
  align-self: start;
  position: sticky;
  top: 145px;
  border-left: 1px solid #3c5e77;
  padding-left: 22px;
}
.rg-cms-toc nav {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}
.rg-cms-toc a {
  font-size: 12px;
  color: var(--rg-muted) !important;
  line-height: 1.7;
  min-height: 40px;
  padding-block: 7px;
}
.rg-cms-toc a[data-level="3"] {
  padding-left: 13px;
  font-size: 11px;
}
.rg-cms-toc a:hover {
  color: var(--rg-accent) !important;
}
.rg-cms-prose {
  max-width: 820px;
}
.rg-help-strip {
  margin-top: 65px;
  border-block: 1px solid var(--rg-line);
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  font-size: 14px;
  color: var(--rg-muted);
}
/* Account shell enhances native forms instead of replacing their security logic. */
.rg-auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #375870;
  border-radius: 10px;
  overflow: hidden;
  max-width: 1100px;
  background: var(--rg-surface);
  box-shadow: 0 20px 60px #0003;
}
.rg-auth-story {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  background: #10263b;
  padding: 45px;
  display: flex;
  align-items: flex-end;
}
.rg-auth-story > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
  z-index: -2;
}
.rg-auth-story:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #07121ff5, #07121f22 95%);
}
.rg-auth-story h2 {
  font-size: 37px;
  max-width: 370px;
  margin-bottom: 22px;
}
.rg-auth-story p:not(.rg-eyebrow) {
  font-size: 14px;
  max-width: 330px;
}
.rg-auth-story .rg-label {
  margin-top: 30px;
  font-size: 8px;
  color: #c1d8e9;
}
.rg-auth-content {
  padding: 45px 40px;
}
.rg-auth-content > .row {
  --bs-gutter-x: 0;
  margin-inline: 0;
}
.rg-auth-content > .row > [class*="col-"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
.rg-auth-content h1 {
  font-size: 32px;
  margin-bottom: 27px;
}
.rg-auth-content .card {
  background: transparent;
  border: none;
}
.rg-auth-content .card-body {
  padding: 0;
}
.rg-auth-content .form-label {
  font-size: 12px;
  margin-bottom: 9px;
}
.rg-auth-content .mb-3 {
  margin-bottom: 23px !important;
}
.rg-auth-content .form-control {
  font-size: 14px;
}
.rg-auth-content .form-check-label,
.rg-auth-content .float-md-end {
  font-size: 11px;
}
.rg-auth-content .btn-primary {
  margin-top: 5px;
  min-height: 48px;
}
.rg-profile > .card:first-child {
  border-top: 2px solid var(--rg-accent);
  background: linear-gradient(110deg, #18364b, var(--rg-surface));
}
.rg-profile h2 {
  font-size: 28px;
}
.rg-profile .card-header {
  background: #0d1f30;
}
.rg-profile .card-body ul {
  padding-left: 18px;
  font-size: 13px;
  line-height: 2;
}
.rg-profile .row.gy-4 .card {
  height: 100%;
}
/* Shop 1.2.25: all monetary values and actions are owned by the actual plugin. */
.rg-shop-hero {
  padding-top: 38px;
  padding-bottom: 55px;
}
.rg-shop-hero h1 {
  max-width: 760px;
}
.rg-shop-hero .rg-page-description {
  max-width: 600px;
}
.rg-shop-hero-links {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
}
.rg-shop-hero-art {
  position: absolute;
  right: max(calc((100vw - 1240px) / 2), 40px);
  bottom: 0;
  width: 280px !important;
  height: 240px !important;
  object-fit: contain;
  z-index: -1;
  filter: drop-shadow(0 15px 20px #0004);
}
.rg-shop-hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  opacity: 0.2;
  z-index: -2;
}
.rg-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 38px;
}
.rg-shop-layout > aside > .list-group,
.rg-shop-page #shop > .col-lg-3 > .list-group {
  position: relative;
  border: 1px solid #3c617b;
  border-radius: 7px;
  overflow: hidden;
  padding: 9px;
  background: var(--rg-surface);
}
.rg-shop-page .list-group-item {
  border: none;
  background: transparent;
  padding: 13px 14px;
  font-size: 13px;
  border-radius: 4px;
}
.rg-shop-page .list-group-item.active {
  color: var(--rg-text);
  background: #21445d;
  border-left: 2px solid var(--rg-accent);
}
.rg-shop-page .list-group-item:hover {
  background: #89e3ff0c;
}
.rg-shop-welcome {
  font-size: 15px;
  border-bottom: 1px solid var(--rg-line);
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.rg-shop-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.rg-shop-category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, #255b7855, transparent 70%),
    var(--rg-surface);
  border: 1px solid #34536c;
  border-radius: 8px;
  padding: 27px;
  min-height: 300px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.rg-shop-category > img {
  width: 170px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 10px 13px #0003);
}
.rg-shop-category > .rg-label {
  font-size: 8px;
  color: var(--rg-accent);
}
.rg-shop-category h2 {
  font-size: 23px;
  margin: 10px 0;
}
.rg-shop-category .rg-text-link {
  font-size: 11px;
}
.rg-shop-empty {
  grid-column: 1/-1;
  width: 100%;
}
.rg-shop-category-title {
  font-size: 29px;
  margin-bottom: 30px;
}
.rg-product-card {
  position: relative;
  border: 1px solid #3b5a71 !important;
  overflow: hidden;
}
.rg-product-image {
  display: grid;
  place-items: center;
  min-height: 180px;
  aspect-ratio: 1.3;
  background:
    radial-gradient(ellipse at 50% 70%, #285b7466, transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 35px, #89e3ff03 35px 36px);
}
.rg-product-image img {
  width: 100%;
  height: 100% !important;
  max-height: 230px;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.22s;
}
.rg-product-placeholder img {
  width: 200px;
  height: 160px !important;
}
.rg-product-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px !important;
}
.rg-product-card .card-title {
  font-size: 20px;
  margin-bottom: 16px;
}
.rg-product-price {
  font-family: var(--rg-heading), sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--rg-accent);
}
.rg-product-price del {
  font-size: 11px;
  font-family: Inter, sans-serif;
  color: var(--rg-muted);
  display: block;
  margin-bottom: 7px;
}
.rg-product-card .btn {
  margin-top: auto;
  width: 100%;
  font-size: 11px;
}
.rg-product-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9px;
  font-weight: 700;
  background: #f1cc95;
  color: #172333;
  padding: 3px 8px;
  border-radius: 3px;
}
.rg-product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.rg-product-detail:has(.rg-product-detail-image) {
  grid-template-columns: 220px 1fr;
}
.rg-product-detail-image {
  width: 220px !important;
  max-height: 270px;
  object-fit: contain;
  background: #07121f66;
  border-radius: 5px;
}
.rg-product-detail .rg-prose {
  font-size: 14px;
}
.rg-product-detail .rg-prose h2 {
  font-size: 22px;
}
.rg-product-page {
  max-width: 980px;
  margin: auto;
}
.rg-product-page .modal-dialog {
  max-width: none;
  margin: 0;
}
.rg-product-page .btn-close {
  display: none;
}
body[data-rg-hover="on"] .rg-shop-category:hover {
  transform: translateY(-3px);
  border-color: var(--rg-accent);
}
body[data-rg-hover="on"] .rg-product-card:hover .rg-product-image img {
  transform: translateY(-5px) rotate(-2deg);
}
body[data-rg-columns="2"] .rg-shop-products > .col-md-4 {
  width: 50%;
}
/* Vote hooks and plugin scripts remain unchanged. */
.rg-page-hero-vote {
  background:
    radial-gradient(ellipse at 85% 20%, #335c6f55, transparent 60%),
    linear-gradient(120deg, #142e43, var(--rg-night));
}
.rg-vote-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-block: 1px solid var(--rg-line);
  padding: 24px 0;
  margin-bottom: 38px;
  max-width: 950px;
}
.rg-vote-steps span {
  font-size: 13px;
  color: var(--rg-muted);
  display: flex;
  align-items: center;
  gap: 15px;
}
.rg-vote-steps b {
  width: 38px;
  height: 38px;
  border: 1px solid #4b6f86;
  display: grid;
  place-items: center;
  color: var(--rg-accent);
  font:
    500 11px/1 ui-monospace,
    monospace;
  background: #89e3ff07;
}
.rg-vote-section-title {
  font-size: 26px;
  margin-bottom: 25px;
}
.rg-vote-page #vote-card {
  padding: 35px;
  min-height: 200px;
  background:
    radial-gradient(ellipse at 50% 20%, #28546d33, transparent),
    var(--rg-surface);
}
.rg-vote-page .card {
  margin-bottom: 28px;
}
.rg-vote-page .card-title {
  font-size: 24px;
  margin-bottom: 25px;
}
.rg-vote-page [data-vote-step="2"] > .btn {
  margin-block: 10px;
  min-height: 55px;
}
.rg-error-page {
  text-align: center;
  position: relative;
  max-width: 750px;
  margin: auto;
  padding-block: 15px 50px;
}
.rg-error-code {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  font:
    800 200px/1 Sora,
    sans-serif;
  color: #89e3ff09;
  letter-spacing: -0.08em;
  z-index: -1;
}
.rg-error-page > img {
  width: 300px;
  max-height: 220px;
  object-fit: contain;
}
.rg-error-page .rg-eyebrow {
  justify-content: center;
}
.rg-error-page h1 {
  font-size: 37px;
}
.rg-error-page > p:not(.rg-eyebrow) {
  max-width: 500px;
  margin: 0 auto 25px;
  font-size: 14px;
}
@media (max-width: 1199.98px) {
  .rg-page-hero h1 {
    font-size: 42px;
    max-width: 760px;
  }
  .rg-shop-hero h1 {
    max-width: 65%;
  }
  .rg-shop-hero .rg-page-description {
    max-width: 60%;
  }
  .rg-shop-hero-art {
    width: 240px !important;
    right: 25px;
  }
  .rg-shop-layout {
    grid-template-columns: 230px 1fr;
    gap: 25px;
  }
  .rg-auth-story {
    padding: 32px;
  }
  .rg-auth-content {
    padding: 35px 30px;
  }
  .rg-auth-story h2 {
    font-size: 30px;
  }
  .rg-cms-layout {
    grid-template-columns: 190px 1fr;
    gap: 35px;
  }
  .rg-journal-grid .rg-post:first-child {
    grid-column: span 3;
  }
  .rg-journal-grid .rg-post:first-child .rg-post-image {
    min-height: 250px;
  }
  .rg-shop-products > .col-md-4 {
    width: 50%;
  }
  .rg-product-detail:has(.rg-product-detail-image) {
    grid-template-columns: 180px 1fr;
  }
  .rg-product-detail-image {
    width: 180px !important;
  }
}
@media (max-width: 767.98px) {
  .rg-native-content {
    padding-block: 35px 60px;
  }
  .rg-native-content h1 {
    font-size: 31px;
  }
  .rg-page-hero {
    padding-block: 25px 40px;
  }
  .rg-page-hero h1 {
    font-size: 34px;
    margin-bottom: 20px;
    max-width: 100%;
  }
  .rg-page-description {
    font-size: 14px;
  }
  .rg-breadcrumb {
    margin-bottom: 15px;
    font-size: 9px;
  }
  .rg-page-empty {
    padding: 20px 0 30px;
  }
  .rg-page-empty h2 {
    font-size: 25px;
  }
  .rg-page-empty p {
    font-size: 14px;
  }
  .rg-journal-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .rg-journal-toolbar form {
    max-width: 100%;
  }
  .rg-journal-grid .rg-post:first-child {
    display: flex;
    grid-column: auto;
  }
  .rg-journal-grid .rg-post:first-child .rg-post-image {
    aspect-ratio: 16/9;
    min-height: 0;
  }
  .rg-journal-grid .rg-post:first-child h3 {
    font-size: 24px;
  }
  .rg-article > h1 {
    font-size: 34px;
  }
  .rg-article-back {
    margin-bottom: 23px;
  }
  .rg-article-byline {
    font-size: 11px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .rg-prose {
    font-size: 15px;
    line-height: 1.9;
  }
  .rg-prose h2 {
    font-size: 27px;
    margin-top: 33px;
  }
  .rg-prose h3 {
    font-size: 22px;
  }
  .rg-cms-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .rg-cms-toc {
    position: static;
    max-height: none;
    padding: 20px;
    border: 1px solid var(--rg-line);
    border-radius: 5px;
  }
  .rg-help-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
    font-size: 13px;
  }
  .rg-auth-shell {
    display: flex;
    flex-direction: column;
  }
  .rg-auth-story {
    min-height: 220px;
    padding: 30px;
    align-items: flex-end;
  }
  .rg-auth-story h2 {
    font-size: 26px;
    margin-bottom: 12px;
    max-width: 300px;
  }
  .rg-auth-story p:not(.rg-eyebrow) {
    font-size: 13px;
    margin: 0;
    max-width: 400px;
  }
  .rg-auth-story .rg-eyebrow {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .rg-auth-story .rg-label {
    display: none;
  }
  .rg-auth-content {
    padding: 30px 25px;
  }
  .rg-auth-content h1 {
    font-size: 28px;
  }
  .rg-auth-content .form-check-label,
  .rg-auth-content .float-md-end {
    font-size: 12px;
  }
  .rg-profile h2 {
    font-size: 26px;
  }
  .rg-profile > .card:first-child .col-md-3 {
    margin-bottom: 15px;
  }
  .rg-shop-hero h1 {
    max-width: 100%;
  }
  .rg-shop-hero .rg-page-description {
    max-width: 100%;
  }
  .rg-shop-hero-art {
    display: none;
  }
  .rg-shop-hero-links {
    gap: 15px;
    flex-wrap: wrap;
  }
  .rg-shop-hero-links .rg-text-link {
    font-size: 11px;
  }
  .rg-shop-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rg-shop-page .list-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px;
  }
  .rg-shop-page .list-group-item {
    font-size: 12px;
    padding: 11px;
    min-width: 80px;
  }
  .rg-shop-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .rg-shop-category {
    min-height: 260px;
    padding: 25px;
  }
  .rg-shop-category > img {
    height: 120px;
  }
  .rg-shop-category-title {
    font-size: 26px;
    margin-bottom: 24px;
  }
  .rg-shop-products > .col-md-4,
  body[data-rg-columns="2"] .rg-shop-products > .col-md-4 {
    width: 100%;
  }
  .rg-product-image {
    aspect-ratio: 1.6;
  }
  .rg-product-image img {
    max-height: 230px;
    padding: 20px;
  }
  .rg-product-card .card-title {
    font-size: 23px;
  }
  .rg-product-card .card-body {
    padding: 25px !important;
  }
  .rg-product-detail:has(.rg-product-detail-image) {
    grid-template-columns: 1fr;
  }
  .rg-product-detail-image {
    width: 100% !important;
    max-height: 220px;
  }
  .rg-product-page .modal-footer {
    gap: 15px;
  }
  .rg-product-price {
    font-size: 27px;
  }
  .rg-vote-steps {
    gap: 10px;
    padding: 20px 0;
    margin-bottom: 30px;
    align-items: flex-start;
  }
  .rg-vote-steps span {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
  }
  .rg-vote-steps b {
    width: 34px;
    height: 34px;
  }
  .rg-vote-section-title {
    font-size: 24px;
  }
  .rg-vote-page #vote-card {
    padding: 23px 10px;
    min-height: 200px;
  }
  .rg-vote-page .card-title {
    font-size: 23px;
  }
  .rg-vote-page .card-body {
    padding: 21px 17px;
  }
  .rg-vote-page .table {
    font-size: 12px;
  }
  .rg-error-code {
    font-size: 150px;
    top: 30px;
  }
  .rg-error-page h1 {
    font-size: 30px;
  }
  .rg-error-page > img {
    width: 250px;
  }
}
.rg-cart-container {
  max-width: 1100px;
  margin-inline: auto;
}
.rg-cart-container > .card {
  border-top: 2px solid var(--rg-accent);
}
.rg-cart-container .cart-items {
  min-width: 650px;
}
.rg-cart-container .card-body {
  padding: 32px;
}
.rg-cart-container h5 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 17px;
}
@media (max-width: 767.98px) {
  .rg-cart-container .card-body {
    padding: 22px;
  }
  .rg-cart-container .input-group .form-control {
    min-width: 0;
  }
}
.rg-profile>.card:first-child img{width:112px;height:112px;object-fit:cover}
