/*
Theme Name: Veta Madre
Theme URI: https://vetamadrereview.com
Author: Tyvora Ventures
Description: Clean, wide, readable editorial theme for Veta Madre Review. Colombian Mining & Exploration.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veta-madre
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #E3A82B; color: #0D2117; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* Links: underline only on hover, keep body links clearly marked */
.entry-content a, .wp-block-post-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0,97,74,.35); }
.entry-content a:hover, .wp-block-post-content a:hover { text-decoration-color: currentColor; }

/* ---------- Masthead ---------- */
.vm-masthead { border-bottom: 3px solid var(--wp--preset--color--gold); }
.vm-brand { text-decoration: none !important; display: inline-flex; flex-direction: column; gap: 2px; }
.vm-brand__name { font-family: var(--wp--preset--font-family--display); font-weight: 600; letter-spacing: .08em; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--wp--preset--color--statue-gold); line-height: 1; }
.vm-brand__desc { font-family: var(--wp--preset--font-family--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wp--preset--color--silver); }
.vm-masthead .wp-block-navigation a { text-decoration: none; }
.vm-masthead .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--statue-gold); }
.vm-masthead .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--forest) !important; color: var(--wp--preset--color--bone) !important; }
.vm-cta a, a.vm-cta { border: 1px solid var(--wp--preset--color--statue-gold); color: var(--wp--preset--color--statue-gold) !important; padding: .45em 1em; border-radius: 2px; }
.vm-cta a:hover, a.vm-cta:hover { background: var(--wp--preset--color--statue-gold); color: var(--wp--preset--color--forest) !important; }

/* ---------- Section labels ---------- */
.vm-kicker, .vm-kicker a, .wp-block-post-terms.vm-kicker a {
  font-family: var(--wp--preset--font-family--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--wp--preset--color--emerald-deep); text-decoration: none !important;
}
.vm-section-title { display: flex; align-items: center; gap: 16px; }
.vm-section-title::after { content: ""; flex: 1; height: 1px; background: var(--wp--preset--color--rule); }

/* ---------- Cards / lists ---------- */
.vm-card .wp-block-post-title a { text-decoration: none; }
.vm-card .wp-block-post-title a:hover { color: var(--wp--preset--color--emerald-deep); }
.vm-card { border-top: 1px solid var(--wp--preset--color--rule); padding-top: 18px; }
.vm-lead .wp-block-post-title a { text-decoration: none; }
.vm-meta, .vm-meta a { color: var(--wp--preset--color--muted); font-size: .85rem; text-decoration: none; }
.wp-block-post-featured-image img { border-radius: 2px; }

/* ---------- Article ---------- */
.vm-standfirst { color: var(--wp--preset--color--muted); }
.wp-block-post-content > h2 { margin-top: 2.2em; }
.wp-block-post-content blockquote, .wp-block-quote { border-left: 3px solid var(--wp--preset--color--gold); padding-left: 1.2em; margin-left: 0; }
.wp-block-post-content table, .wp-block-table table { font-family: var(--wp--preset--font-family--sans); font-size: .95rem; line-height: 1.45; border-collapse: collapse; width: 100%; }
.wp-block-table td:nth-child(2) { font-family: var(--wp--preset--font-family--mono); font-size: .85rem; white-space: nowrap; color: var(--wp--preset--color--emerald-deep); }
.wp-block-table td:first-child { font-weight: 600; color: var(--wp--preset--color--forest); }
.wp-block-table tbody tr:hover { background: var(--wp--preset--color--bone); }
@media (max-width: 781px) { .wp-block-table { overflow-x: auto; } .wp-block-table table { min-width: 720px; } }
.wp-block-table th { background: var(--wp--preset--color--bone); text-align: left; font-family: var(--wp--preset--font-family--sans); font-weight: 600; }
.wp-block-table td, .wp-block-table th { border: 0; border-bottom: 1px solid var(--wp--preset--color--rule); padding: .7em .9em; vertical-align: top; }
.wp-block-table thead { border-bottom: 2px solid var(--wp--preset--color--forest); }
.wp-block-table figcaption { font-size: .8rem; color: var(--wp--preset--color--muted); }
.vm-disclaimer { border-top: 1px solid var(--wp--preset--color--rule); color: var(--wp--preset--color--muted); }

