/* ============================================================
   The Balochistan Post — Tip line and Contact us
   inc/tip-page.php, inc/contact-page.php. Depends on tokens.css + app.css.
   The safety meter says its level in words as well as bars and colour.
   ============================================================ */

.tip-page { --tip-ok: var(--green-600); --tip-mid: var(--amber-600); padding-bottom: 8px; }
html.dark .tip-page { --tip-ok: #4ade80; --tip-mid: #fbbf24; }
.tip-page h1, .tip-page h2, .tip-page h3, .tip-page p, .tip-page ol { margin: 0; }
.tip-page { font-family: var(--font-urdu); color: var(--tbp-text); }
.tip-page code { font-family: var(--font-mono); }

/* 1. Intro + "before you contact us" */
.tip-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; padding-top: 40px; padding-bottom: 32px; }
.tip-intro-main { display: flex; flex-direction: column; gap: 12px; }
.tip-kicker { font-size: 14px; font-weight: 700; color: var(--tbp-red); }
.tip-page h1 { font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.4; }
.tip-sub { font-size: 17px; line-height: 1.9; color: var(--tbp-text-2); max-width: 640px; }
.tip-promises { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 6px 0 0; padding: 0; }
.tip-promises li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--tbp-card-2); font-size: 13px; font-weight: 600; color: var(--tbp-text-2); }
.tip-promises li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tbp-red); }
.tip-before { border: 2px solid var(--tbp-red); border-radius: var(--r-card); padding: 20px 22px; background: var(--tbp-card); }
.tip-before h2 { font-size: 17px; font-weight: 700; color: var(--tbp-red); margin-bottom: 12px; }
.tip-before ol { list-style: none; padding: 0; counter-reset: tipb; display: flex; flex-direction: column; gap: 10px; }
.tip-before li { counter-increment: tipb; display: flex; gap: 10px; font-size: 14px; line-height: 1.8; color: var(--tbp-text-2); }
.tip-before li::before { content: counter(tipb); flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--tbp-red); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 2. Channels */
.tip-channels, .tip-after { padding-bottom: 32px; }
.tip-h2 { font-size: 20px; font-weight: 700; padding-bottom: 10px; margin-bottom: 16px !important; border-bottom: 1px solid var(--tbp-line-2, var(--tbp-line)); }
.tip-tier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tip-tier + .tip-tier { margin-top: 16px; }
/* A card alone in its row takes the row: one channel set up (Signal only, e-mail
   only) left a half-width card beside an empty half (the owner, 2026-11-09). */
.tip-tier > .tip-ch:only-child { grid-column: 1 / -1; }
/* …and its button and copy row keep a card's width, not a 1200px red bar. */
.tip-tier > .tip-ch:only-child .tip-cta { align-self: flex-start; min-width: 280px; padding: 0 28px; }
.tip-tier > .tip-ch:only-child .tip-copy { max-width: 560px; }
@media (max-width: 768px) { .tip-tier > .tip-ch:only-child .tip-cta { align-self: stretch; min-width: 0; } .tip-tier > .tip-ch:only-child .tip-copy { max-width: none; } }
.tip-ch { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--tbp-card); border: 1px solid var(--tbp-line-2, var(--tbp-line)); min-width: 0; }
/* No coloured stripe on the safest cards: their meter (three green bars) says it. */
.tip-ch--low { background: var(--tbp-card-2); border-style: dashed; }
.tip-ch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tip-ch h3 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.tip-ch--mid h3, .tip-ch--low h3 { font-size: 16px; }
.tip-ch p { font-size: 14px; line-height: 1.85; color: var(--tbp-text-2); }
.tip-ch--low p { color: var(--tbp-text-3); }
.tip-lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tip-bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.tip-bars i { width: 5px; height: 12px; border-radius: 2px; background: var(--tbp-line-2, var(--tbp-line)); }
.tip-lvl--3 { color: var(--tip-ok); }
.tip-lvl--2 { color: var(--tip-mid); }
.tip-lvl--1 { color: var(--tbp-text-3); }
.tip-lvl--3 .tip-bars i, .tip-lvl--2 .tip-bars i:nth-child(-n+2), .tip-lvl--1 .tip-bars i:first-child { background: currentColor; }

