/* 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-meter-accent{background:var(--wt-accent);}
.wt-meter-inline{display:inline-block;width:min(150px,38vw);margin:0 .55rem 0 0;vertical-align:middle;}
.wt-meter-value{font-size:.8rem;color:var(--wt-muted);font-variant-numeric:tabular-nums;}

.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;}

/* ---------- Hub: sections, filter, about ---------- */
.wt-toolbar{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;justify-content:space-between;
    margin:0 0 2rem;padding-bottom:1.25rem;border-bottom:1px solid var(--wt-line);}
.wt-filter{display:flex;align-items:center;gap:.6rem;flex:1 1 320px;max-width:460px;
    background:rgba(6,10,26,.72);border:1px solid var(--wt-line);border-radius:12px;padding:.65rem .95rem;}
.wt-filter i{color:var(--wt-muted);flex:0 0 auto;}
.wt-filter input{flex:1;min-width:0;background:none;border:0;color:var(--wt-text);font-size:.95rem;outline:none;}
.wt-filter input::placeholder{color:rgba(226,232,255,.36);}
.wt-filter:focus-within{border-color:var(--wt-accent);box-shadow:0 0 0 3px rgba(110,231,255,.14);}
.wt-jump{display:flex;gap:.4rem;flex-wrap:wrap;}
.wt-jump a{font-size:.82rem;color:var(--wt-muted);text-decoration:none;border:1px solid var(--wt-line);
    border-radius:999px;padding:.3rem .7rem;transition:color .15s ease,border-color .15s ease;}
.wt-jump a:hover{color:var(--wt-accent);border-color:rgba(110,231,255,.4);text-decoration:none;}
.wt-jump a span,.wt-group-title span{opacity:.55;font-variant-numeric:tabular-nums;}
.wt-group{scroll-margin-top:5rem;}
.wt-group[hidden]{display:none;}
.wt-tile[hidden]{display:none;}
.wt-empty{color:var(--wt-muted);padding:2rem 0;text-align:center;}

.wt-about{color:var(--wt-muted);line-height:1.7;font-size:.95rem;
    display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem 2rem;}
.wt-about p{margin:0;}

/* ---------- Structured data tree ---------- */
/* Nesting is indented inline by the renderer, so the border is what makes the
   parent/child relationship readable once an item is three levels deep. */
.wt-schema-item{padding:.6rem 0 .6rem .85rem;border-left:2px solid var(--wt-line);margin-top:.5rem;}
.wt-schema-item .wt-schema-item{border-left-color:var(--wt-line-2);}
.wt-schema-head{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-bottom:.35rem;}
.wt-schema-label{color:var(--wt-muted);font-size:.88rem;overflow-wrap:anywhere;}

/* ---------- Favicon results ---------- */
.wt-icon-row{display:flex;gap:.9rem;align-items:flex-start;padding:.85rem 0;border-top:1px solid var(--wt-line-2);}
.wt-icon-row:first-of-type{border-top:0;}
/* A fixed, checkered box so a white icon on a dark panel is still visible and
   a 512px icon cannot blow out the layout. */
.wt-icon-preview{flex:0 0 48px;width:48px;height:48px;border-radius:10px;display:flex;align-items:center;
    justify-content:center;border:1px solid var(--wt-line);background-color:rgba(255,255,255,.9);
    background-image:linear-gradient(45deg,rgba(0,0,0,.08) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.08) 75%),
        linear-gradient(45deg,rgba(0,0,0,.08) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.08) 75%);
    background-size:12px 12px;background-position:0 0,6px 6px;overflow:hidden;}
.wt-icon-preview img{max-width:40px;max-height:40px;display:block;}
.wt-icon-body{min-width:0;flex:1;}
.wt-icon-head{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-bottom:.3rem;}
.wt-icon-url{font-size:.8rem;color:var(--wt-muted);overflow-wrap:anywhere;}
.wt-icon-facts{font-size:.8rem;margin-top:.25rem;overflow-wrap:anywhere;}
.wt-icon-problem{font-size:.86rem;margin-top:.35rem;line-height:1.45;}
