/* Public Trip Insights — the traveller guide at /trip_insights.php.
   Built to sit beside about.css and reviews.css: same Poppins/DM Serif
   pairing, same greens, same navbar. */

:root {
  --tip-green: #12433a;
  --tip-green-2: #1d6b41;
  --tip-green-3: #2f8a63;
  --tip-sand: #e8a33d;
  --tip-ink: #1f2937;
  --tip-muted: #6b7280;
  --tip-border: #e5e7eb;
  --tip-bg: #f7f8f7;
  --tip-card: #fff;
  --tip-radius: 16px;
  --tip-shadow: 0 10px 30px rgba(18, 67, 58, .08);
  --tip-shadow-lift: 0 18px 44px rgba(18, 67, 58, .14);
}

* { box-sizing: border-box; }

.tip-page {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tip-ink);
  background: var(--tip-bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
.tip-page img { max-width: 100%; }

.tip-wrap { width: min(1160px, 92vw); margin: 0 auto; }

.tip-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 10px 16px; background: var(--tip-green); color: #fff;
  border-radius: 0 0 10px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Public navbar ----------
   A deliberate copy of the rules in about.css and reviews.css: those styles
   live inside each public page's own stylesheet, and this page loads neither.
   Keep the three in step. */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(23, 79, 56, .1);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 25px rgba(18, 52, 39, .06);
  backdrop-filter: blur(14px);
}
.navbar .brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--tip-ink); font-size: 1rem; font-weight: 700; text-decoration: none;
}
.navbar .brand img { width: 46px; height: 46px; object-fit: contain; }

.navbar .links { display: flex; align-items: center; gap: 4px; }
.navbar .links a {
  position: relative;
  padding: 10px 11px;
  color: #30453d;
  font-size: .89rem; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.navbar .links a::after {
  content: ""; position: absolute;
  left: 11px; right: 11px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--tip-green-2);
  transform: scaleX(0); transform-origin: center;
  transition: transform .18s ease;
}
.navbar .links a:hover::after,
.navbar .links a[aria-current="page"]::after { transform: scaleX(1); }
.navbar .links a[aria-current="page"] { color: var(--tip-green); }

