/* hub-newformat.css: the "new format" for hub pages (preview, 3 Dec 2026; not live).
   Shared by the home page and the Christmas hub. Rules from Bill (3 Dec): white page (recipes excepted),
   black body text at the site body size, bold intro headings with plain text below, mini cards with image, name and
   a short line, two across on a phone, descriptions clamped to two lines, 8:3 centre-strip pictures on phones only,
   no borders. Fonts per Working Rule 63 / Hub Page Standard: CO Title 800 for headings, body stack Segoe UI, Roboto,
   Helvetica Neue, Arial at the site body size. */
body.nf-body{background:#fff!important;background-image:none!important}

/* ---- two-part intro: What is this page? / How to use this page */
.nf-intro{display:grid;grid-template-columns:1fr 1fr;gap:6px 36px;margin:0}
.nf-intro .nf-part h2{margin:0 0 4px;font:800 1.25rem/1.15 "CO Title","Arial Black",sans-serif;letter-spacing:0;color:#16141f;text-shadow:none}
.nf-intro .nf-part p{margin:0;max-width:60ch;font:400 1em/1.5 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:#16141f;text-shadow:none}
@media (max-width:759px){
  .nf-intro{grid-template-columns:1fr;gap:6px}
  .nf-intro .nf-part h2{font-size:1rem;margin-bottom:2px}
}
/* solid black rule after the intro, before what follows */
.nf-rule{display:block;border:0;border-top:2px solid #000;margin:0 0 16px;width:100%;height:0;padding:0}
@media (max-width:759px){.nf-rule{margin:0 0 12px}}

/* ---- mini cards: borderless; picture, name, one short line */
.nf-cards{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:14px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:700px){.nf-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 18px}}
@media (min-width:1100px){.nf-cards--7{grid-template-columns:repeat(7,minmax(0,1fr));gap:20px 14px}}
.nf-cards>li{margin:0;min-width:0}
.nf-card{display:flex;flex-direction:column;height:100%;box-sizing:border-box;border:0;box-shadow:none;border-radius:10px;
  background:#fff;color:#16141f;text-decoration:none;overflow:hidden}
.nf-cards a.nf-card,.nf-cards a.nf-card:link,.nf-cards a.nf-card:visited,
.nf-cards a.nf-card .nf-name,.nf-cards a.nf-card .nf-desc{color:#16141f;text-decoration:none}
.nf-card:hover,.nf-card:focus-visible{background:#f6f4ef;outline:none}
.nf-card:focus-visible{box-shadow:0 0 0 2px #16141f}
.nf-img{display:block;aspect-ratio:4/3;width:100%;background:#fff;overflow:hidden}
.nf-img picture{display:block;width:100%;height:100%}
.nf-img img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border:0!important;box-shadow:none!important;border-radius:0!important}
@media (max-width:619px){.nf-img{aspect-ratio:8/3}}   /* centre strip, phones only */
.nf-name{display:block;padding:8px 10px 0;font:800 1rem/1.15 "CO Title","Arial Black",sans-serif;color:#16141f}
.nf-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:3px 10px 10px;
  font:400 1em/1.45 "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:#16141f}
@media (max-width:619px){.nf-name{padding:6px 8px 0}.nf-desc{margin:2px 8px 8px}}

/* an odd last card spans both columns on a phone so it does not sit alone */
@media (max-width:619px){.nf-cards>li:last-child:nth-child(odd){grid-column:1 / -1}}

.nf-kicker{display:block;padding:8px 10px 0;font:700 .72rem/1.2 "CO Oswald",Oswald,"Arial Narrow",sans-serif;
  letter-spacing:.08em;text-transform:uppercase;color:#c2410c}
@media (max-width:619px){.nf-kicker{padding:6px 8px 0}}
.nf-img--contain img{object-fit:contain;object-position:center}

/* Mini navbar logo: top-right of the text area, beside the title (Bill, 3 Dec). */
.nf-text{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:4px;align-items:start}
.nf-text > .nf-kicker{grid-column:1;grid-row:1}
.nf-text > .nf-name{grid-column:1;min-width:0}
.nf-text > .nf-kicker + .nf-name,
.nf-text > .nf-logo + .nf-name{grid-row:auto}
.nf-text > .nf-kicker + .nf-logo + .nf-name{grid-row:2}
.nf-text > .nf-logo{grid-column:2;grid-row:1 / span 2;margin:6px 8px 0 0;line-height:0;align-self:start}
.nf-text > .nf-desc{grid-column:1 / -1}
.nf-logo{display:block;flex:none}
.nf-logo picture{display:block;line-height:0}
.nf-logo img{display:block;width:auto;height:28px;max-width:28px;object-fit:contain;object-position:center top;
  border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
@media (max-width:619px){
  .nf-text > .nf-logo{margin:4px 6px 0 0}
  .nf-logo img{height:22px;max-width:22px}
}
@media (min-width:1100px){
  .nf-cards--7 .nf-logo img{height:24px;max-width:24px}
  .nf-cards--7 .nf-text > .nf-logo{margin:6px 6px 0 0}
}
