/* 5pound.co.uk styles */
:root {
  --teal: #00756C;
  --teal-dark: #00544D;
  --teal-pale: #E4F1EF;
  --yellow: #FFD23F;
  --red: #C4372A;
  --red-dark: #A82D22;
  --ink: #2B2521;
  --muted: #6E6253;
  --cream: #FBF6EE;
  --cream-deep: #FFF3D6;
  --line: #EADFCE;
  --line-strong: #D9CCB8;
  --photo: #F3EADC;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 800; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Top strip */
.topbar { background: var(--ink); color: #EDE6DC; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--yellow); }

/* Header */
.header { background: var(--teal); }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-coin {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 3px #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 21px; letter-spacing: -0.04em; transform: rotate(-12deg);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; }
.logo-name small { font-size: 15px; font-weight: 700; color: #BFE3DF; letter-spacing: 0; }
.logo-tag { font-size: 13px; font-weight: 600; color: #D7EFEC; margin-top: 4px; }
.search { flex: 1 1 360px; display: flex; min-width: 0; }
.search input {
  flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px;
  padding: 13px 15px; font: inherit; font-size: 16px; color: var(--ink);
}
.search button, .btn-yellow {
  border: 0; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 800;
  padding: 0 20px; cursor: pointer;
}
.search button { border-radius: 0 6px 6px 0; }
.header-links { display: flex; gap: 18px; }
.header-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* Category nav */
.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 22px; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: flex; align-items: center; gap: 6px; padding: 13px 0; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 700; }
.catnav a:hover, .catnav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--teal); }
.catnav .hot { color: var(--red); }
.hot-tag { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 5px; border-radius: 3px; }

/* Trust strip */
.trust { background: var(--cream-deep); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; font-weight: 700; color: #5A4632; }
.trust li { display: flex; align-items: center; gap: 6px; }

main.wrap { padding-top: 20px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 30px; }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips .label { font-weight: 800; }
.chip {
  text-decoration: none; background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
  font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.on, .chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-main { min-height: 300px; border-radius: var(--radius); overflow: hidden; background: var(--red); color: #fff; text-decoration: none; display: flex; flex-wrap: wrap; }
.hero-main:hover { color: #fff; }
.hero-copy { flex: 1 1 300px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hero-copy h1, .hero-copy h2 { font-weight: 900; font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; }
.hero-copy p { font-size: 17px; color: #FCE3E3; }
.hero-art { flex: 1 1 240px; min-height: 220px; background: var(--red-dark); display: flex; align-items: center; justify-content: center; }
.badge { align-self: flex-start; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.btn-white { align-self: flex-start; background: #fff; color: var(--red); font-weight: 800; padding: 12px 20px; border-radius: 6px; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.promo { flex: 1; min-height: 130px; border-radius: var(--radius); padding: 22px; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.promo strong { font-weight: 900; font-size: 24px; line-height: 1.1; }
.promo span { font-weight: 700; }
.promo-dark { background: var(--ink); color: #fff; }
.promo-dark:hover { color: #fff; }
.promo-dark span { color: var(--yellow); }
.promo-yellow { background: var(--yellow); color: var(--ink); }
.promo-yellow:hover { color: var(--ink); }

/* Section heads */
.section { display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head h2 { font-weight: 900; font-size: 26px; }
.section-head a { font-weight: 700; white-space: nowrap; }

/* Page head */
.page-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.page-head h1 { font-weight: 900; font-size: 38px; letter-spacing: -0.02em; }
.page-head p { font-size: 18px; color: #4A3F35; }
.updated { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Deal grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-img { position: relative; aspect-ratio: 5 / 4; background: var(--photo); display: flex; align-items: center; justify-content: center; color: #9A8B76; }
.card-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.save { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 4px; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.card h3 { font-size: 15px; font-weight: 700; line-height: 1.3; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price { font-weight: 900; font-size: 26px; }
.rrp { color: var(--muted); font-size: 14px; }
.rrp s { text-decoration: line-through; }
.get {
  margin-top: auto; display: block; text-align: center; text-decoration: none;
  background: var(--yellow); color: var(--ink); font-weight: 800; padding: 11px; border-radius: 6px;
}
.get:hover { background: #F5C21B; color: var(--ink); }
.empty { background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tile:hover { border-color: var(--teal); color: var(--ink); }
.tile strong { font-weight: 800; font-size: 17px; }
.tile span { color: var(--muted); font-size: 14px; }
.tile .tile-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; font-weight: 900; }

/* Guides list */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.guide-link { text-decoration: none; color: var(--ink); display: flex; gap: 14px; align-items: flex-start; }
.guide-swatch { flex: 0 0 64px; height: 64px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }
.guide-swatch.red { background: var(--red); color: #fff; }
.guide-swatch.dark { background: var(--ink); color: var(--yellow); }
.guide-swatch.yellow { background: var(--yellow); color: var(--ink); }
.guide-link h3 { font-size: 17px; font-weight: 800; color: var(--teal); margin-bottom: 4px; }
.guide-link p { font-size: 14px; color: #4A3F35; }

/* Article (guides, info pages) */
.article { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.article h2 { font-weight: 900; font-size: 26px; margin-top: 10px; }
.article h3 { font-weight: 800; font-size: 19px; }
.article p, .article li { font-size: 17px; color: #3A3029; }
.article ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tip h3 { font-size: 17px; }
.tip p { font-size: 15px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 17px; }
.faq details p { margin-top: 8px; }
.about-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 900px; display: flex; flex-direction: column; gap: 8px; }
.about-box h2 { font-size: 21px; font-weight: 900; }
.about-box p { color: #3A3029; }

/* Newsletter */
.signup { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.signup h2 { font-weight: 900; font-size: 24px; }
.signup p { color: #CDEAE6; }
.signup form { display: flex; flex: 0 1 460px; min-width: 0; }
.signup input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 13px 14px; font: inherit; }
.signup button { border-radius: 0 6px 6px 0; }

/* Footer */
.footer { background: var(--ink); color: #D9CCB8; margin-top: 12px; }
.footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; font-size: 14px; }
.footer-cols h2 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer a { color: #D9CCB8; }
.footer a:hover { color: #fff; }
.disclosure { font-size: 13px; line-height: 1.6; color: #B5A894; border-top: 1px solid #463C34; padding-top: 18px; }

/* Phones */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy h1, .hero-copy h2 { font-size: 32px; }
  .hero-art { min-height: 150px; }
  .hero-side { flex-direction: row; }
  .promo { min-height: 110px; padding: 16px; }
  .promo strong { font-size: 19px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .logo-coin { width: 40px; height: 40px; font-size: 17px; }
  .logo-name { font-size: 25px; }
  .logo-tag { display: none; }
  .header-links { display: none; }
  .search { flex-basis: 100%; }
  .trust li:nth-child(n+2) { display: none; }
  .page-head h1 { font-size: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card h3 { font-size: 14px; }
  .price { font-size: 22px; }
  .card-body { padding: 10px; }
  .section-head h2 { font-size: 22px; }
  .hero-side { flex-direction: column; }
  .signup form { flex-basis: 100%; }
}
