:root{color-scheme:light;--bg:#fff;--text:#202124;--muted:#62676c;--line:#dfe1e5;--surface:#f8f9fa;--footer:#f2f2f2;--link:#1a0dab;--accent:#6654bb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px Arial,Helvetica,sans-serif;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}header{height:64px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.text-button{border:0;background:none;padding:12px 0;color:var(--muted)}.text-button:hover{text-decoration:underline}.prototype{font-size:12px;color:var(--muted)}main{flex:1}.search-home{padding:clamp(80px,17vh,170px) 24px 36px;text-align:center}.brand{font-size:88px;line-height:1.1;letter-spacing:-5px;font-weight:500;background:linear-gradient(105deg,#7443c7 10%,#6252bd 42%,#248365 90%);background-clip:text;-webkit-background-clip:text;color:transparent;border:0;padding:0 8px 5px}.research{display:block;font-size:11px;letter-spacing:4px;color:var(--muted);margin:7px 0 29px;padding-left:4px}form{width:min(584px,100%);margin:0 auto}.searchbox{height:50px;border:1px solid var(--line);border-radius:28px;display:flex;align-items:center;gap:14px;padding:0 9px 0 17px}.searchbox:hover,.searchbox:focus-within{box-shadow:0 1px 6px #20212424;border-color:transparent}.search-icon{width:20px;height:20px;flex-shrink:0;color:#7c8187}input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:16px;height:100%}input::-webkit-search-cancel-button{display:none}input::placeholder{color:#80858b}#clear,.submit-icon{border:0;background:transparent;width:36px;height:36px;border-radius:50%;flex-shrink:0}#clear{font-size:25px;color:var(--muted)}.submit-icon{color:var(--accent)}.submit-icon:hover{background:var(--surface)}.submit-icon svg{width:21px;height:21px}.actions{display:flex;justify-content:center;gap:12px;margin-top:29px}.actions button{background:var(--surface);border:1px solid transparent;border-radius:4px;padding:10px 17px;min-height:38px}.actions button:hover{border-color:var(--line);box-shadow:0 1px 1px #00000012}.hint{color:var(--muted);font-size:13px;margin-top:17px}.hint button{color:var(--accent);padding:5px}footer{background:var(--footer);color:var(--muted);margin-top:32px}.footer-bottom{padding:3px 30px;min-height:47px;display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-bottom nav{display:flex;gap:28px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip{position:absolute;top:-60px;left:20px;padding:14px;background:var(--bg);z-index:5}.skip:focus{top:10px}body.has-results .search-home{padding-top:28px;padding-bottom:18px}body.has-results .brand{font-size:42px;letter-spacing:-2px}body.has-results .research{font-size:9px;margin:3px 0 20px}body.has-results .actions,body.has-results .hint{display:none}#results{width:min(680px,100%);margin:0 auto;padding:0 24px 30px}#result-status{font-size:13px;color:var(--muted);margin:12px 0 30px}.result{margin-bottom:30px}.result .source{color:var(--muted);font-size:13px;margin:0 0 7px}.result a{color:var(--link);text-decoration:none;font-size:20px;line-height:1.35}.result a:hover{text-decoration:underline}.result p{line-height:1.65;margin:7px 0 0}.empty{line-height:1.7}.empty button{color:var(--accent)}dialog{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:24px;width:min(440px,calc(100% - 32px));box-shadow:0 12px 60px #0002}dialog::backdrop{background:#0005}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-head h2{font-size:20px;margin:0}.dialog-head button{border:0;background:var(--surface);font-size:25px;border-radius:50%;height:36px;width:36px}#dialog-body{line-height:1.7;margin-top:18px}#dialog-body select{padding:10px;margin-top:8px;width:100%;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:5px}[hidden]{display:none!important}:root[data-theme=dark]{color-scheme:dark;--bg:#202124;--text:#e8eaed;--muted:#bdc1c6;--line:#5f6368;--surface:#303134;--footer:#171717;--link:#a8baff;--accent:#b5a1ed}:root[data-theme=dark] .brand{background-image:linear-gradient(105deg,#b893fa,#a59af0 45%,#6bd5ae)}@media(max-width:600px){header{padding:0 20px;height:56px}.search-home{padding:clamp(72px,16vh,140px) 20px 30px}.brand{font-size:72px}.research{margin-bottom:27px}.searchbox{gap:10px}.actions{gap:8px}.actions button{padding:10px 13px}.footer-bottom{padding:9px 20px;flex-direction:column;gap:0}.footer-bottom nav{gap:24px}#results{padding-inline:20px}}@media(prefers-reduced-motion:no-preference){.searchbox{transition:box-shadow .15s}} 
/* Refinements preserve the established Google-like homepage. */
:root { --shadow: 0 2px 8px #2021241c; --selection: #e5dff7; }
::selection { background: var(--selection); color: var(--text); }
button { touch-action: manipulation; }
header { gap: 16px; }
.text-button { min-height: 44px; }
.brand { letter-spacing: -.04em; }
.searchbox { height: 54px; gap: 8px; padding: 0 4px 0 17px; }
.searchbox:hover { border-color: var(--line); box-shadow: var(--shadow); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: var(--shadow); }
.search-icon { color: var(--muted); margin-right: 4px; }
input { caret-color: var(--accent); }
input::placeholder { color: var(--muted); }
#clear, .submit-icon, .dialog-head button { width: 44px; height: 44px; display: grid; place-items: center; }
#clear svg, .dialog-head svg { width: 21px; height: 21px; }
#clear:hover { background: var(--surface); }
.actions { margin-top: 27px; }
.actions button { min-height: 44px; }
.actions button:active, .suggestions button:active { background: var(--footer); }
.hint { margin-top: 25px; }

.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.suggestions button { color: var(--accent); border: 0; background: none; padding: 10px 2px; min-height: 44px; }
.suggestions button:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { min-height: 50px; }
body.has-results .brand { letter-spacing: -.04em; }
#result-status { line-height: 1.65; font-weight: 400; overflow-wrap: anywhere; }
#result-status:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.result .source { overflow-wrap: anywhere; }
.result h3 { font-size: 20px; font-weight: 400; line-height: 1.4; margin: 0; }
.result a { font-size: inherit; }
.result a:hover { text-underline-offset: 3px; }
.empty p { margin-top: 0; }
.empty .suggestions { justify-content: flex-start; }
dialog { max-height: calc(100dvh - 32px); }
#dialog-body select { min-height: 44px; }
:root[data-theme=dark] { --selection: #4b3c68; --shadow: 0 2px 8px #0004; }
@media (max-width: 600px) {
  .searchbox { gap: 4px; padding-left: 14px; }
  .search-icon { margin-right: 2px; }
  .suggestions { gap: 0 14px; }
  .footer-bottom { padding: 9px 16px; }
  .footer-bottom nav { flex-wrap: wrap; justify-content: center; gap: 0 24px; }
}
@media (max-height: 550px) { .search-home { padding-top: 36px; } }
.recovery-actions,.page-navigation{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.recovery-actions button,.page-navigation button{min-height:42px;padding:9px 15px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--text)}.recovery-actions button:hover,.page-navigation button:hover{box-shadow:var(--shadow)}.recovery-actions .recovery-primary,.page-navigation .recovery-primary{border-color:transparent;background:linear-gradient(105deg,#7443c7,#248365);color:#fff}.page-navigation{justify-content:flex-start;margin:28px 0}.error-panel{border-left:3px solid #b05a56;padding:2px 0 2px 16px}.error-panel p{margin-bottom:0}@media(max-width:600px){.recovery-actions,.page-navigation{gap:8px}.recovery-actions button,.page-navigation button{flex:1 1 auto}}
.result .attribution { font-size: 11px; color: var(--muted); margin-top: 9px; line-height: 1.5; }
.result .attribution a { font-size: inherit; color: var(--muted); text-decoration: underline; }
.corpus-list { padding-left: 18px; }
.corpus-list li { margin-bottom: 12px; }
.corpus-list a { color: var(--link); overflow-wrap: anywhere; }
.corpus-list small { color: var(--muted); white-space: nowrap; }


#dialog-body { max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; }
#corpus-info { font-size: 12px; padding-top: 4px; }

.result-description { overflow-wrap: anywhere; }
.result-description mark { background: transparent; color: inherit; font-weight: 700; }
.spelling-suggestion { color: var(--muted); line-height: 1.65; margin: -12px 0 24px; overflow-wrap: anywhere; }
.spelling-suggestion button { border: 0; background: none; color: var(--link); font-weight: 600; min-height: 44px; padding: 8px 0; text-align: start; overflow-wrap: anywhere; }
.spelling-suggestion button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Main search surface follows the owner's mobile reference. */
:root{--surface:#eff1f3;--surface-hover:#e8eaed;--footer:#f3f4f5;--text:#23232b;--muted:#5f6368;--line:#d5d8de}
:root[data-theme=dark]{--bg:#23232b;--surface:#4c4f56;--surface-hover:#555961;--text:#f1f3f4;--muted:#c8ccd2;--line:#60636c;--footer:#161719;--link:#bdc8ff;--accent:#c5b4ff}
@media(prefers-color-scheme:dark){:root:not([data-theme]){color-scheme:dark;--bg:#23232b;--surface:#4c4f56;--surface-hover:#555961;--text:#f1f3f4;--muted:#c8ccd2;--line:#60636c;--footer:#161719;--link:#bdc8ff;--accent:#c5b4ff}}
:root[data-theme] .brand,:root:not([data-theme]) .brand{background:none;color:var(--text);font-weight:500}
header{height:48px}header .text-button{font-size:13px}
.search-home{padding:34px 24px 0}.research{display:none}form{width:min(620px,100%);margin:30px auto 0}
.searchbox{height:58px;border-color:transparent;border-radius:32px;background:var(--surface);padding-left:18px;box-shadow:none}
.searchbox:hover{background:var(--surface-hover);border-color:transparent;box-shadow:none}
.searchbox:focus-within{outline:2px solid var(--accent);outline-offset:2px;box-shadow:none;border-color:transparent}
input{font-size:18px}.search-icon{width:23px;height:23px}.submit-icon{color:var(--text)}
.hint{width:min(620px,100%);margin:28px auto 0;text-align:left}
.hint-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}
.hint h2{font-size:23px;line-height:1.3;font-weight:400;margin:0}
.hint-head #corpus-info{width:44px;flex-shrink:0;display:grid;place-items:center;padding:0;color:var(--text)}.hint-head svg{width:23px;height:23px}

footer{margin-top:28px;font-size:13px}.footer-bottom .text-button{font-size:13px}
body.has-results form{margin-top:18px}.error-panel{border:1px solid var(--line);border-radius:10px;padding:18px}
#dialog-body{scrollbar-color:var(--line) var(--bg);scrollbar-width:thin}

/* Reference supplies placement only; no popularity feed or personal-query list. */
.search-home{padding-top:52px}.hint{text-align:center;margin-top:20px}.hint #corpus-info{color:var(--muted);font-size:12px}.searchbox{border-radius:32px}@media(max-width:600px){.search-home{padding-top:24px}.brand{font-size:64px;line-height:1.05}form{margin-top:24px}.hint{margin-top:18px}}



@media(max-width:600px){header{height:40px;padding:0 16px;gap:12px}header .text-button{font-size:11px}.search-home{padding:24px 16px 0}.brand{font-size:64px;line-height:1.05}form{margin-top:24px}.searchbox{height:52px;padding-left:14px;gap:3px}input{font-size:17px}.search-icon{width:21px;height:21px}.hint{text-align:center;margin-top:18px}.footer-bottom{padding:4px 16px}footer{margin-top:24px}}

/* Keep only information links in the footer after removing engine and scope badges. */
.footer-bottom{justify-content:flex-end}
@media(max-width:600px){.footer-bottom{justify-content:center;flex-direction:row}.footer-bottom nav{justify-content:center}}

/* Separate result groups; mobile gutters follow the owner's reference. */
.result { margin-bottom: 0; padding-bottom: 24px; }
.result + .result { border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 600px) {
  .result { padding-bottom: 20px; }
  .result + .result { position: relative; border-top: 0; padding-top: 28px; }
  .result + .result::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: -20px;
    height: 8px;
    background: var(--footer);
    pointer-events: none;
  }
}
