/* WordPress additions to the original HAYAQR styles: popovers for the header, form messages,
   and the layout for guides written later in the WordPress editor. */
:root { --hq-ink: #0f172a; --hq-muted: #475569; --hq-line: #e2e8f0; --hq-card: #ffffff; --hq-accent: #1d4ed8; }
.dark { --hq-ink: #f1f5f9; --hq-muted: #94a3b8; --hq-line: #1e293b; --hq-card: #0f172a; --hq-accent: #60a5fa; }

.hq-pop { position: absolute; z-index: 200; min-width: 220px; max-width: calc(100vw - 16px); background: var(--hq-card); color: var(--hq-ink); border: 1px solid var(--hq-line); border-radius: 16px; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); padding: 8px; }
.hq-pop[hidden] { display: none; }
.hq-pop a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; }
.hq-pop a:hover, .hq-pop a:focus-visible { background: rgba(29, 78, 216, .08); color: var(--hq-accent); }
.hq-mobile { width: 300px; max-height: 75vh; overflow: auto; }
.hq-msearch input, .hq-lang select { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--hq-line); border-radius: 10px; background: transparent; color: inherit; margin-bottom: 6px; }
.hq-lang { padding: 14px; width: 260px; }
.hq-lang p { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.hq-lang .hq-small { font-weight: 400; font-size: 12px; color: var(--hq-muted); margin-top: 8px; }
.goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.goog-te-gadget .goog-te-combo { font-size: 15px !important; color: var(--hq-ink); margin: 0 !important; width: 100%; padding: 8px; border-radius: 10px; border: 1px solid var(--hq-line); background: var(--hq-card); }

.hq-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 150; background: var(--hq-card); border: 1px solid var(--hq-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .14); padding: 6px; text-align: left; }
.hq-suggest[hidden] { display: none; }
.hq-suggest a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--hq-ink); text-decoration: none; }
.hq-suggest a:hover { background: rgba(29, 78, 216, .08); }

