.site-header {
  height:90px; background:#fff; border-bottom:1px solid #e6e8e4; position:sticky; top:0; z-index:10; box-shadow:none;
}
.header-inner {
  width:min(calc(100% - 64px),1286px); max-width:1286px; height:90px; min-height:90px; margin-inline:auto; padding:0;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand { text-decoration:none; font-weight:900; }
.brand strong { color:#1767d7; }
.main-nav { height:100%; display:flex; gap:46px; margin-left:auto; margin-right:44px; align-items:center; }
.main-nav a { height:100%; display:flex; align-items:center; text-decoration:none; color:#111514; font-size:1.5rem; font-weight:680; line-height:1; white-space:nowrap; }
.main-nav a span { font-size:.82rem; margin-left:3px; }
.site-footer a { text-decoration:none; }
.hero { padding: 72px 0 56px; }
.hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:64px; align-items:center; }
.eyebrow { color:var(--rq-green); font-weight:750; text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; }
.hero-copy { font-size:1.15rem; color:var(--rq-muted); max-width:640px; }
.search-box { display:flex; gap:10px; margin:28px 0 14px; }
.search-box input, .stack-form input {
  width:100%; border:1px solid var(--rq-border); border-radius:var(--radius-input);
  padding:13px 14px; background:#fff;
}
button, .button {
  border:0; border-radius:var(--radius-input); background:var(--rq-green); color:#fff;
  padding:12px 18px; font-weight:700; text-decoration:none; display:inline-block;
}
button:hover, .button:hover { background:var(--rq-green-dark); }
.text-link { color:var(--rq-green); font-weight:700; text-decoration:none; }
.measure-card {
  background:var(--rq-surface); border:1px solid var(--rq-border); border-radius:18px;
  min-height:340px; box-shadow:var(--shadow-soft); padding:32px; position:relative;
}
.project-block { position:absolute; inset:72px 58px 48px; border:2px solid var(--rq-green); border-top-width:4px; }
.project-block .wall { position:absolute; left:18%; top:18%; width:56%; height:48%; border:2px solid var(--rq-text); }
.project-block .floor { position:absolute; left:10%; right:10%; bottom:12%; border-top:4px solid #bb9a72; }
.project-block .ruler { position:absolute; left:10%; right:10%; bottom:2%; height:8px; background:repeating-linear-gradient(90deg,var(--rq-amber) 0 2px,transparent 2px 14px); }
.dimension-line { color:var(--rq-green); font-weight:700; border-top:1px solid var(--rq-green); text-align:center; }
.dimension-line.vertical { position:absolute; right:14px; top:80px; writing-mode:vertical-rl; border-top:0; border-right:1px solid var(--rq-green); padding-right:4px; }
.utility-strip { border-block:1px solid var(--rq-border); background:#fff; }
.utility-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; padding:16px 0; color:var(--rq-muted); font-weight:650; font-size:.92rem; }
.section { padding:64px 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.tool-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.tool-card { background:#fff; border:1px solid var(--rq-border); border-radius:var(--radius-card); padding:22px; box-shadow:0 2px 12px rgba(23,26,24,.035); }
.tool-card-link { text-decoration:none; }
.tool-card h2 { font-size:1.25rem; }
.tool-icon { width:44px; height:44px; background:var(--rq-soft); border:1px solid var(--rq-border); border-radius:10px; margin-bottom:18px; position:relative; }
.tool-icon:after { content:""; position:absolute; left:9px; right:9px; top:21px; border-top:2px solid var(--rq-green); }
.page-head { padding:64px 0 24px; }
.error-page { min-height:55vh; }
.site-footer { background:#171a18; color:#fff; padding:48px 0 24px; margin-top:48px; }
.footer-inner { display:flex; justify-content:space-between; gap:40px; }
.site-footer p { color:#aeb4b0; }
.site-footer nav { display:flex; gap:20px; }
.copyright { border-top:1px solid #323633; margin-top:28px; padding-top:18px; color:#9da39f; font-size:.88rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns:1fr; gap:32px; }
  .measure-card { min-height:260px; }
  .utility-grid { grid-template-columns:repeat(2,1fr); }
  .tool-grid { grid-template-columns:repeat(2,1fr); }
  .admin-shell { grid-template-columns:1fr; }
  .admin-nav { display:none; }
  .admin-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .hero { padding-top:48px; }
  .search-box { flex-direction:column; }
  .utility-grid, .tool-grid { grid-template-columns:1fr; }
  .section-head, .footer-inner { align-items:flex-start; flex-direction:column; }
  .site-footer nav { flex-wrap:wrap; }
}


.header-actions { display:flex; align-items:center; gap:12px; }
.header-search input,
.mobile-nav input,
.directory-search input {
  width:100%;
  border:1px solid var(--rq-border);
  border-radius:var(--radius-input);
  background:#fff;
  padding:10px 12px;
  color:var(--rq-text);
}
.header-search { width:210px; }
.menu-button { display:none; background:#fff; color:var(--rq-text); border:1px solid var(--rq-border); padding:9px 12px; }
.mobile-nav { border-top:1px solid var(--rq-border); background:#fff; }
.mobile-nav .container { display:grid; gap:6px; padding-block:12px 18px; }
.mobile-nav a { text-decoration:none; padding:10px 0; border-bottom:1px solid var(--rq-border); }

.section-soft { background:var(--rq-soft); }
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.project-card {
  display:block; text-decoration:none; background:#fff; border:1px solid var(--rq-border);
  border-radius:var(--radius-card); padding:22px;
}
.project-card:hover,.tool-card-link:hover { border-color:var(--rq-green); }
.project-card h2,.project-card h3 { margin-bottom:8px; }
.project-card p { color:var(--rq-muted); margin-bottom:0; }
.project-measure {
  width:52px; height:38px; display:block; margin-bottom:18px;
  border:2px solid var(--rq-green); position:relative;
}
.project-measure:before {
  content:""; position:absolute; left:-7px; right:-7px; top:-8px; border-top:1px solid var(--rq-green);
}
.project-measure:after {
  content:""; position:absolute; right:-8px; top:5px; bottom:5px; border-right:1px solid var(--rq-green);
}

.content-grid-three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.value-card,.guide-card,.contact-card {
  background:#fff; border:1px solid var(--rq-border); border-radius:var(--radius-card); padding:24px;
}
.value-card p:last-child,.guide-card p:last-child { color:var(--rq-muted); }

.how-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:48px; align-items:start; }
.steps-list { list-style:none; padding:0; margin:0; display:grid; gap:16px; }
.steps-list li {
  display:grid; grid-template-columns:44px 1fr; gap:14px; align-items:start;
  background:#fff; border:1px solid var(--rq-border); border-radius:12px; padding:18px;
}
.steps-list li > span {
  width:36px; height:36px; display:grid; place-items:center;
  background:var(--rq-green); color:#fff; border-radius:50%; font-weight:800;
}
.steps-list p { color:var(--rq-muted); margin:4px 0 0; }

.index-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:22px; }
.index-group {
  background:#fff; border:1px solid var(--rq-border); border-radius:var(--radius-card); padding:20px;
  display:grid; align-content:start; gap:8px;
}
.index-group a { text-decoration:none; color:var(--rq-muted); }
.index-group a:hover { color:var(--rq-green); }

.directory-search { display:flex; gap:10px; max-width:680px; }
.category-section + .category-section { border-top:1px solid var(--rq-border); }

.guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }

.narrow-page { max-width:760px; }
.lead { font-size:1.15rem; color:var(--rq-muted); }
.static-content { padding-bottom:64px; font-size:1.02rem; }
.static-content p { margin-bottom:18px; }
.empty-state {
  background:#fff; border:1px solid var(--rq-border); border-radius:var(--radius-card);
  padding:32px; text-align:center;
}
.search-count { color:var(--rq-muted); margin-bottom:18px; }

.footer-grid {
  display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:32px;
}
.footer-grid nav { display:grid; align-content:start; gap:8px; }
.footer-grid nav strong { margin-bottom:4px; }
.footer-grid nav a { text-decoration:none; color:#b7bdb9; }
.footer-grid nav a:hover { color:#fff; }

@media (max-width: 980px) {
  .header-search { display:none; }
  .project-grid,.content-grid-three,.guide-grid,.index-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .how-grid { grid-template-columns:1fr; }
}
@media (max-width: 860px) {
  .menu-button { display:inline-block; }
}
@media (max-width: 620px) {
  .project-grid,.content-grid-three,.guide-grid,.index-grid,.footer-grid { grid-template-columns:1fr; }
  .directory-search { flex-direction:column; }
  .directory-search button { width:100%; }
}


/* Unified public site chrome and directory visual language */
.site-footer > .container { width:min(calc(100% - 64px),1286px); max-width:1286px; margin-inline:auto; }
.site-footer .footer-wordmark { font-size:3.5rem; }
.calculator-directory .page-head,
.calculator-directory > main > .container,
.calculator-directory .category-section { width:min(calc(100% - 64px),1286px); max-width:1286px; }
.calculator-directory .page-head { padding-top:54px; }
.calculator-directory .page-head p:not(.eyebrow) { max-width:920px; font-size:1.06rem; color:#4d5550; }
.calculator-directory .directory-search { max-width:760px; }
.calculator-directory .section { padding-block:54px; }
.calculator-directory .section-head h2 { font-size:2.35rem; }
.calculator-directory .tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.calculator-directory .tool-card { border-radius:11px; border-color:#d7dbd6; box-shadow:0 1px 2px rgba(21,32,26,.035); }
.calculator-directory .tool-card-image {
  aspect-ratio:auto;
  height:190px;
  padding:0;
  overflow:hidden;
  background:linear-gradient(180deg,#f8f6ef 0%,#f3efe6 100%);
}
.calculator-directory .tool-card-image img {
  position:absolute;
  inset:16px 20px;
  width:calc(100% - 40px);
  height:calc(100% - 32px);
  max-width:calc(100% - 40px);
  max-height:calc(100% - 32px);
  object-fit:contain;
  filter:drop-shadow(0 5px 6px rgba(48,42,32,.10));
}
.calculator-directory .tool-card h3 { margin:14px 16px 5px; font-size:1.5rem; line-height:1.08; letter-spacing:-.02em; font-weight:850; }
.calculator-directory .tool-card p { margin:0 16px 16px; font-size:1rem; line-height:1.32; color:#4d5550; }


/* Accessibility */
.skip-link {
  position:fixed;
  left:12px;
  top:12px;
  z-index:9999;
  transform:translateY(-180%);
  background:#fff;
  color:var(--rq-text);
  border:2px solid var(--rq-green);
  border-radius:8px;
  padding:10px 14px;
  text-decoration:none;
  font-weight:750;
}
.skip-link:focus { transform:translateY(0); }

:where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline:3px solid var(--rq-amber);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    scroll-behavior:auto !important;
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}


.calculator-guidance .content-grid { align-items:start; }
.plain-list { margin:14px 0 0; padding-left:1.2rem; color:var(--rq-muted); }
.plain-list li + li { margin-top:8px; }

.faq-list { display:grid; gap:10px; margin-top:18px; }
.faq-list details {
  background:#fff;
  border:1px solid var(--rq-border);
  border-radius:10px;
  padding:0 16px;
}
.faq-list summary {
  cursor:pointer;
  font-weight:750;
  padding:15px 0;
}
.faq-list details p {
  color:var(--rq-muted);
  margin:0 0 16px;
}

.related-grid a {
  display:grid;
  gap:4px;
}
.related-grid a span {
  color:var(--rq-muted);
  font-size:.92rem;
  font-weight:400;
}


/* Final public spacing and rhythm audit */
.page-head {
  padding-bottom: 32px;
}

.page-head > :last-child,
.section-head > :last-child,
.value-card > :last-child,
.guide-card > :last-child,
.project-card > :last-child,
.tool-card > :last-child {
  margin-bottom: 0;
}

.page-head + .container:not(.section) {
  margin-top: 8px;
  margin-bottom: 24px;
}

.static-content {
  padding-top: 12px;
  padding-bottom: 64px;
}

.contact-card {
  margin-top: 0;
}

.category-section + .category-section {
  margin-top: 0;
}

.site-footer {
  margin-top: 64px;
}

.section:last-of-type {
  margin-bottom: 0;
}

.tool-card,
.project-card,
.value-card,
.guide-card,
.contact-card,
.index-group {
  min-height: 100%;
}

.tool-card h2,
.tool-card h3,
.project-card h2,
.project-card h3,
.value-card h2,
.guide-card h2 {
  margin-bottom: 8px;
}

.project-grid,
.tool-grid,
.guide-grid,
.content-grid-three,
.index-grid {
  align-items: stretch;
}

.footer-grid nav a + a {
  margin-top: 2px;
}

@media (max-width: 620px) {
  .page-head {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .section {
    padding-block: 48px;
  }

  .site-footer {
    margin-top: 48px;
  }
}


/* Material-driven cards outside the homepage — one current containment authority. */
.tool-card,
.project-card {
  overflow:hidden;
  padding:0;
}
.tool-card-image,
.project-card-image {
  position:relative;
  aspect-ratio:1.85/1;
  overflow:hidden;
  padding:0;
  box-sizing:border-box;
  background:linear-gradient(180deg,#f8f6ef 0%,#f4f1e9 100%);
  border-bottom:1px solid #e7e3da;
}
.tool-card-image img,
.project-card-image img {
  position:absolute;
  inset:15px 18px;
  width:calc(100% - 36px);
  height:calc(100% - 30px);
  max-width:calc(100% - 36px);
  max-height:calc(100% - 30px);
  object-fit:contain;
  display:block;
}
.tool-card > h2,.tool-card > h3,.tool-card > p { margin-left:16px; margin-right:16px; }
.tool-card > h2,.tool-card > h3 { margin-top:14px; }
.tool-card > p { margin-bottom:16px; }
.project-card > h2,.project-card > h3,.project-card > p { margin-left:18px; margin-right:18px; }
.project-card > h2,.project-card > h3 { margin-top:16px; }
.project-card > p { margin-bottom:18px; }
.project-detail-head { position:relative; padding-right:min(40vw,470px); min-height:260px; overflow:hidden; }
.project-detail-image {
  position:absolute; right:0; bottom:0; width:min(38vw,440px); height:230px;
  object-fit:contain; padding:14px; box-sizing:border-box;
  background:linear-gradient(180deg,#f8f6ef 0%,#f4f1e9 100%);
  border-radius:12px; border:1px solid var(--rq-border);
}
@media(max-width:760px){
  .project-detail-head{padding-right:0}
  .project-detail-image{position:static;width:100%;height:210px;margin-top:20px}
}

/* =========================================================
   v1.0.33 mobile footer alignment hardening
   ========================================================= */
@media (max-width:620px){
  .site-footer{
    width:100%;
    margin-left:0;
    margin-right:0;
    padding:36px 0 20px;
    overflow:hidden;
  }
  .site-footer>.container{
    width:min(calc(100% - 32px),var(--max-width));
    margin-left:auto;
    margin-right:auto;
    padding-left:0;
    padding-right:0;
    box-sizing:border-box;
  }
  .site-footer .footer-grid{
    grid-template-columns:1fr;
    gap:26px;
    width:100%;
    margin:0;
  }
  .site-footer .footer-grid>div,
  .site-footer .footer-grid>nav{
    min-width:0;
    width:100%;
    margin:0;
  }
  .site-footer .footer-grid nav{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .site-footer .copyright{
    width:100%;
    max-width:100%;
    margin-top:24px;
    padding-top:16px;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.55;
    text-align:left;
    box-sizing:border-box;
  }
}
@media (max-width:620px){
  .site-footer>.container.footer-grid,
  .site-footer>.container.copyright{
    width:calc(100% - 32px);
    max-width:var(--max-width);
    margin-left:auto;
    margin-right:auto;
  }
}
/* Shared RenoQuantix wordmark and icon primitives. */
.brand-wordmark {
  display:inline-flex; align-items:center; gap:0; text-decoration:none; line-height:1;
  letter-spacing:-.058em; font-weight:900; color:#101312; font-size:3.5rem;
}
.brand-wordmark span { color:#101312; font-weight:900; }
.brand-wordmark strong { color:#1767d7; font-weight:900; }
.site-footer .footer-wordmark span { color:#f7f7f2; }
.site-footer .footer-wordmark strong { color:#4388ef; }
.header-search { display:none; }
.header-search-icon { width:50px; height:50px; display:grid; place-items:center; color:#111514; text-decoration:none; }
.header-search-icon .rq-icon { width:33px; height:33px; }
.header-unit-control {
  height:50px; display:flex; align-items:center; border:1px solid #d8ddd8; border-radius:8px; background:#f8f9f7; overflow:hidden; color:#161a18;
}
.header-unit-label { padding:0 9px 0 12px; font-size:.78rem; font-weight:800; color:#59605c; border-right:1px solid #d8ddd8; line-height:28px; }
.header-unit { height:48px; min-width:76px; padding:0 28px 0 10px; border:0; background:#f8f9f7; color:#161a18; font-size:1rem; font-weight:800; }
.rq-icon {
  width:1em; height:1em; display:block; fill:none; stroke:currentColor;
  stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke;
}
.rq-function-icon,.rq-panel-icon { color:#1768b5; }
.rq-function-icon .rq-icon { width:40px; height:40px; stroke-width:1.75; }
.rq-icon-head { display:flex; align-items:flex-start; gap:10px; }
.rq-icon-head>div { min-width:0; }
.rq-panel-icon {
  width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center;
  border-radius:8px; background:#eef5f2; border:1px solid #dce8e1;
}
.rq-panel-icon .rq-icon { width:18px; height:18px; stroke-width:1.8; }

/* Responsive public chrome — same measurements on every public page. */
@media (min-width:821px) and (max-width:1099px) {
  .site-header { height:66px; }
  .header-inner, .site-footer > .container { width:min(calc(100% - 40px),960px); }
  .header-inner { height:66px; min-height:66px; }
  .brand-wordmark, .site-footer .footer-wordmark { font-size:2.3rem; }
  .main-nav { gap:26px; margin-right:20px; }
  .main-nav a { font-size:1rem; }
  .header-search-icon { width:38px; height:38px; }
  .header-search-icon .rq-icon { width:24px; height:24px; }
  .header-unit-control { height:38px; }
  .header-unit-label { font-size:.68rem; padding-inline:8px; line-height:24px; }
  .header-unit { height:36px; min-width:62px; font-size:.86rem; padding-left:8px; }
  .calculator-directory .page-head,.calculator-directory > main > .container,.calculator-directory .category-section { width:min(calc(100% - 40px),960px); }
  .calculator-directory .tool-grid { gap:16px; }
  .calculator-directory .tool-card-image { height:150px; aspect-ratio:auto; }
  .calculator-directory .tool-card-image img { inset:12px 14px; width:calc(100% - 28px); height:calc(100% - 24px); max-width:calc(100% - 28px); max-height:calc(100% - 24px); }
  .calculator-directory .tool-card h3 { font-size:1.08rem; }
  .calculator-directory .tool-card p { font-size:.82rem; }
}
@media (max-width:820px) {
  .site-header { height:auto; }
  .header-inner, .site-footer > .container { width:min(calc(100% - 32px),var(--max-width)); height:58px; min-height:58px; }
  .brand-wordmark, .site-footer .footer-wordmark { font-size:2rem; }
  .main-nav { display:none; }
  .menu-button { display:inline-flex; align-items:center; justify-content:center; }
  .header-actions { margin-left:auto; gap:6px; }
  .header-search-icon { width:34px; height:36px; }
  .header-search-icon .rq-icon { width:22px; height:22px; }
  .header-unit-control { height:36px; }
  .header-unit-label { padding:0 7px; font-size:.64rem; line-height:22px; }
  .header-unit { height:34px; min-width:58px; padding:0 22px 0 7px; font-size:.78rem; }
  .menu-button { padding:7px 9px; font-size:.72rem; white-space:nowrap; }
  .calculator-directory .page-head,.calculator-directory > main > .container,.calculator-directory .category-section { width:min(calc(100% - 32px),var(--max-width)); }
  .calculator-directory .tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .calculator-directory .tool-card-image { height:auto; aspect-ratio:560/320; }
  .calculator-directory .tool-card-image img { inset:9px 10px; width:calc(100% - 20px); height:calc(100% - 18px); max-width:calc(100% - 20px); max-height:calc(100% - 18px); }
  .calculator-directory .tool-card h3 { font-size:1rem; margin:11px 12px 4px; }
  .calculator-directory .tool-card p { font-size:.78rem; margin:0 12px 12px; }
}
@media (max-width:520px) {
  .brand-wordmark { font-size:1.72rem; }
  .header-search-icon { display:none; }
  .header-unit-control { border-radius:7px; }
  .header-unit-label { display:inline-block; padding-inline:6px; font-size:.60rem; }
  .header-unit { min-width:54px; padding-left:6px; font-size:.74rem; }
  .calculator-directory .tool-grid { grid-template-columns:1fr 1fr; gap:9px; }
}

/* Integrated advertising.
   The slot itself is transparent and has no visible "ad box".
   The available track follows the site container; the creative may be natural, full, or custom width. */
.ad-slot {
  clear:both;
  margin-block:clamp(42px,5vw,72px);
  background:transparent;
}
.ad-slot + .ad-slot { margin-top:clamp(30px,4vw,54px); }
.ad-slot-inner {
  width:min(calc(100% - 64px),1286px);
  max-width:1286px;
  margin-inline:auto;
  background:transparent;
}
.ad-slot-label {
  margin-bottom:8px;
  color:#727a75;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ad-content-shell {
  width:auto;
  max-width:100%;
  background:transparent;
}
.ad-width-full .ad-content-shell { width:100%; }
.ad-width-custom .ad-content-shell {
  width:min(100%,var(--ad-max-width,728px));
}
.ad-width-auto.ad-slot--image .ad-content-shell,
.ad-width-auto.ad-slot--html .ad-content-shell {
  width:fit-content;
  max-width:100%;
}
.ad-align-left .ad-content-shell { margin-left:0; margin-right:auto; }
.ad-align-center .ad-content-shell { margin-left:auto; margin-right:auto; }
.ad-align-right .ad-content-shell { margin-left:auto; margin-right:0; }

.ad-text-content {
  width:100%;
  display:flex;
  align-items:baseline;
  gap:14px 22px;
  flex-wrap:wrap;
  padding:18px 0;
  border-block:1px solid rgba(72,82,76,.16);
  background:transparent;
}
.ad-text-content strong { font-size:1.05rem; }
.ad-text-content p { margin:0; color:var(--rq-muted); flex:1 1 360px; }
.ad-text-content a { color:#0c62b9; font-weight:750; text-decoration:none; white-space:nowrap; }
.ad-slot--image .ad-content-shell,
.ad-image-link { display:block; }
.ad-slot--image .ad-content-shell > img,
.ad-image-link img {
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  max-height:360px;
  object-fit:contain;
}
.ad-width-full.ad-slot--image .ad-content-shell > img,
.ad-width-full .ad-image-link img {
  width:100%;
}
.ad-image-link { text-decoration:none; }
.ad-align-left.ad-slot--image .ad-content-shell > img,
.ad-align-left .ad-image-link img { margin-left:0; margin-right:auto; }
.ad-align-center.ad-slot--image .ad-content-shell > img,
.ad-align-center .ad-image-link img { margin-left:auto; margin-right:auto; }
.ad-align-right.ad-slot--image .ad-content-shell > img,
.ad-align-right .ad-image-link img { margin-left:auto; margin-right:0; }
.ad-copy { margin-top:12px; background:transparent; }
.ad-copy p { margin:4px 0 0; color:var(--rq-muted); }
.ad-provider-code {
  min-height:1px;
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  background:transparent;
}
.ad-provider-code iframe,
.ad-provider-code img,
.ad-provider-code ins { max-width:100%; }
.ad-align-left .ad-provider-code { text-align:left; }
.ad-align-center .ad-provider-code { text-align:center; }
.ad-align-right .ad-provider-code { text-align:right; }

@media (max-width:620px) {
  .ad-slot { margin-block:36px; }
  .ad-slot-inner { width:min(calc(100% - 32px),1286px); }
  .ad-text-content { align-items:flex-start; flex-direction:column; gap:8px; }
}
