/* Free webmaster tools — hub grid, tool widget and result rendering. */

:root{
    --wt-bg:#0b1130; --wt-panel:#111a3d; --wt-panel-2:#0e1533;
    --wt-line:rgba(255,255,255,.10); --wt-line-2:rgba(255,255,255,.06);
    --wt-text:#e6ecff; --wt-muted:rgba(226,232,255,.62);
    --wt-accent:#6ee7ff; --wt-accent-2:#7b5cff;
    --wt-ok:#34d399; --wt-warn:#fbbf24; --wt-bad:#f87171;
}

.wt-section{background:var(--wt-bg);color:var(--wt-text);padding:3rem 0 4rem;}
.wt-section a{color:var(--wt-accent);}
/* The link-colour rule above outranks .wt-submit on specificity, which left the
   CTA rendering cyan text on the cyan gradient. Re-assert it for anchors. */
.wt-section a.wt-submit{color:#08122b;text-decoration:none;}
.wt-section a.wt-tile{color:inherit;}

/* ---------- Hub grid ---------- */
.wt-group{margin-bottom:2.6rem;}
.wt-group-title{font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:var(--wt-muted);
    margin:0 0 1rem;display:flex;align-items:center;gap:.75rem;}
.wt-group-title::after{content:"";flex:1;height:1px;background:var(--wt-line);}
.wt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:1rem;align-items:stretch;}
.wt-tile{display:flex;flex-direction:column;gap:.5rem;padding:1.25rem;border-radius:16px;text-decoration:none;
    background:linear-gradient(180deg,var(--wt-panel),var(--wt-panel-2));border:1px solid var(--wt-line);
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;}
.wt-tile:hover{transform:translateY(-3px);border-color:rgba(110,231,255,.42);
    box-shadow:0 14px 34px rgba(0,0,0,.34);text-decoration:none;}
.wt-tile-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;}
.wt-tile-cat{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--wt-muted);}
.wt-tile-icon{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
    font-size:1.05rem;color:#0b1130;background:linear-gradient(135deg,var(--wt-accent),var(--wt-accent-2));}
.wt-tile-name{font-weight:700;font-size:1.02rem;color:var(--wt-text);margin:0;}
.wt-tile-desc{color:var(--wt-muted);font-size:.9rem;line-height:1.45;margin:0;}
.wt-tile-badge{align-self:flex-start;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;
    color:var(--wt-accent);border:1px solid rgba(110,231,255,.34);border-radius:999px;padding:.14rem .5rem;}

/* ---------- Widget ---------- */
.wt-widget{background:linear-gradient(180deg,var(--wt-panel),var(--wt-panel-2));border:1px solid var(--wt-line);
    border-radius:20px;padding:1.5rem;box-shadow:0 18px 44px rgba(0,0,0,.32);}
.wt-form{display:flex;gap:.6rem;flex-wrap:wrap;}
.wt-form label{width:100%;font-size:.82rem;color:var(--wt-muted);margin-bottom:.15rem;}
.wt-input{flex:1 1 260px;min-width:0;background:rgba(6,10,26,.72);border:1px solid var(--wt-line);color:var(--wt-text);
    border-radius:12px;padding:.72rem .95rem;font-size:1rem;}
.wt-input:focus{outline:none;border-color:var(--wt-accent);box-shadow:0 0 0 3px rgba(110,231,255,.16);}
.wt-input::placeholder{color:rgba(226,232,255,.36);}
.wt-select{background:rgba(6,10,26,.72);border:1px solid var(--wt-line);color:var(--wt-text);
    border-radius:12px;padding:.72rem .8rem;font-size:.95rem;}
.wt-submit{border:0;border-radius:12px;padding:.72rem 1.5rem;font-weight:700;color:#08122b;cursor:pointer;
    background:linear-gradient(135deg,var(--wt-accent),var(--wt-accent-2));transition:filter .15s ease;}
.wt-submit:hover:not(:disabled){filter:brightness(1.08);}
.wt-submit:disabled{opacity:.6;cursor:progress;}
.wt-example{margin:.75rem 0 0;font-size:.84rem;color:var(--wt-muted);}
.wt-example button{background:none;border:0;color:var(--wt-accent);cursor:pointer;padding:0;text-decoration:underline;font:inherit;}

/* ---------- Results ---------- */
.wt-output{margin-top:1.5rem;}
.wt-summary{border-radius:14px;padding:1rem 1.15rem;margin-bottom:1rem;border:1px solid var(--wt-line);
    background:rgba(6,10,26,.5);border-left-width:4px;}
.wt-summary-title{font-weight:700;font-size:1.08rem;word-break:break-word;}
.wt-summary-sub{color:var(--wt-muted);font-size:.9rem;margin-top:.2rem;word-break:break-word;}
.wt-summary-ok{border-left-color:var(--wt-ok);}
.wt-summary-warn{border-left-color:var(--wt-warn);}
.wt-summary-bad{border-left-color:var(--wt-bad);}
.wt-summary-neutral{border-left-color:var(--wt-accent);}

.wt-card{background:rgba(6,10,26,.44);border:1px solid var(--wt-line-2);border-radius:14px;
    padding:1rem 1.15rem;margin-bottom:.85rem;}
.wt-card-title{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--wt-muted);margin:0 0 .75rem;}