.tip-copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--r-thumb); background: var(--tbp-card-2); min-width: 0; }
.tip-copy code { flex: 1 1 auto; min-width: 0; font-size: 14px; letter-spacing: .03em; overflow-wrap: anywhere; text-align: left; color: var(--tbp-text); }
.tip-copy-btn { flex: none; min-height: 40px; padding: 0 14px; border-radius: var(--btn-radius, var(--r-thumb)); border: 1px solid var(--tbp-line-2, var(--tbp-line)); background: var(--tbp-card); color: var(--tbp-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tip-copy-btn:is(:hover, :focus-visible) { border-color: var(--tbp-text); }
.tip-copy-btn.is-done { color: var(--tip-ok); border-color: currentColor; }
.tip-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--btn-radius, var(--r-thumb)); background: var(--tbp-red); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none; }
.tip-cta:is(:hover, :focus-visible) { background: var(--tbp-red-d, var(--tbp-red)); }
.tip-how summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--tbp-text-2); min-height: 32px; display: flex; align-items: center; }
.tip-how summary { list-style: none; gap: 6px; }
.tip-how summary::-webkit-details-marker { display: none; }
.tip-how summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.tip-how[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.tip-how ol { padding-inline-start: 20px; margin-top: 6px !important; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.8; color: var(--tbp-text-2); }
.tip-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--btn-radius, var(--r-pill)); border: 1px solid var(--tbp-line-2, var(--tbp-line)); background: var(--tbp-card); color: var(--tbp-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.tip-btn svg { width: 18px; height: 18px; flex: none; }
.tip-btn:is(:hover, :focus-visible) { border-color: var(--tbp-text); }
.tip-pgp { display: flex; flex-direction: column; gap: 6px; }
.tip-pgp-l { font-size: 13px !important; font-weight: 600; }

/* 3. What happens next */
.tip-after ol { list-style: none; padding: 0; counter-reset: tipa; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tip-after li { counter-increment: tipa; display: flex; flex-direction: column; gap: 4px; padding-inline-start: 36px; position: relative; }
.tip-after li::before { content: counter(tipa); position: absolute; inset-inline-start: 0; top: -2px; font-size: 26px; font-weight: 700; color: var(--tbp-red); line-height: 1.3; }
.tip-after b { font-size: 16px; }
.tip-after span { font-size: 14px; line-height: 1.8; color: var(--tbp-text-2); }

/* Contact us */
.contact-intro { display: flex; flex-direction: column; gap: 10px; padding-top: 40px; padding-bottom: 24px; }
.contact-tip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: var(--r-card); background: var(--surface-inverse, #0a0a0a); color: var(--on-inverse, #fff) !important; text-decoration: none; }
html.dark .contact-tip { background: var(--tbp-card-2); border: 1px solid var(--tbp-line-2, var(--tbp-line)); } /* the inverse surface is the page itself in dark */
.contact-tip-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--tbp-red); color: #fff; display: flex; align-items: center; justify-content: center; }
.contact-tip-ic svg { width: 22px; height: 22px; }
.contact-tip-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-tip-txt b { font-size: 18px; }
.contact-tip-txt span { font-size: 14px; line-height: 1.7; opacity: .75; }
.contact-tip-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--btn-radius, var(--r-thumb)); background: var(--tbp-red); color: #fff; font-size: 14px; font-weight: 700; }
.contact-tip:is(:hover, :focus-visible) .contact-tip-btn { background: var(--tbp-red-d, var(--tbp-red)); }
.contact-desks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.contact-desk { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-card); background: var(--tbp-card); border: 1px solid var(--tbp-line-2, var(--tbp-line)); min-width: 0; }
.contact-desk-ic { width: 40px; height: 40px; border-radius: var(--r-thumb); background: var(--tbp-card-2); color: var(--tbp-red); display: flex; align-items: center; justify-content: center; }
.contact-desk-ic svg { width: 20px; height: 20px; }
.contact-desk h2 { font-size: 18px; font-weight: 700; margin-top: 4px; }
.contact-desk p { font-size: 14px; line-height: 1.8; color: var(--tbp-text-2); flex: 1 1 auto; }
.contact-desk-v { align-self: flex-end; display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 700; color: var(--tbp-red); overflow-wrap: anywhere; }
.contact-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-box { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--tbp-card-2); }
.contact-box h2 { font-size: 17px; font-weight: 700; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--tbp-line-2, var(--tbp-line)); background: var(--tbp-card); color: var(--tbp-text); font-size: 14px; text-decoration: none; }
.contact-chip svg { width: 16px; height: 16px; flex: none; }
.contact-chip:is(:hover, :focus-visible) { border-color: var(--tbp-text); }
.contact-scam { padding-top: 24px; padding-bottom: 40px; font-size: 13px; line-height: 1.8; color: var(--tbp-text-3); }