.navbar .nav-toggle {
  width: 44px; height: 44px; display: none;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
}
.navbar .bar {
  width: 23px; height: 2px; display: block; margin: 5px auto;
  border-radius: 999px; background: var(--tip-ink);
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 980px) {
  .navbar .nav-toggle { display: block; }
  .navbar .links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 18px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(23, 79, 56, .1);
    box-shadow: 0 12px 24px rgba(18, 52, 39, .1);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .22s ease, visibility .22s;
  }
  .navbar.open .links { max-height: 430px; visibility: visible; }
  .navbar .links a { padding: 13px 6px; border-bottom: 1px solid #f0f3f1; }
  .navbar .links a:last-child { border-bottom: 0; }
  .navbar .links a::after { display: none; }
  .navbar.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.open .bar:nth-child(2) { opacity: 0; }
  .navbar.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.tip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: .92rem; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tip-btn-primary { background: var(--tip-green); color: #fff; }
.tip-btn-primary:hover { background: var(--tip-green-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,67,58,.25); }
.tip-btn-ghost { background: transparent; color: var(--tip-green); border-color: rgba(18,67,58,.3); }
.tip-btn-ghost:hover { background: rgba(18,67,58,.06); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.tip-hero {
  padding: clamp(46px, 7vw, 82px) 0 clamp(30px, 4vw, 44px);
  background:
    radial-gradient(1100px 380px at 12% -10%, rgba(47, 138, 99, .16), transparent 62%),
    radial-gradient(900px 340px at 92% 0%, rgba(232, 163, 61, .14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--tip-bg) 100%);
  border-bottom: 1px solid rgba(23, 79, 56, .08);
}
.tip-hero-inner { text-align: center; }

.tip-eyebrow {
  display: inline-block; margin-bottom: 14px;
  padding: 6px 15px; border-radius: 999px;
  background: rgba(18, 67, 58, .08); color: var(--tip-green);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.tip-hero h1 {
  margin: 0 0 14px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400; line-height: 1.08;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  color: var(--tip-green);
}
.tip-hero-lede {
  margin: 0 auto;
  max-width: 68ch;
  color: #47545f; font-size: clamp(.96rem, 2.3vw, 1.08rem); line-height: 1.75;
}

.tip-search {
  position: relative;
  width: min(560px, 100%);
  margin: 28px auto 0;
}
.tip-search > i {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--tip-green-3); pointer-events: none;
}
.tip-search input {
  width: 100%;
  padding: 15px 48px 15px 50px;
  font: inherit; font-size: .96rem;
  color: var(--tip-ink);
  background: #fff;
  border: 1.5px solid var(--tip-border);
  border-radius: 999px;
  box-shadow: var(--tip-shadow);
}
.tip-search input::placeholder { color: #9aa5a0; }
.tip-search input:focus {
  outline: none; border-color: var(--tip-green-3);
  box-shadow: 0 0 0 4px rgba(47, 138, 99, .14);
}
.tip-search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #eef2f0; color: var(--tip-muted); cursor: pointer;
}
.tip-search-clear:hover { background: #e2e8e5; color: var(--tip-ink); }

.tip-count {
  margin: 12px 0 0;
  color: var(--tip-muted); font-size: .82rem; font-weight: 600;
}

/* ---------- Featured strip ---------- */
.tip-featured { padding: 26px 0 4px; }
.tip-featured-title {
  margin: 0 0 12px;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tip-muted);
  text-align: center;
}
.tip-chiprow {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
}
.tip-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--tip-border);
  color: var(--tip-ink); font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tip-chip i { color: var(--tip-green-3); font-size: .9em; }
.tip-chip:hover {
  transform: translateY(-2px); border-color: var(--tip-green-3);
  box-shadow: 0 8px 20px rgba(18, 67, 58, .1);
}

/* ---------- Section filter ---------- */
.tip-filters {
  position: sticky; top: 72px; z-index: 40;
  margin-top: 24px;
  background: rgba(247, 248, 247, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(23, 79, 56, .07);
  border-bottom: 1px solid rgba(23, 79, 56, .07);
}
.tip-filters-inner {
  display: flex; gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tip-filters-inner::-webkit-scrollbar { height: 4px; }
.tip-filters-inner::-webkit-scrollbar-thumb { background: #d5ddd9; border-radius: 999px; }

/* Wide enough to hold them all: wrap onto a second line rather than hiding
   the last section behind a scroll edge. Below this the strip swipes. */
@media (min-width: 900px) {
  .tip-filters-inner { flex-wrap: wrap; overflow: visible; justify-content: center; }
}

.tip-filter {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--tip-border);
  color: #3d4a44; font: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tip-filter:hover { border-color: var(--tip-green-3); color: var(--tip-green); }
.tip-filter.is-on {
  background: var(--tip-green); border-color: var(--tip-green); color: #fff;
}
.tip-filter-num {
  font-size: .74rem; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  background: rgba(18, 67, 58, .08); color: inherit;
}
.tip-filter.is-on .tip-filter-num { background: rgba(255, 255, 255, .22); }

/* ---------- Sections and cards ---------- */
.tip-sections { padding: clamp(30px, 5vw, 52px) 0 clamp(40px, 6vw, 66px); }
.tip-section { margin-bottom: clamp(34px, 5vw, 56px); scroll-margin-top: 140px; }
.tip-section[hidden] { display: none; }

.tip-section-head { margin-bottom: 20px; }
.tip-section-head h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 6px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400; font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  color: var(--tip-green);
}
.tip-section-head p { margin: 0; color: var(--tip-muted); font-size: .93rem; }

/* A colour per section, carried by the rule, the card panel and the tag. */
.tip-rule { width: 6px; height: 30px; border-radius: 999px; background: var(--tip-green-3); flex: none; }
.tip-rule-ways-to-travel       { background: #1f7a5a; }
.tip-rule-where-you-sleep      { background: #b8860b; }
.tip-rule-comfort-budget       { background: #7c5cbf; }
.tip-rule-getting-there-around { background: #2b6cb0; }
.tip-rule-out-in-the-parks     { background: #c05621; }
.tip-rule-when-to-travel       { background: #0f766e; }
.tip-rule-before-you-travel    { background: #9b2c5f; }

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.tip-card {
  background: var(--tip-card);
  border: 1px solid var(--tip-border);
  border-radius: var(--tip-radius);
  box-shadow: var(--tip-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tip-card[hidden] { display: none; }
.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tip-shadow-lift);
  border-color: rgba(47, 138, 99, .35);
}
.tip-card-link {
  display: flex; flex-direction: column; height: 100%;
  color: inherit; text-decoration: none;
}
.tip-card-link:focus-visible { outline: 3px solid var(--tip-green-3); outline-offset: -3px; }

.tip-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1f7a5a 0%, #12433a 100%);
  overflow: hidden;
}
.tip-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.tip-card:hover .tip-card-media img { transform: scale(1.05); }

/* Insights without a photograph get a coloured panel in their section's
   colour, so a picture is a bonus rather than a requirement. A fine diagonal
   weave and a soft light from the top-left keep it looking designed rather
   than merely empty — several of these (visas, insurance, what to pack) have
   no honest photograph, so the panel is their permanent treatment. */
.tip-card.is-plain .tip-card-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(255,255,255,.20), transparent 58%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.055) 0 1px,
      transparent 1px 9px);
}
.tip-media-ways-to-travel       { background: linear-gradient(135deg, #2a9b73 0%, #14503c 100%); }
.tip-media-where-you-sleep      { background: linear-gradient(135deg, #d9a441 0%, #8a6207 100%); }
.tip-media-comfort-budget       { background: linear-gradient(135deg, #9b7fdb 0%, #5b3fa0 100%); }
.tip-media-getting-there-around { background: linear-gradient(135deg, #4a90d9 0%, #1f4f85 100%); }
.tip-media-out-in-the-parks     { background: linear-gradient(135deg, #e08544 0%, #a24413 100%); }
.tip-media-when-to-travel       { background: linear-gradient(135deg, #23a89b 0%, #0b5a54 100%); }
.tip-media-before-you-travel    { background: linear-gradient(135deg, #c9538a 0%, #7a1f49 100%); }

.tip-card-icon {
  position: absolute; left: 14px; bottom: 14px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .93);
  color: var(--tip-green);
  font-size: 1.02rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
/* On a plain panel the icon is the whole illustration, so it sits large and
   centred instead of tucked in a corner. */
.tip-card.is-plain .tip-card-icon {
  left: 50%; top: 50%; bottom: auto;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px; font-size: 1.6rem;
  background: rgba(255, 255, 255, .17);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  border: 1.5px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(2px);
  transition: transform .25s ease, background .25s ease;
}
.tip-card.is-plain:hover .tip-card-icon {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255, 255, 255, .24);
}

.tip-card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 17px 18px 19px;
}
.tip-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  color: var(--tip-green);
}
.tip-card-body p {
  margin: 0 0 15px;
  color: #55616b; font-size: .88rem; line-height: 1.62;
}
.tip-card-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--tip-green-2); font-size: .84rem; font-weight: 700;
}
.tip-card-more i { transition: transform .2s ease; }
.tip-card:hover .tip-card-more i { transform: translateX(4px); }

.tip-noresults {
  padding: 40px 20px; text-align: center;
  color: var(--tip-muted); font-size: .98rem;
}
.tip-noresults button {
  border: 0; background: none; padding: 0;
  color: var(--tip-green-2); font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.tip-empty, .tip-notfound {
  margin: 34px auto; padding: 22px;
  background: #fff; border: 1px solid var(--tip-border); border-radius: var(--tip-radius);
  text-align: center; color: var(--tip-muted);
}
.tip-notfound { margin-bottom: 0; border-color: #f2dcb3; background: #fdf3e2; color: #8a5d0f; }

/* ---------- Closing call to action ---------- */
.tip-cta {
  padding: clamp(34px, 5vw, 56px) 0;
  background: linear-gradient(135deg, #12433a 0%, #1d6b41 100%);
  color: #fff;
}
.tip-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.tip-cta h2 {
  margin: 0 0 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.05rem);
}
.tip-cta p { margin: 0; max-width: 58ch; color: rgba(255, 255, 255, .86); line-height: 1.7; font-size: .95rem; }
.tip-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tip-cta .tip-btn-primary { background: #fff; color: var(--tip-green); }
.tip-cta .tip-btn-primary:hover { background: #f2f7f4; }
.tip-cta .tip-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.tip-cta .tip-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ================= One insight, in full ================= */
.tip-article-page { width: min(1160px, 92vw); margin: 0 auto; padding: clamp(22px, 4vw, 40px) 0 clamp(40px, 6vw, 70px); }

.tip-article {
  background: #fff;
  border: 1px solid var(--tip-border);
  border-radius: clamp(16px, 2.5vw, 22px);
  box-shadow: var(--tip-shadow);
  overflow: hidden;
}

.tip-article-head {
  position: relative;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 52px) clamp(22px, 3.4vw, 34px);
  background:
    radial-gradient(700px 260px at 8% 0%, rgba(47, 138, 99, .13), transparent 62%),
    linear-gradient(180deg, #f9fbfa 0%, #fff 100%);
  border-bottom: 1px solid var(--tip-border);
}
.tip-article-head.has-image { padding-top: 0; }
.tip-article-photo {
  display: block;
  width: calc(100% + clamp(40px, 8vw, 104px));
  margin: 0 0 clamp(20px, 3vw, 30px) calc(-1 * clamp(20px, 4vw, 52px));
  height: clamp(200px, 34vw, 420px);
  object-fit: cover;
}

.tip-crumbs {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 14px;
  font-size: .8rem; color: var(--tip-muted);
}
.tip-crumbs a { color: inherit; text-decoration: none; }
.tip-crumbs a:hover { color: var(--tip-green); text-decoration: underline; }
.tip-crumbs [aria-current] { color: var(--tip-ink); font-weight: 600; }

.tip-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; border-radius: 999px;
  background: rgba(18, 67, 58, .08); color: var(--tip-green);
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tip-tag-where-you-sleep      { background: rgba(184, 134, 11, .12);  color: #8a6207; }
.tip-tag-comfort-budget       { background: rgba(124, 92, 191, .12);  color: #5b3fa0; }
.tip-tag-getting-there-around { background: rgba(43, 108, 176, .12);  color: #1f4f85; }
.tip-tag-out-in-the-parks     { background: rgba(192, 86, 33, .12);   color: #a24413; }
.tip-tag-when-to-travel       { background: rgba(15, 118, 110, .12);  color: #0b5a54; }
.tip-tag-before-you-travel    { background: rgba(155, 44, 95, .12);   color: #7a1f49; }

.tip-article-head h1 {
  margin: 14px 0 12px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400; line-height: 1.12;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  color: var(--tip-green);
}
.tip-article-lede {
  margin: 0; max-width: 70ch;
  color: #44525c; font-size: clamp(1rem, 2.4vw, 1.14rem); line-height: 1.7; font-weight: 500;
}
.tip-readtime {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 0; color: var(--tip-muted); font-size: .82rem; font-weight: 600;
}

.tip-article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3.5vw, 46px);
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 52px) clamp(30px, 4vw, 50px);
  align-items: start;
}

.tip-prose { min-width: 0; }
.tip-prose p {
  margin: 0 0 1.3em;
  color: #37444d; font-size: clamp(.97rem, 2.3vw, 1.05rem); line-height: 1.85;
}
.tip-prose p:last-child { margin-bottom: 0; }
/* The opening paragraph carries a little more weight, as a lede should. */
.tip-prose p:first-child { font-size: clamp(1.02rem, 2.5vw, 1.12rem); color: #2c3841; }

.tip-keypoints {
  position: sticky; top: 92px;
  padding: 22px 22px 24px;
  background: #f7faf8;
  border: 1px solid #dfeae4;
  border-radius: 15px;
}
.tip-keypoints h2 {
  margin: 0 0 14px;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tip-green);
}
.tip-keypoints ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.tip-keypoints li {
  display: flex; gap: 11px; align-items: flex-start;
  color: #3c4a53; font-size: .89rem; line-height: 1.6;
}
.tip-keypoints li i {
  flex: none; margin-top: 3px;
  width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(47, 138, 99, .16); color: var(--tip-green-2);
  font-size: .58rem;
}
.tip-aside-cta {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid #dfeae4;
  display: grid; gap: 9px;
}
.tip-aside-cta p { margin: 0 0 3px; font-size: .87rem; font-weight: 700; color: var(--tip-green); }
.tip-aside-cta .tip-btn { padding: 10px 18px; font-size: .86rem; }

/* ---------- More in this section ---------- */
.tip-related { margin-top: clamp(28px, 4vw, 44px); }
.tip-related h2 {
  margin: 0 0 16px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400; font-size: clamp(1.3rem, 3.4vw, 1.7rem); color: var(--tip-green);
}
.tip-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.tip-related-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 17px;
  background: #fff; border: 1px solid var(--tip-border); border-radius: 14px;
  color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tip-related-card:hover {
  transform: translateY(-3px); border-color: rgba(47, 138, 99, .4);
  box-shadow: 0 12px 28px rgba(18, 67, 58, .1);
}
.tip-related-icon {
  flex: none;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(18, 67, 58, .07); color: var(--tip-green-2);
}
.tip-related-text { display: grid; gap: 5px; min-width: 0; }
.tip-related-text strong { font-size: .95rem; color: var(--tip-green); }
.tip-related-text span {
  color: var(--tip-muted); font-size: .82rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.tip-back { margin: 28px 0 0; }
.tip-back a {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--tip-green-2); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.tip-back a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.tip-footer {
  padding: clamp(28px, 4vw, 44px) 0;
  background: #0f2f28; color: rgba(255, 255, 255, .8);
}
.tip-footer-shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.tip-footer-brand { display: flex; align-items: center; gap: 13px; }
.tip-footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.tip-footer-brand div { display: grid; gap: 2px; }
.tip-footer-brand strong { color: #fff; font-size: 1rem; }
.tip-footer-brand span { font-size: .82rem; }
.tip-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.tip-footer-links a { color: rgba(255, 255, 255, .82); font-size: .87rem; font-weight: 600; text-decoration: none; }
.tip-footer-links a:hover { color: #fff; text-decoration: underline; }
.tip-footer p { margin: 0; font-size: .8rem; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .tip-filters { top: 72px; }

  .tip-article-body { grid-template-columns: minmax(0, 1fr); }
  /* Above the prose on a narrow screen: the summary is what a reader on a
     phone wants first, and a sticky column has nowhere to stick. */
  .tip-keypoints { position: static; order: -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .tip-wrap { width: min(1160px, 90vw); }

  .tip-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .tip-card-media { aspect-ratio: 16 / 9; }

  .tip-filters-inner { padding: 10px 0; }
  .tip-filter { padding: 8px 13px; font-size: .8rem; }

  .tip-article-page { width: 100%; padding: 0 0 34px; }
  .tip-article { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .tip-article-photo {
    width: calc(100% + 40px);
    margin-left: -20px;
    height: 210px;
  }
  .tip-related, .tip-back { width: min(1160px, 90vw); margin-left: auto; margin-right: auto; }
  .tip-related-grid { grid-template-columns: minmax(0, 1fr); }

  .tip-cta-inner { flex-direction: column; align-items: flex-start; }
  .tip-cta-actions { width: 100%; }
  .tip-cta-actions .tip-btn { flex: 1; }

  .tip-footer-shell { flex-direction: column; text-align: center; }
  .tip-footer-links { justify-content: center; }
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  .tip-page *, .tip-page *::before, .tip-page *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

@media print {
  .navbar, .tip-filters, .tip-search, .tip-cta, .tip-footer, .tip-back, .tip-related { display: none !important; }
  .tip-page { background: #fff; }
  .tip-article { border: 0; box-shadow: none; }
  .tip-article-body { grid-template-columns: 1fr; }
}
