/**
 * IrishSheets Theme Custom Styles
 * Bespoke "is-" design system — Irish green identity, structurally distinct from network donor.
 */

/* ===================================================================
   Brand tokens
   =================================================================== */
:root {
    --is-green: #169B62;
    --is-green-dark: #0F7A4C;
    --is-green-darker: #0B5C39;
    --is-green-deep: #073B25;
    --is-green-50: #E7F6EF;
    --is-green-100: #CFEEDF;
    --is-green-200: #A7E0C6;
    --is-gold: #FF883E;
    --is-gold-dark: #E96E22;
    --is-gold-50: #FFF1E7;
    --is-ink: #102A22;
    --is-slate: #334155;
    --is-slate-light: #64748B;
    --is-line: #E2E8F0;
    --is-paper: #F4F8F6;
    /* legacy var names some inline styles may reference */
    --avg-primary: #0B5C39;
    --avg-secondary: #169B62;
}

/* ===================================================================
   WordPress core alignment + nav
   =================================================================== */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

.nav-links { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a, .nav-links span { padding: 0.5rem 1rem; border: 1px solid var(--is-line); border-radius: 0.5rem; }
.nav-links .current { background: var(--is-green); color: white; border-color: var(--is-green); }
.nav-links a:hover { background: var(--is-green-50); color: var(--is-green-dark); }

.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }

.menu-item a { color: var(--is-slate); font-weight: 500; transition: color 0.15s; }
.menu-item a:hover { color: var(--is-green); }
.current-menu-item a { color: var(--is-green); }