@media (max-width: 1024px) {
  .tip-intro { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .contact-desks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .tip-tier, .tip-after ol, .contact-more, .contact-desks { grid-template-columns: 1fr; }
  .tip-after ol { gap: 14px; }
  .tip-ch, .tip-before, .contact-desk { padding: 16px; }
  .tip-sub { font-size: 15px; }
  .tip-channels, .tip-after { padding-bottom: 24px; }
  .contact-tip { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .contact-tip-ic { display: none; }
  .contact-tip-btn { justify-content: center; }
  .contact-intro { padding-top: 24px; padding-bottom: 16px; }
  .contact-desks { gap: 10px; padding-top: 20px; padding-bottom: 20px; }
  .form-section .form-head, .form-section .form-body { padding-inline: 16px; }
}

/* Web form */
.form-section-wrap { padding: 8px 0 48px; }
.form-section { background: var(--tbp-card); border-radius: var(--r-card); border: 1px solid var(--tbp-line); overflow: hidden; }
.form-section .form-head { padding: 24px 32px 20px; border-bottom: 1px solid var(--tbp-line); display: flex; align-items: flex-start; gap: 16px; }
.form-section .form-head .fh-icon { width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--tip-mid) 14%, transparent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-section .form-head .fh-icon svg { width: 22px; height: 22px; color: var(--tip-mid); }
.form-section .form-head .fh-text h2 { font-family: var(--font-urdu); font-weight: 700; font-size: 22px; margin: 0 0 6px; color: var(--tbp-text); }
.form-section .form-head .fh-text .warning-note { font-family: var(--font-urdu); font-size: 13px; color: var(--tip-mid); display: flex; align-items: flex-start; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 8px 14px; line-height: 1.7; }
.form-section .form-head .fh-text .warning-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.form-section .form-body { padding: 28px 32px 32px; }
.form-section .form-body form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--font-urdu); font-weight: 600; font-size: 15px; color: var(--tbp-text); }
.form-label .optional { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); margin-inline-start: 8px; }
textarea.form-input, input.form-input { width: 100%; background: var(--tbp-paper); border: 1px solid var(--tbp-line-2); border-radius: 6px; padding: 12px 16px; font-family: var(--font-urdu); font-size: 15px; line-height: 1.75; color: var(--tbp-text); direction: rtl; resize: vertical; box-sizing: border-box; }
textarea.form-input:focus, input.form-input:focus { outline: none; border-color: var(--tbp-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent); }
textarea.form-input { min-height: 160px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--tbp-paper); border: 1px solid var(--tbp-line-2); border-radius: 6px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--tbp-text); margin-top: 3px; cursor: pointer; }
.checkbox-row label { font-family: var(--font-urdu); font-size: 14px; line-height: 1.7; color: var(--tbp-text-2); cursor: pointer; }
.form-submit-btn { align-self: flex-start; background: var(--surface-inverse); color: var(--on-inverse); border: none; border-radius: var(--btn-radius, var(--r-thumb)); padding: 14px 28px; font-family: var(--font-urdu); font-weight: 700; font-size: 16px; cursor: pointer; transition: background .15s; display: inline-flex; align-items: center; gap: 10px; }
.form-submit-btn:hover { background: var(--tbp-red); }
.form-submit-btn svg { width: 18px; height: 18px; }
