/* HITtools. One plain stylesheet; no inline styles anywhere (the CSP forbids them). Scouting Nederland green leads, yellow is an
   accent. The e-mail signature itself does not use this file: it has inline styles (templates/signature/email.html). */
:root {
  --green: #009036;       /* Scouting Nederland house style, PMS 354 (Huisstijlhandleiding, p. 4) */
  --green-dark: #007A2E;  /* hover and links: darker shade of the house green */
  --green-soft: #E6F4EB;  /* light tint of the house green */
  --yellow: #FFD200;
  --text: #2B2B2B;
  --muted: #5F6B63;
  --line: #DDE3DE;
  --bg: #F4F6F3;
  --card: #FFFFFF;
  --error: #B00020;
  --warning: #8A5A00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
a { color: var(--green-dark); }
h1, h2 { line-height: 1.2; }
h1 { font-size: 30px; margin: 0 0 8px; color: var(--text); }
h2 { font-size: 18px; margin: 0 0 16px; }

/* --- header and footer --- */
.site-header { background: var(--green); color: #FFFFFF; border-bottom: 4px solid var(--yellow); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none;
         font-weight: bold; font-size: 20px; }
.brand img { display: block; border-radius: 6px; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-left: auto; }
.site-header nav a { color: #FFFFFF; text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.site-header nav form { margin: 0; }
.link-button { background: none; border: 0; color: #FFFFFF; padding: 6px 2px; font: inherit; cursor: pointer; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px;
               padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted);
               font-size: 14px; }
.site-footer a { color: var(--muted); }

main.wrap { padding-top: 32px; }
.intro { margin-bottom: 24px; }
.lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 680px; }
.flash { padding: 12px 16px; border-radius: var(--radius); background: var(--card); border-left: 4px solid var(--green); }
.flash.error { border-left-color: var(--error); }

/* --- cards, buttons, forms --- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 24px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
button { font: inherit; font-weight: bold; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--green);
         background: var(--green); color: #FFFFFF; cursor: pointer; }
button:hover { background: var(--green-dark); border-color: var(--green-dark); }
button.secondary { background: #FFFFFF; color: var(--green-dark); }
button.secondary:hover { background: var(--green-soft); }
button.primary { padding: 12px 24px; font-size: 17px; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: bold; margin-bottom: 6px; }
.field input { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: #FFFFFF;
               border: 1px solid #C9D2CB; border-radius: 6px; }
.field input:focus { border-color: var(--green); outline: 3px solid var(--green-soft); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hint { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.field-error { display: block; margin-top: 4px; font-size: 14px; color: var(--error); }
.field-error:empty { display: none; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.status { font-weight: bold; }
.status.success { color: var(--green-dark); }
.status.warning { color: var(--warning); }
.status.error { color: var(--error); }
kbd { font-family: inherit; font-size: 14px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px;
      border-radius: 4px; background: var(--bg); }

/* --- home: tools --- */
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px;
             grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tool-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; background: var(--card);
             border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
             color: var(--text); text-decoration: none; }
a.tool-card:hover { border-color: var(--green); }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
             border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-weight: bold;
             font-size: 22px; }
.tool-title { font-weight: bold; font-size: 19px; }
.tool-text { color: var(--muted); flex: 1; }
.tool-link { color: var(--green-dark); font-weight: bold; }
.tool-card-soon { background: transparent; box-shadow: none; border-style: dashed; }
.tool-card-soon .tool-icon { background: #FFFFFF; }

/* --- signature generator --- */
.signature-tool { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.signature-side { display: grid; gap: 24px; position: sticky; top: 16px; }
.mail-frame { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #FFFFFF; }
.mail-frame iframe { display: block; width: 100%; height: 250px; border: 0; background: #FFFFFF; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.source summary { cursor: pointer; font-weight: bold; font-size: 18px; }
.source[open] summary { margin-bottom: 12px; }
.source p { color: var(--muted); margin-top: 0; }
.source textarea { width: 100%; padding: 12px; font-family: Consolas, "Courier New", monospace; font-size: 13px;
                   border: 1px solid var(--line); border-radius: 6px; background: var(--bg); resize: vertical; }

@media (max-width: 860px) {
  .signature-tool { grid-template-columns: minmax(0, 1fr); }
  .signature-side { position: static; }
  .mail-frame iframe { height: 300px; }
}
@media (max-width: 480px) {
  h1 { font-size: 26px; }
  .card { padding: 18px; }
  .brand span { font-size: 18px; }
}

.notice { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--warning); background: #FFF8E1;
          border-radius: 6px; font-size: 14px; }
.notice code { word-break: break-all; }