.wt-row{display:flex;gap:1rem;padding:.5rem 0;border-bottom:1px solid var(--wt-line-2);align-items:flex-start;}
.wt-row:last-child{border-bottom:0;}
.wt-row-label{flex:0 0 40%;max-width:220px;color:var(--wt-muted);font-size:.88rem;}
.wt-row-value{flex:1;min-width:0;word-break:break-word;font-size:.92rem;}

.wt-table{width:100%;border-collapse:collapse;}
.wt-table td{padding:.45rem .6rem;border-bottom:1px solid var(--wt-line-2);vertical-align:top;
    font-size:.88rem;word-break:break-word;}
.wt-table tr:last-child td{border-bottom:0;}
.wt-header-name{color:var(--wt-accent);white-space:nowrap;}
.wt-ttl{color:var(--wt-muted);font-size:.8rem;white-space:nowrap;}
.wt-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88rem;}
.wt-consensus{padding:.28rem 0;word-break:break-all;}
.wt-record{background:rgba(0,0,0,.34);border-radius:8px;padding:.6rem .7rem;margin-top:.5rem;
    word-break:break-all;font-size:.82rem;line-height:1.5;}

.wt-resolver{padding:.6rem 0;border-bottom:1px solid var(--wt-line-2);}
.wt-resolver:last-child{border-bottom:0;}
.wt-resolver-head{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;}
.wt-resolver-loc{color:var(--wt-muted);font-size:.82rem;}
.wt-resolver-body{display:flex;justify-content:space-between;gap:1rem;margin-top:.25rem;flex-wrap:wrap;}

.wt-pills{display:flex;gap:.45rem;flex-wrap:wrap;margin-bottom:.75rem;}
.wt-pill{font-size:.75rem;padding:.2rem .6rem;border-radius:999px;border:1px solid currentColor;white-space:nowrap;}
.wt-ok{color:var(--wt-ok);}   .wt-warn{color:var(--wt-warn);}
.wt-bad{color:var(--wt-bad);} .wt-info{color:var(--wt-accent);}
.wt-muted{color:var(--wt-muted);}
.wt-ok-text{color:var(--wt-ok);} .wt-warn-text{color:var(--wt-warn);}
.wt-bad-text{color:var(--wt-bad);} .wt-muted-text{color:var(--wt-muted);}

.wt-meter{height:8px;border-radius:999px;background:rgba(255,255,255,.09);overflow:hidden;margin-bottom:1rem;}
.wt-meter-fill{height:100%;border-radius:999px;transition:width .5s ease;}
.wt-meter-ok{background:var(--wt-ok);} .wt-meter-warn{background:var(--wt-warn);} .wt-meter-bad{background:var(--wt-bad);}

.wt-note{color:var(--wt-muted);font-size:.85rem;line-height:1.55;margin-top:.6rem;}
.wt-note i{color:var(--wt-accent);}
.wt-alert{border-radius:12px;padding:.9rem 1.1rem;font-size:.94rem;}
.wt-alert-error{background:rgba(248,113,113,.10);border:1px solid rgba(248,113,113,.34);color:#fecaca;}
.wt-loading{display:flex;align-items:center;gap:.7rem;color:var(--wt-muted);padding:1rem 0;}
.wt-spinner{width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.2);
    border-top-color:var(--wt-accent);animation:wt-spin .7s linear infinite;display:inline-block;}
@keyframes wt-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){
    .wt-spinner{animation-duration:2s;}
    .wt-tile,.wt-meter-fill{transition:none;}
}

.wt-details{margin-top:.5rem;}
.wt-details summary{cursor:pointer;color:var(--wt-accent);font-size:.88rem;padding:.4rem 0;}
.wt-pre{background:rgba(0,0,0,.4);border-radius:10px;padding:.9rem;overflow-x:auto;max-height:420px;
    font-size:.78rem;line-height:1.5;color:var(--wt-muted);white-space:pre-wrap;word-break:break-word;margin:.5rem 0 0;}
.wt-textarea{width:100%;background:rgba(6,10,26,.72);border:1px solid var(--wt-line);color:var(--wt-text);
    border-radius:10px;padding:.7rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86rem;}

/* ---------- Prose + FAQ ---------- */
.wt-prose{color:var(--wt-muted);line-height:1.75;font-size:1rem;max-width:62ch;}
.wt-prose h2{color:var(--wt-text);font-size:1.35rem;font-weight:700;margin:2rem 0 .75rem;}
.wt-faq{border-top:1px solid var(--wt-line);}
.wt-faq details{border-bottom:1px solid var(--wt-line);padding:.15rem 0;}
.wt-faq summary{cursor:pointer;padding:1rem 0;font-weight:600;color:var(--wt-text);list-style:none;
    display:flex;justify-content:space-between;align-items:center;gap:1rem;}
.wt-faq summary::-webkit-details-marker{display:none;}
.wt-faq summary::after{content:"+";color:var(--wt-accent);font-size:1.3rem;flex:0 0 auto;line-height:1;}
.wt-faq details[open] summary::after{content:"\2212";}
.wt-faq p{color:var(--wt-muted);line-height:1.7;padding:0 0 1rem;margin:0;}

@media (max-width:575px){
    .wt-row{flex-direction:column;gap:.15rem;}
    .wt-row-label{flex:1 1 auto;max-width:none;}
    .wt-submit{width:100%;}
}

/* SharkCaptcha sits on its own line under the form controls. */
.wt-captcha{flex:1 1 100%;margin-top:.25rem;}
