/* Petal & Paper — 247printables.com */
:root {
  --teal: #2d6a6a;
  --teal-light: #3d8a8a;
  --teal-pale: #e8f4f4;
  --rose: #c2706a;
  --rose-light: #f9eeee;
  --text: #2c2c2c;
  --muted: #666;
  --border: #dde8e8;
  --white: #fff;
  --bg: #fafcfc;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(45,106,106,.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Georgia', serif; color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); text-decoration: underline; }

/* HEADER */
.site-header { background: var(--teal); color: var(--white); padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-size: 1.5rem; font-weight: bold; color: var(--white); letter-spacing: .02em; }
.site-logo span { font-style: italic; font-weight: normal; font-size: 1rem; margin-left: .4rem; opacity: .8; }
.site-header a { color: var(--white); }
.header-nav { display: flex; gap: 1.5rem; font-family: sans-serif; font-size: .9rem; }
.header-nav a { opacity: .9; }
.header-nav a:hover { opacity: 1; text-decoration: none; }

/* MAIN LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-hero { background: linear-gradient(135deg, var(--teal-pale) 0%, #fff 100%); border-bottom: 1px solid var(--border); padding: 2.5rem 0 2rem; }
.page-hero .container { padding-top: 0; padding-bottom: 0; }
.hero-text h1 { font-size: 2rem; color: var(--teal); margin-bottom: .5rem; }
.hero-text p { color: var(--muted); font-size: 1.05rem; max-width: 600px; }
.breadcrumb { font-family: sans-serif; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 .4rem; }

/* GRID */
.printables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(45,106,106,.18); }
.card-cat { font-family: sans-serif; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-light); }
.card h3 { font-size: 1rem; color: var(--teal); line-height: 1.35; }
.card p { font-size: .875rem; color: var(--muted); flex: 1; }
.card .btn-sm { font-family: sans-serif; font-size: .8rem; background: var(--teal); color: var(--white); padding: .45rem .9rem; border-radius: var(--radius); align-self: flex-start; margin-top: .25rem; }
.card .btn-sm:hover { background: var(--teal-light); text-decoration: none; }

