/* Gedeelde stijl voor de tools. Verwijs ernaar met ../_shared/styles.css */

/* Koppen: Arial Bold. Ook als Bommer Slab op het apparaat staat, zodat iedereen hetzelfde ziet.
   Geen webfont: er is (nog) geen weblicentie voor Bommer Slab. Besluit 21-11-2026, zie brand/README.md. */

/* General Layout */
body {
    background-color: #FAFAFA;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  .container {
    width: 660px;
    margin: 40px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* Typography */
  h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
  }

  h1 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    padding-top: 10px
  }
  
  /* Input Fields */
  input[type="text"],
  input[type="number"],
  select,
  input[type="range"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 10px;
  }
  
  /* Buttons */
  button {
    padding: 10px 20px;
    background-color: #B90000;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    margin: 10px 5px 0 0;
  }
  
  button:hover {
    background-color: #E74D4D;
  }
  
  /* Focus and disabled, as in brand/tokens.css */
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #B90000;
    outline-offset: 2px;
  }

  button:disabled,
  input:disabled,
  select:disabled {
    opacity: .5;
    cursor: default;
  }

  /* Black button option */
  button.btn-black {
    background-color: #000000;
  }
  
  button.btn-black:hover {
    background-color: #333333;
  }
  
  /* Result Display */
  .result {
    white-space: pre-wrap;
    background-color: #eee;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-top: 20px;
  }
  
  /* Section styling (for grouping calculator sections) */
  .section {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 20px;
  }
  
  /* Zone Types Box */
  .zone-types-box {
    border: 2px solid #ccc;
    padding: 10px;
    border-radius: 0;
    margin-top: 10px;
  }
  
  /* Inline elements (for checkboxes or radio labels) */
  .inline {
    display: inline-block;
    margin-right: 5px;
  }
  
  /* Utility class for hiding elements */
  .hidden {
    display: none;
  }

/* ------------------------------------------------------------------
   Gedeelde header, footer, vervolgstap en embed-modus (rhino.js).
   Regels: sites/tools/README.md
   ------------------------------------------------------------------ */

.rhino-header {
  background: #0A0A0A;
  border-bottom: 3px solid #B90000;
}

.rhino-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rhino-logo {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

.rhino-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 16px;
}

.rhino-nav a:hover { text-decoration: underline; }

.rhino-btn,
.rhino-nav a.rhino-btn {
  display: inline-block;
  background: #B90000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.rhino-btn:hover { background: #E74D4D; text-decoration: none; }
.rhino-btn-black { background: #000; }
.rhino-btn-black:hover { background: #333; }

.rhino-cta {
  max-width: 660px;
  margin: 20px auto;
  padding: 20px;
  background: #F9F9F9;
  border-left: 4px solid #B90000;
  border-radius: 8px;
}

.rhino-cta h2 { margin-top: 0; font-size: 1.2rem; }

.rhino-footer {
  max-width: 960px;
  margin: 40px auto 20px;
  padding: 0 20px;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

.rhino-footer a { color: #555; }

/* Achtergrond via ?bg=white of ?bg=transparent */
.rhino-bg-white body { background-color: #fff; }
.rhino-bg-transparent body { background-color: transparent; }

/* Embed-modus via ?embed=1: alleen de kern */
.rhino-hidden { display: none !important; }

.rhino-embed body { margin: 0; }

.rhino-embed .container,
.rhino-embed .rhino-core {
  box-shadow: none;
  background-color: transparent;
  border-radius: 0;
  margin: 0 auto;
  padding: 0;
  width: auto;
  max-width: 660px;
}

/* ?embed=1&frame=1: de kern in een kader, zoals op de site zelf */
.rhino-embed.rhino-frame .rhino-core {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 12px auto;
}

.rhino-embed .rhino-hide-embed { display: none !important; }
.rhino-embed [onclick*="copyShareUrl"] { display: none !important; }

@media (max-width: 700px) {
  .container { width: auto; margin: 20px 12px; }
  .rhino-nav a { margin-left: 10px; }
}

/* Taalkeuze in de header (EN · NL · ES) */
.rhino-lang { margin-left: 16px; color: #999; font-size: 0.9rem; }
.rhino-lang a { margin-left: 0; color: #ccc; }
.rhino-lang a.rhino-lang-active { color: #fff; font-weight: bold; text-decoration: underline; }

/* Voor rhino.js geladen is (en zonder JavaScript): alleen Engels tonen */
html:not(.rhino-ready) [data-lang]:not([data-lang="en"]) { display: none; }

/* Overzicht van calculators (homepage): kaarten in een raster, zonder JavaScript */
.rhino-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.rhino-cards li {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
}

.rhino-cards h3 { margin: 0 0 6px; font-size: 1rem; }
.rhino-cards h3 a { color: #B90000; }
.rhino-cards p { margin: 0; font-size: 0.9rem; color: #333; }
