/* ==========================================================================
   Iguazu Noticias — Base
   Reset, element defaults, and the primitives every component leans on.
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Anchor jumps must clear the sticky section nav. */
    scroll-padding-top: var(--scroll-offset);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-body);
    line-height: var(--leading-normal);
    color: var(--text-body);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
}

p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* IATA airport codes. The UA's dotted underline reads as a typo at body size,
   and the expansion is a bonus here rather than the only source: every code is
   spelled out in the copy around it. */
abbr[title] {
    text-decoration: none;
    cursor: help;
}

a {
    color: var(--text-link);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--green-700);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

strong,
b {
    font-weight: var(--weight-bold);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img,
picture,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
}

/* The [hidden] attribute has to beat any display a component sets, or a hidden
   grid item still occupies its track. */
[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

/* Available to assistive tech, invisible on screen. Never display:none. */
.ig-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ig-skip-link {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 200;
    transform: translate(-50%, -110%);
    padding: 12px 22px;
    background: var(--ink);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: transform var(--dur) var(--ease-out);
}

.ig-skip-link:focus {
    transform: translate(-50%, 0);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Reveal on scroll

   Visible by default: with JavaScript off, or before the module runs, nothing
   is ever hidden. reveal-on-scroll.js opts each element in by adding --armed.
   -------------------------------------------------------------------------- */

.ig-reveal {
    opacity: 1;
    transform: none;
}

.ig-reveal--armed {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.6s var(--ease-out);
}

.ig-reveal--armed.is-in {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

/* Inline SVG icon. Size and colour come from here, never from the file. */
.ig-icon {
    width: 22px;
    height: 22px;
    flex: none;
    display: block;
}

.ig-icon--sm {
    width: 17px;
    height: 17px;
}

.ig-icon--xs {
    width: 15px;
    height: 15px;
}

.ig-icon--lg {
    width: 26px;
    height: 26px;
}

/* Circular tinted chip: the design's one home for icons. */
.ig-chip {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink);
    flex: none;
}

.ig-chip--mint    { background: var(--green-400); }
.ig-chip--leaf    { background: var(--green-100); }
.ig-chip--violet  { background: var(--violet-100); color: var(--violet-700); }
.ig-chip--magenta { background: var(--magenta-100); color: var(--magenta-800); }
.ig-chip--dark    { background: var(--purple-900); color: var(--green-400); }

.ig-chip--sm {
    width: 44px;
    height: 44px;
}

/* Two-tone headlines: the key phrase in forest, or orchid for premium moments. */
.ig-hl {
    color: var(--green-700);
}

.ig-hl--premium {
    color: var(--magenta-700);
}

/* Eyebrow: tiny bold caps in forest green with an orchid dot. */
.ig-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--green-700);
}

.ig-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px var(--magenta-100);
}

/* Pill badge. */
.ig-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    color: var(--ink);
    white-space: nowrap;
}

.ig-badge--mint    { background: var(--green-400); }
.ig-badge--leaf    { background: var(--green-100); }
.ig-badge--violet  { background: var(--violet-100); color: var(--violet-700); }
.ig-badge--magenta { background: var(--magenta-100); color: var(--magenta-800); }
.ig-badge--dark    { background: var(--purple-900); color: var(--green-400); }
.ig-badge--outline { background: #fff; border: 1px solid var(--neutral-200); color: var(--text-muted); }

/* Generated reviewer avatar (inc/Components/Avatar.php). */
.ig-avatar {
    width: 38px;
    height: 38px;
    flex: none;
    display: block;
    border-radius: 50%;
}

.ig-avatar__initial {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: var(--weight-bold);
}

.ig-avatar--leaf .ig-avatar__disc       { fill: var(--green-100); }
.ig-avatar--leaf .ig-avatar__initial    { fill: var(--ink); }
.ig-avatar--mint .ig-avatar__disc       { fill: var(--green-400); }
.ig-avatar--mint .ig-avatar__initial    { fill: var(--ink); }
.ig-avatar--violet .ig-avatar__disc     { fill: var(--violet-100); }
.ig-avatar--violet .ig-avatar__initial  { fill: var(--violet-700); }
.ig-avatar--magenta .ig-avatar__disc    { fill: var(--magenta-100); }
.ig-avatar--magenta .ig-avatar__initial { fill: var(--magenta-800); }

/* Section photographs. */
.ig-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card shell. */
.ig-card {
    background: var(--surface-card);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ig-card--hover {
    transition:
        transform var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out);
}

.ig-card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.ig-card__body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ig-card__title {
    font-size: var(--text-xl);
}

.ig-card__foot {
    padding: var(--space-4) var(--space-6) var(--space-5);
    border-top: 1px solid var(--neutral-100);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Prose (the default page template and the_content)
   -------------------------------------------------------------------------- */

.ig-prose > * + * {
    margin-top: var(--space-5);
}

.ig-prose__title {
    font-size: var(--text-3xl);
}

.ig-prose__meta {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.ig-prose h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-10);
}

.ig-prose h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-8);
}

.ig-prose ul,
.ig-prose ol {
    padding-left: 1.35em;
    list-style: revert;
}

.ig-prose li + li {
    margin-top: var(--space-2);
}

.ig-prose img {
    border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   Motion preferences

   One global switch: it neutralizes the reveal transitions, the floating icon
   chips and smooth scrolling in a single place, so no component has to
   remember to.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .ig-reveal--armed {
        opacity: 1;
        transform: none;
    }
}
