/* Bless Search — light, compact, Google-school. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1f2328; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #1a4fba; text-decoration: none; }
a:hover { text-decoration: underline; }
b { color: #111; }
.dim { color: #767b81; }

.logo { font-weight: 700; letter-spacing: -0.5px; }
.logo .l1 { color: #1a4fba; }
.logo .l2 { color: #c99a2e; }

/* home */
body.center main.home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 90px; }
.home h1 { font-size: 46px; margin-bottom: 6px; }
.home .tag { color: #5f6469; font-size: 13px; margin-bottom: 22px; }
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 560px; }
.chip { border: 1px solid #dadfe4; border-radius: 14px; padding: 3px 11px; font-size: 12.5px; color: #3c4043; background: #f8f9fa; }
.chip:hover { background: #eef1f4; text-decoration: none; }

/* search box + suggest */
.box { position: relative; width: min(560px, 92vw); }
.box input { width: 100%; height: 40px; border: 1px solid #d0d5da; border-radius: 20px; padding: 0 42px 0 16px; font-size: 15px; outline: none; box-shadow: 0 1px 4px rgba(32, 33, 36, 0.08); }
.box input:focus { border-color: #9fb6e8; box-shadow: 0 1px 6px rgba(26, 79, 186, 0.18); }
.box button { position: absolute; right: 5px; top: 5px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #1a4fba; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#sugg { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid #d0d5da; border-radius: 10px; box-shadow: 0 4px 12px rgba(32, 33, 36, 0.14); display: none; z-index: 5; overflow: hidden; }
#sugg.open { display: block; }
#sugg a { display: flex; gap: 8px; align-items: center; padding: 7px 14px; color: #1f2328; font-size: 13.5px; }
#sugg a.sel, #sugg a:hover { background: #f1f4f8; text-decoration: none; }
#sugg .t { color: #9aa0a6; font-size: 11px; margin-left: auto; }

/* results header bar */
header.bar { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid #e7eaee; }
header.bar .mini { font-size: 21px; }
header.bar .mini:hover { text-decoration: none; }
header.bar .box { width: min(520px, 70vw); }
header.bar .box input { height: 36px; }
header.bar .box button { top: 3px; }
.admtag { font-size: 11px; font-weight: 700; color: #b3261e; border: 1px solid #b3261e; border-radius: 4px; padding: 1px 7px; }

/* SERP */
main.serp { max-width: 660px; padding: 10px 18px 30px; }
.stats { color: #767b81; font-size: 12px; margin: 6px 0 10px; }
.loc { color: #188038; font-size: 12px; margin-left: 6px; }
.dym { font-size: 13.5px; margin-bottom: 10px; color: #b3261e; }
.res { margin-bottom: 18px; }
.crumb { font-size: 12px; color: #1e8e3e; }
.rtitle { font-size: 17px; }
.rsnip { font-size: 13px; color: #4d5156; margin-top: 1px; }
.empty { margin: 24px 0; color: #4d5156; }
.pager { margin-top: 18px; font-size: 13px; color: #767b81; }

/* AI overview box */
#aibox { border: 1px solid #dbe4f5; border-radius: 10px; background: #f7faff; padding: 10px 14px 8px; margin-bottom: 14px; }
.aihead { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #1a4fba; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; }
#aitext { font-size: 13.5px; color: #2c3138; line-height: 1.5; }
.ainote { font-size: 10.5px; color: #9aa0a6; margin-top: 6px; }
.aisources { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.aisources a { font-size: 11.5px; border: 1px solid #d5deee; border-radius: 12px; padding: 2px 10px; background: #fff; color: #1a4fba; }
.aisources a:hover { background: #eef3fb; text-decoration: none; }
.shimmer { display: block; height: 11px; border-radius: 5px; margin: 5px 0; background: linear-gradient(90deg, #e8edf5 25%, #f4f7fc 50%, #e8edf5 75%); background-size: 200% 100%; animation: shim 1.1s infinite; }
.shimmer.w70 { width: 70%; }
@keyframes shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* local companies block */
.local { border: 1px solid #e2e6ea; border-radius: 10px; padding: 10px 12px 4px; margin-bottom: 16px; background: #fbfcfd; }
.lhead { font-size: 11px; font-weight: 700; color: #767b81; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.ccard { padding: 8px 0 10px; border-top: 1px solid #eef1f4; }
.ccard:first-of-type { border-top: 0; }
.cname { font-size: 15.5px; font-weight: 600; }
.cmeta { font-size: 12px; color: #767b81; margin: 1px 0 2px; }
.csnip { font-size: 12.5px; color: #4d5156; }
.acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.act { font-size: 12px; font-weight: 600; border: 1px solid #d0d5da; border-radius: 13px; padding: 3px 11px; color: #1a4fba; background: #fff; }
.act:hover { background: #f1f4f8; text-decoration: none; }
.act.call { background: #1a4fba; border-color: #1a4fba; color: #fff; }
.act.call:hover { background: #16409a; }

/* detail pages */
main.detail { max-width: 660px; padding: 18px; }
main.detail h1 { font-size: 22px; margin-bottom: 8px; }
main.detail h2 { font-size: 15px; margin: 14px 0 6px; }
main.detail .desc, main.detail .body p { font-size: 13.5px; color: #3c4043; margin-bottom: 8px; }
table.facts { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
table.facts th { text-align: left; color: #767b81; font-weight: 600; padding: 3px 14px 3px 0; vertical-align: top; }
table.facts td { padding: 3px 0; }
main.detail ul { margin: 4px 0 10px 18px; font-size: 13.5px; }
.err { color: #b3261e; font-size: 13px; margin-bottom: 8px; }
.ok { background: #e6f4ea; color: #188038; border-radius: 6px; padding: 6px 12px; font-size: 13px; margin-bottom: 10px; }

/* admin */
main.admin { max-width: 900px; padding: 14px 18px 30px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.aform { display: flex; flex-direction: column; gap: 6px; }
.aform input, .aform textarea { border: 1px solid #d0d5da; border-radius: 6px; padding: 6px 9px; font: 13px inherit; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.abtn { border: 0; border-radius: 6px; background: #1a4fba; color: #fff; font-weight: 600; font-size: 13px; padding: 7px; cursor: pointer; }
.abtn:hover { background: #16409a; }
table.atable { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 4px 0 10px; }
table.atable th { text-align: left; color: #767b81; border-bottom: 1px solid #e2e6ea; padding: 4px 8px 4px 0; }
table.atable td { border-bottom: 1px solid #f0f2f4; padding: 4px 8px 4px 0; }
button.del { border: 0; background: none; color: #b3261e; cursor: pointer; font-size: 13px; }

footer { margin-top: auto; display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid #e7eaee; font-size: 12px; color: #767b81; background: #f8f9fa; }
footer a { color: #5f6469; }

@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
  .home h1 { font-size: 36px; }
  header.bar { flex-wrap: wrap; gap: 8px; }
  header.bar .box { width: 100%; order: 3; }
}
