/* Business Tips (tips.php, tips-article.php, tips-newsletter.php; layout agreed with TM 11 Nov 2026). Colours are the page
   variables (light values as fallbacks; their dark values come from feature-pages.css under .dark .ofp), so dark mode needs
   nothing here but the few rules at the end. The short's corners: --tips-radius. */
.ofp.tips-page { --mag: #BC08B0; --tips-radius: 20px; }

/* the short: a 9:16 frame, about 360 px on a wide screen, the full width up to 420 px on a phone */
.tips-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 9 / 16; border-radius: var(--tips-radius); overflow: hidden; background: var(--dark, #13171E); }
.tips-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tips-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; cursor: pointer; background: none; font: inherit; }
.tips-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tips-cover:focus-visible { outline: 3px solid var(--mag); outline-offset: -3px; border-radius: var(--tips-radius); }
.tips-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--mag); color: var(--onDark, #FFFFFF); display: grid; place-items: center; transition: transform .15s ease; }
.tips-cover:hover .tips-play { transform: scale(1.06); }
.tips-len { position: absolute; right: 12px; bottom: 12px; background: rgba(19, 23, 30, .82); color: var(--onDark, #FFFFFF); font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 6px; font-variant-numeric: tabular-nums; }

/* one tip: title, short, text on a phone; short left, date + title + text right on a wide screen */
.tips-tip { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "video" "body"; }
.tips-head { grid-area: head; }
.tips-video { grid-area: video; }
.tips-body { grid-area: body; min-width: 0; }
@media (min-width: 900px) {
  .tips-tip { grid-template-columns: 360px minmax(0, 1fr); grid-template-areas: "video head" "video body"; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 20px; }
  .tips-video { align-self: start; position: sticky; top: 100px; }
}

/* the list: cards with the short's picture */
.tips-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tips-card { overflow: hidden; display: flex; flex-direction: column; }
.tips-card-pic { display: block; aspect-ratio: 9 / 16; max-height: 360px; overflow: hidden; background: var(--dark, #13171E); }
.tips-card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tips-card-text { padding: 20px 22px 24px; }
.tips-card-text h2 a:hover { text-decoration: underline; }

/* the newsletter sign-up */
.tips-nl { margin-top: 56px; padding: 28px; max-width: 720px; }
.tips-nl-form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .tips-nl-form { grid-template-columns: 1fr 1fr; } .tips-nl-form .fp-btn, .tips-nl-consent, .tips-nl-msg { grid-column: 1 / -1; } }
.tips-nl-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink, #1A1A1C); }
.tips-nl-form input { font: inherit; font-weight: 400; font-size: 15px; color: var(--ink, #1A1A1C); background: var(--card, #FFFFFF); border: 1px solid var(--field, #D5D8DD); border-radius: 10px; padding: 12px 14px; width: 100%; }
.tips-nl-form input:focus { outline: 2px solid var(--mag); outline-offset: 1px; border-color: var(--mag); }
.tips-nl-form .fp-btn, .tips-done .fp-btn { display: inline-block; border: 0; font: inherit; font-weight: 600; cursor: pointer; background: var(--mag); color: var(--onDark, #FFFFFF); padding: 13px 22px; border-radius: 10px; text-decoration: none; }
.tips-nl-form .fp-btn:hover, .tips-done .fp-btn:hover { background: var(--magH, #9C0792); }
.tips-nl-form .fp-btn[disabled] { opacity: .6; cursor: default; }
.tips-nl-msg { margin-top: 16px; }
.tips-nl-msg:empty, .tips-nl [hidden] { display: none; }
.tips-nl-msg:focus { outline: none; }
.tips-nl-msg.tips-ok { margin-top: 12px; font-weight: 600; color: var(--ink, #1A1A1C); }
.tips-nl-msg.tips-err { color: var(--errText, #B42318); }

/* on a PC (the header's desktop width and up) the sign-up sits in a column beside the content and stays in view while
   reading, below the fixed header (the short's offset); on a phone or tablet it stays below the content
   (owner 23 Nov 2026: "make it sticky on PC monitors") */
@media (min-width: 1280px) {
  .tips-layout:has(> .tips-side) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; align-items: start; }
  .tips-side .tips-nl { margin-top: 0; padding: 24px; }
  .tips-side .tips-nl-form { grid-template-columns: minmax(0, 1fr); }
}
/* sticky only where the whole box (about 575 px) fits below the header: a short window keeps it in its place */
@media (min-width: 1280px) and (min-height: 720px) { .tips-side { position: sticky; top: 100px; } }
.tips-done { max-width: 720px; }

/* dark mode: the field edge and the error text (the rest are the shared page variables) */
.dark .ofp.tips-page { --field: rgb(255 255 255 / .14); --errText: #FDA29B; }
.dark .ofp .tips-nl-form label { color: var(--ink); }
