/* Tamika Limited website. Brand: teal #026374, lime #A8EF15. */
:root {
    --teal: #026374;
    --teal-dk: #01434f;
    --teal-xdk: #012e36;
    --teal-lt: #e6f2f3;
    --lime: #a8ef15;
    --lime-dk: #7fb80a;
    --ink: #14262c;
    --muted: #5a6d73;
    --line: #d9e3e5;
    --bg: #f4f8f8;
    --white: #fff;
    --warn: #fff6dc;
    --warn-line: #e9c96a;
    --bad: #b42318;
    --ok: #127a3e;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(1, 46, 54, .06), 0 4px 16px rgba(1, 46, 54, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dk); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--teal-xdk); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.01em; margin-top: 1.4em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }
.section { padding-block: 2.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.grow { flex: 1; }
.pre { white-space: pre-line; }

/* Top bar and header */
.topbar { background: var(--teal); color: #e3f2f4; font-size: .82rem; border-bottom: 3px solid var(--lime); }
.topbar-in { display: flex; gap: 1.25rem; align-items: center; padding-block: .4rem; flex-wrap: wrap; }
.topbar a { color: #e3f2f4; text-decoration: none; }
.topbar a:hover { color: var(--lime); }

.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .5rem; flex: none; }
.brand img { display: block; height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: .1rem; flex: 1; }
.nav > a, .dd > a { display: block; padding: .55rem .7rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; border-radius: 6px; letter-spacing: .02em; text-transform: uppercase; }
.nav > a:hover, .dd > a:hover, .nav a.on { color: var(--teal); background: var(--teal-lt); }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: .45rem .7rem; text-decoration: none; color: var(--ink); border-radius: 6px; font-size: .92rem; }
.dd-menu a:hover { background: var(--teal-lt); color: var(--teal); }
.dd-menu small { color: var(--muted); }

.header .search input { width: 150px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--bg); }
.header .search input:focus { width: 200px; background: var(--white); }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--teal); }
.cart-link:hover { background: var(--teal-lt); }
.cart-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 2px; right: 0; background: var(--lime); color: var(--teal-xdk); font-size: .72rem; font-weight: 800; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 4px; }

.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: .6rem; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--teal); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1080px) {
    .menu-btn { display: block; order: 4; margin-left: 0; }
    .search { order: 2; margin-left: auto; }
    .cart-link { order: 3; }
    .nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
    .nav.open { display: flex; }
    .header-in { flex-wrap: wrap; }
    .dd-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
}
@media (max-width: 560px) {
    .header-in { gap: .35rem; }
    .header .search input, .header .search input:focus { width: 96px; }
    .brand img { height: 30px; }
    .topbar-in > span:first-child, .topbar-in > a[href^="mailto"] { display: none; }
}

