/* Unico Blog Web Apps — opt-in dedicated full-wide page layout, v1.2.52.
   Only loaded on a fixed page explicitly using the app template.
   Do not style theme header, menu, footer, ads, or affiliate links. */
body.ubwapps-fullwide-page #content.ubwapps-fullwide-content-area {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
}
body.ubwapps-fullwide-page #content .ubwapps-fullwide-inner.wrap {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
body.ubwapps-fullwide-page #content #main.ubwapps-fullwide-main {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  float: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.ubwapps-fullwide-page #content .ubwapps-fullwide-article {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  background: transparent;
}
/* Keep a single, real H1 in the HTML and accessibility tree, while removing
   the large STORK19-style visible title space approved in the prototype.
   This is a standard visually-hidden title, never display:none. */
body.ubwapps-fullwide-page #content h1.ubwapps-fullwide-page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* The full standard WordPress content is rendered, including other blocks. */
body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  padding: 12px clamp(9px, 2.25vw, 32px) 0;
  background: transparent;
  box-sizing: border-box;
}
/* Only the approved LinkRingme layout micro-adjustments are applied here.
   LinkRingme's own CSS, markup and processing code remain unchanged. */
body.ubwapps-fullwide-page .ubwapps-fullwide-editor-content .linkringme-app {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
}
body.ubwapps-fullwide-page .ubwapps-fullwide-editor-content .linkringme-app .header {
  padding-top: 6px;
  padding-bottom: 6px;
}
body.ubwapps-fullwide-page .ubwapps-fullwide-editor-content .linkringme-app .hero {
  padding-top: 8px;
  padding-bottom: 7px;
}
body.ubwapps-fullwide-page .ubwapps-fullwide-editor-content .linkringme-app .page {
  width: min(900px, 100% - 8px);
  padding-top: 5px;
}
@media (max-width: 600px) {
  body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content {
    padding: 7px 5px 0;
  }
  body.ubwapps-fullwide-page .ubwapps-fullwide-editor-content .linkringme-app .header {
    padding-top: 6px;
    padding-bottom: 4px;
  }
  body.ubwapps-fullwide-page .ubwapps-fullwide-editor-content .linkringme-app .hero {
    padding-top: 8px;
  }
  body.ubwapps-fullwide-page .ubwapps-fullwide-editor-content .linkringme-app .page {
    width: calc(100% - 8px);
  }
}

/* v1.2.52: Center ONLY the ordinary editor blocks on dedicated app pages.
   v1.2.51's 100%-width .entry-content made ordinary WordPress blocks
   begin at the left edge of the full viewport. These layout rules keep
   standard content/ad/affiliate blocks in a centered readable column,
   without changing any ad/affiliate HTML, URL, events or scripts. */
body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content > :not(.alignfull):not(.alignwide) {
  box-sizing: border-box;
  max-width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}
/* Center the contents of ordinary shortcode and Custom HTML wrappers
   without overriding an editor-selected text alignment. The wrappers are
   centered above; their direct fixed-width boxes get auto side margins. */
body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content > :is(.wp-block-shortcode, .wp-block-html) {
  text-align: center;
}
body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content > :is(.wp-block-shortcode, .wp-block-html) > :is(div, ins, iframe) {
  margin-left: auto;
  margin-right: auto;
}
/* All 12 app root elements keep their original full-width app surface.
   WordPress may wrap the app inside a Shortcode/Group block; :has()
   excludes those wrappers from the ordinary 900px content constraint. */
body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content > :is(
    .linkringme-app,
    #ub-binary-drop-game,
    #ub-reaction-time-test,
    #ub-image-redaction-tool,
    #ub-time-precision-game,
    #ub-cat-reversi,
    #ub-number-take,
    #ub-dice-v6,
    #ub-coin-toss,
    #ub-rapid-tap-v2,
    #ub-roulette-v7,
    #ub-air-hockey-v8
) ,
body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content > :has(:is(
    .linkringme-app,
    #ub-binary-drop-game,
    #ub-reaction-time-test,
    #ub-image-redaction-tool,
    #ub-time-precision-game,
    #ub-cat-reversi,
    #ub-number-take,
    #ub-dice-v6,
    #ub-coin-toss,
    #ub-rapid-tap-v2,
    #ub-roulette-v7,
    #ub-air-hockey-v8
)) {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* The normal text-align of app wrappers must remain unmodified. */
body.ubwapps-fullwide-page #content .ubwapps-fullwide-editor-content.entry-content > :is(.wp-block-shortcode, .wp-block-html):has(:is(
    .linkringme-app,
    #ub-binary-drop-game,
    #ub-reaction-time-test,
    #ub-image-redaction-tool,
    #ub-time-precision-game,
    #ub-cat-reversi,
    #ub-number-take,
    #ub-dice-v6,
    #ub-coin-toss,
    #ub-rapid-tap-v2,
    #ub-roulette-v7,
    #ub-air-hockey-v8
)) {
  text-align: revert;
}

/* v1.2.53: Preserve LinkRingme's approved heading appearance when STORK19
   applies global H2 decorations (background, stripes, padding, pseudo-elements).
   This rule is strictly limited to the LinkRingme hero on opt-in full-wide pages.
   Do not alter normal Gutenberg headings, ads, other apps, or theme components. */
body.ubwapps-fullwide-page #content #inner-content #main .ubwapps-fullwide-editor-content.entry-content .linkringme-app .hero > h2 {
  all: unset !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 4px 0 5px !important;
  padding: 0 !important;
  color: #696969 !important;
  font-family: inherit !important;
  font-size: clamp(12px, 1.7vw, 16px) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-align: center !important;
}
body.ubwapps-fullwide-page #content #inner-content #main .ubwapps-fullwide-editor-content.entry-content .linkringme-app .hero > h2::before,
body.ubwapps-fullwide-page #content #inner-content #main .ubwapps-fullwide-editor-content.entry-content .linkringme-app .hero > h2::after {
  content: none !important;
  display: none !important;
}
