/*
Theme Name: Ernesto Base
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Standalone theme for Dr. Palomo’s site.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ernesto-base
*/


@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Inclusive+Sans:ital,wght@0,300..700;1,300..700&display=swap');

/* ---------- Base reset (light) ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}
main{
}
body, p, ul li, ol li, details summary:not([role]){
	margin: 0;
  font-family: "Inclusive Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
	line-height: 1.6;
  color: var(--wp--preset--color--text);
  /* background-color: var(--wp--preset--color--background); */
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
body > footer, body > header, body > main {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: calc(var(--block-spacing-vertical))/2 0;
}
.center-block {
  margin-left: auto;
  margin-right: auto;
}
a {
  color: var(--wp--preset--color--accent);
}

p, h3{
  color: var(--wp--preset--color--text);
}
h1, h2 {
  color: #1c1273;
}
p{
  line-height: 1.6em;
  font-size: 1.2em;
  padding-bottom: 1em;
  margin-right: 1em;
}
p.muted {
  color: var(--wp--preset--color--muted);
}
h1, h2, h3 {
  margin-bottom: .5em;
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
}
section {
  padding: 1rem 1.5rem;
  margin-bottom: 12px;
}

section:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
}
.site-branding{
  background: var(--wp--preset--color--accent);
  padding: 0.6em 0;
}
.custom-logo {
  max-height: 120px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Menu */

.main-navigation .menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.main-navigation .menu li {
  position: relative;
}

.main-navigation .menu li a {
  text-decoration: none;
  color: #1f2933;
  padding: 0.3rem 1rem;
  display: block;
}
.menu li ul {
  position: absolute;
  top: calc(100% - 1px); /* overlap by 1px */
  left: 0;
  margin: 0;    /* remove Pico.css default margin */
  padding: 0;
  display: none; /* hidden by default */
}

.menu li:hover > ul, .menu li:hover > ul li{
  display: block;
  background: #dedede;
  border-top: 1px solid #efefef;
  z-index: 2;
}


.container{
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.wp-singular article{
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--wp--preset--color--background);
  padding: 1em 3em;
}





/* Flexbox utilities */
.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Gap utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Padding utilities */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

/* Margin utilities */
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Column utilities for flex layout */
.columns-1 { display: flex; flex-wrap: wrap; }
.columns-1 > * { flex: 0 0 100%; }

.columns-2 { display: flex; flex-wrap: wrap; }
.columns-2 > * { flex: 0 0 50%; }

.columns-2 {
    display: flex;
    flex-wrap: wrap;
}

.columns-3 { display: flex; flex-wrap: wrap; }
.columns-3 > * { flex: 0 0 33.333%; }

.columns-4 { display: flex; flex-wrap: wrap; }
.columns-4 > * { flex: 0 0 25%; }

/* Optional: spacing between columns */
.columns-1 > *,
.columns-2 > *,
.columns-3 > *,
.columns-4 > * {
    padding: 0.5rem; /* adjust as needed */
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .columns-2 > *,
    .columns-3 > *,
    .columns-4 > * {
        flex: 0 0 100%;
    }
}

/* Simple responsive helper */
@media (max-width: 768px) {
    .flex-row { flex-direction: column; }
}

.smaller-div{
max-width: 300px;
}

details{
  border-bottom: none;
}


footer{
  background: var(--wp--preset--color--accent);
}
footer .container{
  padding: 1em 0
}
footer a, footer p{
  color: white;
} 