/*
 * animeunity-misc.css — owned by the misc area. Loaded on every page after
 * animeunity-bridge.css (and, as a static file, by the standalone pages:
 * errors/partials/standalone → 500, 503, maintenance, coming-soon), so every
 * rule is scoped to its page. Theme tokens only (tmp/visual/GUIDE.md §1),
 * so both themes come free. The Calendario lives in animeunity-schedule.css.
 *
 *   1. Error block extras (errors/partials/error-page, coming-soon)
 *   2. Static pages (frontend/page): title strip + body panel
 *   3. Contact (frontend/contact)
 *   4. Reset password (auth/reset-password)
 *   5. Guides (frontend/guides/*)
 */

/* ==========================================================================
   1. Error block — animeunity's `.error-wrapper > h1.letter-spacing` is all
      app.css; the CMS adds an optional sub-line and button (401, 419, 5xx,
      maintenance) and the coming-soon countdown.
   ========================================================================== */
.error-wrapper .au-error-sub { margin: 15px 0 0; font-size: 14px; font-weight: 600; color: var(--color-text); }
.error-wrapper .au-error-btn { margin-top: 20px; }
.error-wrapper.au-hold .au-countdown { max-width: 480px; margin-left: auto; margin-right: auto; }
.error-wrapper.au-hold .au-countdown strong { font-size: 25px; line-height: 1.2; color: var(--color-text-0); }
.error-wrapper.au-hold .au-countdown span { font-size: 12px; color: var(--color-text); }
/* Standalone shell (no header links): the footer socials as animeunity's footer icons. */
.au-standalone #footer a i { font-size: 30px; padding: 10px; color: #d3d3d3; }
.au-standalone #footer a:hover i { color: #fff; }

/* ==========================================================================
   2. Static pages — `div#au-page.container`: Top Anime's flat title strip
      (`#top .link-wrap` + `#top h1`, re-declared) and its `.table-wrap`
      panel for the editor's HTML (`.au-page-body`).
   ========================================================================== */
#au-page .au-page-head { background: var(--color-background-1); padding: 15px 30px; }
#au-page .au-page-head h1 { margin-top: 5px; margin-bottom: 0; font-size: 25px; font-weight: 700; line-height: 1; color: var(--color-text-0); }
#au-page .au-page-count { float: right; margin-top: 5px; font-size: 12px; line-height: 25px; color: var(--color-text); }
#au-page .au-page-back { display: block; margin-bottom: 8px; font-size: 12px; color: #3db4f2; }
#au-page .au-page-back:hover { color: var(--color-text-0); text-decoration: none; }
@media (max-width: 768px) {
    #au-page .au-page-head { padding: 15px; }
}

#au-page .au-page-body,
#au-page .au-page-panel { background: var(--color-background-1); padding: 30px; color: var(--color-text); font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 768px) {
    #au-page .au-page-body,
    #au-page .au-page-panel { padding: 20px 15px; }
}
#au-page .au-page-body > :first-child { margin-top: 0; }
#au-page .au-page-body > :last-child { margin-bottom: 0; }
#au-page .au-page-body h1,
#au-page .au-page-body h2,
#au-page .au-page-body h3,
#au-page .au-page-body h4 { color: var(--color-text-0); font-weight: 700; line-height: 1.25; margin: 25px 0 10px; }
#au-page .au-page-body h1 { font-size: 25px; }
#au-page .au-page-body h2 { font-size: 20px; }
#au-page .au-page-body h3 { font-size: 17px; }
#au-page .au-page-body h4 { font-size: 15px; }
#au-page .au-page-body p { margin: 0 0 14px; }
#au-page .au-page-body strong,
#au-page .au-page-body b { color: var(--color-text-0); }
#au-page .au-page-body a { color: #3db4f2; }
#au-page .au-page-body a:hover { text-decoration: underline; }
#au-page .au-page-body ul,
#au-page .au-page-body ol { margin: 0 0 14px; padding-left: 22px; }
#au-page .au-page-body li { margin-bottom: 5px; }
#au-page .au-page-body li::marker { color: #3db4f2; }
#au-page .au-page-body blockquote { margin: 0 0 14px; padding: 10px 15px; border-left: 3px solid #3db4f2; background: var(--color-background); border-radius: 0 3px 3px 0; color: var(--color-text-plot); }
#au-page .au-page-body hr { border-top: 1px solid var(--color-divider); margin: 20px 0; }
#au-page .au-page-body img { max-width: 100%; height: auto; border-radius: 3px; }
#au-page .au-page-body code { padding: 1px 5px; border-radius: 3px; background: var(--color-background); color: var(--color-text-0); font-size: 12px; }
/* Tables as Top Anime's (`#top table`): blue head, striped rows. */
#au-page .au-page-body table { width: 100%; margin: 0 0 14px; border-collapse: collapse; color: var(--color-text); }
#au-page .au-page-body thead td,
#au-page .au-page-body thead th,
#au-page .au-page-body th { background: #007bff; color: #fff; font-size: 14px; padding: 4px 10px 2px; border-right: 1px solid #fff; text-align: left; }
#au-page .au-page-body thead :is(td, th):last-child { border-right: 0; }
#au-page .au-page-body td { padding: 10.5px; border-bottom: 1px solid hsla(0, 0%, 100%, .1); vertical-align: top; }
#au-page .au-page-body tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, .05); }

