/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



/* =====================================================================
   VAKIETA site styles (extracted from inline CSS)
   ===================================================================== */
:root {
  --bg: #f3efe6;
  --panel: #ffffff;
  --panel-soft: #f7f4ed;
  --ink: #0f1b2b;
  --muted: #667085;
  --accent: #0f1b2b;
  --accent-2: #3d4a5a;
  --border: #e5dfd3;
  --ok: #2ec4b6;
  --warn: #b08968;
  --danger: #d64545;
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(243,239,230,0.90); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--border); object-fit: cover; box-shadow: var(--shadow); }
.brand-name { font-weight: 700; letter-spacing: 0.5px; }
.menu { display: flex; gap: 18px; }
.menu a { color: var(--muted); font-weight: 600; }
.menu a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 36px; background:
  radial-gradient(1000px 400px at 50% -50%, rgba(15,27,43,0.06), transparent 60%),
  radial-gradient(600px 300px at 80% 0%, rgba(61,74,90,0.04), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.eyebrow { color: var(--accent-2); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; }
h1 { margin: 10px 0 12px; font-size: 40px; line-height: 1.15; }
.lead { color: var(--ink); font-size: 18px; }
.cta-row { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--accent); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--accent); }
.note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.hero-card { background: var(--panel-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); margin-right: 6px; margin-bottom: 6px; }

/* Sections */
section { padding: 56px 0; border-bottom: 1px solid var(--border); }
h2 { font-size: 28px; margin: 0 0 10px; }
p { margin: 10px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
/* Scoped muted text: only in asides/notes/footer should be muted */
.hero-card .muted, .note, footer { color: var(--muted); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid var(--border); padding: 12px; text-align: left; }
.table th { background: #f7f4ed; color: var(--ink); font-weight: 700; }

/* CTA footer */
.cta { text-align: center; padding: 60px 0; background:
  radial-gradient(900px 360px at 50% -20%, rgba(15,27,43,0.05), transparent 60%),
  radial-gradient(700px 280px at 20% 10%, rgba(61,74,90,0.04), transparent 60%);
}
.cta h2 { font-size: 32px; }
.footer { padding: 22px 0; color: var(--muted); text-align: center; font-size: 14px; }

/* Utilities */
.mt-6{margin-top:6px}
.mt-10{margin-top:10px}
.mt-12{margin-top:12px}
.mt-16{margin-top:16px}
.mt-18{margin-top:18px}
.mb-8{margin-bottom:8px}
.overflow-auto{overflow:auto}
.justify-center{justify-content:center!important}

/* Responsive */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}


/* Additional typography for framework page */
h3 { font-size: 20px; margin: 18px 0 6px; }
