/* R25: real Default Explorer materials, adapted to an editorial website.
   Sources: explorer-control-polish.css and explorer-dark-materials-r14.css.
   Open reading areas, purposeful feature surfaces, and intact native shelves.
   No new images, scripts, reordered words, hidden content or global UI rules. */
@layer ar-site-action-finish {
 html body:is([data-ar-page="home"],[data-ar-page="ministry"]) :is(#main-content-home,#main-content-ministry) {
  --editor-ink:#f0e5d5;--editor-muted:#cbbcaa;--editor-gold:#d0ad70;
  --editor-edge:#907253;--editor-edge-active:#c3a06c;--editor-line:#5e4b3866;
  --editor-fill:linear-gradient(175deg,#3a2b20,#241a13);
  --editor-hover:linear-gradient(175deg,#493627,#302219);
  --editor-shadow:inset 0 1px 0 #ffefd91a,inset 0 -1px 0 #0005,0 3px 9px #0003;
  --editor-surface:linear-gradient(110deg,#d0ad7814,transparent 38%),linear-gradient(160deg,#28190fa8,#0e0907df);
  --editor-feature:radial-gradient(ellipse at 8% 0%,#98754b23,transparent 55%),linear-gradient(145deg,#292018c7,#100c09de 72%);
 }
 /* Exactly the Explorer's control colors and gloss, with modest rounded accents. */
 html body:is([data-ar-page="home"],[data-ar-page="ministry"]) :is(#main-content-home,#main-content-ministry) :is(.action-btn,.music-bridge-btn,.home-games-cta,.ai-avdi90-btn,.m-btn,.mf-gold,.mp-explorer-button,.ar-revision-button,.m-content-toggle,.mp-corrections-toggle,.m-avacyn-toggle):not([aria-disabled="true"]):not([data-download-coming]) {
  background:var(--editor-fill)!important;color:var(--editor-ink)!important;border:1px solid var(--editor-edge)!important;
  border-radius:7px!important;box-shadow:var(--editor-shadow)!important;
  text-shadow:none!important;min-height:44px!important;
 }
 html body:is([data-ar-page="home"],[data-ar-page="ministry"]) :is(#main-content-home,#main-content-ministry) :is(.action-btn,.music-bridge-btn,.home-games-cta,.ai-avdi90-btn,.m-btn,.mf-gold,.mp-explorer-button,.ar-revision-button,.m-content-toggle,.mp-corrections-toggle,.m-avacyn-toggle):not([aria-disabled="true"]):not([data-download-coming]):hover {
  background:var(--editor-hover)!important;border-color:var(--editor-edge-active)!important;color:#fff0dc!important;
 }
 /* Home: Our Work is three editorial columns, not three more rounded panels. */
 html body[data-ar-page="home"] #main-content-home .offer-grid {
  gap:0!important;margin-top:clamp(28px,3vw,44px)!important;
  border-top:1px solid var(--editor-line);border-bottom:1px solid var(--editor-line);
  background:linear-gradient(90deg,transparent,#291d1136 48%,transparent);
 }
 html body[data-ar-page="home"] #main-content-home .offer-card {
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:clamp(24px,3vw,38px)!important;
 }
 html body[data-ar-page="home"] #main-content-home .offer-card+.offer-card {border-left:1px solid var(--editor-line)!important;}
 html body[data-ar-page="home"] #main-content-home .offer-num {display:block;text-align:left!important;font-size:16px!important;color:var(--editor-gold)!important;}
 html body[data-ar-page="home"] #main-content-home .home-actions {margin-top:20px!important;gap:12px!important;}
 /* Two invitations share one quiet shelf. The sections no longer compete. */
 html body[data-ar-page="home"] #main-content-home .social-studio-row {
  gap:0!important;border-top:1px solid var(--editor-line);border-bottom:1px solid var(--editor-line);
  background:linear-gradient(115deg,#33241742,#0c0a08a3 60%,#29221c30);
 }
 html body[data-ar-page="home"] #main-content-home :is(.social-card-combined,.studio-card-combined) {
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:clamp(28px,4vw,48px)!important;
 }
 html body[data-ar-page="home"] #main-content-home .studio-card-combined {border-left:1px solid var(--editor-line)!important;}
 html body[data-ar-page="home"] #main-content-home .social-card-combined .social-link {border-radius:7px!important;border-color:#90725366!important;}
 /* Games is a purposeful illustrated feature, not one of dozens of art cards. */
 html body[data-ar-page="home"] #main-content-home .home-games-card {
  background:var(--editor-feature)!important;border-color:#90725370!important;border-radius:12px!important;
  box-shadow:inset 0 1px 0 #e5c4951c,0 16px 32px #0005!important;
 }
 html body[data-ar-page="home"] #main-content-home .home-games-copy {padding:clamp(26px,3.5vw,44px)!important;}
 /* The QR welcome reads as a letter with three brief marginal notes. */
 html body[data-ar-page="home"] #main-content-home .qr-card {
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:clamp(28px,4vw,48px) 0!important;
 }
 html body[data-ar-page="home"] #main-content-home .qr-points {gap:clamp(20px,3vw,36px)!important;margin-top:32px!important;}
 html body[data-ar-page="home"] #main-content-home .qr-point {
  border:0!important;border-top:1px solid #90725370!important;border-radius:0!important;
  background:linear-gradient(180deg,#4933201c,transparent 72%)!important;box-shadow:none!important;
  padding:22px 6px 12px!important;
 }
 html body[data-ar-page="home"] #main-content-home .qr-explorer-callout83 {
  background:linear-gradient(90deg,transparent,#2a1e1352,transparent)!important;
  border:0!important;border-top:1px solid var(--editor-line)!important;border-bottom:1px solid var(--editor-line)!important;
  border-radius:0!important;box-shadow:none!important;
 }
 /* Keep About's approved divider and real disclosures; reduce nested boxing. */
 html body[data-ar-page="home"] #main-content-home .about-accordion84 {gap:14px!important;}
 html body[data-ar-page="home"] #main-content-home .about-master {
  background:transparent!important;border:0!important;border-radius:8px!important;box-shadow:none!important;
 }
 html body[data-ar-page="home"] #main-content-home .about-master>summary {
  background:var(--editor-surface)!important;border:1px solid #90725366!important;
  border-radius:8px!important;box-shadow:var(--editor-shadow)!important;
 }
 html body[data-ar-page="home"] #main-content-home :is(.about-category,.about-sub) {
  background:#0d0a075c!important;border:0!important;border-left:1px solid #90725366!important;border-radius:0!important;box-shadow:none!important;
 }
 html body[data-ar-page="home"] #main-content-home :is(.about-category,.about-sub)>summary {
  background:linear-gradient(90deg,#39271847,transparent)!important;border-radius:0!important;box-shadow:none!important;
 }
 html body[data-ar-page="home"] #main-content-home .home-marketplace-card {
  max-width:960px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:clamp(28px,4vw,48px) clamp(8px,2vw,24px)!important;
 }
 html body[data-ar-page="home"] #main-content-home .contact-banner-link {
  background:var(--editor-feature)!important;border-radius:12px!important;border-color:#9072538c!important;
 }
 html body[data-ar-page="home"] #main-content-home .contact-banner-link:hover {background:var(--editor-feature)!important;border-color:#c3a06ccc!important;}
 html body[data-ar-page="home"] #main-content-home .contact-cta-mark {border-radius:8px!important;}
 /* Only the illustrated feature and final invitation keep R21's living finish. */
 html body[data-ar-page="home"] #main-content-home :is(.social-card-combined,.studio-card-combined,.qr-card,.home-marketplace-card)::before {content:none!important;display:none!important;animation:none!important;}
 /* Ministry: remove the page-wide box and heavy introductory box. */
 html body[data-ar-page="ministry"] #main-content-ministry .ar-ministry-content-runner {
  background:linear-gradient(180deg,transparent,#100b0785 12%,#0c09066b 80%,transparent)!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 0 32px!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-top .m-hero-introduction {
  max-width:1100px;margin-inline:auto;background:radial-gradient(ellipse at 50% 45%,#1c140aa8,transparent 76%)!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:clamp(32px,4.5vw,60px) clamp(16px,3vw,38px)!important;
 }
 /* This is the awkward Ministry Work heading box, not the content shelf. */
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-section-head {
  max-width:940px!important;margin:0 auto 36px!important;padding:0 0 28px!important;
  border:0!important;border-bottom:1px solid #90725366!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;text-align:center!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-section-head .m-lead {
  max-width:72ch!important;margin:16px auto 0!important;text-align:center!important;color:var(--editor-muted)!important;
 }
 /* Keep all three existing resource covers whole; use an open editorial row. */
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-cards {gap:clamp(22px,3vw,38px)!important;align-items:start!important;}
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card {
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card>img {
  display:block!important;width:min(100%,280px)!important;height:auto!important;max-height:none!important;aspect-ratio:1!important;object-fit:contain!important;
  margin:0 auto!important;border:1px solid #90725359!important;border-radius:8px!important;box-shadow:0 10px 24px #0005!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card-copy {
  background:transparent!important;padding:24px 0 8px!important;border:0!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card-copy h3 {padding-top:16px!important;border-top:1px solid var(--editor-line);}
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-work-social {
  margin-top:30px!important;padding:24px 0!important;background:linear-gradient(90deg,transparent,#30211540,transparent)!important;
  border:0!important;border-top:1px solid var(--editor-line)!important;border-bottom:1px solid var(--editor-line)!important;
  border-radius:0!important;box-shadow:none!important;
 }
 /* Retain the content shelf's structure, labels and Show/Hide controls exactly. */
 html body[data-ar-page="ministry"] #main-content-ministry :is(.m-content-disclosure,#ministry-corrections-disclosure) {
  background:linear-gradient(180deg,#17100c91,#0c0907bb)!important;border-color:#90725370!important;border-radius:10px!important;
  box-shadow:inset 0 1px 0 #d0ad7814,0 8px 22px #0004!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry :is(.m-content-disclosure,#ministry-corrections-disclosure)>summary {
  background:var(--editor-surface)!important;border-radius:9px!important;box-shadow:inset 0 1px 0 #d0ad7814,inset 0 -1px 0 #0008!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry :is(.m-content-disclosure,#ministry-corrections-disclosure)>summary:hover {background:linear-gradient(110deg,#d0ad781a,transparent 55%),linear-gradient(160deg,#352114c7,#160f0bd9)!important;}
 /* Existing resource, book and media covers remain useful content, not decor. */
 html body[data-ar-page="ministry"] #main-content-ministry#main-content-ministry :is(.m-teach-card,.m-book,.ar-resource-collection) {
  border-radius:8px!important;border-color:#9072534d!important;background:linear-gradient(155deg,#291d124d,#0c09075c)!important;box-shadow:inset 0 1px 0 #e8c8970e!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #photo-art .ar-wrap {
  border:0!important;border-top:1px solid var(--editor-line)!important;border-bottom:1px solid var(--editor-line)!important;
  border-radius:0!important;box-shadow:none!important;background:linear-gradient(100deg,#21170f52,transparent)!important;
  padding:32px clamp(16px,3vw,30px)!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #photo-art .m-archive-preview-head {background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
 html body[data-ar-page="ministry"] #main-content-ministry :is(#ministry-explorer-card,#ministry-fact-widget) {
  background:var(--editor-feature)!important;border-color:#90725370!important;border-radius:12px!important;box-shadow:var(--editor-shadow)!important;
 }
 html body[data-ar-page="ministry"] #main-content-ministry #ministry-fun-facts {padding-top:12px!important;}
 /* Mobile keeps logical source order, whole artwork and generous tap areas. */
 @media(max-width:980px) {
  html body[data-ar-page="home"] #main-content-home .social-studio-row {grid-template-columns:minmax(0,1fr)!important;}
  html body[data-ar-page="home"] #main-content-home .offer-card+.offer-card {border-left:0!important;border-top:1px solid var(--editor-line)!important;}
  html body[data-ar-page="home"] #main-content-home .studio-card-combined {border-left:0!important;border-top:1px solid var(--editor-line)!important;}
 }
 @media(max-width:700px) {
  html body[data-ar-page="home"] #main-content-home :is(.offer-grid,.qr-points) {grid-template-columns:minmax(0,1fr)!important;}
  html body[data-ar-page="home"] #main-content-home .offer-card {padding:24px 12px!important;}
  html body[data-ar-page="home"] #main-content-home .offer-card+.offer-card {border-left:0!important;border-top:1px solid var(--editor-line)!important;}
  html body[data-ar-page="home"] #main-content-home :is(.social-card-combined,.studio-card-combined) {padding:28px 20px!important;}
  html body[data-ar-page="home"] #main-content-home .qr-point {padding:20px 6px 12px!important;}
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-cards {grid-template-columns:minmax(0,1fr)!important;gap:30px!important;}
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card {display:grid!important;grid-template-columns:minmax(104px,.7fr) minmax(0,1.3fr)!important;gap:20px!important;align-items:start!important;}
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card-copy {padding:0!important;}
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card-copy h3 {padding-top:0!important;border-top:0!important;}
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-work-social {flex-direction:column!important;align-items:flex-start!important;gap:18px!important;}
 }
 @media(max-width:430px) {
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card {grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card>img {width:min(100%,240px)!important;}
 }
 /* Decorative material never suppresses existing accessibility preferences. */
 html body:is([data-ar-page="home"],[data-ar-page="ministry"])[data-reading-contrast="high"] :is(#main-content-home#main-content-home,#main-content-ministry#main-content-ministry) {
  --editor-surface:#000;--editor-feature:#000;--editor-line:#b7a78a;
 }
 html body:is([data-ar-page="home"],[data-ar-page="ministry"])[data-reading-contrast="high"] :is(#main-content-home#main-content-home,#main-content-ministry#main-content-ministry) :is(.offer-grid,.social-studio-row,.qr-point,.qr-explorer-callout83,.about-category,.about-sub,.ar-ministry-content-runner,.m-hero-introduction,.m-content-disclosure,.m-work-social,.m-teach-card,.m-book,.ar-resource-collection,#photo-art .ar-wrap) {background:#000!important;box-shadow:none!important;}
 @media(forced-colors:active) {
  html body:is([data-ar-page="home"],[data-ar-page="ministry"]) :is(#main-content-home#main-content-home,#main-content-ministry#main-content-ministry) {--editor-line:CanvasText;--editor-surface:Canvas;--editor-feature:Canvas;}
  html body:is([data-ar-page="home"],[data-ar-page="ministry"]) :is(#main-content-home#main-content-home,#main-content-ministry#main-content-ministry) :is(.offer-grid,.social-studio-row,.qr-point,.qr-explorer-callout83,.about-category,.about-sub,.ar-ministry-content-runner,.m-hero-introduction,.m-content-disclosure,.m-work-social,.m-teach-card,.m-book,.ar-resource-collection,.contact-banner-link,.home-games-card,#ministry-explorer-card,#ministry-fact-widget,#photo-art .ar-wrap) {background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important;}
  html body:is([data-ar-page="home"],[data-ar-page="ministry"]) :is(#main-content-home#main-content-home,#main-content-ministry#main-content-ministry) :is(.action-btn,.music-bridge-btn,.home-games-cta,.ai-avdi90-btn,.m-btn,.mf-gold,.mp-explorer-button,.ar-revision-button,.m-content-toggle,.mp-corrections-toggle,.m-avacyn-toggle):not([aria-disabled="true"]):not([data-download-coming]) {background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;box-shadow:none!important;}
  html body[data-ar-page="ministry"] #main-content-ministry #ministry-work .m-card>img {box-shadow:none!important;border-color:CanvasText!important;}
 }
 @media(prefers-reduced-motion:reduce) {
  html body:is([data-ar-page="home"],[data-ar-page="ministry"]) :is(#main-content-home#main-content-home,#main-content-ministry#main-content-ministry) :is(a,button,summary) {transition:none!important;}
 }
}