/* ==========================================================================
   3. Contact — the auth pages' centred wrapper (`#login .wrapper`, re-declared
      as `.au-contact`, 25px margins instead of 125) with animeunity's auth
      form (white Bootstrap inputs in both themes, as animeunity's).
   ========================================================================== */
#au-page .au-contact { background: var(--color-background-1); padding: 50px; border-radius: 6px; margin: 25px 0; }
@media (max-width: 500px) {
    #au-page .au-contact { padding: 50px 25px; }
}
#au-page .au-contact-intro { margin-bottom: 25px; color: var(--color-text); }
#au-page .au-contact textarea.form-control { min-height: 120px; resize: vertical; }
#au-page .au-contact .form-check-label { color: var(--color-text); font-size: 13px; text-align: left; }
#au-page .au-contact .form-check { text-align: left; }
#au-page .au-contact .g-recaptcha,
#au-page .au-contact .cf-turnstile { margin: 0 auto; display: table; }
#au-page .au-contact .invalid-feedback { text-align: left; }
#au-page .au-contact-links { margin-top: 15px; color: var(--color-text); }
#au-page .au-contact-links a { color: #007bff; }
#au-page .au-contact-socials { margin-top: 10px; }
#au-page .au-contact-socials a i { font-size: 30px; padding: 10px; color: var(--color-text); }
#au-page .au-contact-socials a:hover i { color: #3db4f2; }

/* ==========================================================================
   4. Reset password — app.css's `#login .wrapper` / `.title` / Bootstrap form;
      only the busy state is the CMS's.
   ========================================================================== */
#reset-form.au-busy { opacity: .65; pointer-events: none; }
#login #reset-form span { color: var(--color-text-0); }

/* ==========================================================================
   5. Guides — the list rows (sidebar-row shape on the panel), the search
      bar (archivio's `.search-bar`, inset on --color-background), the
      article blocks (GuideDocument's gd-* markup), numbered steps.
   ========================================================================== */
