/*
Theme Name: BNG Hub Child
Description: Dark visual foundation for BNG Hub. Requires the free GeneratePress parent theme.
Author: BNG Hub
Template: generatepress
Version: 0.3.10
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bnghub-child
*/

/* GeneratePress Global Colors is the editable source of truth.
   No GeneratePress palette variable is overridden here. */
:root {
  color-scheme: dark;
  --bng-background: var(--base-2, #101820);
  --bng-surface: var(--base-3, #18232e);
  --bng-surface-raised: var(--base, #223240);
  --bng-text: var(--contrast, #f1f5f9);
  --bng-muted: var(--contrast-2, #b7c5d3);
  --bng-accent: var(--accent, #67d8ef);
  --bng-accent-hover: var(--accent-hover, #a5ebf7);
  --bng-on-accent: var(--on-accent, #101820);
  --bng-heading: var(--section-heading, #e7c98b);
  --bng-border: var(--contrast-3, #597185);
}

/* These are the bespoke finishing rules. Native GeneratePress controls own
   ordinary component colors, fonts and layout. */
.entry-content a:not(.wp-element-button):not(.wp-block-button__link),
.entry-meta a, .entry-footer a, .widget a, .site-info a {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.separate-containers .inside-article,
.separate-containers .comments-area,
.sidebar .widget { border-radius: 10px; }
.site-info { border-top: 1px solid var(--bng-border); }
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
input[type="tel"], input[type="date"], input[type="time"],
input[type="datetime-local"], textarea, select {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--bng-muted); opacity: 1; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--bng-accent); }
/* Button geometry is shared with the editor in assets/block-defaults.css. */
.main-navigation .menu-toggle { min-height: 44px; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--bng-accent);
  outline-offset: 4px;
}
button:disabled, input[type="submit"]:disabled { opacity: .65; cursor: not-allowed; }
table, th, td { border-color: var(--bng-border); }
thead th { background-color: var(--bng-surface-raised); }
blockquote { border-inline-start-color: var(--bng-accent); }
::selection { background: var(--bng-accent); color: var(--bng-on-accent); }
@media print {
  :root { color-scheme: light; }
  body, .site-header, .site-footer .site-info, .one-container .container,
  .separate-containers .inside-article, .sidebar .widget { background: white; color: black; }
  h1, h2, h3, h4, h5, h6, a, .main-title a,
  .entry-title a, .entry-meta, .entry-meta a { color: black; }
  .main-navigation, .sidebar, #wpadminbar { display: none; }
}
