/* ==========================================================================
   MySassaStatus — static site stylesheet
   Design tokens reproduced from the previous Kadence/WordPress build so the
   look and feel is unchanged.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Webfont — Inter, self-hosted
   Single variable file covering weights 400-700, subset to Latin + the
   punctuation this site uses. No request ever leaves the server.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --c1: #2b6cb0;   /* primary / link blue      */
  --c2: #215387;   /* primary hover            */
  --c3: #1a202c;   /* headings                 */
  --c4: #2d3748;   /* body text                */
  --c5: #4a5568;   /* nav links                */
  --c6: #718096;   /* borders, muted           */
  --c7: #edf2f7;   /* hero / pre background    */
  --c8: #f7fafc;   /* page background          */
  --c9: #ffffff;   /* card background          */
  --accent: #fbbe2b;        /* header bar, footer bar, primary button */
  --accent-hover: #215387;
  --whatsapp: #23d366;

  --link: var(--c1);
  --link-hover: var(--c2);

  /* Spacing */
  --sp-xs: 1em;
  --sp-sm: 1.5rem;
  --sp-md: 2rem;
  --sp-lg: 2.5rem;
  --sp-xxl: 5rem;

  /* Layout */
  --content-width: 1290px;
  --content-narrow: 842px;
  --edge-padding: 1.5rem;
  --boxed-padding: 2rem;

  /* Typography — Inter is self-hosted (see @font-face above). The fallbacks
     are the system UI faces, so text stays readable while the font loads. */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-heading: inherit;
  --font-mono: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

@media all and (max-width: 767px) {
  :root { --boxed-padding: 1.5rem; }
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* No font-smoothing or text-rendering overrides here on purpose: the previous
   site set none, and forcing them changes how thick the text looks. */
body {
  margin: 0;
  background: var(--c8);
  color: var(--c4);
  font-family: var(--font-body);
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
}

/* Static (non-archive) pages sit on a white background like the original */
body.page-flat { background: var(--c9); }

main { display: block; min-width: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c3);
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p { margin: 0 0 var(--sp-md); }

a {
  color: var(--link);
  background-color: transparent;
  text-underline-offset: 0.1em;
}

a:hover,
a:focus { color: var(--link-hover); }

strong, b { font-weight: 700; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}

ul { list-style: disc; }

code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

pre {
  background: var(--c7);
  font-family: "Courier 10 Pitch", Courier, monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 100%;
  overflow: auto;
  padding: 1.5em;
  white-space: pre-wrap;
}

pre code { font-size: inherit; }

blockquote {
  margin: 0 0 var(--sp-md);
  padding-left: 1em;
  border-left: 4px solid var(--c4);
  quotes: "\201C" "\201D";
}

blockquote > :last-child { margin-bottom: 0; }

/* Matches the browser default the previous site relied on. */
mark {
  background: #ff0;
  color: #000;
}

figure { margin: 0.5em 0; }

hr {
  border: 0;
  border-top: 1px solid var(--c7);
  margin: var(--sp-md) 0;
}

/* Accessibility helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 100001;
  background: var(--c9);
  color: var(--c3);
  padding: 0.75em 1.25em;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. Layout shell
   -------------------------------------------------------------------------- */
#wrapper {
  overflow: hidden;
  overflow: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#inner-wrap { flex: 1 0 auto; }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--edge-padding);
}

.content-area { margin: var(--sp-xxl) 0; }

@media all and (max-width: 1024px) {
  .content-area { margin: 3rem 0; }
}

@media all and (max-width: 767px) {
  .content-area { margin: 2rem 0; }
}

/* Narrow container used by article pages */
.content-narrow .content-container { max-width: var(--content-narrow); }

.site-main { min-width: 0; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 11;
  background: var(--c9);
}

.header-bar { background: var(--accent); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.site-branding .brand {
  display: flex;
  align-items: center;
  gap: 1em;
  text-decoration: none;
  color: inherit;
}

.site-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c3);
}

/* Desktop navigation */
.main-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .menu li a {
  display: block;
  padding: 0.6em 0.6em;
  color: var(--c5);
  text-decoration: none;
}

.main-navigation .menu li a:hover,
.main-navigation .menu li a:focus { color: var(--link); }

.main-navigation .menu li.current-menu-item > a { color: var(--c3); }