.hq-note { margin: 10px 0 0; font-size: 13px; font-weight: 600; }
.hq-note.hq-ok { color: #15803d; }
.hq-note.hq-err { color: #b91c1c; }

/* cookie banner (same look as the original tool pages) */
#hq-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; max-width: 720px; margin: 0 auto; background: var(--hq-card); color: var(--hq-ink); border: 1px solid #cbd5e1; border-radius: 16px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
#hq-consent[hidden] { display: none; }
#hq-consent p { margin: 0; flex: 1 1 280px; color: var(--hq-muted); line-height: 1.5; }
#hq-consent a { color: var(--hq-accent); text-decoration: underline; }
.hq-cbtn { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 12px; border: 0; background: #1d4ed8; color: #fff; cursor: pointer; }
.hq-cghost { background: transparent; color: var(--hq-ink); border: 1px solid #cbd5e1; }
[hidden] { display: none !important; }

/* home page generator */
.hqg { padding: 56px 16px 64px; background: #FAF8F5; position: relative; }
.dark .hqg { background: #070D18; }
.hqg-inner { max-width: 1180px; margin: 0 auto; }
.hqg-intro { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.hqg-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 6px 12px; }
.hqg-intro h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--hq-ink); margin: 14px 0 12px; }
.hqg-intro p { color: var(--hq-muted); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.hqg-modes { display: inline-flex; gap: 4px; padding: 5px; background: #f1ece4; border: 1px solid #e8dfd3; border-radius: 16px; }
.dark .hqg-modes { background: #0f172a; border-color: #1e293b; }
.hqg-modes button { font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 12px; padding: 10px 18px; background: transparent; color: var(--hq-muted); cursor: pointer; }
.hqg-modes button[aria-selected="true"] { background: #1d4ed8; color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 216, .3); }
.hqg-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); background: #fff; border: 1px solid #ece4d9; border-radius: 28px; box-shadow: 0 20px 50px rgba(15, 23, 42, .06); overflow: hidden; }
.dark .hqg-card { background: #0b1220; border-color: #1e293b; }
.hqg-card[hidden] { display: none; }
.hqg-left { padding: 22px; border-right: 1px solid #f1ebe2; min-width: 0; }
.dark .hqg-left { border-color: #1e293b; }
.hqg-right { padding: 22px; background: #fffdfa; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.dark .hqg-right { background: #070d18; }
.hqg-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.hqg-steps button { flex: 1 1 150px; font: inherit; font-size: 13px; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 1px solid #ece4d9; background: #faf7f2; color: var(--hq-muted); cursor: pointer; }
.dark .hqg-steps button { background: #0f172a; border-color: #1e293b; }
.hqg-steps button[aria-selected="true"] { background: #fff; color: #1d4ed8; border-color: #93c5fd; box-shadow: 0 4px 12px rgba(29, 78, 216, .12); }
.dark .hqg-steps button[aria-selected="true"] { background: #1e293b; color: #93c5fd; }
.hqg-panel[hidden] { display: none; }
.hqg-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hqg-cats button { font: inherit; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: transparent; color: var(--hq-muted); cursor: pointer; }
.hqg-cats button[aria-pressed="true"] { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.hqg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding: 2px; }
.hqg-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; border-radius: 16px; border: 1.5px solid #ede6dc; background: #fdfbf8; color: var(--hq-ink); cursor: pointer; font: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.dark .hqg-tile { background: #0f172a; border-color: #1e293b; }
.hqg-tile:hover { border-color: #93c5fd; transform: translateY(-1px); }
.hqg-tile.is-on { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.dark .hqg-tile.is-on { background: #1c1917; }
.hqg-ico svg { width: 40px; height: 40px; display: block; }
.hqg-tile strong { font-size: 12.5px; line-height: 1.2; }
.hqg-tile small { font-size: 11px; color: var(--hq-muted); line-height: 1.25; }
.hqg-fields { margin-top: 16px; display: grid; gap: 6px; }
.hqg-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hq-muted); margin: 0 0 4px; }
.hqg-fields label, .hqg-row label, .hqg-logo label { font-size: 13px; font-weight: 700; color: var(--hq-ink); }
.hqg-fields input, .hqg-fields textarea, .hqg-fields select, .hqg-row select, .hqg-logo select { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #e2d9cc; border-radius: 12px; background: #fff; color: #0f172a; margin-bottom: 6px; }
.hqg-fields input:focus, .hqg-fields textarea:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }
.hqg-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; }
.hqg-row label { display: grid; gap: 6px; }
.hqg-row input[type=color] { width: 100%; height: 44px; border: 1px solid #e2d9cc; border-radius: 12px; padding: 4px; background: #fff; cursor: pointer; }
.hqg-logo { border: 1px solid #ece4d9; border-radius: 16px; padding: 12px 14px; margin: 14px 0 0; display: grid; gap: 8px; }
.hqg-logo legend { font-size: 13px; font-weight: 800; padding: 0 6px; color: var(--hq-ink); }
.hqg-radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600 !important; }
.hqg-hint { font-size: 12.5px; color: var(--hq-muted); line-height: 1.5; margin: 10px 0 0; }
.hqg-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.hqg-presets button { display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid #ece4d9; background: #fdfbf8; font: inherit; font-size: 13px; font-weight: 700; color: var(--hq-ink); cursor: pointer; }
.dark .hqg-presets button { background: #0f172a; border-color: #1e293b; }
.hqg-presets button:hover { border-color: #93c5fd; }
.hqg-presets span { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; border: 1px solid #e2e8f0; }
.hqg-presets i { width: 26px; height: 26px; border-radius: 6px; display: block; }
.hqg-presets small { font-size: 11px; font-weight: 500; color: var(--hq-muted); }
.hqg-preview-head { display: flex; justify-content: space-between; align-items: center; }
.hqg-live { font-size: 12px; font-weight: 700; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 999px; padding: 4px 10px; }
.hqg-reset { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--hq-muted); cursor: pointer; }
.hqg-canvas { background: #fff; border: 1px solid #ece4d9; border-radius: 22px; padding: 16px; display: grid; place-items: center; }
.hqg-canvas canvas { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.hqg-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.hqg-btn { flex: 1 1 140px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; padding: 11px 14px; border-radius: 12px; border: 0; background: #1d4ed8; color: #fff !important; cursor: pointer; text-decoration: none; }
.hqg-btn:hover { background: #1e40af; }
.hqg-ghost { background: transparent; color: #1d4ed8 !important; border: 1px solid #bfdbfe; }
.hqg-ghost:hover { background: #eff6ff; }
.hqg-private { font-size: 12px; color: var(--hq-muted); text-align: center; margin: 0; }
.hq-status { font-size: 13px; font-weight: 600; border-radius: 12px; padding: 9px 12px; margin: 0; }
.hq-status.hq-idle { background: #f8fafc; color: #475569; }
.hq-status.hq-ok { background: #f0fdf4; color: #15803d; }
.hq-status.hq-warn { background: #fffbeb; color: #b45309; }
.dark .hq-status.hq-idle { background: #0f172a; color: #94a3b8; }
.hqg-scan h3 { font-size: 22px; font-weight: 800; color: var(--hq-ink); margin: 0 0 8px; }
.hqg-scan p { color: var(--hq-muted); font-size: 14px; line-height: 1.6; }
.hqg-result { margin: 14px 0; padding: 14px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 16px; }
.hqg-text { word-break: break-all; color: #0f172a !important; font-weight: 600; }
.hqg-video { position: relative; aspect-ratio: 1; background: #0f172a; border-radius: 22px; overflow: hidden; display: grid; place-items: center; }
.hqg-video video { width: 100%; height: 100%; object-fit: cover; }
.hqg-video span { position: absolute; color: #64748b; font-size: 13px; pointer-events: none; }
@media (max-width: 860px) {
  .hqg-card { grid-template-columns: 1fr; }
  .hqg-left { border-right: 0; border-bottom: 1px solid #f1ebe2; }
  .hqg-row { grid-template-columns: 1fr 1fr; }
  .hqg-row label:last-child { grid-column: 1 / -1; }
}

/* guides written in the WordPress editor */
.hq-article { max-width: 46rem; margin: 0 auto; }
.hq-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--hq-muted); margin-bottom: 24px; }
.hq-crumb a { color: inherit; text-decoration: none; } .hq-crumb a:hover { color: var(--hq-accent); }
.hq-article-head { border-bottom: 1px solid var(--hq-line); padding-bottom: 28px; margin-bottom: 28px; }
.hq-article-head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--hq-ink); margin: 0 0 12px; }
.hq-meta { color: var(--hq-muted); font-size: 14px; margin: 0; }
.hq-cover img { width: 100%; height: auto; border-radius: 24px; margin-bottom: 28px; }
.hq-prose { font-size: 17px; line-height: 1.8; color: var(--hq-ink); }
.hq-prose > * + * { margin-top: 1.1em; }
.hq-prose h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; margin-top: 2em; line-height: 1.25; }
.hq-prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.6em; }
.hq-prose a { color: var(--hq-accent); text-decoration: underline; text-underline-offset: 3px; }
.hq-prose ul, .hq-prose ol { padding-left: 1.4em; } .hq-prose ul { list-style: disc; } .hq-prose ol { list-style: decimal; }
.hq-prose li + li { margin-top: .4em; }
.hq-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.hq-prose blockquote { border-left: 4px solid var(--hq-accent); padding: 4px 0 4px 18px; color: var(--hq-muted); font-style: italic; }
.hq-prose table { width: 100%; border-collapse: collapse; font-size: 15px; } .hq-prose th, .hq-prose td { border: 1px solid var(--hq-line); padding: 8px 10px; text-align: left; }
.hq-prose figcaption { font-size: 13px; color: var(--hq-muted); text-align: center; margin-top: 6px; }
.hq-404 { padding: 80px 16px; text-align: center; }
.hq-404 h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; color: var(--hq-ink); }
.hq-404 p { color: var(--hq-muted); margin-bottom: 18px; }
.hq-btn-link { display: inline-block; margin: 4px; padding: 12px 20px; border-radius: 12px; background: var(--hq-accent); color: #fff !important; font-weight: 700; text-decoration: none; }
.hq-ghost-link { background: transparent; color: var(--hq-accent) !important; border: 1px solid var(--hq-line); }
