/* Shared look. Each site's colors come from --main and --accent (set in layout.php). */
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.5; color: #222; background: #fafafa; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
         padding: 14px 20px; background: var(--main); color: #fff; }
header a { color: #fff; text-decoration: none; }
.brand { font-size: 26px; font-weight: bold; }
.call { background: var(--accent); padding: 8px 16px; border-radius: 8px; font-weight: bold; }
main { max-width: 760px; margin: 0 auto; padding: 20px; }
h1 { color: var(--main); font-size: 32px; margin: 10px 0 16px; }
.tagline { font-size: 22px; color: #555; margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; padding: 22px; background: #fff; border: 2px solid var(--main);
        border-radius: 12px; color: #222; text-decoration: none; }
.tile:hover { background: #f2f5f9; }
.tile-title { display: block; font-size: 24px; font-weight: bold; color: var(--main); margin-bottom: 6px; }
.tile-text { display: block; font-size: 18px; }
.badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 14px;
         padding: 2px 10px; border-radius: 10px; }
label { display: block; margin: 16px 0 6px; font-weight: bold; }
textarea, select { width: 100%; font-size: 20px; padding: 10px; border: 2px solid #bbb; border-radius: 8px; }
label.file { font-weight: normal; }
label.file input { display: block; margin-top: 6px; font-size: 18px; }
button { margin-top: 18px; font-size: 24px; padding: 14px 34px; background: var(--main); color: #fff;
         border: 0; border-radius: 10px; cursor: pointer; }
button:disabled { opacity: .6; }
.summary { font-size: 20px; }
.warn { font-size: 17px; color: #8a4b00; }
.answer { margin-top: 24px; padding: 18px; background: #fff; border-left: 6px solid var(--accent); border-radius: 6px; }
.error { margin-top: 20px; padding: 14px; background: #fde8e8; color: #900; border-radius: 6px; }
.back { font-size: 18px; color: var(--main); }
footer { max-width: 760px; margin: 30px auto 0; padding: 20px; font-size: 16px; color: #555; border-top: 1px solid #ddd; }
footer .person { font-size: 20px; color: #222; }
footer a { color: var(--main); font-weight: bold; }

/* Step-by-step forms */
.question { font-size: 22px; font-weight: bold; margin: 18px 0 10px; }
button.choice { display: block; width: 100%; margin: 12px 0; padding: 18px; font-size: 22px; text-align: left;
                background: #fff; color: var(--main); border: 2px solid var(--main); border-radius: 12px; }
button.choice:hover { background: #f2f5f9; }
button.send { display: block; margin-top: 16px; }
.change { font-size: 18px; color: var(--main); }
.hint { font-size: 16px; color: #666; }
.chosen { font-size: 20px; color: #2e6b2e; font-weight: bold; }
.answer h2 { margin-top: 0; color: var(--main); }
a.again { display: inline-block; margin-top: 16px; padding: 14px 28px; font-size: 22px; background: var(--main);
          color: #fff; border-radius: 10px; text-decoration: none; }

[hidden] { display: none !important; }

/* Header: language and phone */
.head-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lang { font-size: 18px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; }

/* Language screen */
h1.multi span { display: block; font-size: 26px; line-height: 1.35; }
h1.multi span:first-child { font-size: 32px; }
.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
a.choice { display: block; padding: 20px; font-size: 26px; font-weight: bold; text-align: center; text-decoration: none;
           background: #fff; color: var(--main); border: 2px solid var(--main); border-radius: 12px; }
a.choice:hover { background: #f2f5f9; }

/* Home: "Ask anything" and groups */
.ask-box { margin: 10px 0 6px; padding: 18px; background: #fff; border: 3px solid var(--accent); border-radius: 14px; }
.ask-box h1 { margin-top: 0; }
.ask-box textarea::placeholder { color: #777; font-size: 18px; }
h2.or { font-size: 24px; color: #333; margin: 28px 0 6px; }
h3.group { font-size: 22px; color: var(--main); margin: 22px 0 10px; border-bottom: 2px solid #e3e3e3; padding-bottom: 4px; }

/* Steps */
.hint-q { font-size: 19px; margin: 18px 0 6px; color: #333; }
button.choice.small { display: inline-block; width: auto; padding: 12px 18px; font-size: 19px; margin: 8px 8px 0 0; }
button.linklike { background: none; color: var(--main); font-size: 18px; padding: 0; margin-top: 22px; text-decoration: underline; }
.restart { margin: 0; }
.file-picker { margin-top: 6px; }
.followup { margin-top: 26px; }

/* Answer text and ready document */
.answer p { margin: 0 0 12px; }
.answer ul, .answer ol { margin: 0 0 12px; padding-left: 28px; }
.answer li { margin-bottom: 6px; }
.document { margin-top: 20px; padding: 18px; background: #fff; border: 2px dashed var(--main); border-radius: 8px; }
.document h2 { margin-top: 0; color: var(--main); }
.document pre { white-space: pre-wrap; word-wrap: break-word; font-family: Georgia, 'Times New Roman', serif;
                font-size: 19px; line-height: 1.5; margin: 0 0 8px; }

/* Print: only the ready text */
@media print {
  header, footer, .back, h1, .answer, .followup, .restart, .document button, .document h2 { display: none !important; }
  .document { border: 0; padding: 0; }
  body { background: #fff; }
}

/* Fixes: no focus frame when the page jumps to the answer; badge never covers a title; same font in text boxes */
[tabindex="-1"]:focus, :target { outline: none; }
.tile-title { padding-right: 96px; }
textarea, select, button { font-family: inherit; }

/* Organization pages */
.draft { background: #fff4d6; color: #6b4b00; text-align: center; padding: 10px 16px; font-size: 17px; border-bottom: 1px solid #e6c463; }
.org-head { margin: 10px 0 4px; }
.org-logo { max-height: 90px; max-width: 260px; display: block; margin-bottom: 8px; }
.org-for { font-size: 26px; font-weight: bold; color: var(--main); margin: 6px 0; }
.org-contact { font-size: 20px; margin: 4px 0 0; }
.org-contact a { color: var(--main); font-weight: bold; }
.stats-month h2 { font-size: 22px; }
table.admin { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
table.admin th, table.admin td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; word-break: break-word; }
table.admin tr.st-off { color: #999; }
table.admin tr.st-draft td:nth-child(2) { color: #8a4b00; font-weight: bold; }

/* Job seekers */
.offer { margin-top: 22px; padding: 18px; background: #f3f8f4; border: 2px solid var(--main); border-radius: 12px; }
.offer h2 { margin-top: 0; color: var(--main); font-size: 24px; }
.signup input[type=text], .signup input:not([type]), .signup input[type=tel], .signup input[type=email] {
  width: 100%; font-size: 20px; padding: 10px; border: 2px solid #bbb; border-radius: 8px; font-family: inherit; }
.signup .label { font-weight: bold; margin: 16px 0 6px; }
label.check { font-weight: normal; display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
label.check input { width: 26px; height: 26px; flex: none; margin-top: 2px; }
label.consent { margin-top: 24px; padding: 14px; background: #fff; border: 2px solid var(--accent); border-radius: 8px; font-size: 18px; }
.delete-link { word-break: break-all; font-size: 17px; }
.cand { margin: 18px 0; padding: 14px; background: #fff; border: 1px solid #ddd; border-radius: 8px; }
.cand h2 { margin: 0 0 6px; font-size: 22px; color: var(--main); }
.cand table.admin th { width: 30%; }
pre.resume { white-space: pre-wrap; font-size: 15px; }

/* Your lists: full width */
main.wide { max-width: 1500px; }
main.wide table.admin { font-size: 15px; }
table.admin td.name { min-width: 260px; }
table.admin td.link { white-space: nowrap; }
table.admin td.num { text-align: center; }
h2.site { margin-top: 34px; color: var(--main); }
main.wide table.admin th, main.wide table.admin td { word-break: normal; overflow-wrap: normal; }
main.wide table.admin th { white-space: nowrap; }
main.wide table.admin tr.st-draft td:nth-child(2) { color: inherit; font-weight: normal; }
main.wide table.admin tr.st-draft td:nth-child(3) { color: #8a4b00; font-weight: bold; }

/* Drag and drop */
#drop-hint { position: fixed; inset: 12px; border: 4px dashed var(--main); border-radius: 16px; background: rgba(255,255,255,.85);
             display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: bold; color: var(--main);
             pointer-events: none; z-index: 50; }
#drop-hint[hidden] { display: none; }
.chosen.bad { color: #a40000; font-weight: bold; }

/* Voice input */
.mic-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 6px 0 4px; }
button.mic { width: auto; display: inline-block; padding: 8px 16px; font-size: 18px; background: #fff; color: var(--main);
             border: 2px solid var(--main); border-radius: 22px; margin: 0; }
button.mic.on { background: var(--main); color: #fff; }
.mic-hint { font-size: 15px; color: #4a5661; }
.mic-note { font-size: 15px; color: #a40000; }

/* Code for partner websites */
.embed-preview { padding: 20px; background: #eef1f4; border-radius: 10px; margin: 8px 0 12px; }
textarea.code { font-family: Menlo, Consolas, monospace; font-size: 13px; background: #fbfbfb; }

/* Announcements */
.announce { margin: 12px 0 4px; padding: 14px 18px; background: #fffaf0; border: 2px solid var(--accent); border-radius: 12px; }
.announce-from { font-weight: bold; color: var(--main); margin-bottom: 4px; }
.announce-text { font-size: 19px; line-height: 1.45; }
.ann-edit input[type=date] { font-size: 18px; padding: 8px; border: 2px solid #bbb; border-radius: 8px; font-family: inherit; }
.ann-buttons { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.ann-buttons .linklike { margin-top: 0; }
.ok { color: #1d6b38; font-weight: bold; }
.ann-admin { margin-top: 6px; font-size: 14px; background: #fffaf0; padding: 4px 6px; border-radius: 6px; }