/* Mobile toggle button */
.menu-toggle-open {
  display: none;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  color: var(--c5);
  font-family: inherit;
  font-size: 14px;
  padding: 0.4em 0.6em;
}

.menu-toggle-open svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

@media screen and (max-width: 1024px) {
  .main-navigation { display: none; }
  .menu-toggle-open { display: flex; }
}

/* --------------------------------------------------------------------------
   5. Mobile drawer
   -------------------------------------------------------------------------- */
.popup-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: hidden;
  pointer-events: none;
}

.popup-drawer .drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.popup-drawer .drawer-inner {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #090c10;
  color: #fff;
  box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.drawer-open .popup-drawer {
  visibility: visible;
  pointer-events: auto;
}

body.drawer-open .popup-drawer .drawer-overlay { opacity: 1; }

body.drawer-open .popup-drawer .drawer-inner {
  opacity: 1;
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.5em;
  min-height: calc(1.2em + 24px);
}

.drawer-toggle {
  position: relative;
  width: 1em;
  height: 1em;
  box-sizing: content-box;
  padding: 0.6em 0.15em;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: flex;
}

.drawer-toggle .toggle-close-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75em;
  height: 0.08em;
  margin-top: -0.04em;
  margin-left: -0.375em;
  background: currentColor;
  border-radius: 0.08em;
  transform-origin: center center;
  transform: rotate(45deg) translateX(-50%);
}

.drawer-toggle .toggle-close-bar:last-child {
  transform: rotate(-45deg) translateX(50%);
}

.drawer-content { padding: 0 1.5em 1.5em; }

.mobile-navigation ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-navigation li { font-size: 14px; }

.mobile-navigation li a {
  display: block;
  width: 100%;
  padding: 1em 0.5em;
  color: var(--c8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation li.current-menu-item > a { color: var(--link); }

/* --------------------------------------------------------------------------
   6. Content card (single page / post)
   -------------------------------------------------------------------------- */
.entry {
  background: var(--c9);
  border-radius: 0.25rem;
  box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.05);
}

.entry.single-entry { box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.05); }

.entry-content-wrap { padding: var(--boxed-padding); }

@media screen and (max-width: 719px) {
  .entry:not(.loop-entry) {
    margin-left: -1rem;
    margin-right: -1rem;
    width: auto;
  }
}

.entry-header .entry-title { margin: 0; }

.single-content {
  margin: var(--sp-md) 0 0;
  word-break: break-word;
}

.single-content > :first-child { margin-top: 0; }

.single-content p,
.single-content .btn-row,
.single-content .table-wrap,
.single-content blockquote,
.single-content pre {
  margin-top: 0;
  margin-bottom: var(--sp-md);
}

/* Lists indent with padding, not margin, so the marker sits 2em in. */
.single-content ul,
.single-content ol {
  margin: 0 0 var(--sp-md);
  padding-left: 2em;
}

.single-content li > ul,
.single-content li > ol { margin: 0; }

/* A trailing block never adds space inside its container — this is what keeps
   the paragraph inside a blockquote flush with the quote's bottom edge. */
.single-content p:last-child,
.single-content ul:last-child,
.single-content ol:last-child,
.single-content .table-wrap:last-child { margin-bottom: 0; }

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4 { margin: 1.5em 0 0.5em; }

.single-content h1:first-child { margin-top: 0; }

.single-content h1 + *,
.single-content h2 + *,
.single-content h3 + *,
.single-content h4 + * { margin-top: 0; }

.single-content > :last-child { margin-bottom: 0; }

.has-text-align-center { text-align: center; }

/* Title-hidden pages put their own h1 inside the content */
.title-hidden .single-content { margin-top: 0; }

/* --------------------------------------------------------------------------
   7. Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }

.table-wrap table,
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table-wrap table.fixed { table-layout: fixed; }

.table-wrap th,
.table-wrap td,
.single-content th,
.single-content td {
  padding: 0.5em;
  border: 1px solid var(--c6);
  word-break: normal;
  text-align: left;
}

.table-wrap table.fixed th,
.table-wrap table.fixed td { word-break: break-word; }

.table-wrap thead { border-bottom: 3px solid var(--c6); }

.table-wrap th { text-align: center; }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  overflow: hidden;
  padding: 0.4em 1em;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: var(--c9);
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.btn:visited {
  background: var(--accent);
  color: var(--c9);
}

.btn-lg { font-size: 1.35rem; }

.btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Homepage hero buttons */
.btn-primary {
  border-radius: 15px;
  background: var(--accent);
  color: var(--c3);
}