/* ---------- Newsletter band ---------- */
.vm-vein { background-image: linear-gradient(90deg, transparent 0, transparent 100%); }
.vm-vein .wp-block-button__link { font-family: var(--wp--preset--font-family--sans); letter-spacing: .04em; }

/* ---------- Footer ---------- */
.vm-footer a { color: var(--wp--preset--color--bone); text-decoration: none; }
.vm-footer a:hover { color: var(--wp--preset--color--statue-gold); }
.vm-footer .vm-fineprint { color: var(--wp--preset--color--silver); }

/* ---------- Pagination ---------- */
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
  .vm-brand__desc { display: none; }
  .vm-hide-mobile { display: none !important; }
}

/* ---------- Home hero ---------- */
.vm-hero { position: relative; overflow: hidden; }
.vm-hero__title { font-size: clamp(2.6rem, 5.4vw, 4.25rem) !important; line-height: 1.04 !important; letter-spacing: -0.015em; margin-top: .35rem; }
.vm-hero__lede { max-width: 34em; line-height: 1.55; }
.vm-btn-ghost .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--bone) !important; border: 1px solid rgba(243,239,230,.45); }
.vm-btn-ghost .wp-block-button__link:hover { border-color: var(--wp--preset--color--statue-gold); color: var(--wp--preset--color--statue-gold) !important; }
.vm-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: var(--wp--preset--spacing--50) 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(184,188,194,.22); }
.vm-stats div { display: flex; flex-direction: column-reverse; }
.vm-stats dd { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--wp--preset--color--statue-gold); }
.vm-stats dt { margin-top: .45rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--silver); }

/* Map */
.vm-mapfig { margin: 0; }
.vm-mapfig a { display: block; text-decoration: none !important; }
.vm-map { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; overflow: visible; }
.vm-land { fill: url(#vmland); stroke: var(--wp--preset--color--gold); stroke-width: 1.2; }
.vm-dot { stroke: var(--wp--preset--color--forest); stroke-width: 1.5; transition: r .15s ease; }
.vm-dot.au { fill: var(--wp--preset--color--statue-gold); }
.vm-dot.cu { fill: var(--wp--preset--color--sky); }
.vm-dot:hover { r: 8; }
.vm-city { fill: var(--wp--preset--color--silver); }
.vm-city-l { fill: var(--wp--preset--color--silver); font: 500 11px var(--wp--preset--font-family--sans); letter-spacing: .06em; }
.vm-mapfig figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-top: .9rem; font-size: .78rem; color: var(--wp--preset--color--silver); }
.vm-key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .45em; }
.vm-key.au { background: var(--wp--preset--color--statue-gold); }
.vm-key.cu { background: var(--wp--preset--color--sky); }
.vm-mapnote { flex-basis: 100%; text-align: center; opacity: .75; }

/* Start here */
.vm-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.vm-guide { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.6rem 1.4rem; background: var(--wp--preset--color--bone); border-top: 3px solid var(--wp--preset--color--gold); text-decoration: none !important; color: var(--wp--preset--color--ink); transition: transform .15s ease, box-shadow .15s ease; }
.vm-guide:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(13,33,23,.35); }
.vm-guide__num { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; color: var(--wp--preset--color--gold); }
.vm-guide strong { font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; font-weight: 600; color: var(--wp--preset--color--forest); line-height: 1.25; }
.vm-guide span:not(.vm-guide__num) { font-size: 1rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.vm-guide em { margin-top: auto; padding-top: .6rem; font-style: normal; font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--emerald-deep); }

@media (max-width: 781px) {
  .vm-hero__map { order: -1; }
  .vm-map { max-width: 280px; }
  .vm-guides { grid-template-columns: 1fr; }
  .vm-stats { gap: 1.25rem; }
}
