/* The home page and section pages, laid out like abc.net.au in Xarmo's own
   colours and type (owner, 8 November 2026; mockup in docs/SECTIONS-PLAN.md).
   Brand values come from Web's brand-v0.2.css, with fallbacks. */
.xf {
  --xf-ink: var(--xarmo-black, #0d0d10);
  --xf-red: var(--xarmo-red, #e6202a);
  --xf-purple: var(--xarmo-purple, #4a2c73);
  --xf-muted: var(--xarmo-grey-600, #67676f);
  --xf-line: var(--xarmo-grey-300, #cfcfd5);
  --xf-soft: var(--xarmo-grey-50, #f7f7f8);
  --xf-faint: var(--xarmo-grey-100, #eeeef1);
  --xf-display: var(--xarmo-display, "Sora", Arial, sans-serif);
  display: block;
  color: var(--xf-ink);
  font-family: var(--xarmo-body, "Manrope", Arial, sans-serif);
}
.xf a { color: inherit; text-decoration: none; }
.xf a:hover, .xf a:focus-visible { color: var(--xf-red); text-decoration: underline; }
.xf img { display: block; max-width: 100%; height: auto; }
.xf-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 0; }
.xf h1, .xf h2, .xf h3 { margin: 0; }

/* Labels and headings */
.xf-kicker { font-size: 11px; font-weight: 700; color: var(--xf-purple); text-transform: uppercase; letter-spacing: .04em; }
.xf-kicker--red { color: var(--xf-red); font-size: 12px; }
.xf-meta { font-size: 13px; color: var(--xf-muted); }
.xf .xf-head { margin: 0 0 14px !important; }
.xf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--xf-display); font-size: 22px; padding-bottom: 6px; margin-bottom: 14px; border-bottom: 3px solid var(--xf-ink); }
.xf-head--red { border-color: var(--xf-red); }
.xf-head--purple { border-color: var(--xf-purple); }
.xf-head a.xf-all { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--xf-red); font-family: var(--xarmo-body, "Manrope", Arial, sans-serif); }
.xf-section { padding-top: 40px; }

/* Top Stories and Just In */
.xf-top { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.xf-top__main { flex: 999 1 640px; min-width: 0; }
.xf-top__side { flex: 1 1 300px; min-width: 0; }
.xf-top__main > .xf-head { font-size: 26px; border-color: var(--xf-red); }
.xf-lead { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--xf-line); }
.xf-lead__art { flex: 1 1 380px; }
.xf-lead__art img, .xf-card__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.xf-lead__copy { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.xf-lead__copy h2 { font-family: var(--xf-display); font-size: 26px; line-height: 1.2; }
.xf-lead__copy p { margin: 0; color: #4a4a52; font-size: 15px; line-height: 1.5; }
.xf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 24px; }
.xf-top .xf-grid { padding: 20px 0; border-bottom: 1px solid var(--xf-line); }
.xf-mini { display: flex; gap: 12px; align-items: flex-start; }
.xf-mini__art { flex: 0 0 120px; }
.xf-mini__art img { width: 120px; height: 68px; object-fit: cover; }
.xf-mini > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xf-mini h3 { font-size: 15px; line-height: 1.3; font-weight: 700; }
.xf-list { list-style: none; margin: 0; padding: 0; }
.xf-list li { padding: 10px 0; border-bottom: 1px solid var(--xf-faint); font-size: 15px; font-weight: 600; line-height: 1.35; }
.xf-list li span { font-weight: 500; color: var(--xf-muted); font-size: 13px; }
.xf-justin { background: var(--xf-soft); padding: 16px 18px; }
.xf-justin h2 { font-family: var(--xf-display); font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.xf-justin h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--xf-red); }
.xf-justin ol { list-style: none; margin: 0; padding: 0; }
.xf-justin li { padding: 10px 0; border-top: 1px solid var(--xf-line); display: flex; flex-direction: column; gap: 2px; }
.xf-justin li > span { font-size: 12px; font-weight: 700; color: var(--xf-muted); }
.xf-justin li > a { font-size: 14px; font-weight: 600; line-height: 1.35; }

/* Cards */
.xf-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xf-card h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.xf-card--big h3 { font-family: var(--xf-display); font-size: 19px; }
.xf-card p { margin: 0; color: #4a4a52; font-size: 15px; line-height: 1.5; }
.xf-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 36px 32px; padding-top: 40px; }
.xf-block { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xf-block .xf-head { margin-bottom: 0; }
.xf-block ul { list-style: none; margin: 0; padding: 0; }
.xf-block li { padding: 9px 0; border-top: 1px solid var(--xf-faint); font-size: 14px; font-weight: 600; line-height: 1.35; }

/* YouTube */
.xf-videos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
@media (max-width: 900px) { .xf-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xf-video { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xf-video__art { position: relative; display: block; }
.xf-video__art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.xf-video__art::after { content: ""; position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--xf-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5l12 7-12 7z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.xf-video h3 { font-size: 14px; line-height: 1.35; font-weight: 700; }
.xf-more { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; aspect-ratio: 3 / 4; border-radius: 6px; background: var(--xf-ink); color: #fff !important; text-align: center; padding: 12px; }
.xf-more strong { font-family: var(--xf-display); font-size: 18px; }
.xf-more small { font-size: 13px; color: var(--xf-line); }
.xf-more::before { content: "→"; width: 52px; height: 52px; border-radius: 50%; background: var(--xf-red); display: flex; align-items: center; justify-content: center; font-size: 22px; }

/* Worlds (Web fills the tiles from the Games bundle) */
.xf-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.xf-worlds a { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--xf-line); border-radius: 8px; }
.xf-worlds img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.xf-worlds strong { display: block; font-family: var(--xf-display); font-size: 18px; }
.xf-worlds small { font-size: 13px; color: var(--xf-muted); }
.xf-strip { margin-top: 40px; }

/* Section pages */
.xf-banner { background: var(--xf-purple); color: #fff; }
.xf-banner > div { max-width: 1180px; margin: 0 auto; padding: 28px 24px 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.xf-banner h1 { font-family: var(--xf-display); font-size: 40px; }
.xf-banner p { margin: 0; font-size: 16px; color: #e3d9f2; }
.xf-sectionlead { display: flex; flex-direction: column; gap: 12px; }
.xf-sectionlead h2 { font-family: var(--xf-display); font-size: 30px; line-height: 1.2; }
.xf-sectionlead p { margin: 0; color: #4a4a52; font-size: 16px; line-height: 1.55; }
.xf-sectionlead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.xf-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 32px 0 48px; }
.xf-pager a, .xf-pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--xf-line); border-radius: 4px; font-weight: 700; }
.xf-pager span[aria-current] { background: var(--xf-ink); color: #fff; border-color: var(--xf-ink); }
.xf-end { height: 48px; }

/* More YouTube: a banner like the KudosQuest one, with creators' stories scrolling past */
.xf-ytbanner { position: relative; display: block; height: 150px; margin-top: 24px; overflow: hidden; border-radius: 14px; background: var(--xf-ink); color: #fff !important; text-decoration: none !important; isolation: isolate; }
.xf-ytbanner__reel { position: absolute; inset: 0; display: flex; gap: 8px; width: max-content; animation: xf-reel 40s linear infinite; }
.xf-ytbanner__reel img { height: 150px; width: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: .75; }
.xf-ytbanner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,13,16,.92) 0%, rgba(13,13,16,.6) 45%, rgba(13,13,16,.1) 75%); }
.xf-ytbanner__copy { position: absolute; left: 22px; top: 18px; right: 22px; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding-left: 64px; }
.xf-ytbanner__copy::before { content: ""; position: absolute; left: 0; top: 4px; width: 48px; height: 48px; border-radius: 50%; background: var(--xf-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5l12 7-12 7z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.xf-ytbanner__copy strong { font-family: var(--xf-display); font-size: 24px; }
.xf-ytbanner__copy small { font-size: 14px; color: var(--xf-line); max-width: 40ch; }
.xf-ytbanner__copy em { font-style: normal; font-weight: 700; font-size: 14px; color: #fff; margin-top: 6px; }
.xf-ytbanner:hover em, .xf-ytbanner:focus-visible em { text-decoration: underline; }
@keyframes xf-reel { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .xf-ytbanner__reel { animation: none; } }

/* ABC-style list rows (News), and "Load more stories" (owner, 8 November 2026) */
.xf-rows { display: flex; flex-direction: column; }
.xf-row { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid var(--xf-line); }
.xf-row:first-child { border-top: 0; padding-top: 4px; }
.xf-row__art { flex: 0 0 240px; }
.xf-row__art img { width: 240px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.xf-row__copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xf-row__hat { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--xf-muted); }
.xf-row h3 { font-family: var(--xf-display); font-size: 20px; line-height: 1.25; }
.xf-row p { margin: 0; color: #4a4a52; font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) {
  .xf-row { gap: 14px; }
  .xf-row__art { flex-basis: 112px; }
  .xf-row__art img { width: 112px; }
  .xf-row p { display: none; }
  .xf-row h3 { font-size: 16px; }
}
.xf-more-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; padding: 32px 0 8px; }
.xf-loadmore { min-height: 48px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--xf-ink); color: #fff; font: 700 15px var(--xarmo-body, "Manrope", Arial, sans-serif); cursor: pointer; }
.xf-loadmore:hover, .xf-loadmore:focus-visible { background: var(--xf-red); }
.xf-loadmore[disabled] { opacity: .6; cursor: progress; }
.xf-older { font-size: 14px; font-weight: 700; color: var(--xf-muted) !important; }