/* Buttons and tags */
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--teal); color: var(--white); border: 2px solid var(--teal); padding: .7rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--teal-dk); border-color: var(--teal-dk); color: var(--white); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--teal-xdk); }
.btn.lime:hover { background: #bdf74a; border-color: #bdf74a; color: var(--teal-xdk); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn.ghost-dark { background: transparent; color: var(--teal); }
.btn.ghost-dark:hover { background: var(--teal-lt); color: var(--teal-dk); }
.btn.small { padding: .45rem .95rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions.end { justify-content: flex-end; }
.tag { display: inline-block; background: var(--teal-lt); color: var(--teal-dk); font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; text-decoration: none; vertical-align: middle; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .5rem; }
.kicker.lime { color: var(--lime); }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, #03788c 0, transparent 45%), linear-gradient(135deg, var(--teal-dk), var(--teal) 70%); color: var(--white); padding-block: clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: #d6eaed; font-size: 1.15rem; max-width: 56ch; }
.hero-mark { display: grid; place-items: center; }
.hero-mark img { width: min(320px, 80%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25)); }
@media (max-width: 760px) { .hero-in { grid-template-columns: 1fr; } .hero-mark { display: none; } }

.pagehead { background: linear-gradient(135deg, var(--teal-dk), var(--teal)); color: var(--white); padding-block: 2.4rem 2.2rem; }
.pagehead h1 { color: var(--white); margin-bottom: .3em; }
.pagehead .kicker { color: var(--lime); }
.pagehead .lead { color: #d6eaed; font-size: 1.1rem; max-width: 70ch; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: .8rem; color: #a9cdd3; }
.crumbs a { color: #d6eaed; text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs.dark, .crumbs.dark a { color: var(--muted); }
.crumbs span { margin: 0 .3rem; }
.lead.dark { font-size: 1.12rem; color: var(--muted); }

/* Sections */
.band { padding-block: 3.5rem; }
.band.alt { background: var(--bg); }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.sechead h2 { margin: 0; }
.sechead a { font-weight: 700; text-decoration: none; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.manuipay-band { background: var(--teal); color: #e3f2f4; }
.manuipay-band h2 { color: var(--white); margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .55rem 0 .55rem 2rem; position: relative; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 18px; height: 10px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); transform: rotate(-45deg); }
.ticks.dark li { border-color: var(--line); }
.ticks.dark li::before { border-color: var(--teal); }

.cta { background: var(--lime); padding-block: 2.5rem; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { margin: 0; }
.cta .actions { margin: 0; }
.cta .btn.lime { background: var(--teal); border-color: var(--teal); color: var(--white); }
.cta .btn.ghost { border-color: var(--teal-xdk); color: var(--teal-xdk); }

/* Tiles and cards */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.tiles.big .tile { min-height: 230px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 1.4rem; border-radius: var(--radius); text-decoration: none; color: var(--white); background: var(--teal); position: relative; overflow: hidden; transition: transform .15s; }
.tile:hover { transform: translateY(-3px); color: var(--white); }
.tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(168, 239, 21, .22); }
.tile-name { font-size: 1.2rem; font-weight: 800; line-height: 1.25; position: relative; }
.tile-text { font-size: .92rem; color: #d6eaed; margin-top: .4rem; position: relative; }
.tile-more { margin-top: .8rem; font-weight: 700; color: var(--lime); position: relative; }
.tile .tag { background: var(--lime); color: var(--teal-xdk); }
.tile-ffb-mule { background: linear-gradient(160deg, #026374, #3f7a0c); }
.tile-fiberglass { background: linear-gradient(160deg, #037a8f, var(--teal-xdk)); }
.tile-whisky-spirits { background: linear-gradient(160deg, #6b4a1f, #2a1d0c); }
.tile-school-software { background: linear-gradient(160deg, #0b5f8a, #062f45); }
.tile-e-books { background: linear-gradient(160deg, #3f6212, #1f330a); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.link-card { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--ink); }
.link-card h3 { color: var(--teal); }
.callout { margin-top: 2.5rem; background: var(--teal-lt); border-color: #bfdadd; box-shadow: none; }
.callout h2 { margin-top: 0; }
.cards3, .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
.grid2 > .card { margin-bottom: 1rem; }
@media (max-width: 900px) { .cards3, .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards3, .grid3, .grid2 { grid-template-columns: 1fr; } }
.mini { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }

.clientstrip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.clientstrip li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; font-weight: 700; color: var(--teal-dk); text-align: center; display: grid; place-items: center; min-height: 84px; }
.client-logo { max-height: 60px; width: auto; margin-bottom: .6rem; }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pcard-img { display: block; aspect-ratio: 4 / 3; background: var(--teal-lt); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.4rem; font-weight: 800; color: rgba(255, 255, 255, .85); background: linear-gradient(150deg, #037a8f, var(--teal-xdk)); }
.ph-whisky-spirits { background: linear-gradient(150deg, #8a5f26, #2a1d0c); }
.ph-school-software { background: linear-gradient(150deg, #0b5f8a, #062f45); }
.ph-e-books { background: linear-gradient(150deg, #4d7c0f, #1f330a); }
.ph-ffb-mule { background: linear-gradient(150deg, #026374, #3f7a0c); }
.pcard-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.pcard-body .kicker { font-size: .7rem; margin-bottom: .2rem; }
.pcard h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--teal); }
.pcard .muted { font-size: .88rem; }
.pcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .92rem; }
.stock { font-size: .75rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: #e7f6ec; color: var(--ok); white-space: nowrap; }
.stock-low_stock, .stock-made_to_order { background: var(--warn); color: #8a5a00; }
.stock-out_of_stock { background: #fde8e7; color: var(--bad); }
.stock-coming_soon { background: #eef0f2; color: var(--muted); }
.stock-available { background: var(--teal-lt); color: var(--teal-dk); }

/* Shop */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding-block: 2rem 3rem; }
@media (max-width: 820px) { .shop { grid-template-columns: 1fr; } }
.filters form { display: flex; flex-direction: column; gap: .4rem; position: sticky; top: 90px; background: var(--bg); padding: 1.1rem; border-radius: var(--radius); }
.filters label { font-weight: 700; font-size: .85rem; margin-top: .5rem; }
.filters .check { font-weight: 400; }
.filters input[type=search], .filters select { width: 100%; }
.notice { background: var(--warn); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.age-notice { margin-bottom: 1.2rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.pager span:not(:nth-child(2)) { color: #aab7bb; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1rem; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.product-img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--teal-lt); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img { position: relative; }
.ph-note { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: #d6eaed; font-size: .9rem; font-weight: 600; }
.product-img .ph { font-size: 7rem; }
.price { font-size: 1.6rem; font-weight: 800; color: var(--teal-xdk); margin-bottom: .4rem; }
.buy { display: flex; align-items: flex-end; gap: .75rem; margin: 1.4rem 0 .8rem; flex-wrap: wrap; }
.buy label { width: 100%; font-weight: 700; font-size: .85rem; margin-bottom: -.4rem; }
.buy input[type=number] { width: 90px; }
.product-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 2.5rem; margin-block: 1rem 2rem; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: .5rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 600; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem; }
.table th, .table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--bg); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tfoot th { background: var(--bg); }
.table .num { text-align: right; white-space: nowrap; }
input.qty { width: 80px; }
@media (max-width: 620px) { .table { font-size: .88rem; } .table th, .table td { padding: .5rem; } }

.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.checkout h2:first-of-type { margin-top: .4rem; }
.summary { position: sticky; top: 90px; }
.summary h2 { margin-top: 0; }
.lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .5rem; }
.agebox { margin-block: 2rem; text-align: left; }
.agebox form { margin-top: 1rem; }
.agebox .btn { margin-right: .5rem; }

/* Forms */
.form h2 { font-size: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea {
    width: 100%; font: inherit; font-size: 1rem; padding: .6rem .75rem; border: 1px solid #b9c8cb; border-radius: 8px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid rgba(2, 99, 116, .2); outline-offset: 0; }
input[type=file] { font: inherit; font-size: .92rem; }
textarea { resize: vertical; }
.req { color: var(--bad); }
.help { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); background: #fff8f7; }
.err { color: var(--bad); font-size: .85rem; margin: .3rem 0 0; }
.errors { background: #fde8e7; border: 1px solid #f3b8b3; color: var(--bad); padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .95rem; cursor: pointer; }
.check input { margin-top: .3rem; flex: none; accent-color: var(--teal); }
.check.bad span { color: var(--bad); }
.radios { border: 0; padding: 0; margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[type=submit] { margin-top: .6rem; }
.bigsearch { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.ref { font-size: 1.2rem; color: var(--teal); letter-spacing: .03em; }
.results { list-style: none; padding: 0; }
.results li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 700; font-size: 1.05rem; margin-left: .4rem; }
.results p { margin: .3rem 0 0; }

.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.3rem; flex-wrap: wrap; }
.tabs a { padding: .6rem 1rem; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on, .tabs a:hover { color: var(--teal); border-color: var(--teal); }

/* Content pages */
.page { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding-block: 2.5rem 3.5rem; align-items: start; }
@media (max-width: 860px) { .page { grid-template-columns: 1fr; } .side { position: static !important; } }
.side { display: flex; flex-direction: column; gap: .1rem; position: sticky; top: 90px; border-left: 3px solid var(--line); }
.side a { padding: .4rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; margin-left: -3px; border-left: 3px solid transparent; }
.side a:hover, .side a.on { color: var(--teal); border-left-color: var(--teal); }
.side h3, .side p { padding-left: .9rem; }
.contact-side { border-left: 0; gap: 0; }
.contact-side h3, .contact-side p { padding-left: 0; }
.prose { max-width: 78ch; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .3rem; }
.prose .grid2, .prose .grid3 { margin-block: 1rem 1.5rem; }
.deflist { display: grid; grid-template-columns: 220px 1fr; gap: .6rem 1.5rem; margin: 0 0 1.5rem; }
.deflist dt { font-weight: 700; color: var(--teal-dk); }
.deflist dd { margin: 0; }
@media (max-width: 620px) { .deflist { grid-template-columns: 1fr; } .deflist dd { margin-bottom: .6rem; } }
.faq { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; background: var(--white); }
.faq summary { padding: .9rem 1.1rem; cursor: pointer; font-weight: 700; color: var(--teal-xdk); }
.faq .prose { padding: 0 1.1rem 1rem; }
.post-card .small { margin-top: .8rem; }

.flash { background: #e7f6ec; border: 1px solid #a6d8b8; color: #0f5130; padding: .8rem 1.1rem; border-radius: 8px; margin: 1rem 0; }

/* Footer */
.footer { background: var(--teal); color: #dcecef; font-size: .92rem; padding-top: 3rem; border-top: 4px solid var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h3 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .7rem; }
.footer h3:not(:first-child) { margin-top: 1.5rem; }
.footer a { display: block; color: #eef7f8; text-decoration: none; padding: .15rem 0; }
.footer a:hover { color: var(--lime); }
.footer-dev { display: inline-flex; align-items: center; gap: .6rem; }
.footer-dev img { height: 56px; width: auto; display: block; }
.footer-name { color: var(--white); font-weight: 800; font-size: 1.1rem; margin: 0; }
.footer-tagline { display: flex; align-items: center; gap: .45rem; margin-top: .35rem; }
.footer-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--teal); border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; }
.footer-mark img { width: 14px; height: auto; display: block; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .22); margin-top: 2.5rem; padding-block: 1.2rem; font-size: .82rem; }

/* Admin */
body.admin { background: var(--bg); }
.admin-bar { background: var(--teal); color: #e3f2f4; border-bottom: 3px solid var(--lime); display: flex; align-items: center; gap: 1rem; padding: .6rem 1.4rem; flex-wrap: wrap; font-size: .92rem; }
.admin-bar .brand { color: var(--white); font-weight: 800; text-decoration: none; }
.admin-bar a { color: #e3f2f4; text-decoration: none; }
.admin-bar a:hover, .admin-bar a.on { color: var(--lime); }
.admin-bar nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-bar form { margin: 0; }
.admin-main { width: min(1240px, 100% - 2rem); margin: 1.5rem auto 3rem; }
.admin-main h1 { font-size: 1.7rem; }
.admin-main h2 { font-size: 1.2rem; margin-top: 1rem; }
.login { margin: 8vh auto; text-align: center; }
.login .card { text-align: left; margin-top: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--muted); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2rem; color: var(--teal); line-height: 1.1; }
.stat:hover { border-color: var(--teal); }
.filterbar { display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.filterbar h1 { margin: 0; }
.filterbar select, .filterbar input[type=search] { width: auto; min-width: 180px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.st-new { background: var(--warn); color: #8a5a00; }
.st-quoted { background: var(--teal-lt); color: var(--teal); }
.st-paid, .st-completed, .st-closed { background: #e7f6ec; color: var(--ok); }
.st-cancelled { background: #eef0f2; color: var(--muted); }
.thumb { display: block; max-width: 200px; border-radius: 8px; margin-bottom: .5rem; }
.faq-edit { margin-bottom: .7rem; }
.faq-edit summary { cursor: pointer; }
.faq-edit form { margin-top: 1rem; }

/* ---------- Tablets (any size) ---------- */

/* Shop filters: a compact bar above the products instead of a tall box. */
@media (max-width: 820px) {
    .filters form { position: static; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: .3rem .8rem; align-items: end; }
    .filters label { margin-top: 0; }
    .filters label[for] { grid-row: 1; }
    .filters input[type=search], .filters select { grid-row: 2; }
    .filters .check { grid-column: 1 / 3; margin: .4rem 0 0; }
    .filters .btn { justify-self: end; margin-top: .4rem; }
    .filters form > a.small { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .filters form { grid-template-columns: 1fr; }
    .filters label[for], .filters input[type=search], .filters select { grid-row: auto; }
    .filters .check { grid-column: auto; }
    .filters .btn { justify-self: stretch; justify-content: center; }
}

/* Drop-down menus open on tap as well as on mouse hover. */
.dd.open .dd-menu { display: block; }
.dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
@media (max-width: 1080px) { .dd > a::after { display: none; } }

/* Touch screens: no hover-only behaviour, bigger targets, no zoom when typing. */
@media (hover: none), (pointer: coarse) {
    .dd:hover .dd-menu { display: none; }
    .dd.open .dd-menu, .dd:focus-within .dd-menu { display: block; }
    .header .search input, .header .search input:focus { font-size: 16px; }
    input, select, textarea { font-size: 16px; }
    .check input { width: 22px; height: 22px; margin-top: .1rem; }
    .check { min-height: 44px; align-items: center; }
    .nav > a, .dd > a { padding-block: .7rem; }
    .dd-menu a { padding-block: .65rem; }
    .footer a { padding-block: .4rem; }
    .side a { padding-block: .6rem; }
    .tabs a { padding: .8rem 1rem; }
    .btn { min-height: 44px; }
    .cart-link { width: 46px; height: 46px; }
    .link-card:hover, .tile:hover { transform: none; }
}
@media (max-width: 1080px) and (hover: none), (max-width: 1080px) and (pointer: coarse) {
    .dd-menu, .dd:hover .dd-menu { display: block; }
}

/* Mid-size tablets in portrait (600–900 px): two-column cards, roomier product grid. */
@media (min-width: 600px) and (max-width: 900px) {
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .checkout .summary { position: static; order: -1; }
    .product-more { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 700px) {
    .pgrid { grid-template-columns: repeat(2, 1fr); }
}

/* Large tablets in landscape (1081–1280 px): tighter navigation so it stays on one line. */
@media (min-width: 1081px) and (max-width: 1280px) {
    .nav > a, .dd > a { padding-inline: .5rem; font-size: .86rem; }
    .header .search input { width: 120px; }
    .header .search input:focus { width: 160px; }
}

/* Open menu on tablets: groups side by side instead of one long list. */
.menu-btn { -webkit-tap-highlight-color: transparent; border-radius: 8px; }
.menu-btn[aria-expanded="true"] { background: var(--teal-lt); }
@media (max-width: 1080px) {
    .header-in { padding-block: .55rem; }
}
@media (min-width: 600px) and (max-width: 1080px) {
    .nav.open { display: block; columns: 2; column-gap: 2rem; padding-top: .5rem; }
    .nav.open > a, .nav.open > .dd { break-inside: avoid; margin-bottom: .3rem; }
}
@media (min-width: 900px) and (max-width: 1080px) {
    .nav.open { columns: 3; }
}

/* Admin on tablets: stack side-by-side panels and let wide tables scroll inside their box. */
.admin-main .grid2 > * { min-width: 0; }
.admin-main section:has(> .table) { overflow-x: auto; }
@media (max-width: 1000px) { .admin-main .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .admin-bar nav { order: 5; flex-basis: 100%; } .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: .5rem; } }

/* Small screens: long emails and addresses wrap, file pickers and tables stay inside the screen. */
.page > *, .split > *, .checkout > *, .shop > * { min-width: 0; }
.contact-side, .kv dd, .footer { overflow-wrap: anywhere; }
input[type=file] { max-width: 100%; }
@media (max-width: 700px) {
    .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .card .form, .callout .form { padding: 1rem; }
    .callout { padding: 1rem; }
}
.grid2 > *, .grid3 > *, .cards3 > *, .pgrid > * { min-width: 0; }
@media (max-width: 1100px) { .split .grid2 { grid-template-columns: 1fr; } }

/* Photo galleries on pages */
.gallery { margin-block: 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.gallery-grid > figure { max-width: 520px; }
.gallery-grid.one { grid-template-columns: minmax(0, 720px); }
.gallery-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery figure a { display: block; aspect-ratio: 4 / 3; background: var(--teal-lt); }
.gallery-grid.one figure a { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { padding: .55rem .8rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 480px) { .gallery-grid.two { grid-template-columns: 1fr; } }

/* Admin photos */
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.photo-card { padding: .8rem; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; margin-bottom: .6rem; }
.photo-card label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .45rem; }
.photo-card label.check { font-weight: 400; }
.photo-card input[type=text], .photo-card input[type=number], .photo-card select { padding: .4rem .55rem; font-size: .92rem; margin-top: .15rem; }
.linkbtn.danger { color: var(--bad); margin-top: .5rem; }

/* Section menus (services, ManuiPay, about, legal, help) on tablets and phones: a row of buttons, not a tall list. */
@media (max-width: 860px) {
    .page { gap: 1.5rem; padding-top: 1.5rem; }
    .side { flex-direction: row; flex-wrap: wrap; gap: .4rem; border-left: 0; }
    .side a { margin-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .88rem; background: var(--white); }
    .side a.on, .side a:hover { border-color: var(--teal); background: var(--teal-lt); }
    .contact-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1.5rem; }
}

/* PamLink */
.banner { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; background: var(--teal-lt); }
.banner img { display: block; width: 100%; max-height: 460px; object-fit: cover; object-position: center 40%; }
.banner figcaption { padding: .55rem .9rem; font-size: .88rem; color: var(--muted); background: var(--bg); }
.banner-tall { margin: 0; }
.banner-tall img { height: 100%; min-height: 260px; max-height: 360px; }
.palmlink-band { background: linear-gradient(180deg, #f1f8ea, #fff); }
.palmlink-band h2 { margin-top: 0; }
.tile-palmlink { background: linear-gradient(160deg, #5a8f12, #1f3d0a); }
.tiles.big { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.flow { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.flow li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem; position: relative; }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--teal-xdk); font-weight: 800; margin-bottom: .6rem; }
.flow h3 { margin-bottom: .3rem; }
.flow p { margin: 0; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
/* Four (or six…) photos on a tablet: two per row, no photo left on its own. */
@media (min-width: 481px) and (max-width: 1000px) {
    .gallery-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid.even > figure { max-width: none; }
}

/* PamLink: problems, fees, trial */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.problem { border-left: 4px solid var(--lime); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; }
.problem h3 { margin-bottom: .4rem; }
.problem p { margin-bottom: .5rem; font-size: .95rem; }
.problem p:last-child { margin-bottom: 0; }
.fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: .8rem; }
.fee .kicker { margin-bottom: .2rem; }
.fee-amount { font-size: 1.5rem; font-weight: 800; color: var(--teal-xdk); margin-bottom: .4rem; }
.flow.trial { margin-top: 1rem; }
@media (max-width: 700px) { .problems, .fees { grid-template-columns: 1fr; } }
.callout-top { margin: 0 0 1.5rem; }

/* Error pages (standalone: they work even if the database is down) */
.err-body { background: var(--teal-lt, #e6f1f3); min-height: 100vh; display: grid; place-items: center; margin: 0; padding: 1rem; }
.err { background: #fff; border-radius: 14px; border-top: 4px solid var(--lime); padding: 2.5rem 2rem; max-width: 34rem; text-align: center; box-shadow: 0 10px 30px rgba(2, 99, 116, .12); }
.err-code { font-size: 3.2rem; font-weight: 800; color: var(--teal); margin: 1rem 0 0; line-height: 1; }
.err h1 { margin: .4rem 0 .6rem; }

/* FFB Mule: Home band and quote section */
.mule-band { background: linear-gradient(180deg, var(--teal-lt), #fff); border-top: 3px solid var(--lime); }
.split-form { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: start; margin: 2rem 0; scroll-margin-top: 6.5rem; }
.split-form > * { min-width: 0; }
@media (max-width: 960px) { .split-form { grid-template-columns: 1fr; } }

/* Admin: page text editors */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.pairs { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1.2rem; }
.pairs legend { font-weight: 700; padding: 0 .3rem; }
.pair { display: grid; grid-template-columns: 1fr 2fr; gap: 0 1rem; border-bottom: 1px dashed var(--line); padding-top: .4rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.svc-edit, .client-edit { margin-bottom: 1.2rem; }
.client-edit legend { font-weight: 700; }
.client-edit details { margin: .2rem 0 .6rem; }
.reset-box { margin: 0 0 1rem; }
.reset-box summary { cursor: pointer; color: var(--bad); font-weight: 600; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }

/* Customer accounts */
.auth-wrap { max-width: 34rem; }
.center { text-align: center; }
.table-wrap { overflow-x: auto; }
.account section { margin-bottom: 2rem; }
.account .notice { margin-bottom: 1.5rem; }
.ebook-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .6rem; }
.account-foot { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.topbar .acct { font-weight: 700; }
.copy-link { width: 100%; font-family: monospace; font-size: .85rem; margin-bottom: 1rem; }
.big-search { display: flex; gap: .6rem; max-width: 40rem; margin: 0 0 2rem; }
.big-search input { flex: 1; }
.notfound-links h3 { margin-top: 0; }
.app-card { margin: 0; padding: 0; overflow: hidden; }
.app-card img { display: block; width: 100%; height: auto; }
.app-card figcaption { padding: 1rem 1.2rem; }
.app-card h3 { margin: 0 0 .3rem; }