.btn-primary:visited { color: var(--c3); }

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
  color: var(--c9);
}

/* Neutral counterpart to .btn-primary, same shape without the brand colour. */
.btn-secondary {
  border-radius: 15px;
  background: var(--c8);
  color: var(--c1);
  box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary:visited {
  background: var(--c8);
  color: var(--c1);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--c1);
  color: var(--c9);
}

.btn-whatsapp {
  border-radius: 15px;
  background: var(--c8);
  color: var(--whatsapp);
  box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-whatsapp:visited {
  background: var(--c8);
  color: var(--whatsapp);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: var(--whatsapp);
  color: var(--c9);
}

/* --------------------------------------------------------------------------
   9. Archive (category) page
   -------------------------------------------------------------------------- */
.entry-hero { position: relative; }

.entry-hero-inner { background: var(--c7); }

.entry-hero-inner .entry-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin-bottom: 0;
  text-align: center;
}

.posts-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--sp-lg);
  row-gap: var(--sp-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 576px) {
  .posts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (min-width: 1025px) {
  .posts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.posts-list > li {
  display: flex;
  flex-direction: column;
}

.posts-list > li > article { flex: 1; }

.loop-entry { box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.05); }

.loop-entry .entry-content-wrap { padding: var(--boxed-padding); }

.loop-entry .entry-title {
  margin: 0;
  font-size: 28px;
  word-wrap: break-word;
}

.loop-entry .entry-title a {
  color: var(--c3);
  text-decoration: none;
}

.loop-entry .entry-title a:hover,
.loop-entry .entry-title a:focus { color: var(--link); }

.entry-taxonomies {
  margin-bottom: 0.5em;
  font-size: 70%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media screen and (max-width: 719px) {
  .loop-entry .entry-taxonomies { margin-bottom: 1em; }
}

.entry-taxonomies a {
  font-weight: 700;
  text-decoration: none;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 1em 0;
  font-size: 80%;
}

.entry-meta > * {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.entry-meta a {
  color: inherit;
  text-decoration: none;
}

.entry-meta time { white-space: nowrap; }

.entry-meta .meta-label { margin-right: 0.2rem; }

.entry-meta > *::after {
  content: "";
  display: inline-block;
  width: 0.25rem;
  height: 0.25rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  background-color: currentColor;
  border-radius: 9999px;
  opacity: 0.8;
  vertical-align: 0.1875em;
}

.entry-meta > *:last-child::after { display: none; }

.entry-summary { margin: var(--sp-xs) 0 0; }

.entry-summary p { margin: 1em 0; }

.post-more-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 80%;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.post-more-link:hover,
.post-more-link:focus { color: var(--link); }

.post-more-link svg {
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  fill: currentColor;
}

/* Archive pagination */
/* 2.5em, not 2.5rem — the grid gap below is the rem one. */
.pagination {
  margin: 2.5em auto;
  overflow: hidden;
}

/* Page numbers sit in normal inline flow, matching the previous build. */
.pagination .nav-links { flex-wrap: wrap; }

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 2.5em;
  margin-right: 0.5em;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  color: inherit;
  line-height: 2.25em;
  text-align: center;
  text-decoration: none;
}

.pagination .page-numbers:last-child { margin-right: 0; }

.pagination a:hover,
.pagination a:focus,
.pagination a:active { border-color: var(--accent); }

.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--c9);
}

.pagination svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--accent); }

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-html {
  margin: 1em 0;
  flex: 1;
  min-width: 0;
}

.footer-html p:first-child { margin-top: 0; }

.footer-html p:last-child { margin-bottom: 0; }

.footer-html a {
  color: var(--c3);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11. Ad slots
   -------------------------------------------------------------------------- */
.code-block {
  display: block;
  clear: both;
  margin: 8px auto;
  text-align: center;
}

.adsbygoogle { display: block; }

/* --------------------------------------------------------------------------
   12. 404
   -------------------------------------------------------------------------- */
.error-404 { text-align: center; }

.error-404 .btn-row { margin-top: var(--sp-md); }

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .popup-drawer,
  .code-block { display: none !important; }

  body { background: #fff; }

  .entry { box-shadow: none; }
}