.au-guides .au-guide-search { margin-bottom: 20px; border-radius: 5px; overflow: hidden; }
.au-guides .au-guide-search .input-group-text { background: var(--color-background); border: 0; border-radius: 0; color: var(--color-text); font-size: 12px; padding-left: 14px; }
.au-guides .au-guide-search .form-control { background: var(--color-background); border: 0; border-radius: 0; color: var(--color-text-0); font-size: 15px; height: 40px; box-shadow: none; }
.au-guides .au-guide-search .form-control::placeholder { color: var(--color-text); opacity: .8; }
.au-guides .au-guide-empty[hidden],
.au-guides [data-au-guide-row][hidden] { display: none; }
.au-guides .au-guide-empty { padding: 0 0 15px; }
.au-guides .au-guide-empty a { color: #3db4f2; }

.au-guide-list { display: block; }
.au-guide-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; }
.au-guide-row:first-child { padding-top: 0; }
.au-guide-row:last-child { border-bottom: 0; padding-bottom: 0; }
.au-guide-row:hover { color: var(--color-text); text-decoration: none; }
.au-guide-row:hover .au-guide-title { color: #3db4f2; }
.au-guide-thumb { flex: 0 0 58px; width: 58px; height: 85px; border-radius: 3px; overflow: hidden; background: var(--color-background); display: flex; align-items: center; justify-content: center; }
.au-guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.au-guide-thumb i { font-size: 22px; color: #3db4f2; }
.au-guide-text { min-width: 0; line-height: 1.3; }
.au-guide-cat { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #3db4f2; }
.au-guide-title { display: block; margin: 3px 0 5px; font-size: 14px; font-weight: 900; color: var(--color-text-0); transition: color .2s; }
.au-guide-desc { font-size: 12px; color: var(--color-text-plot); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.au-guide-others .au-guide-row:first-child { padding-top: 0; }
/* ≤500px the section box's header padding (12px) is narrower than its
   `.row`'s −15px margins: clip the 3px instead of scrolling the page. */
.au-guide-others { overflow: hidden; }

.au-guide-article .au-guide-meta { margin-bottom: 12px; font-size: 12px; color: var(--color-text); }
.au-guide-article .au-guide-meta .au-guide-cat { display: inline; font-size: 12px; }
.au-guide-article .au-guide-intro { margin: 0 0 20px; font-size: 15px; line-height: 24px; color: var(--color-text-0); }
.au-guide-article .au-guide-section { border-top: 1px solid var(--color-divider); padding-top: 4px; margin-bottom: 10px; }
.au-guide-article .au-guide-section > h2 { margin: 18px 0 12px; font-size: 20px; font-weight: 700; color: var(--color-text-0); }
.au-guide-article .gd-body { font-size: 14px; line-height: 22px; color: var(--color-text); }
.au-guide-article .gd-body > :last-child { margin-bottom: 0; }
.au-guide-article .gd-p { margin: 0 0 12px; }
.au-guide-article .gd-body strong { color: var(--color-text-0); }
.au-guide-article .gd-body a { color: #3db4f2; }
.au-guide-article .gd-list { margin: 0 0 12px; padding: 0; list-style: none; }
.au-guide-article .gd-li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.au-guide-article .gd-li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #3db4f2; }
.au-guide-article .gd-note { margin: 0 0 12px; padding: 10px 15px; border-left: 3px solid #3db4f2; border-radius: 0 3px 3px 0; background: var(--color-background); font-size: 12px; line-height: 18px; color: var(--color-text); }
.au-guide-article .gd-shot { margin: 0 0 12px; }
.au-guide-article .gd-shot img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.au-guide-article .gd-caption { margin-top: 5px; font-size: 11px; color: var(--color-text); text-align: center; }
.au-guide-article .gd-h3 { margin: 15px 0 8px; font-size: 15px; font-weight: 700; color: var(--color-text-0); }
.au-guide-article .au-guide-lead { margin-bottom: 12px; }
.au-guide-article .au-guide-steps { margin: 0; padding: 0; list-style: none; }
.au-guide-article .au-guide-step { position: relative; padding: 0 0 15px 45px; }
.au-guide-article .au-guide-step:last-child { padding-bottom: 0; }
.au-guide-article .au-guide-step-num { position: absolute; left: 0; top: 0; width: 30px; height: 30px; line-height: 31px; border-radius: 50%; text-align: center; background: #007bff; color: #fff; font-size: 13px; font-weight: 700; }
.au-guide-article .au-guide-step h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 30px; color: var(--color-text-0); }
.au-guide-article .gd-path { margin: 0 0 6px; font-size: 10px; line-height: 20px; text-transform: uppercase; font-weight: 700; color: var(--color-text); }
.au-guide-article .gd-path-sep { color: #3db4f2; padding: 0 6px; }
.au-guide-article .au-guide-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.au-guide-article .au-btn-outline { background: transparent; color: #007bff; border: 1px solid #007bff; }
.au-guide-article .au-btn-outline:hover { background: #007bff; color: #fff; }
