/* DirectlyDomains — clean search layout */

:root {
  --bg: #ffffff;
  --fg: #202124;
  --muted: #5f6368;
  --faint: #70757a;
  --line: #dfe1e5;
  --accent: #1a73e8;
  --accent-dark: #174ea6;
  --visited: #681da8;
  --result-domain: #202124;
  --panel: #f8f9fa;
  --shadow: 0 1px 6px rgba(32, 33, 36, .18);
  --ok-bg: #e6f4ea;
  --ok-line: #b7e1c1;
  --ok-fg: #137333;
  --err-bg: #fce8e6;
  --err-line: #f5c2bd;
  --err-fg: #c5221f;
  --info-bg: #e8f0fe;
  --info-line: #c6dafc;
  --info-fg: #174ea6;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.content { flex: 1 0 auto; }

/* ---------- logo ---------- */

.logo {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-a { color: var(--fg); }
.logo-b { color: var(--accent); }

.logo-large { font-size: 52px; }
.logo-small { font-size: 24px; }

/* ---------- search form ---------- */

.searchform {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.searchform input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 11px 18px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.searchform input[type="search"]:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}
.searchform input[type="search"]:focus {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.searchform button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 24px;
  padding: 11px 24px;
  cursor: pointer;
}
.searchform button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.searchform-large { width: 100%; max-width: 580px; margin: 28px auto 0; }
.searchform-small { flex: 1 1 auto; max-width: 560px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-secondary {
  color: var(--fg);
  background: var(--panel);
  border-color: var(--line);
}
.btn-secondary:hover { background: #f1f3f4; box-shadow: 0 1px 2px rgba(32,33,36,.1); }

/* ---------- home page ---------- */

.page-home .content { display: flex; align-items: center; justify-content: center; }

.hero {
  width: 100%;
  max-width: 620px;
  padding: 40px 20px 80px;
  text-align: center;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- results ---------- */

.results {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.results-heading { font-size: 20px; font-weight: 500; margin: 0 0 4px; }
.results-count { color: var(--faint); font-size: 13px; margin: 0 0 28px; }
.results-count strong { color: var(--muted); }

.resultlist { list-style: none; margin: 0; padding: 0; }

.result { margin-bottom: 30px; }
.result-domain {
  display: inline-block;
  font-size: 20px;
  color: var(--accent);
  line-height: 1.3;
}
.result-domain:visited { color: var(--visited); }
.result-title {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.result-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 0;
}
.result strong { font-weight: 700; color: inherit; }

.empty { color: var(--muted); margin-bottom: 32px; }

.results-again { margin-top: 32px; }

.results-submit { margin-top: 40px; font-size: 14px; }

/* ---------- pagination ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pagination a { color: var(--accent); }
.page-current { color: var(--fg); font-weight: 700; }

/* ---------- submit page / forms ---------- */

.submitpage, .notfound, .aboutpage {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.submitpage h1, .notfound h1, .aboutpage h1 { font-size: 24px; font-weight: 500; margin: 0 0 16px; }
.aboutpage p { margin: 0 0 18px; line-height: 1.7; }
.aboutpage code { background: var(--panel); padding: 1px 4px; border-radius: 3px; }
.aboutpage-cta { margin-top: 28px; }
.submitpage-intro { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.submitpage-again { margin-top: 28px; font-size: 14px; }

.stackform { display: flex; flex-direction: column; align-items: flex-start; }
.stackform label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.stackform input[type="text"],
.stackform input[type="password"],
.stackform textarea,
.stackform select {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  outline: none;
}
.stackform input:focus, .stackform textarea:focus, .stackform select:focus {
  border-color: var(--accent);
}
.stackform button { margin-top: 20px; }

.captcha-label { margin-top: 22px; }

.fieldhint { color: var(--faint); font-size: 12px; margin: 6px 0 0; }
.fieldhint code { background: var(--panel); padding: 1px 4px; border-radius: 3px; }

/* ---------- alerts ---------- */

.alert {
  border: 1px solid;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.alert p { margin: 0 0 8px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }
.alert-error   { background: var(--err-bg); border-color: var(--err-line); color: var(--err-fg); }
.alert-notice  { background: var(--info-bg); border-color: var(--info-line); color: var(--info-fg); }
.alert-meta { color: inherit; opacity: .85; }

/* "Request update", offered inside the already-submitted message */
.alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.alert-hint { font-size: 13px; opacity: .85; }

.metapreview { margin: 12px 0 0; font-size: 13px; }
.metapreview dt { font-weight: 700; opacity: .8; }
.metapreview dd { margin: 0 0 8px; }

/* ---------- footer ---------- */

.sitefooter {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--faint);
}
.sitefooter-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
/* wordmark and credit travel together, tighter than the footer's own gap, so
   the middot reads as a separator between them */
.sitefooter-brand { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sitefooter-credit a { color: var(--faint); text-decoration: underline; }
.sitefooter-links { display: flex; gap: 20px; }
.sitefooter-links a { color: var(--faint); }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .logo-large { font-size: 40px; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .searchform-small { max-width: none; width: 100%; }
  .searchform button { padding: 11px 18px; }
}
