/* Darja Rihla Learn: only the host element, the notices and the page title on the app page.
   The app's own styles live in assets/app/drl-app.css inside its shadow root.
   Selectors start with body.drl-learn-page (set by the plugin on that page only) so the theme
   is not affected anywhere else. */
/* 0.4.1: full width. The theme's content width (constrained layout) is lifted for the app host
   only, so on a laptop the word list and statistics fit beside the practice area. */
body.drl-learn-page .drl-host { display: block; width: 100%; max-width: min(100%, 1440px) !important; margin: 0 auto; scroll-margin-top: 96px; }
/* The theme sets the full-width group to width 100% of an already padded parent, which pushes a wide
   app off-centre; on this page only, the group that holds the app may use the full width. */
body.drl-learn-page main .wp-block-group.alignfull:has(> .wp-block-post-content .drl-host),
body.drl-learn-page main .wp-block-group.alignfull:has(> .drl-host) { width: auto !important; max-width: none !important; }
/* Focus is shown inside the app on the focused control itself; the host never gets a theme focus ring. */
body.drl-learn-page .drl-host:focus, body.drl-learn-page .drl-host:focus-visible, body.drl-learn-page .drl-host:focus-within { outline: none !important; box-shadow: none !important; }
body.drl-learn-page .drl-host .drl-loading { padding: 24px; text-align: center; }
/* The app shows its own title; the theme's page title would be a second h1 above it. */
body.drl-learn-page .wp-block-post-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* On phones the app uses the full screen width: the theme's page padding is dropped on this page only. */
@media (max-width: 640px) {
  body.drl-learn-page main.wp-block-group,
  body.drl-learn-page main .has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }
  body.drl-learn-page main .alignfull,
  body.drl-learn-page .wp-block-post-content { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  body.drl-learn-page .drl-host { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
}
.drl-notice { max-width: 640px; margin: 24px auto; padding: 18px 20px; border-radius: 14px; border-left: 4px solid #2b5ca8; background: #f4f1ea; color: #0b1620; }
.drl-notice .drl-notice-title { font-weight: 800; margin: 0 0 6px; }
.drl-notice p { margin: 0 0 8px; }
.drl-notice .drl-notice-link { display: inline-block; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: #1d3a5f; color: #ffffff; font-weight: 800; text-decoration: none; }
.drl-notice .drl-notice-link:focus-visible { outline: 3px solid #2b5ca8; outline-offset: 3px; }