/* BUTTONS */
.btn { display: inline-block; font-family: sans-serif; font-size: .95rem; font-weight: bold; padding: .75rem 1.5rem; border-radius: var(--radius); cursor: pointer; transition: background .15s; text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-light); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal-pale); text-decoration: none; }
.btn-rose { background: var(--rose); color: var(--white); }
.btn-rose:hover { background: #a85f59; text-decoration: none; color: var(--white); }

/* PRINTABLE DETAIL */
.printable-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.printable-body h2 { color: var(--teal); font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.printable-body p { margin-bottom: 1rem; }
.printable-body ul, .printable-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.printable-body li { margin-bottom: .3rem; }
.download-panel { background: var(--white); border: 2px solid var(--teal); border-radius: var(--radius); padding: 1.5rem; text-align: center; position: sticky; top: 1.5rem; box-shadow: var(--shadow); }
.download-panel h2 { color: var(--teal); font-size: 1.1rem; margin-bottom: .75rem; }
.download-panel .btn { width: 100%; margin-bottom: .75rem; display: block; }
.affiliate-box { background: var(--rose-light); border: 1px solid #e8c8c8; border-radius: var(--radius); padding: 1rem; margin-top: 1rem; font-family: sans-serif; font-size: .85rem; }
.affiliate-box p { color: var(--muted); margin-bottom: .5rem; font-size: .82rem; }
.affiliate-box a { color: var(--rose); font-weight: bold; }

/* SIDEBAR NAV */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.sidebar-widget h3 { font-size: 1rem; color: var(--teal); margin-bottom: .75rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.cat-list { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.cat-list li a { font-family: sans-serif; font-size: .875rem; color: var(--text); padding: .25rem 0; display: block; }
.cat-list li a:hover { color: var(--teal); text-decoration: none; }

/* GUIDES / GLOSSARY */
.guides-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.guide-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.guide-card .guide-label { font-family: sans-serif; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-light); margin-bottom: .3rem; }
.guide-card h3 { color: var(--teal); font-size: 1.05rem; margin-bottom: .4rem; }
.guide-card p { font-size: .9rem; color: var(--muted); }
.guide-body { max-width: 720px; }
.guide-body h2 { color: var(--teal); font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.guide-body p { margin-bottom: 1rem; }
.guide-body ul, .guide-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.guide-body li { margin-bottom: .3rem; }
.guide-body strong { color: var(--text); }

/* FOOTER */
.site-footer { background: #1e4d4d; color: rgba(255,255,255,.8); font-family: sans-serif; font-size: .85rem; margin-top: 4rem; padding: 2.5rem 0 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; color: rgba(255,255,255,.5); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* HOME HERO */
.home-hero { background: linear-gradient(135deg, var(--teal) 0%, #1e5a5a 100%); color: var(--white); padding: 4rem 0 3rem; text-align: center; }
.home-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.home-hero p { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 1.5rem; }
.home-hero .btn-white { background: var(--white); color: var(--teal); font-weight: bold; }
.home-hero .btn-white:hover { background: var(--teal-pale); text-decoration: none; color: var(--teal); }

/* CATEGORY PILLS */
.cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.cat-pill { display: inline-block; font-family: sans-serif; font-size: .8rem; background: var(--teal-pale); color: var(--teal); padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--border); transition: background .15s; }
.cat-pill:hover { background: var(--teal); color: var(--white); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .printable-layout { grid-template-columns: 1fr; }
  .download-panel { position: static; }
  .home-hero h1 { font-size: 1.75rem; }
  .hero-text h1 { font-size: 1.5rem; }
  .header-nav { display: none; }
  .printables-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* INFO BOX */
.info-box { background: var(--teal-pale); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .9rem; }
.info-box p { margin: 0; }
.disclaimer { font-family: sans-serif; font-size: .8rem; color: var(--muted); background: #f8f8f8; border: 1px solid #e0e0e0; border-radius: var(--radius); padding: .75rem 1rem; margin-top: 1.5rem; }

/* FOOTER RELATED TOOLS */
.footer-related { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0; margin-bottom: 1rem; }
.footer-related h3 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.footer-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-related li a { color: rgba(255,255,255,.7); font-family: sans-serif; font-size: .82rem; }
.footer-related li a:hover { color: var(--white); }
.affiliate-disclosure { font-size: .78rem; }
.affiliate-disclosure a { color: rgba(255,255,255,.6); }

/* LAST UPDATED */
.last-updated { font-family: sans-serif; font-size: .78rem; color: var(--muted); margin: .75rem 0; }

/* ═══ AFFILIATE MAXIMISATION ═══ */

/* Amazon button — high contrast, unmistakeable */
.btn-amazon {
  display: block; width: 100%;
  background: #FF9900; color: #111 !important;
  font-weight: bold; font-family: sans-serif; font-size: .95rem;
  padding: .8rem 1.2rem; border-radius: var(--radius);
  text-align: center; box-shadow: 0 2px 6px rgba(255,153,0,.35);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn-amazon:hover {
  background: #ffad33; color: #111 !important; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,153,0,.45);
}
.affiliate-box { background: #fff8ec; border: 1px solid #ffd591; border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.affiliate-heading { font-family: sans-serif; font-weight: bold; font-size: .9rem; color: var(--text); margin-bottom: .6rem; }

/* In-body supplies grid */
.supplies-section { background: #fafcfc; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.supplies-section h2 { margin-top: 0 !important; }
.supplies-intro { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.supplies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.supply-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--white); border: 2px solid #ffd591; border-radius: var(--radius);
  padding: 1rem; text-decoration: none !important;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.supply-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255,153,0,.25); border-color: #FF9900; }
.supply-name { font-family: sans-serif; font-weight: bold; font-size: .92rem; color: var(--text); }
.supply-cta { font-family: sans-serif; font-size: .82rem; color: #c45500; font-weight: bold; }
.supply-card:hover .supply-cta { color: #FF9900; }

/* Category sidebar supplies widget */
.supplies-widget { border: 2px solid #ffd591; background: #fff8ec; }
.supply-list { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.supply-list a { font-family: sans-serif; font-size: .87rem; font-weight: bold; color: #c45500; }
.supply-list a:hover { color: #FF9900; text-decoration: none; }

@media (max-width: 768px) {
  .supplies-grid { grid-template-columns: 1fr; }
}

/* AD-READY LAYOUT: invisible placeholders, no fixed heights */
.ad-slot { min-height: 0; margin: 1.5rem 0; }

/* ═══ AWIN AFFILIATE CARDS (v5.1) ═══ */
.awin-card { background:linear-gradient(160deg,#fff,#f0f8ff); border:1px solid #b8d8f0;
  border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:8px;
  transition:transform .15s,box-shadow .15s,border-color .15s; }
.awin-card:hover { transform:translateY(-3px); border-color:#0070c0;
  box-shadow:0 8px 20px rgba(0,112,192,.18); }
.awin-badge { align-self:flex-start; background:#003087; color:#fff; font-weight:700;
  font-size:.68rem; letter-spacing:.06em; padding:3px 8px; border-radius:4px; }
.awin-title { font-weight:700; line-height:1.3; font-family:sans-serif; color:var(--text); }
.awin-desc { font-family:sans-serif; font-size:.87rem; color:var(--muted); }
.awin-cta { margin-top:auto; display:block; text-align:center; font-weight:700;
  color:#fff; background:linear-gradient(180deg,#0070c0,#003087);
  border-radius:8px; padding:10px 12px; text-decoration:none; }
.awin-cta:hover { background:linear-gradient(180deg,#0085e0,#0055a0); color:#fff; text-decoration:none; }
.awin-inline { color:#b45309; text-decoration:underline;
  text-decoration-color:#f59e0b; text-underline-offset:2px; font-weight:600; }
.awin-section { margin:2rem 0; }
.awin-section h3 { color:var(--teal); margin-bottom:.75rem; font-size:1.1rem; }

/* GEO VARIANTS — hidden via geo.js; visible as labelled fallback without JS */
.geo-label { font-size:.78rem; color:var(--muted); font-weight:bold; margin-right:.3em; }

/* ============================================================
   AFFILIATE CARDS — mandatory per MASTER_UPLOAD.md Section C §10
   Verbatim block, do not modify without updating the master doc.
   ============================================================ */
.amz-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdf9f2 100%);
  border: 1px solid #f0d9b0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.amz-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.amz-card .amz-badge,
.amz-card .merchant-badge {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #b07d2e;
}
.amz-card .amz-title,
.amz-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}
.amz-card .amz-desc,
.amz-card .card-benefit {
  font-size: 0.90rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.5;
}
.amz-card .amz-cta,
.amz-card .cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffd814 0%, #ff9900 100%);
  color: #111;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  align-self: flex-start;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.amz-card .amz-cta:hover,
.amz-card .cta-btn:hover {
  background: linear-gradient(135deg, #f0c800 0%, #e87722 100%);
}
/* CJ merchant cards — blue-tinted badge, distinct from Amazon gold and AWIN green */
.cj-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdf9f2 100%);
  border: 1px solid #f0d9b0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cj-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.cj-card .merchant-badge {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #1d5fae;
}
.cj-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}
.cj-card .card-benefit {
  font-size: 0.90rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.5;
}
.cj-card .cta-btn {
  display: inline-block;
  background: #1d5fae;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s ease;
}
.cj-card .cta-btn:hover {
  background: #164a8a;
}

/* ============================================================
   NEW COLORFUL HEADER — nav row, search bar, mega-menu dropdown
   ============================================================ */
.site-header { background: #fff; padding: 0; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; flex-wrap: wrap; }
.header-top .site-logo { color: var(--teal); font-family: sans-serif; font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.header-top .site-logo span { display: block; font-size: .68rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.header-search { position: relative; flex: 1; max-width: 420px; min-width: 220px; }
.header-search input { width: 100%; padding: .65rem 1rem; border: 2px solid var(--border); border-radius: 999px; font-family: sans-serif; font-size: .9rem; outline: none; transition: border-color .15s; }
.header-search input:focus { border-color: var(--teal); }
.search-results { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; z-index: 200; }
.search-results a { display: block; padding: .6rem 1rem; font-family: sans-serif; font-size: .85rem; color: #333; border-bottom: 1px solid #f2f2f2; }
.search-results a:hover { background: var(--teal-pale); text-decoration: none; }
.search-results .sr-empty { padding: .6rem 1rem; font-family: sans-serif; font-size: .85rem; color: var(--muted); }
.header-top-links { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.header-top-links a { font-family: sans-serif; font-size: .85rem; font-weight: 600; color: #555; }
.btn-header-cta { background: var(--teal); color: #fff !important; padding: .55rem 1.1rem; border-radius: 999px; }
.btn-header-cta:hover { background: var(--teal-light); text-decoration: none !important; }

.header-nav-color { display: flex; align-items: center; gap: 1.6rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem .1rem; border-top: 1px solid #f0f0f0; overflow-x: auto; }
.nav-cat { font-family: sans-serif; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: #333 !important; padding: .8rem 0; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-cat:hover { text-decoration: none !important; }
.nav-c1 { border-color: #e8734a; } .nav-c1:hover { color: #e8734a !important; }
.nav-c2 { border-color: #2d9d6f; } .nav-c2:hover { color: #2d9d6f !important; }
.nav-c3 { border-color: #d456a0; } .nav-c3:hover { color: #d456a0 !important; }
.nav-c4 { border-color: #e0b400; } .nav-c4:hover { color: #e0b400 !important; }
.nav-c5 { border-color: #4a90d9; } .nav-c5:hover { color: #4a90d9 !important; }
.nav-c6 { border-color: #9b5de5; } .nav-c6:hover { color: #9b5de5 !important; }
.nav-c7 { border-color: #00b8a9; } .nav-c7:hover { color: #00b8a9 !important; }
.nav-c8 { border-color: #ff6b6b; } .nav-c8:hover { color: #ff6b6b !important; }
.nav-dropdown { position: relative; }
.nav-cat-all { background: var(--teal); color: #fff !important; border: none; border-radius: 999px; padding: .5rem 1.1rem; font-family: sans-serif; font-weight: 700; font-size: .8rem; text-transform: uppercase; cursor: pointer; margin: .5rem 0; }
.mega-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: .9rem; width: 560px; max-width: 90vw; grid-template-columns: repeat(4, 1fr); gap: .25rem .5rem; z-index: 200; max-height: 60vh; overflow-y: auto; }
.mega-menu a { font-family: sans-serif; font-size: .82rem; padding: .35rem .4rem; color: #444; border-radius: 6px; }
.mega-menu a:hover { background: var(--teal-pale); color: var(--teal); text-decoration: none; }
.nav-dropdown:hover .mega-menu, .nav-dropdown:focus-within .mega-menu { display: grid; }
@media (max-width: 700px) {
  .header-top { flex-wrap: wrap; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .mega-menu { grid-template-columns: repeat(2, 1fr); width: 90vw; }
}
