/* Clean-room behavior layer for the recovered Great Lotus presentation. */
#offline-hero-fallback-shell {
  overflow: hidden;
  isolation: isolate;
}

#offline-hero-fallback-shell > img {
  transform: scale(1.035);
  animation: faithful-hero-settle 9s cubic-bezier(.2,.7,.2,1) forwards;
}

.offline-hero-copy > * {
  opacity: 0;
  transform: translateY(24px);
  animation: faithful-copy-in .72s cubic-bezier(.2,.8,.2,1) forwards;
}

.offline-hero-copy > :nth-child(1) { animation-delay: .15s; }
.offline-hero-copy > :nth-child(2) { animation-delay: .32s; }
.offline-hero-copy > :nth-child(3) { animation-delay: .48s; }

.wpb_animate_when_almost_visible {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.wpb_animate_when_almost_visible.faithful-visible {
  opacity: 1;
  transform: none;
}

.menu_mobile.faithful-open,
.menu_mobile_overlay.faithful-open { display: block !important; }

.menu_mobile.faithful-open { height: 100%; }

.faithful-source-gap {
  display: grid;
  place-items: center;
  width: min(100%, 1143px);
  min-height: clamp(220px, 50vw, 620px);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #d8c8b3;
  background:
    linear-gradient(135deg, rgba(168, 104, 37, .09), rgba(255, 255, 255, .76)),
    #f3eee7;
  color: #66594c;
  text-align: center;
}

.faithful-source-gap span {
  max-width: 34rem;
  font: 600 16px/1.5 Quicksand, sans-serif;
}

.faithful-editor {
  width: min(1180px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #3e3734;
  background: #fff;
  box-shadow: 0 28px 90px rgba(24,18,15,.28);
}

.faithful-editor::backdrop { background: rgba(18,14,12,.56); backdrop-filter: blur(5px); }
.faithful-editor form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.faithful-editor header,
.faithful-editor footer { display: flex; align-items: center; gap: 12px; padding: 20px 24px; }
.faithful-editor header { border-bottom: 1px solid #e4ded9; }
.faithful-editor footer { border-top: 1px solid #e4ded9; }
.faithful-editor header div { flex: 1; }
.faithful-editor h2 { margin: 0; font: 600 28px/1.2 Quicksand, sans-serif; }
.faithful-editor h3 { margin: 0; font: 600 19px/1.25 Quicksand, sans-serif; }
.faithful-editor h2,
.faithful-editor h3,
.faithful-editor label { color: inherit; }
.faithful-editor header p,
.faithful-editor footer span { margin: 0; color: #756d68; }
.faithful-editor button { cursor: pointer; }
.faithful-editor .faithful-close { border: 0; background: transparent; font-size: 28px; }
.faithful-editor-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); min-height: 0; }
.faithful-editor-layout > aside { padding: 20px; overflow: auto; background: #f7f4f1; border-right: 1px solid #e4ded9; }
.faithful-editor-layout > aside nav { display: grid; gap: 4px; margin-top: 14px; }
.faithful-editor-layout > aside nav a { display: block; padding: 9px 10px; border-radius: 7px; color: #5b514b; text-decoration: none; line-height: 1.3; }
.faithful-editor-layout > aside nav a:hover,
.faithful-editor-layout > aside nav a.current { color: #8f0000; background: #fff; box-shadow: inset 0 0 0 1px #e0d6cf; }
.faithful-editor-workspace { min-width: 0; padding: 24px; overflow: auto; }
.faithful-editor-meta,
.faithful-editor .faithful-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .25fr) minmax(130px, .25fr); gap: 14px; }
.faithful-editor .faithful-fields { grid-template-columns: 1fr 1fr; padding: 0; }
.faithful-editor-meta .wide { grid-column: 1 / -1; }
.faithful-home-fields,
.faithful-body-editor,
.faithful-revisions { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e8e1dc; }
.faithful-home-fields h3 { margin-bottom: 14px; }
.faithful-body-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.faithful-body-heading p { margin: 4px 0 0; color: #756d68; }
.faithful-body-heading span { flex: none; color: #756d68; font-size: 13px; }
.faithful-editor label { display: grid; gap: 7px; color: #625a55; font-weight: 600; }
.faithful-editor label.wide { grid-column: 1 / -1; }
.faithful-editor input,
.faithful-editor textarea,
.faithful-editor select { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cbc2bb; border-radius: 7px; color: inherit; background: #fff; font: inherit; }
.faithful-editor select { display: block !important; min-height: 46px; appearance: auto; visibility: visible !important; opacity: 1 !important; }
.faithful-editor textarea { min-height: 120px; resize: vertical; }
.faithful-search input { margin-top: 2px; }
.faithful-formatbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid #cbc2bb; border-bottom: 0; border-radius: 8px 8px 0 0; background: #f7f4f1; }
.faithful-formatbar button { padding: 7px 9px; border: 1px solid transparent; border-radius: 5px; color: #544a45; background: transparent; }
.faithful-formatbar button:hover { border-color: #d3c6bd; background: #fff; }
.faithful-rich-editor { min-height: 280px; padding: 20px; border: 1px solid #cbc2bb; border-radius: 0 0 8px 8px; outline: 0; color: #2f2926; background: #fff; font: 17px/1.65 Georgia, serif; }
.faithful-rich-editor:focus { border-color: #a80000; box-shadow: 0 0 0 3px rgba(168,0,0,.1); }
.faithful-rich-editor h2,
.faithful-rich-editor h3,
.faithful-rich-editor h4 { margin: 1.2em 0 .5em; color: inherit; font-family: Quicksand, sans-serif; line-height: 1.25; text-align: left; }
.faithful-rich-editor h2 { font-size: 28px; }
.faithful-rich-editor h3 { font-size: 22px; }
.faithful-rich-editor h4 { font-size: 18px; }
.faithful-rich-editor p,
.faithful-rich-editor li,
.faithful-rich-editor blockquote { color: inherit; font: inherit; }
.faithful-rich-editor img { max-width: 100%; height: auto; }
.faithful-revisions summary { cursor: pointer; font-weight: 700; }
.faithful-media-library { margin-top: 12px; }
.faithful-media-library summary { cursor: pointer; font-weight: 700; }
.faithful-media-library > p { color: #756d68; }
.faithful-media-library [data-media-list] { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.faithful-media-library [data-media-list] > button { min-height: 92px; padding: 4px; overflow: hidden; border: 1px solid #d8cec7; border-radius: 7px; background: #fff; }
.faithful-media-library [data-media-list] img { display: block; width: 100%; height: 84px; object-fit: cover; }
.faithful-revisions > p { color: #756d68; }
.faithful-revisions [data-revision-list] { display: grid; gap: 7px; }
.faithful-revisions [data-revision-list] > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 6px; background: #f7f4f1; }
.faithful-revisions button { padding: 6px 10px; border: 1px solid #cbbda9; border-radius: 5px; background: #fff; }
.faithful-editor .faithful-save { margin-left: auto; padding: 11px 18px; border: 0; border-radius: 6px; color: white; background: #a80000; }
.faithful-editor .faithful-reset { padding: 10px 16px; border: 1px solid #cbbda9; border-radius: 6px; background: #fff; }
.faithful-editor [data-editor-status][data-tone="success"] { color: #27643b; }
.faithful-editor [data-editor-status][data-tone="attention"] { color: #8c5b00; }
.faithful-editor [data-editor-status][data-tone="error"] { color: #a80000; font-weight: 600; }

@keyframes faithful-hero-settle { to { transform: scale(1); } }
@keyframes faithful-copy-in { to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .faithful-editor { width: 100vw; max-width: none; height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; }
  .faithful-editor header { padding: 16px 20px; }
  .faithful-editor h2 { font-size: 22px; }
  .faithful-editor header p { font-size: 12px; }
  .faithful-editor-layout { grid-template-columns: 1fr; }
  .faithful-editor-layout > aside { max-height: 180px; border-right: 0; border-bottom: 1px solid #e4ded9; }
  .faithful-editor-meta,
  .faithful-editor .faithful-fields { grid-template-columns: 1fr; }
  .faithful-editor label.wide { grid-column: auto; }
  .faithful-editor footer { align-items: stretch; flex-direction: column; }
  .faithful-editor .faithful-save { margin-left: 0; }
}

@media (prefers-color-scheme: dark) {
  .faithful-editor { color: #f3eee9; background: #201d1b; }
  .faithful-editor header { border-color: #423a35; }
  .faithful-editor footer,
  .faithful-home-fields,
  .faithful-body-editor,
  .faithful-revisions { border-color: #423a35; }
  .faithful-editor-layout > aside,
  .faithful-formatbar,
  .faithful-revisions [data-revision-list] > div { color: #e8dfd9; background: #171513; border-color: #423a35; }
  .faithful-editor-layout > aside nav a { color: #d6ccc5; }
  .faithful-editor-layout > aside nav a:hover,
  .faithful-editor-layout > aside nav a.current { color: #ffd2b1; background: #2a2522; box-shadow: inset 0 0 0 1px #554941; }
  .faithful-editor input,
  .faithful-editor textarea,
  .faithful-editor select,
  .faithful-rich-editor,
  .faithful-revisions button,
  .faithful-media-library [data-media-list] > button,
  .faithful-editor .faithful-reset { color: #f3eee9; background: #2a2522; border-color: #5a4f48; }
  .faithful-formatbar button { color: #e8dfd9; }
  .faithful-formatbar button:hover { border-color: #5a4f48; background: #352f2b; }
  .faithful-editor header p,
  .faithful-editor footer span,
  .faithful-body-heading p,
  .faithful-media-library > p,
  .faithful-revisions > p { color: #c8bdb5; }
  .faithful-editor [data-editor-status][data-tone="attention"] { color: #f2b84b; }
  .faithful-editor [data-editor-status][data-tone="success"] { color: #7bd397; }
  .faithful-editor [data-editor-status][data-tone="error"] { color: #ff8f88; }
}

@media (prefers-reduced-motion: reduce) {
  #offline-hero-fallback-shell > img,
  .offline-hero-copy > *,
  .wpb_animate_when_almost_visible { animation: none !important; transition: none !important; opacity: 1; transform: none; }
}
