/* RAM CMS 1.2 — premium compact sections, unified visual grid and viewport safety.
   Public pages only; admin and installer styles are intentionally untouched. */
:root {
  --rc-content-max: 1200px;
  --rc-gutter: clamp(12px, 2.2vw, 26px);
  --rc-forest: #07180f;
  --rc-accent: #a9f756;
}

/* The website has one content rail, including top banner, imagery and footer. */
html { max-width: 100%; }
body { max-width: 100%; overflow-x: clip; }
body .container,
body .rc-site-footer__wrap,
body .rc-site-footer__bottom-inner {
  box-sizing: border-box;
  width: min(var(--rc-content-max), calc(100% - var(--rc-gutter) - var(--rc-gutter))) !important;
  max-width: 100%;
  margin-inline: auto !important;
}
body .rc-site-footer__wrap { padding-inline: 0; }
body .rc-site-footer__bottom-inner { padding-inline: 0; }
body .hero-banner-top,
body .section-visual {
  box-sizing: border-box;
  width: min(var(--rc-content-max), calc(100% - var(--rc-gutter) - var(--rc-gutter))) !important;
  max-width: 100%;
  margin-inline: auto !important;
  border-radius: 18px;
  overflow: hidden;
}
/* Within the shared content rail, images must fill that rail, not subtract gutters twice. */
body .container .section-visual { width: 100% !important; }
body .hero-banner-top { margin-top: clamp(10px, 1.3vw, 18px) !important; }
body .hero-banner-top img,
body .section-visual img { display: block; width: 100%; max-width: 100%; height: auto; }
body .visual-wrap { max-width: 100%; padding-top: 0; margin-top: clamp(18px, 2vw, 26px); }
body .article-shell { grid-template-columns: minmax(0, 1fr); }
body .hero-grid { max-width: 100%; }
body .hero-grid > div:first-child { box-sizing: border-box; max-width: 100%; }
body main :is(section, article, figure, nav, .container, .faq-list, .link-directory, .link-group, .link-list, .article-shell, .howto-feature, .hero-grid, .quick-grid, .semantic-grid, .reviews-grid, .steps, .about-grid, .cta-strip) { min-width: 0; }
body main :is(img, picture, video, iframe, canvas, svg) { max-width: 100%; }
body main img { object-position: center; }
body .table-scroll,
body .compare-wrap { box-sizing: border-box; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body :is(.faq-item summary, .keyword-link, .article-card, .about-card, .data-table td, .data-table th) { overflow-wrap: anywhere; }

/* SERVICE DIRECTORY — compact editorial grid with high-density navigable chips. */
body .link-section {
  padding-block: clamp(34px, 3.8vw, 51px) !important;
  background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(88, 165, 68, .095), transparent 68%),
              linear-gradient(135deg, #07180f 0%, #071f17 52%, #07150e 100%);
}
body .link-section::before { opacity: .3; }
body .link-section .section-head {
  display: grid;
  gap: 5px;
  max-width: 100%;
  margin: 0 0 18px;
  text-align: left;
}
body .link-section .section-head .kicker {
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  background: rgba(171, 249, 112, .11);
  border: 1px solid rgba(181, 255, 137, .19);
  color: #caff9a;
  font: 800 10px/1.2 system-ui, sans-serif;
  letter-spacing: .12em;
}
body .link-section .section-head h2 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(22px, 2.3vw, 32px) !important;
  font-weight: 900;
  letter-spacing: -.026em;
  line-height: 1.3;
}
body .link-section .section-head h2 strong { color: #b9fb6e; }
body .link-section .section-head p {
  max-width: 950px;
  margin: 0;
  color: #b0c9b8;
  font-size: clamp(12px, .95vw, 14px);
  line-height: 1.45;
}
body .link-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}
body .link-directory .link-group {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 17px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(153, 246, 141, .17);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(27, 57, 39, .94), rgba(7, 34, 22, .96));
  box-shadow: 0 10px 29px rgba(0, 0, 0, .11), inset 0 1px 0 rgba(255,255,255,.028);
}
body .link-directory .link-group::before {
  height: 2px;
  background: linear-gradient(90deg, #b6ff5e, #5ad7b6 67%, transparent);
  opacity: .95;
}
body .link-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 12px;
}
body .link-group-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #beff68, #6ee54c);
  color: #0a2916;
  box-shadow: 0 5px 15px rgba(131, 240, 92, .12);
  font-size: 18px;
}
body .link-group-head > div { flex: 1 1 0%; min-width: 0; }
body .link-group-head h3 {
  margin: 0 !important;
  color: #f7fff6;
  font-size: clamp(13px, 1.08vw, 16px) !important;
  font-weight: 900;
  line-height: 1.26;
}
body .link-group-head p {
  margin: 2px 0 0;
  color: #9eb9a6;
  font-size: 11px;
  line-height: 1.32;
}
body .link-directory .link-list,
body .link-directory .link-list-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  padding: 0;
  margin: 0;
}
body .link-directory .keyword-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(167, 233, 146, .11);
  border-radius: 8px;
  background: rgba(3, 23, 14, .67);
  box-shadow: none;
  color: #e6f5e8;
  font-size: clamp(10px, .83vw, 12px);
  font-weight: 790;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body .link-directory .keyword-link strong.keyword {
  display: inline;
  flex: 0 1 auto;
  color: #baff76;
  font-size: .92em;
  font-weight: 900;
}
body .link-directory .keyword-link::after {
  content: '›';
  flex: 0 0 auto;
  margin-left: auto;
  color: #91e879;
  font-size: 15px;
  line-height: 1;
}
body .link-directory .keyword-link:hover {
  transform: translateY(-1px);
  border-color: rgba(180, 255, 122, .49);
  background: #19452b;
}
body .link-directory .keyword-link:focus-visible {
  outline: 2px solid #c0ff68;
  outline-offset: 2px;
}
body .link-directory .link-tip {
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px dashed rgba(168, 237, 133, .22);
  border-radius: 9px;
  background: rgba(133, 208, 93, .07);
  color: #b6ccbc;
  font-size: 11.5px;
  line-height: 1.45;
}
body .link-directory .link-tip strong { color: #baff74; }

/* FAQ — two-column compact accordion, preserving real HTML details/summary semantics. */
body .section:has(> .container > .faq-list),
body section.section#faq {
  padding-block: clamp(34px, 3.8vw, 50px) !important;
  background: linear-gradient(180deg, #f4f8f5, #edf5ef);
}
body .section:has(> .container > .faq-list) > .container > .section-head,
body section.section#faq > .container > .section-head {
  display: grid;
  gap: 5px;
  max-width: 100%;
  margin: 0 0 18px;
  text-align: left;
}
body .section:has(> .container > .faq-list) > .container > .section-head .kicker,
body section.section#faq > .container > .section-head .kicker {
  width: max-content;
  padding: 5px 10px;
  border: 1px solid #d7eadb;
  background: #e3f2e7;
  color: #166d39;
  font: 850 10px/1.2 system-ui, sans-serif;
  letter-spacing: .09em;
}
body .section:has(> .container > .faq-list) > .container > .section-head h2,
body section.section#faq > .container > .section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 32px) !important;
  font-weight: 900;
  letter-spacing: -.027em;
  line-height: 1.3;
  color: #132e20;
}
body .section:has(> .container > .faq-list) > .container > .section-head h2 strong,
body section.section#faq > .container > .section-head h2 strong { color: #13833c; }
body .section:has(> .container > .faq-list) > .container > .section-head p,
body section.section#faq > .container > .section-head p {
  margin: 0;
  color: #5c7466;
  font-size: clamp(12px, .95vw, 14px);
  line-height: 1.45;
}
body .faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 9px;
  max-width: 100%;
}
body .faq-list > .faq-item {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dae8dc;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 67, 38, .045);
}
body .faq-list > .faq-item[open] { border-color: #97d5a5; box-shadow: 0 6px 19px rgba(20, 106, 55, .1); }
body .faq-list > .faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  min-height: 52px;
  margin: 0;
  padding: 11px 14px 11px 16px;
  cursor: pointer;
  color: #172c1e;
  font-size: 13.5px;
  font-weight: 830;
  line-height: 1.4;
  list-style: none;
}
body .faq-list > .faq-item > summary::-webkit-details-marker { display: none; }
body .faq-list > .faq-item > summary::marker { content: ''; }
body .faq-list > .faq-item > summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #e7f7e9;
  color: #168444;
  font: 700 18px/1 system-ui, sans-serif;
}
body .faq-list > .faq-item[open] > summary::after { content: '−'; color: #fff; background: #148a45; }
body .faq-list > .faq-item > summary:focus-visible { outline: 2px solid #159e4c; outline-offset: -3px; }
body .faq-list > .faq-item .faq-answer {
  padding: 0 16px 13px;
  color: #52675a;
  font-size: 12.5px;
  line-height: 1.65;
}
body .faq-list > .faq-item .faq-answer :last-child { margin-bottom: 0; }
body .faq-list > .faq-item .faq-answer p { margin-top: 4px; }

/* Responsive density: short rows, no sideways viewport scrolling. */
@media (max-width: 1180px) {
  body .link-directory .link-list,
  body .link-directory .link-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body .link-directory { grid-template-columns: 1fr; gap: 10px; }
  body .link-directory .link-list,
  body .link-directory .link-list-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --rc-gutter: 12px; }
  body .hero-banner-top, body .section-visual { border-radius: 12px; }
  body .hero-banner-top { margin-top: 7px !important; }
  body .hero-banner-top img,
  body .section-visual img { object-fit: contain; }
  body .link-section,
  body .section:has(> .container > .faq-list),
  body section.section#faq { padding-block: 27px 31px !important; }
  body .link-section .section-head,
  body .section:has(> .container > .faq-list) > .container > .section-head,
  body section.section#faq > .container > .section-head { gap: 5px; margin-bottom: 13px; }
  body .link-section .section-head h2,
  body .section:has(> .container > .faq-list) > .container > .section-head h2,
  body section.section#faq > .container > .section-head h2 { font-size: clamp(20px, 5.5vw, 24px) !important; line-height: 1.3; }
  body .link-section .section-head p,
  body .section:has(> .container > .faq-list) > .container > .section-head p,
  body section.section#faq > .container > .section-head p { font-size: 11.5px; line-height: 1.45; }
  body .link-directory .link-group { padding: 13px 12px 14px; border-radius: 12px; }
  body .link-group-head { gap: 9px; margin-bottom: 9px; }
  body .link-group-icon { flex-basis: 33px; width: 33px; height: 33px; border-radius: 9px; font-size: 16px; }
  body .link-group-head h3 { font-size: 14px !important; }
  body .link-group-head p { font-size: 10.5px; }
  body .link-directory .link-list,
  body .link-directory .link-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  body .link-directory .keyword-link { min-height: 33px; padding: 6px 8px; font-size: 11px; line-height: 1.3; }
  body .link-directory .keyword-link::after { font-size: 13px; }
  body .faq-list { grid-template-columns: 1fr; gap: 7px; }
  body .faq-list > .faq-item > summary { min-height: 45px; padding: 9px 11px 9px 13px; font-size: 12.5px; }
  body .faq-list > .faq-item > summary::after { width: 23px; height: 23px; flex-basis: 23px; }
  body .faq-list > .faq-item .faq-answer { padding: 0 13px 12px; font-size: 12px; }
}
@media (max-width: 350px) {
  :root { --rc-gutter: 10px; }
  body .link-directory .keyword-link { padding-inline: 6px; gap: 2px; font-size: 10.5px; }
  body .link-directory .keyword-link::after { font-size: 12px; }
  body .link-directory .link-group { padding-inline: 10px; }
  body .link-group-head p { font-size: 10px; }
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }
@media (prefers-reduced-motion: reduce) {
  body .link-directory .keyword-link { transition: none; }
  body .link-directory .keyword-link:hover { transform: none; }
}
/* Balanced independent editorial columns avoid blank stretched navigation cards. */
@media (min-width: 861px) {
  body .link-directory { display: block; columns: 2; column-gap: 12px; }
  body .link-directory .link-group { display: inline-block; width: 100%; vertical-align: top; break-inside: avoid; margin: 0 0 12px; }
}
/* FAQ headings may contain inline <strong>; keep each question reading naturally. */
body .faq-list > .faq-item > summary { position: relative; display: block; padding-right: 49px; }
body .faq-list > .faq-item > summary::after { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); }
@media (max-width: 680px) {
  body .faq-list > .faq-item > summary { padding-right: 44px; }
  body .faq-list > .faq-item > summary::after { right: 11px; }
}
/* The legacy standalone article has a bare table (no responsive wrapper). */
body.rc-site-plain-page > table {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
body.rc-site-plain-page > table :is(th, td) { overflow-wrap: break-word; }
body.rc-site-plain-page > table > tbody { display: table; min-width: 640px; }