/* Widget styles (footer) */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; color: #fff; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 0.5rem; }
.widget ul li a { color: #B6C6BD; transition: color 0.15s; }
.widget ul li a:hover { color: #fff; }

/* ===================================================================
   IrishSheets brand wordmark (header + footer inline mark)
   =================================================================== */
.is-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.is-brand__mark { width: 2.1rem; height: 2.1rem; flex-shrink: 0; display: block; }
.is-brand__name { font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.is-brand__name--head { font-size: 1.4rem; color: var(--is-green-deep); }
.is-brand__name--head .is-accent { color: var(--is-green); }
.is-brand__name--foot { font-size: 1.4rem; color: #fff; }
.is-brand__name--foot .is-accent { color: #4FD49A; }

/* ===================================================================
   Header / navigation  (is-topbar / is-nav)
   =================================================================== */
.is-topbar {
    background: #fff;
    border-bottom: 1px solid var(--is-line);
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 1px 0 rgba(16,42,34,0.04);
}
.is-topbar__inner {
    max-width: 80rem; margin: 0 auto;
    padding: 0 1rem; height: 4.25rem;
    display: flex; align-items: center; gap: 1rem;
}
@media (min-width: 640px) { .is-topbar__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .is-topbar__inner { padding: 0 2rem; } }

.is-nav { display: none; align-items: center; gap: 1.6rem; margin-left: auto; }
@media (min-width: 768px) { .is-nav { display: flex; } }
.is-nav > ul { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.is-nav a.is-nav__link { color: var(--is-slate); font-weight: 600; white-space: nowrap; transition: color .15s; }
.is-nav a.is-nav__link:hover { color: var(--is-green); }

.is-nav__cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--is-green); color: #fff; font-weight: 700;
    padding: 0.55rem 1.1rem; border-radius: 0.6rem; white-space: nowrap;
    transition: background .15s, transform .15s;
}
.is-nav__cta:hover { background: var(--is-green-dark); transform: translateY(-1px); }

.is-burger {
    margin-left: auto; display: inline-flex; padding: 0.5rem; border-radius: 0.5rem;
    color: var(--is-slate); background: transparent; border: 0; cursor: pointer;
}
@media (min-width: 768px) { .is-burger { display: none; } }
.is-burger:hover { background: var(--is-paper); color: var(--is-ink); }

.is-mobile-panel { border-top: 1px solid var(--is-line); background: #fff; }
@media (min-width: 768px) { .is-mobile-panel { display: none; } }
.is-mobile-panel__inner { padding: 0.75rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.is-mobile-panel a.is-nav__link {
    display: block; padding: 0.6rem 0.75rem; border-radius: 0.5rem;
    color: var(--is-slate); font-weight: 600;
}
.is-mobile-panel a.is-nav__link:hover { background: var(--is-paper); color: var(--is-green); }
.is-mobile-panel .is-nav__cta { justify-content: center; margin-top: 0.4rem; }

/* ===================================================================
   Find / search (is-find)
   =================================================================== */
.is-find { position: relative; flex: 1; max-width: 30rem; }
.is-find--head { display: none; }
@media (min-width: 768px) { .is-find--head { display: block; } }
.is-find__icon {
    position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
    width: 1rem; height: 1rem; color: var(--is-slate-light); pointer-events: none;
}
.is-find__field {
    width: 100%; padding: 0.6rem 2.6rem 0.6rem 2.5rem;
    font-size: 0.9rem; color: var(--is-ink);
    background: var(--is-paper); border: 1px solid var(--is-line);
    border-radius: 0.65rem; outline: none;
    transition: box-shadow .15s, border-color .15s, background .15s;
    -webkit-appearance: none;
}
.is-find__field:focus {
    border-color: var(--is-green); background: #fff;
    box-shadow: 0 0 0 3px rgba(22,155,98,0.16);
}
.is-find__go {
    position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; cursor: pointer; padding: 0.3rem;
    color: var(--is-slate-light); display: flex; align-items: center;
}
.is-find__go:hover { color: var(--is-green); }

/* hero variant */
.is-find--hero { max-width: 40rem; margin: 0 auto 1.75rem; }
.is-find--hero .is-find__field {
    padding: 1rem 8rem 1rem 3rem; font-size: 1.05rem;
    background: #fff; border: 0; border-radius: 0.9rem;
    box-shadow: 0 22px 45px -18px rgba(7,59,37,0.55);
}
.is-find--hero .is-find__icon { left: 1.1rem; width: 1.25rem; height: 1.25rem; }
.is-find--hero .is-find__pill {
    position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%);
    background: var(--is-gold); color: #fff; font-weight: 700; border: 0;
    border-radius: 0.65rem; padding: 0.65rem 1.5rem; cursor: pointer;
    transition: background .15s;
}
.is-find--hero .is-find__pill:hover { background: var(--is-gold-dark); }

/* mobile search row */
.is-find--mobile { display: block; max-width: none; margin-bottom: 0.5rem; }

/* archive sidebar search */
.is-find--side .is-find__field { padding: 0.6rem 0.95rem; }

/* ===================================================================
   Layout helpers (is-shell / is-section)
   =================================================================== */
.is-shell { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.is-shell--narrow { max-width: 56rem; }
.is-shell--mid { max-width: 64rem; }
@media (min-width: 640px) { .is-shell { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .is-shell { padding: 0 2rem; } }

.is-section { padding: 4.5rem 0; }
.is-section--tight { padding: 3rem 0; }
.is-section--paper { background: var(--is-paper); }
.is-section--white { background: #fff; }

.is-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.is-head__eyebrow {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--is-green);
    margin-bottom: 0.6rem;
}
.is-head__title { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; color: var(--is-ink); letter-spacing: -0.02em; }
.is-head__sub { margin-top: 0.9rem; font-size: 1.1rem; color: var(--is-slate); line-height: 1.6; }
.is-head--left { text-align: left; margin-left: 0; }

/* ===================================================================
   Responsive auto-fit grids (replace purged Tailwind grid-cols)
   =================================================================== */
.is-grid { display: grid; gap: 1.75rem; }
.is-grid--cats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
@media (min-width: 768px) { .is-grid--cats { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .is-grid--cats { grid-template-columns: repeat(6, minmax(0,1fr)); } }

.is-grid--cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .is-grid--cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .is-grid--cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.is-grid--features { grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .is-grid--features { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .is-grid--features { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.is-grid--two { grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .is-grid--two { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.is-grid--related { grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .is-grid--related { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .is-grid--related { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* single-template content + sidebar layout */
.is-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .is-layout { grid-template-columns: minmax(0,2fr) minmax(0,1fr); } }

/* archive layout: sidebar + main */
.is-browse { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .is-browse { flex-direction: row; } }
.is-browse__aside { flex-shrink: 0; }
@media (min-width: 1024px) { .is-browse__aside { width: 16rem; } }
.is-browse__main { flex: 1; min-width: 0; }

/* archive category filter list */
.is-filter { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.85rem; border-radius: 0.6rem; color: var(--is-slate); transition: background .15s, color .15s; }
.is-filter:hover { background: var(--is-paper); }
.is-filter--active { background: var(--is-green-50); color: var(--is-green-dark); font-weight: 600; }
.is-filter__n { font-size: 0.8rem; color: var(--is-slate-light); }
.is-filter--active .is-filter__n { color: var(--is-green); }

/* ===================================================================
   Cards (is-card) — replaces donor card string
   =================================================================== */
.is-card {
    background: #fff; border: 1px solid var(--is-line);
    border-radius: 1rem; overflow: hidden;
    box-shadow: 0 1px 2px rgba(16,42,34,0.04);
    transition: box-shadow .25s, transform .25s, border-color .25s;
    display: flex; flex-direction: column;
}
.is-card:hover { box-shadow: 0 18px 30px -18px rgba(11,92,57,0.35); transform: translateY(-3px); border-color: var(--is-green-200); }
.is-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.is-card__tag {
    align-self: flex-start; display: inline-block; padding: 0.2rem 0.7rem;
    border-radius: 9999px; font-size: 0.7rem; font-weight: 700; color: #fff;
}
.is-card__title { font-weight: 700; color: var(--is-ink); line-height: 1.35; }
.is-card__title a:hover { color: var(--is-green); }
.is-card__desc { font-size: 0.875rem; color: var(--is-slate-light); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-card__foot { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; border-top: 1px solid var(--is-paper); }
.is-card__dl { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--is-slate-light); }
.is-card__more { color: var(--is-green); font-weight: 700; }
.is-card__more:hover { color: var(--is-green-dark); }

/* small related card */
.is-minicard {
    background: #fff; border: 1px solid var(--is-line); border-radius: 0.85rem;
    padding: 1.1rem; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.is-minicard:hover { box-shadow: 0 12px 22px -14px rgba(11,92,57,0.4); transform: translateY(-2px); border-color: var(--is-green-200); }
.is-minicard__title { font-weight: 600; color: var(--is-ink); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.6rem; }
.is-minicard:hover .is-minicard__title { color: var(--is-green); }
.is-minicard__row { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--is-slate-light); }
.is-minicard__free { color: var(--is-green); font-weight: 700; }

/* category tile */
.is-cat {
    display: flex; flex-direction: column; gap: 0.4rem;
    background: #fff; border: 1px solid var(--is-line); border-radius: 1rem;
    padding: 1.4rem; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.is-cat:hover { box-shadow: 0 16px 26px -18px rgba(11,92,57,0.4); transform: translateY(-3px); border-color: var(--is-green-200); }
.is-cat__icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.35rem; }
.is-cat__name { font-weight: 700; color: var(--is-ink); }
.is-cat:hover .is-cat__name { color: var(--is-green); }
.is-cat__count { font-size: 0.8rem; color: var(--is-slate-light); }

/* ===================================================================
   Hero (is-hero)
   =================================================================== */
.is-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(120% 120% at 85% 0%, rgba(255,136,62,0.22) 0%, rgba(255,136,62,0) 45%),
        linear-gradient(155deg, var(--is-green-deep) 0%, var(--is-green-darker) 45%, var(--is-green-dark) 100%);
}
.is-hero__inner { max-width: 64rem; margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
@media (min-width: 1024px) { .is-hero__inner { padding: 7rem 2rem 6rem; } }
.is-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #BBF0D5; margin-bottom: 1.1rem; }
.is-hero__eyebrow svg { width: 1rem; height: 1rem; }
.is-hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.is-hero__sub { font-size: 1.2rem; line-height: 1.6; color: #D7F3E5; max-width: 38rem; margin: 0 auto 2rem; }
.is-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 34rem; margin: 2.5rem auto 0; }
.is-hero__stat-num { font-size: 1.9rem; font-weight: 800; }
.is-hero__stat-label { font-size: 0.82rem; color: #A9E3C8; }
.is-hero__ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.6rem; border-radius: 0.75rem; font-weight: 700;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.32); color: #fff;
    transition: background .15s;
}
.is-hero__ghost:hover { background: rgba(255,255,255,0.2); }

/* single-template hero */
.is-phero { position: relative; color: #fff;
    background: linear-gradient(150deg, var(--is-green-deep) 0%, var(--is-green-darker) 55%, var(--is-green-dark) 100%); }
.is-phero__inner { max-width: 80rem; margin: 0 auto; padding: 4rem 1.5rem; }
@media (min-width: 1024px) { .is-phero__inner { padding: 4.5rem 2rem; } }
.is-phero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .is-phero__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.is-phero__cat { display: inline-flex; align-items: center; padding: 0.3rem 0.85rem; border-radius: 9999px; font-size: 0.82rem; background: rgba(255,255,255,0.14); color: #DDF4E8; margin-bottom: 1rem; transition: background .15s; }
.is-phero__cat:hover { background: rgba(255,255,255,0.24); }
.is-phero__h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; margin-bottom: 1.1rem; }
.is-phero__lead { font-size: 1.15rem; color: #D7F3E5; margin-bottom: 1.75rem; }
.is-phero__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.75rem; color: #BFEBD4; font-size: 0.92rem; }
.is-phero__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.is-phero__shot { border-radius: 1rem; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15); }
.is-phero__shot img { width: 100%; height: auto; display: block; }

/* page hero (legal/about/contact) */
.is-pagehero { color: #fff;
    background: linear-gradient(150deg, var(--is-green-deep) 0%, var(--is-green-darker) 60%, var(--is-green-dark) 100%); }
.is-pagehero__inner { max-width: 56rem; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.is-pagehero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.is-pagehero__sub { font-size: 1.15rem; color: #D7F3E5; max-width: 40rem; margin: 0 auto; }
.is-pagehero__date { font-size: 0.85rem; color: #A9E3C8; margin-top: 1rem; }

/* ===================================================================
   Download CTA buttons (is-dl / is-btn)
   =================================================================== */
.is-dl {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: var(--is-gold); color: #fff; font-weight: 800; font-size: 1.05rem;
    padding: 0.95rem 1.9rem; border-radius: 0.8rem;
    box-shadow: 0 14px 26px -12px rgba(233,110,34,0.6);
    transition: background .15s, transform .15s; position: relative; overflow: hidden;
}
.is-dl:hover { background: var(--is-gold-dark); transform: translateY(-2px); }
.is-dl--block { width: 100%; }
.is-dl::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: rgba(255,255,255,0.25); border-radius: 50%;
    transform: translate(-50%,-50%); transition: width .6s, height .6s;
}
.is-dl:active::after { width: 240px; height: 240px; }

.is-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: #fff; color: var(--is-green); font-weight: 700;
    padding: 0.8rem 1.5rem; border-radius: 0.75rem; border: 1px solid var(--is-green-200);
    transition: background .15s, border-color .15s;
}
.is-btn-ghost:hover { background: var(--is-green-50); border-color: var(--is-green); }

.is-btn-solid {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--is-green); color: #fff; font-weight: 700;
    padding: 0.85rem 1.6rem; border-radius: 0.75rem;
    transition: background .15s, transform .15s;
}
.is-btn-solid:hover { background: var(--is-green-dark); transform: translateY(-1px); }

/* ===================================================================
   Feature blocks (is-feat)
   =================================================================== */
.is-feat { display: flex; gap: 1rem; align-items: flex-start; }
.is-feat__icon { flex-shrink: 0; width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; background: var(--is-green-50); color: var(--is-green); display: flex; align-items: center; justify-content: center; }
.is-feat__icon svg { width: 1.6rem; height: 1.6rem; }
.is-feat__title { font-weight: 700; color: var(--is-ink); margin-bottom: 0.35rem; }
.is-feat__text { color: var(--is-slate); line-height: 1.55; font-size: 0.95rem; }

/* ===================================================================
   FAQ accordion (is-faq)
   =================================================================== */
.is-faq { display: flex; flex-direction: column; gap: 0.9rem; }
.is-faq__item { background: #fff; border: 1px solid var(--is-line); border-radius: 0.85rem; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.is-faq__item:hover { border-color: var(--is-green-200); }
.is-faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1.15rem 1.3rem; text-align: left;
    font-weight: 600; color: var(--is-ink); background: transparent; border: 0; cursor: pointer;
    transition: background .15s;
}
.is-faq-q:hover { background: var(--is-green-50); }
.is-faq-q svg { width: 1.2rem; height: 1.2rem; color: var(--is-green); flex-shrink: 0; transition: transform .2s; }
.is-faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.is-faq__a { padding: 0 1.3rem 1.25rem; color: var(--is-slate); line-height: 1.6; }
.is-faq__a.hidden { display: none; }

/* ===================================================================
   Single-template sidebar widgets (is-spec)
   =================================================================== */
.is-aside { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 6rem; }
.is-spec { background: #fff; border: 1px solid var(--is-line); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 14px 30px -22px rgba(11,92,57,0.5); }
.is-spec__title { font-weight: 700; color: var(--is-ink); margin-bottom: 1rem; }
.is-spec__row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.35rem 0; }
.is-spec__row dt { color: var(--is-slate-light); }
.is-spec__row dd { margin: 0; font-weight: 600; color: var(--is-ink); }
.is-spec__free { color: var(--is-green); }
.is-spec__cat { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem; background: var(--is-green-50); border-radius: 0.75rem; }
.is-spec__cat-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.65rem; background: #fff; color: var(--is-green); display: flex; align-items: center; justify-content: center; }

/* content sections within single template */
.is-block { margin-bottom: 2.75rem; }
.is-block__h { font-size: 1.5rem; font-weight: 800; color: var(--is-ink); margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.is-checklist { display: flex; flex-direction: column; gap: 0.9rem; }
.is-checklist li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--is-slate); }
.is-checklist svg { width: 1.4rem; height: 1.4rem; color: var(--is-green); flex-shrink: 0; margin-top: 0.1rem; }
.is-feats { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .is-feats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.is-feats__item { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.1rem; background: var(--is-paper); border-radius: 0.75rem; color: var(--is-slate); }
.is-feats__item svg { width: 1.25rem; height: 1.25rem; color: var(--is-green); flex-shrink: 0; }

/* breadcrumb links */
.is-crumb { transition: color .15s; }
.is-crumb:hover { color: var(--is-green); }

/* screenshot figure */
.is-figure { margin: 2rem 0; border: 1px solid var(--is-line); border-radius: 1rem; overflow: hidden; box-shadow: 0 14px 30px -20px rgba(11,92,57,0.4); background: #fff; }
.is-figure img { width: 100%; height: auto; display: block; }
.is-figure figcaption { padding: 0.75rem 1rem; background: var(--is-paper); font-size: 0.85rem; color: var(--is-slate-light); text-align: center; font-weight: 600; }

/* author / E-E-A-T box */
.is-author { display: flex; gap: 1rem; align-items: center; background: var(--is-green-50); border: 1px solid var(--is-green-100); border-radius: 1rem; padding: 1.25rem 1.4rem; }
.is-author__avatar { width: 3.25rem; height: 3.25rem; border-radius: 9999px; background: var(--is-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.is-author__name { font-weight: 700; color: var(--is-ink); }
.is-author__role { font-size: 0.85rem; color: var(--is-slate-light); }

/* ===================================================================
   Content panels (legal/about/contact)  (is-panel / is-prose)
   =================================================================== */
.is-panel { background: #fff; border: 1px solid var(--is-line); border-radius: 1.1rem; padding: 2rem; box-shadow: 0 1px 2px rgba(16,42,34,0.04); margin-bottom: 2rem; }
@media (min-width: 1024px) { .is-panel { padding: 2.75rem; } }
.is-panel__h { font-size: 1.5rem; font-weight: 800; color: var(--is-ink); margin-bottom: 1.25rem; }
.is-panel--accent { background: var(--is-green-50); border-color: var(--is-green-100); }

.is-prose { color: var(--is-slate); line-height: 1.7; }
.is-prose h2 { font-size: 1.4rem; font-weight: 800; color: var(--is-ink); margin: 2rem 0 0.9rem; }
.is-prose h2:first-child { margin-top: 0; }
.is-prose h3 { font-size: 1.15rem; font-weight: 700; color: var(--is-ink); margin: 1.6rem 0 0.6rem; }
.is-prose p { margin: 0 0 1.1rem; }
.is-prose ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1.1rem; }
.is-prose ol { list-style: decimal; padding-left: 1.5rem; margin: 0 0 1.1rem; }
.is-prose li { margin: 0.4rem 0; }
.is-prose a { color: var(--is-green); text-decoration: underline; }
.is-prose a:hover { color: var(--is-green-dark); }
.is-prose strong { color: var(--is-ink); font-weight: 700; }

/* contact tiles */
.is-contact-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--is-paper); }
.is-contact-row:last-child { border-bottom: 0; }
.is-contact-row__icon { width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--is-green-50); color: var(--is-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.is-contact-row__icon svg { width: 1.5rem; height: 1.5rem; }
.is-faqlike { padding: 1.1rem 1.2rem; background: var(--is-paper); border-radius: 0.75rem; margin-bottom: 0.85rem; }
.is-faqlike h3 { font-weight: 700; color: var(--is-ink); margin-bottom: 0.4rem; }
.is-faqlike p { font-size: 0.9rem; color: var(--is-slate); margin: 0; }

/* team / E-E-A-T about cards */
.is-team { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .is-team { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.is-teamcard { display: flex; gap: 1rem; align-items: flex-start; background: var(--is-paper); border: 1px solid var(--is-line); border-radius: 1rem; padding: 1.4rem; }
.is-teamcard__avatar { width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: var(--is-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.is-teamcard__name { font-weight: 700; color: var(--is-ink); }
.is-teamcard__role { font-size: 0.85rem; color: var(--is-green); font-weight: 600; margin-bottom: 0.4rem; }
.is-teamcard__bio { font-size: 0.9rem; color: var(--is-slate); line-height: 1.55; }
.is-teamcard__photo { flex-shrink: 0; }
.is-teamcard__photo img { width: 6rem; height: 6rem; border-radius: 9999px; object-fit: cover; display: block; border: 3px solid var(--is-green-100); }

/* ===================================================================
   E-E-A-T byline (hero) + author box (single-workbook)
   =================================================================== */
.is-byline { display: flex; flex-wrap: wrap; gap: 0.65rem 1.5rem; margin: 1.1rem 0 0.4rem; }
.is-byline__person { display: inline-flex; align-items: center; gap: 0.55rem; color: rgba(255,255,255,0.92); font-size: 0.9rem; text-decoration: none; }
.is-byline__person:hover { color: #fff; }
.is-byline__person strong { font-weight: 700; }
.is-byline__avatar { width: 2rem; height: 2rem; border-radius: 9999px; object-fit: cover; display: block; border: 2px solid rgba(255,255,255,0.55); flex-shrink: 0; }

.is-authorbox { background: var(--is-green-50); border: 1px solid var(--is-green-100); border-radius: 1rem; padding: 1.6rem; }
.is-authorbox__main { display: flex; gap: 1.25rem; align-items: flex-start; }
.is-authorbox__avatar { flex-shrink: 0; display: block; }
.is-authorbox__avatar img { width: 5.5rem; height: 5.5rem; border-radius: 9999px; object-fit: cover; display: block; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11,92,57,0.15); }
.is-authorbox__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--is-green-dark); margin-bottom: 0.15rem; }
.is-authorbox__name { font-size: 1.15rem; font-weight: 800; color: var(--is-ink); text-decoration: none; display: inline-block; }
.is-authorbox__name:hover { color: var(--is-green-dark); }
.is-authorbox__role { font-size: 0.85rem; color: var(--is-green); font-weight: 600; margin: 0.15rem 0 0.6rem; }
.is-authorbox__bio { font-size: 0.92rem; color: var(--is-slate); line-height: 1.6; margin: 0; }
.is-authorbox__credit { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--is-green-100); font-size: 0.88rem; color: var(--is-slate); }
.is-authorbox__credit a { color: var(--is-green-dark); text-decoration: none; }
.is-authorbox__credit a:hover { text-decoration: underline; }
.is-authorbox__credit-avatar { width: 1.85rem; height: 1.85rem; border-radius: 9999px; object-fit: cover; display: block; border: 2px solid #fff; flex-shrink: 0; }
@media (max-width: 640px) {
  .is-authorbox__main { flex-direction: column; }
  .is-authorbox__avatar img { width: 4.5rem; height: 4.5rem; }
}

/* ===================================================================
   Footer (is-foot)
   =================================================================== */
.is-foot { background: var(--is-green-deep); color: #B6C6BD; }
.is-foot__inner { max-width: 80rem; margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem; }
@media (min-width: 1024px) { .is-foot__inner { padding-left: 2rem; padding-right: 2rem; } }
.is-foot__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .is-foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.is-foot__about { font-size: 0.9rem; color: #9DB3A6; margin-top: 1rem; line-height: 1.6; }
.is-foot__h { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.is-foot__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.is-foot__links a { color: #B6C6BD; transition: color .15s; }
.is-foot__links a:hover { color: #fff; }
.is-foot__social { display: flex; gap: 0.9rem; margin-top: 1.25rem; }
.is-foot__social a { color: #9DB3A6; transition: color .15s; }
.is-foot__social a:hover { color: #fff; }
.is-foot__bar { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: space-between; font-size: 0.85rem; color: #9DB3A6; }
@media (min-width: 768px) { .is-foot__bar { flex-direction: row; } }

/* ===================================================================
   Consent banner (is-consent)  — keeps #cookie-accept / #cookie-decline IDs
   =================================================================== */
.is-consent {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
    background: #fff; border: 1px solid var(--is-line); border-radius: 1rem;
    box-shadow: 0 24px 50px -18px rgba(7,59,37,0.4); padding: 1.25rem 1.4rem;
}
@media (min-width: 768px) { .is-consent { left: auto; right: 1.5rem; max-width: 30rem; } }
.is-consent.hidden { display: none; }
.is-consent.show { animation: isConsentUp 0.35s ease; }
@keyframes isConsentUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.is-consent__text { font-size: 0.875rem; color: var(--is-slate); line-height: 1.55; margin-bottom: 1rem; }
.is-consent__text a { color: var(--is-green); text-decoration: underline; }
.is-consent__actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
.is-consent__btn { padding: 0.55rem 1.1rem; border-radius: 0.6rem; font-size: 0.875rem; font-weight: 600; border: 0; cursor: pointer; transition: background .15s; }
.is-consent__btn--decline { background: var(--is-paper); color: var(--is-slate); }
.is-consent__btn--decline:hover { background: #E4ECE8; }
.is-consent__btn--accept { background: var(--is-green); color: #fff; }
.is-consent__btn--accept:hover { background: var(--is-green-dark); }

/* ===================================================================
   Misc behaviour
   =================================================================== */
#scroll-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 3rem; height: 3rem;
    background: var(--is-green); color: #fff; border-radius: 50%;
    display: none; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 8px 18px -6px rgba(11,92,57,0.6); transition: all .3s; z-index: 40; border: 0;
}
#scroll-to-top:hover { background: var(--is-green-dark); transform: translateY(-2px); }
#scroll-to-top.show { display: flex; }

.skeleton { background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media print {
    .is-topbar, .is-foot, .is-dl, .is-consent, #scroll-to-top { display: none !important; }
    body { font-size: 12pt; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
:focus-visible { outline: 2px solid var(--is-green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===================================================================
   Override any residual Tailwind BLUE -> Irish green (no blue anywhere)
   =================================================================== */
.text-blue-100 { color: #D7F3E5 !important; }
.text-blue-200 { color: #A9E3C8 !important; }
.text-blue-600, .text-blue-700, .text-blue-800, .text-blue-900 { color: var(--is-green) !important; }
.hover\:text-blue-600:hover, .hover\:text-blue-700:hover { color: var(--is-green-dark) !important; }
.bg-blue-50 { background-color: var(--is-green-50) !important; }
.bg-blue-100 { background-color: var(--is-green-100) !important; }
.bg-blue-600, .bg-blue-700, .bg-blue-800, .bg-blue-900 { background-color: var(--is-green) !important; }
.hover\:bg-blue-50:hover { background-color: var(--is-green-50) !important; }
.hover\:bg-blue-600:hover { background-color: var(--is-green) !important; }
.hover\:bg-blue-700:hover { background-color: var(--is-green-dark) !important; }
.border-blue-200 { border-color: var(--is-green-200) !important; }
.from-blue-600, .from-blue-700, .from-blue-800, .from-blue-900 {
    --tw-gradient-from: var(--is-green-deep) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(7,59,37,0)) !important;
}
.via-blue-800 { --tw-gradient-stops: var(--tw-gradient-from), var(--is-green-darker), var(--tw-gradient-to, rgba(11,92,57,0)) !important; }
.to-blue-700 { --tw-gradient-to: var(--is-green-dark) !important; }
.focus\:ring-blue-500:focus { --tw-ring-color: var(--is-green) !important; }
.focus\:border-blue-500:focus { border-color: var(--is-green) !important; }
.bg-white\/10 { background-color: rgba(255,255,255,0.12) !important; }

/* ===================================================================
   EXCEL MOCKUP STYLES (preview window in template hero)
   =================================================================== */
.excel-mockup-container { position: relative; transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform 0.3s ease; }
.excel-mockup-container:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
.excel-window { background: #f3f3f3; border-radius: 8px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 11px; }
.excel-titlebar { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(180deg, #217346 0%, #1a5c38 100%); padding: 6px 12px; color: white; }
.excel-titlebar-left { display: flex; align-items: center; gap: 8px; }
.excel-icon { width: 18px; height: 18px; }
.excel-filename { font-size: 12px; font-weight: 500; opacity: 0.95; }
.excel-titlebar-buttons { display: flex; gap: 8px; }
.excel-btn { width: 12px; height: 12px; border-radius: 50%; }
.excel-btn.minimize { background: #f5c242; }
.excel-btn.maximize { background: #3dc04f; }
.excel-btn.close { background: #ed594a; }
.excel-ribbon { background: #217346; padding: 4px 12px; border-bottom: 1px solid #1a5c38; }
.excel-ribbon-tabs { display: flex; gap: 16px; color: white; font-size: 11px; }
.excel-ribbon-tabs span { padding: 4px 0; opacity: 0.7; cursor: pointer; }
.excel-ribbon-tabs span.active { opacity: 1; border-bottom: 2px solid white; }
.excel-formula-bar { display: flex; align-items: center; background: white; border-bottom: 1px solid #d6d6d6; padding: 4px 8px; gap: 8px; }
.excel-cell-ref { min-width: 50px; padding: 2px 6px; background: #f5f5f5; border: 1px solid #d6d6d6; font-size: 10px; text-align: center; }
.excel-fx { color: #666; font-style: italic; font-size: 10px; }
.excel-formula-input { flex: 1; padding: 2px 6px; background: white; border: 1px solid #d6d6d6; font-size: 10px; color: #333; min-height: 18px; }
.excel-sheet-area { background: white; overflow: hidden; }
.excel-grid { display: grid; grid-template-columns: 30px repeat(5, 1fr); border: 1px solid #d6d6d6; }
.excel-corner { background: #f5f5f5; border-right: 1px solid #c0c0c0; border-bottom: 1px solid #c0c0c0; }
.excel-col-header { background: #f5f5f5; border-right: 1px solid #c0c0c0; border-bottom: 1px solid #c0c0c0; padding: 4px; text-align: center; font-weight: 500; color: #333; }
.excel-row-header { background: #f5f5f5; border-right: 1px solid #c0c0c0; border-bottom: 1px solid #c0c0c0; padding: 4px; text-align: center; font-weight: 500; color: #333; }
.excel-cell { border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; padding: 4px 6px; min-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.excel-cell.header-cell { background: #217346; color: white; font-weight: 600; }
.excel-cell.number-cell { text-align: right; font-variant-numeric: tabular-nums; }
.excel-cell.currency-cell { text-align: right; color: #1a5c38; font-weight: 500; }
.excel-cell.total-label { font-weight: 600; text-align: right; }
.excel-cell.total-cell { font-weight: 700; text-align: right; background: #f0f7f4; }
.excel-cell.total-cell.highlight { background: #d4edda; color: #155724; }
.excel-cell.positive { color: #28a745; }
.excel-cell.warning { color: #ffc107; }
.excel-cell.critical { color: #dc3545; font-weight: 600; }
.excel-sheet-tabs { display: flex; align-items: flex-end; background: #e0e0e0; padding: 4px 8px 0; gap: 2px; }
.excel-sheet-tab { background: #f5f5f5; padding: 4px 12px; border-radius: 4px 4px 0 0; font-size: 10px; color: #666; cursor: pointer; border: 1px solid #c0c0c0; border-bottom: none; }
.excel-sheet-tab.active { background: white; color: #333; font-weight: 500; }
.excel-sheet-tab-add { padding: 4px 8px; color: #888; cursor: pointer; font-size: 12px; }
.excel-status-bar { display: flex; justify-content: space-between; align-items: center; background: #217346; padding: 3px 12px; color: white; font-size: 10px; }
.excel-status-left { opacity: 0.9; }
.excel-zoom { opacity: 0.8; }
.excel-mockup-shadow { position: absolute; bottom: -15px; left: 10%; right: 10%; height: 20px; background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%); filter: blur(8px); z-index: -1; }
.excel-mockup-reflection { position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%); pointer-events: none; border-radius: 8px 8px 0 0; }
.excel-preview-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 16px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; backdrop-filter: blur(4px); }
.excel-preview-notice .notice-icon { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255, 255, 255, 0.8); margin-top: 2px; }
.excel-preview-notice p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }
.excel-preview-notice strong { color: white; }
