/* =====================================================================
   IWASC Green — theme stylesheet.

   Converted from reference/prototype/css/global.css.

   The colours, fonts and spacing are NOT in this file. They live in
   public/cache/theme.css, which the CMS generates from the theme tokens,
   so changing a colour in the admin needs no change here.

   Classes keep the iw- prefix from the prototype so the markup matches.
   The homepage section styles (slider, cards, stats and so on) are kept
   ready for Phase 3, when those become widgets.
   ===================================================================== */

/* The space inside a card, between its edge and its words.

   Here and not among the theme tokens because it is not a thing to set: it
   is what makes a card a card, and the one number that plain text sharing a
   row with a card has to match so their buttons stop on the same line.
   Written once, read in both places. */
:root{--iw-card-pad:22px}

/* Skip link: the first thing a keyboard reaches on every page. */
.iw-skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--iw-green);color:#fff;padding:12px 20px;border-radius:0 0 8px 0}
.iw-skip:focus{left:0}

/* The page body, between the menu and the footer. */
.iw-main{padding:16px 0 30px}
.iw-page-title{font-size:30px;color:var(--iw-green-d);margin-bottom:14px}
.iw-main--sidebar .iw-wrap{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:26px;align-items:start}
@media (max-width:860px){.iw-main--sidebar .iw-wrap{grid-template-columns:minmax(0,1fr)}}

/* =========================================================
   IWASC Homepage — global.css
   Prefix: iw-  (avoids clashes with CMS styles)
   Sections are marked "WIDGET:" to match CMS boxes
   ========================================================= */

/* ---------- 2. Base ---------- */
:where(.iw) *,:where(.iw) *::before,:where(.iw) *::after{box-sizing:border-box}
/* The flat page colour belongs to html, not body.

   body's background is handed to the canvas when html has none, and a
   layer behind body then has nothing to sit in front of: a solid red
   test layer at z-index -1 painted nothing at all. Put the colour on
   html and body's own background paints over it, which is where the
   wash can go. */
html{scroll-behavior:smooth;background-color:var(--iw-page,#FAFAF6)}

/* The wash of colour behind the page.

   Fixed, because a radial gradient is sized to the box it is painted
   on and body is as tall as the page -- measured at 2487px on the home
   page, which spread the glow over a thousand pixels and left it
   invisible, and a department page is several times that again. Fixed,
   it is sized to the screen on every page and stays put while the page
   scrolls over it.

   --iw-grad-page only exists once somebody turns it on, so until then
   this is `none` and the page is the flat colour it has always been. */
body.iw{margin:0;font-family:var(--iw-body);font-size:15px;line-height:1.55;color:var(--iw-ink);-webkit-font-smoothing:antialiased;overflow-x:clip;
  background-image:var(--iw-grad-page,none);background-attachment:fixed;background-repeat:no-repeat}
:where(.iw) img{max-width:100%;display:block}
:where(.iw) a{color:inherit;text-decoration:none}
:where(.iw) button{font:inherit;cursor:pointer}
:where(.iw) :is(h1,h2,h3,h4){font-family:var(--iw-head);margin:0;line-height:1.2;font-weight:700}
:where(.iw) ul{list-style:none;margin:0;padding:0}
:where(.iw) :focus-visible{outline:3px solid var(--iw-gold);outline-offset:2px}
.iw-wrap{max-width:var(--iw-wrap);margin:0 auto;padding:0 20px}
.iw-sec{margin-top:var(--iw-gap)}
.iw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.iw-ic{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.iw-ic.f{fill:currentColor;stroke:none}

/* buttons */
.iw-btn{display:inline-flex;align-items:center;gap:10px;font-family:var(--iw-head);font-weight:600;font-size:14px;border-radius:999px;padding:9px 20px;border:1.5px solid transparent;transition:background .2s,color .2s,border-color .2s,transform .2s}
.iw-btn .iw-ic{font-size:17px;transition:transform .2s}
.iw-btn:hover .iw-ic{transform:translateX(3px)}
/* The filled button. --iw-grad-btn only exists when somebody has turned a
   gradient on in Look of the site; until then the fallback is the colour
   this button has always been, so nothing moves.

   The words on it are Button text in Look of the site -- as they are
   sitting there, not only once the mouse is over them. The filled button
   and the outline button both read it; so does either of them once it
   fills in under the mouse, so the words do not change colour halfway.

   The two that sit on a photograph -- ghost and white, the ones in the
   slider -- keep their white. Their words are on a picture rather than on
   a button, and one colour cannot be read on both a pale button and a
   dark photograph.

   The fallback on each is the colour those words have always been, so a
   college that never opens that box sees nothing change. */
.iw-btn-gold{background:var(--iw-grad-btn,var(--iw-gold-l));color:var(--iw-btn-ink,var(--iw-green-d))}
.iw-btn-gold:hover{background:var(--iw-grad-btn,var(--iw-gold))}
/* The outline button fills with the same gradient.
   ---------------------------------------------------------------------
   The college asked why About the college and Student living carried the
   gradient and Read More did not: those are the filled button and this
   is the outline one, and only the filled one had a background to put a
   gradient on.
   Same fallback as above, so this is transparent -- an outline button,
   exactly as before -- until somebody turns a gradient on. */
.iw-btn-line{background:var(--iw-grad-btn,transparent);
  border-color:var(--iw-green);color:var(--iw-btn-ink,var(--iw-green))}
.iw-btn-line:hover{background:var(--iw-grad-btn,var(--iw-green));color:var(--iw-btn-ink,#fff)}
.iw-btn-ghost{border-color:var(--iw-gold);color:var(--iw-gold-l)}
.iw-btn-ghost:hover{background:var(--iw-gold);color:var(--iw-btn-ink,var(--iw-green-d))}

/* card base */
/* A box. The gradient REPLACES the white rather than sitting on it:
   white underneath a see-through gradient is still a white box, and the
   page wash cannot read through two layers when the lower one is solid.
   Off, the fallback is the white it has always been. */
.iw-card{background:var(--iw-grad-card,var(--iw-surface-panel,#fff));border:1px solid var(--iw-line);border-radius:var(--iw-r);box-shadow:var(--iw-shadow)}
/* A heading and a "View all" on one line, until there is not room for one
   line. Three things are needed and all three were missing here:

     gap        so the two never touch when they are close
     flex-wrap  so the link drops below the heading instead of being squeezed
     flex:none  on the link, so it keeps its own width and wraps as a whole

   Without the last one the link is the thing that gives: "View all" breaks
   across two lines and climbs over the heading beside it, which is what the
   third column of the home page did the moment its heading was the word
   "Announcements" rather than "Events". */
.iw-head-row{display:flex;justify-content:space-between;align-items:center;
  gap:10px;flex-wrap:wrap;margin-bottom:12px}
.iw-head-row h2{font-size:21px;color:var(--iw-green-d);min-width:0}
.iw-viewall{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap;font-family:var(--iw-head);font-weight:600;font-size:14px;color:var(--iw-green)}
.iw-viewall:hover{color:var(--iw-olive)}

/* ---------- 3. WIDGET: Header brand row ---------- */
.iw-hdr{background:var(--iw-surface-panel,#fff)}
.iw-hdr .iw-wrap{display:flex;align-items:center;gap:18px;padding-top:9px;padding-bottom:9px}
.iw-brand{display:flex;align-items:center;gap:14px;flex:none}
/* Fills the width it is given and keeps its own shape doing it.

   width:100% beside a fixed height stretches the logo -- the file is
   200x52, which is 3.85:1, and a 326x68 box is 4.80:1, a quarter wider
   than it should be. A max-height does not help either: it squashes the
   height without touching the width, which is the same stretch by another
   route. Only height:auto keeps the shape, and the header grows from 86px
   to 104px to hold it, which is the cost of a logo this size. */
/* The logo fills the header row, at every width.
   ---------------------------------------------------------------------
   Asked for as it is written. It takes the width it is given and is
   68px tall, which is the row.

   What that costs: width and height are both fixed, so the picture is
   made to fit the box rather than the box made to fit the picture. The
   file is 200x52 -- 3.85 wide to 1 tall -- and the box it fills is
   nearer 4.2 to 1, so the logo is drawn about a tenth wider than it
   was drawn. object-position holds it against the left edge; adding
   object-fit:contain would keep its shape instead, at the cost of
   leaving the slack empty on the right.

   It replaces height:auto, which let the logo keep its shape by growing
   the header instead: 172px tall in a 760px window. */
.iw-brand img{width:auto;height:68px;object-position:left center}
.iw-brand-t b{display:block;font-family:var(--iw-head);font-weight:800;font-size:21px;line-height:1.08;color:var(--iw-green-d);text-transform:uppercase;letter-spacing:.2px}
.iw-brand-t b span{font-weight:600;font-size:.8em}
.iw-brand-t small{display:block;font-size:12px;color:var(--iw-muted);margin-top:4px}
/* The badge was 289px of a 1009px header row, and 191 of those were the
   words: "Years of Educational Excellence" set on one line beside a 52px
   number. The words are capped so they take two lines, which is most of
   the saving, and the number and the padding give back the rest.

   The cap is in em, so a college that shortens the words in Wording gets
   a narrower badge rather than the same box with a gap in it. */
/* 1 1 auto, the same as the brand: what is left over is shared between
   them rather than all of it going to the logo. It was 0 1 auto, so the
   badge stayed at 210px whether the row was 1009px or 1320px and every
   pixel the seals gave up went to the logo alone.

   There were lines down both edges of it, and the college has taken
   them off: the one on the left sat between the logo and the badge and
   the one on the right between the badge and the seals, and the row
   reads as four things without either of them.

   Centred stays. Growing left the content stuck to the left of a box
   that is wider than it, and with no line to mark where that box ends
   it looked like a mistake in the spacing rather than a box with room
   in it. */
.iw-years{display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;flex:1 1 auto;min-width:0}
.iw-years span{max-width:9em}
/* A badge the college had drawn, standing as tall as the logo beside it.
   ---------------------------------------------------------------------
   It was 52px against the logo's 68px, and 200px was as wide as it was
   allowed to be whatever share of the row it had been given. On the live
   site that drew this college's badge at 117x52 beside a 468px logo: the
   smallest, faintest thing in the row, and the reason the header looked
   lopsided.

   68px is the logo's height, so the two read as a pair. The width is
   whatever that height makes it, held only by the share the badge has --
   not by a number picked here. The row is 86px, so neither can push it
   open. */
.iw-years--pic{padding:0 12px}
.iw-years--pic img{display:block;height:68px;width:auto;max-width:100%}
.iw-years b{font-family:var(--iw-head);font-size:44px;font-weight:800;line-height:1;color:var(--iw-green);position:relative}
.iw-years b::before{content:"";position:absolute;inset:-4px -8px;border:3px solid var(--iw-gold);border-radius:50%;border-right-color:transparent;transform:rotate(-30deg)}
.iw-years span{font-family:var(--iw-head);font-weight:600;font-size:14px;line-height:1.15;color:var(--iw-green-d)}
.iw-acc{display:flex;flex:0 0 auto;justify-content:flex-end;gap:4px}
.iw-acc li{display:flex;flex-direction:column;align-items:center;text-align:center;width:70px;font-size:10.5px;line-height:1.2;color:var(--iw-muted);padding:0 4px;border-right:1px solid var(--iw-line)}
.iw-acc li:last-child{border-right:0}
.iw-seal{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;margin-bottom:4px;font-family:var(--iw-head);font-weight:800;font-size:11px;color:#fff;background:var(--iw-green)}
.iw-seal img{width:100%;height:100%;object-fit:contain}
.iw-seal.s2{background:#C88A12}.iw-seal.s3{background:#C8102E}.iw-seal.s4{background:var(--iw-green-m)}.iw-seal.s5{background:#3B6FA8}
.iw-connect{flex:none;text-align:left}
.iw-connect p{margin:0 0 8px;font-size:13px;color:var(--iw-ink)}
.iw-soc{display:flex;gap:6px;align-items:center}
.iw-soc a{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:14px;transition:transform .2s}
.iw-soc a:hover{transform:translateY(-2px)}
.iw-soc .fb{background:#1877F2}.iw-soc .x{background:#111}.iw-soc .ig{background:linear-gradient(45deg,#F58529,#DD2A7B,#8134AF)}.iw-soc .yt{background:#FF0000}.iw-soc .li{background:#0A66C2}
/* Not a sixth network.
   ---------------------------------------------------------------------
   At 30px in the same round shape in the same house olive, this sat at
   the end of the five brand circles and read as one more of them -- the
   dull one. Nothing about it said press me.

   Bigger than they are, then, with a proper gap before it rather than
   the 6px that separates one network from the next, and a hairline
   standing in that gap to end the row. No new colour: the fill is the
   one it always had, and the glass measures 5.76 to 1 against it. */
.iw-search-btn{width:40px;height:40px;border-radius:50%;border:0;
  background:var(--iw-green-l);color:var(--iw-green);display:grid;
  place-items:center;font-size:19px;position:relative;margin-left:16px}
.iw-search-btn::before{content:"";position:absolute;left:-9px;top:50%;
  width:1px;height:24px;transform:translateY(-50%);background:var(--iw-line)}
.iw-burger{display:none;width:44px;height:44px;border:0;border-radius:10px;background:var(--iw-green);color:#fff;place-items:center;font-size:22px;margin-left:auto}
.iw-search{display:none;background:var(--iw-green-l);padding:10px 0}
.iw-search.open{display:block}
.iw-search form{display:flex;gap:8px}
.iw-search input{flex:1;border:1px solid var(--iw-line);border-radius:999px;padding:10px 18px;font:inherit}

/* ---------- 4. WIDGET: Menu bar ---------- */
/* The bar has always been shaded from the main green to the dark one, and
   that shading follows whatever the two greens are set to. The fallback
   keeps exactly that, so turning a gradient on is a choice and turning it
   off puts the bar back as it was rather than flattening it. */
.iw-nav{position:sticky;top:0;z-index:60;background:var(--iw-grad-header,linear-gradient(180deg,var(--iw-green) 0%,var(--iw-green-d) 100%));box-shadow:0 4px 14px rgba(6,42,22,.2)}
/* The menu asks for the room its own items need (flex-basis auto, not 0), so
   that when a college has more of them than will fit, the phone button drops
   to a second line instead of hanging off the side of the screen. */
.iw-nav .iw-wrap{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:44px}
/* Only the open drawer has a way out of it. Hidden by default, or the
   closed drawer -- which is nothing but a strip of no height -- leaves its
   cross floating over the page with nothing to close. */
.iw-nav-close{display:none}
.iw-menu{display:flex;align-items:center;flex:1 1 auto;gap:2px}
.iw-menu>li{position:relative}
.iw-menu>li>a{display:flex;align-items:center;gap:5px;color:#fff;font-family:var(--iw-head);font-weight:500;font-size:13.5px;padding:7px 8px;border-radius:8px;white-space:nowrap;transition:background .2s}
.iw-menu>li>a .iw-ic{font-size:13px;opacity:.85}
.iw-menu>li>a:hover,.iw-menu>li:focus-within>a{background:rgba(255,255,255,.1)}
.iw-menu>li.active>a{background:var(--iw-green-m);border:1px solid var(--iw-gold);padding:6px 16px}
.iw-menu>li.active>a .iw-ic{font-size:17px}
.iw-sub{position:absolute;top:100%;left:0;min-width:230px;background:var(--iw-surface-panel,#fff);border-radius:0 0 12px 12px;padding:8px;box-shadow:0 18px 40px rgba(6,42,22,.18);opacity:0;visibility:hidden;transform:translateY(6px);transition:.18s;z-index:70;border-top:3px solid var(--iw-gold)}
.iw-menu>li:hover>.iw-sub,.iw-menu>li:focus-within>.iw-sub{opacity:1;visibility:visible;transform:none}
.iw-sub a{display:block;padding:8px 12px;border-radius:8px;font-size:14px;color:var(--iw-ink)}
.iw-sub a:hover{background:var(--iw-green-l);color:var(--iw-green)}
.iw-menu>li:nth-last-child(-n+2) .iw-sub{left:auto;right:0}
/* The pill at the end of the menu takes the gradient too, by the same
   rule: transparent until a gradient is turned on, so a college that
   never opens that box still sees the gold outline it always had.
   Its words stay gold: with no gradient this pill sits on the dark menu
   bar, where Button text -- which is dark on this site -- could not be
   read. */
.iw-contact{flex:none;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--iw-gold);color:var(--iw-nav-ink,var(--iw-gold-l));background:var(--iw-grad-btn,transparent);border-radius:999px;padding:5px 10px;font-family:var(--iw-head);font-weight:600;font-size:14px;transition:.2s}
.iw-contact:hover{background:var(--iw-grad-btn,var(--iw-gold));color:var(--iw-btn-ink,var(--iw-green-d))}

/* ---------- 5. Row: Hero (slider + news + quick cards) ---------- */
/* How many things share the row decides the columns, so the client can put
   one, two or three in it and the page stays right either way. One on its
   own fills the width; three take the proportions of the approved design.
   A browser without :has() gets the single column, which stacks and reads
   perfectly well. */
.iw-hero{display:grid;gap:var(--iw-gap);grid-template-columns:minmax(0,1fr)}
.iw-hero:has(>:nth-child(2)){grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.iw-hero:has(>:nth-child(3)){grid-template-columns:minmax(0,2.25fr) minmax(0,1fr) minmax(0,.72fr)}

/* Four in the top row: the fourth goes UNDER the third rather than making a
   fourth column. Three columns is as narrow as this row can usefully get --
   a fourth would leave every one of them too thin to read -- so the last
   column carries two boxes instead. The first two span both rows, so the
   slider and the news list keep the full height they had.

   The lower row is `auto` and not a share of the height, which this had
   first and which blew the whole page up. An `fr` track is a share, so a
   tall box in the small row drags the big row up with it to keep the
   ratio: three quick-link cards are 272px, 1fr of a 2fr/1fr pair, so the
   upper row became 544 and the slider -- told to fill both rows -- grew
   from its own 498 to 841. The page was half as tall again as it should
   have been and nothing on it had changed.

   `1fr auto` instead: the lower box takes exactly what it needs and the
   upper takes what is left, so the row is as tall as the slider wants and
   no taller, whatever is put underneath. */
.iw-hero:has(>:nth-child(4)){
  grid-template-columns:minmax(0,2.25fr) minmax(0,1fr) minmax(0,.72fr);
  grid-template-rows:1fr auto}
.iw-hero:has(>:nth-child(4))>*:nth-child(1),
.iw-hero:has(>:nth-child(4))>*:nth-child(2){grid-row:1/3}
.iw-hero:has(>:nth-child(4))>*:nth-child(3){grid-row:1;grid-column:3}
.iw-hero:has(>:nth-child(4))>*:nth-child(4){grid-row:2;grid-column:3}

/* Five and six in the top row: the column on the right keeps taking them.
   Three columns is still as narrow as the row can usefully get, so a fifth
   box goes under the fourth and a sixth under the fifth -- the notice
   board, then a panel of links, then a card for results, down one side of
   the slider.

   Each of these comes after the four-box rule and is written out in full
   rather than added to it, because `:has(>:nth-child(4))` is true of a row
   of five as well: the later rule has to replace the earlier one outright,
   not lean on it.

   The rows stay `1fr auto auto`: every box on the right takes exactly the
   height it needs and the slider takes what is left, so the row is as tall
   as the slider wants and no taller, however many are stacked beside it. */
.iw-hero:has(>:nth-child(5)){
  grid-template-columns:minmax(0,2.25fr) minmax(0,1fr) minmax(0,.72fr);
  grid-template-rows:1fr auto auto}
.iw-hero:has(>:nth-child(5))>*:nth-child(1),
.iw-hero:has(>:nth-child(5))>*:nth-child(2){grid-row:1/4}
.iw-hero:has(>:nth-child(5))>*:nth-child(3){grid-row:1;grid-column:3}
.iw-hero:has(>:nth-child(5))>*:nth-child(4){grid-row:2;grid-column:3}
.iw-hero:has(>:nth-child(5))>*:nth-child(5){grid-row:3;grid-column:3}

.iw-hero:has(>:nth-child(6)){
  grid-template-columns:minmax(0,2.25fr) minmax(0,1fr) minmax(0,.72fr);
  grid-template-rows:1fr auto auto auto}
.iw-hero:has(>:nth-child(6))>*:nth-child(1),
.iw-hero:has(>:nth-child(6))>*:nth-child(2){grid-row:1/5}
.iw-hero:has(>:nth-child(6))>*:nth-child(3){grid-row:1;grid-column:3}
.iw-hero:has(>:nth-child(6))>*:nth-child(4){grid-row:2;grid-column:3}
.iw-hero:has(>:nth-child(6))>*:nth-child(5){grid-row:3;grid-column:3}
.iw-hero:has(>:nth-child(6))>*:nth-child(6){grid-row:4;grid-column:3}

/* Each section in a row is wrapped by the widget engine, so the wrapper is
   the grid item and the widget inside it has to be told to fill it. Without
   this the columns come out at three different heights. Every row that puts
   its sections side by side needs it, not only the top one. */
.iw-hero>*,.iw-logos-row>*,.iw-about-row>*,.iw-bottom-row>*{min-width:0}
/* `:only-child`, because this says "the thing inside the wrapper fills
   it" and a widget that puts two things in there would have each of
   them made the height of the whole box -- a heading as tall as the
   panel with the tiles pushed out of the bottom. A widget with one
   wrapper of its own, which is all of ours, is unaffected. */
.iw-hero>*>*:only-child,.iw-logos-row>*>*:only-child,.iw-about-row>*>*:only-child,.iw-bottom-row>*>*:only-child{height:100%}
/* Each of the two it names, where a widget still has two. */
.iw-qcards-wrap{height:100%;display:flex;flex-direction:column}
.iw-qcards-wrap>.iw-qcards,.iw-qcards-wrap>.iw-qtiles{flex:1 1 auto}

/* ...and nothing stretched to that height may also carry the margin that
   separates stacked sections. .iw-sec is a gap above and it is for the
   section above; side by side there is no section above, the grid's own gap
   does that job, and height:100% plus a top margin is a box hanging its own
   gap below the row it was told to fit.

   This is why Management's Read more ended up outside its column once it
   was sent to the floor of it. */
.iw-hero>*>.iw-sec,.iw-logos-row>*>.iw-sec,
.iw-about-row>*>.iw-sec,.iw-bottom-row>*>.iw-sec{margin-top:0;margin-bottom:0}

/* A section that is stretched has to use the height it was given. A feature
   card does: it is a flex column with margin-top:auto on its button, so
   Read more sits on the floor of the card however short the words above it
   are. Rich text did not, so beside a card the same button stopped wherever
   the text happened to end -- two Read more buttons on one row at two
   different heights, which is what the owner saw on the home page under
   About the college and Management.

   Only in the rows that stretch. Rich text on an ordinary page is a block
   of words with a link after it, and a link pinned to the bottom of the
   page is not what anybody meant. */
.iw-hero .iw-rt,.iw-logos-row .iw-rt,.iw-about-row .iw-rt,.iw-bottom-row .iw-rt{
  display:flex;flex-direction:column}
.iw-hero .iw-rt>.iw-btn,.iw-logos-row .iw-rt>.iw-btn,
.iw-about-row .iw-rt>.iw-btn,.iw-bottom-row .iw-rt>.iw-btn{
  margin-top:auto;align-self:flex-start}

/* And it starts where a card's words start. Measured in the about row: the
   three cards begin their heading 22px down, inside their own padding, and
   the plain text beside them began at nothing -- so its title sat a card's
   padding higher than the three it is in a row with.

   The same token the bottom already uses, for the same reason. The rule
   below was written for the button and stopped there; a column has a top as
   well. A rich text card has the padding already and is left alone. */
.iw-hero .iw-rt:not(.iw-rt--card),.iw-logos-row .iw-rt:not(.iw-rt--card),
.iw-about-row .iw-rt:not(.iw-rt--card),.iw-bottom-row .iw-rt:not(.iw-rt--card){
  padding-top:var(--iw-card-pad)}

/* And it stops where a card's button stops. Plain text has no inside, so
   left alone its button sits flat on the bottom edge of the column while
   the card beside it holds its own a card's padding higher -- the two
   buttons a finger's width apart, which is worse to look at than the
   honest mess it replaced. One token, used by both, so they cannot drift.
   A rich text card has that padding already and is left alone. */
.iw-hero .iw-rt:not(.iw-rt--card)>.iw-btn,.iw-logos-row .iw-rt:not(.iw-rt--card)>.iw-btn,
.iw-about-row .iw-rt:not(.iw-rt--card)>.iw-btn,.iw-bottom-row .iw-rt:not(.iw-rt--card)>.iw-btn{
  margin-bottom:var(--iw-card-pad)}

/* Sharing the row, the slider is a panel rather than a band, so it takes the
   shape the design gives it instead of the wide one it uses alone. */
.iw-hero:has(>:nth-child(2)) .iw-slider{aspect-ratio:7/5}

/* WIDGET: Slider */
/* The band the slider occupies is a design decision, not something the
   first photograph decides. Letting a picture set it meant the page
   changed shape when slides were reordered, and a portrait photograph
   made a strange band - neither of which anybody uploading a picture
   should have to think about.

   So the shape is fixed here, per screen size, and every picture is made
   to cover it. A small picture is enlarged and goes soft rather than
   leaving a gap; the admin says so when one is chosen. */
.iw-slider{position:relative;border-radius:var(--iw-r);overflow:hidden;background:var(--iw-green-dd);color:#fff;width:100%;aspect-ratio:12/5;min-height:260px}
.iw-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .8s,visibility .8s}
.iw-slide.on{opacity:1;visibility:visible}
/* Between a phone and a desktop, a shape between the two. */
@media (min-width:601px) and (max-width:1023px){.iw-slider{aspect-ratio:16/9}}
/* cover fills the band whatever the picture is, and centre is where a
   photograph's subject nearly always sits.

   Zoomed a little, and still. The picture used to drift over the seven
   seconds a slide was up -- it arrived enlarged and eased back -- so what
   the reader was looking at was never quite what they had settled on. The
   close framing is worth keeping; the movement is not. Each slide now
   arrives at this size and stays there, which is also what the next one
   does, so nothing shifts under the eye.

   No transition and no animation on purpose. Either would start the moment
   a slide is shown, which is the moment somebody has begun reading it. */
.iw-slide>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.06)}

/* Or the whole frame, for a picture that has nothing to spare at its
   edges -- a cutting, a poster, a group photograph with somebody on the
   end of the row. */
.iw-slider--plain .iw-slide>img{transform:none}
/* The wash the slider's words sit on. Its colours are "Shade over a
   slider picture" in Look of the site, written out beside the gradient
   as their three numbers so this rule can keep its own ramp -- which way
   it runs, where each stop sits, how see-through each one is. Those are
   the theme's: a college picked colours, not a design.

   The fallback is the colour this wash has always been, so a stylesheet
   that arrives before the database knows the token still draws it. */
/* The shade over a slide, and how much of it there is.
   ---------------------------------------------------------------------
   The ramp is the theme's: where each stop sits and how see-through it
   is, so that whatever two colours a college picks, the words stay
   readable over the picture. The college supplies the colours.

   Each one is multiplied by --iw-grad-slide-fade, which core writes as
   1 normally and 0 when the college sets that gradient to "Off". Nought
   is no shade at all and the photograph is seen plain, which is what
   "off" has to mean for a shade -- a flat tint at 85% over a photograph
   would hide it rather than turn it off. */
.iw-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgb(var(--iw-grad-slide-a,6 42 22) / calc(.85 * var(--iw-grad-slide-fade, 1))) 0%,rgb(var(--iw-grad-slide-b,6 42 22) / calc(.55 * var(--iw-grad-slide-fade, 1))) 45%,rgb(var(--iw-grad-slide-c,6 42 22) / calc(.05 * var(--iw-grad-slide-fade, 1))) 80%)}
.iw-cap{position:absolute;left:52px;right:40%;bottom:46px;z-index:2}
.iw-cap>*{opacity:0;transform:translateY(14px);transition:opacity .5s,transform .5s}
.iw-slide.on .iw-cap>*{opacity:1;transform:none}
.iw-slide.on .iw-cap>*:nth-child(2){transition-delay:.1s}.iw-slide.on .iw-cap>*:nth-child(3){transition-delay:.2s}.iw-slide.on .iw-cap>*:nth-child(4){transition-delay:.3s}
.iw-tag{display:block;font-family:var(--iw-head);font-weight:600;font-size:11.5px;letter-spacing:.5px;color:var(--iw-gold);text-transform:uppercase;margin-bottom:8px}
.iw-cap h1,.iw-cap h2{font-size:clamp(26px,2.8vw,40px);font-weight:700;line-height:1.1;color:#fff}
.iw-cap p{margin:10px 0 16px;font-size:15.5px;color:#E5EEE4;max-width:380px}
.iw-sl-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:34px;height:34px;border-radius:50%;border:0;background:#fff;color:var(--iw-green-d);display:grid;place-items:center;font-size:16px;box-shadow:0 4px 12px rgba(0,0,0,.25);transition:.2s}
.iw-sl-arrow:hover{background:var(--iw-gold)}
.iw-sl-prev{left:12px}.iw-sl-next{right:12px}
.iw-dots{position:absolute;left:0;right:0;bottom:16px;z-index:3;display:flex;justify-content:center;gap:8px}
.iw-dots button{width:11px;height:11px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.7);transition:.2s}
.iw-dots button.on{background:var(--iw-gold);width:11px}

/* WIDGET: News & Events */
.iw-news{padding:14px 16px}
.iw-news li+li{border-top:1px solid var(--iw-line)}
.iw-news li a{display:grid;grid-template-columns:44px 1fr 14px;gap:12px;align-items:center;padding:8px 2px}
.iw-date{background:var(--iw-green);color:#fff;border-radius:8px;text-align:center;padding:4px 5px;line-height:1.1}
.iw-date small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.5px}
.iw-date b{display:block;font-family:var(--iw-head);font-size:19px}
.iw-news h3{font-size:13.5px;font-weight:600;color:var(--iw-ink);margin-bottom:2px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.iw-news p{margin:0;font-size:12px;color:var(--iw-muted);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.iw-news li a .iw-ic{color:var(--iw-muted);font-size:14px;transition:transform .2s}
.iw-news li a:hover h3{color:var(--iw-green)}
.iw-news li a:hover .iw-ic{transform:translateX(3px);color:var(--iw-green)}

/* WIDGET: Quick cards */
/* As many rows as there are cards, not always three. repeat(3,1fr) kept
   room for three whether or not three were there: one card was given a
   third of the box and the other two thirds were empty, and in the top
   row's lower cell that empty space pushed the whole row -- and the slider
   stretched to fill it -- half as tall again as it should have been. */
/* The optional word over a group of cards. Sized against the panel
   headings beside it rather than against a card, because that is what it
   is: the name of a box, not a line inside one. */
.iw-qcards-head{font-family:var(--iw-head);font-size:15px;font-weight:700;
  color:var(--iw-ink);margin:0 0 8px}
.iw-qcards{display:grid;grid-auto-rows:1fr;gap:var(--iw-gap)}

/* The same links as tiles: a picture with its name under it, three across.
   A row of cards is one card per line in a narrow column, so a fourth link
   costs another card's height -- and in the rail beside the slider there is
   none going spare. Three of these take about what one card took, and the
   fourth starts a line rather than pushing the page down.

   minmax(0,1fr) on the columns, not 1fr: a long name would otherwise set
   the column's width from its own content and the three would stop being
   equal. The name itself is allowed two lines and then stops. */
.iw-qtiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.iw-qt{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;
  border-radius:var(--iw-r);background:var(--iw-cream,#F6F1E7);color:var(--iw-ink);
  text-align:center;transition:transform .2s,box-shadow .2s}
.iw-qt:hover{transform:translateY(-2px);box-shadow:var(--iw-shadow)}
.iw-qt .iw-qi{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  font-size:18px;flex:none;background:#fff}
.iw-qt-name{font-size:11.5px;line-height:1.25;font-weight:600;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.iw-qc{display:flex;align-items:center;gap:12px;padding:14px;border-radius:var(--iw-r);transition:transform .2s,box-shadow .2s}
.iw-qc:hover{transform:translateY(-2px);box-shadow:var(--iw-shadow)}
.iw-qc .iw-qi{width:46px;height:46px;border-radius:10px;display:grid;place-items:center;font-size:24px;flex:none}
.iw-qc b{display:block;font-family:var(--iw-head);font-size:14.5px;font-weight:600}
.iw-qc small{display:inline-flex;align-items:center;gap:4px;font-size:12.5px}
.iw-qc.dark{background:linear-gradient(135deg,var(--iw-green),var(--iw-green-d));color:#fff}
.iw-qc.dark .iw-qi{background:rgba(255,255,255,.15);color:var(--iw-gold-l)}
.iw-qc.cream{background:var(--iw-cream);color:var(--iw-green-d)}
.iw-qc.cream .iw-qi{background:var(--iw-olive);color:#fff}
.iw-qc.mint{background:var(--iw-green-l);color:var(--iw-green-d)}
.iw-qc.mint .iw-qi{background:var(--iw-green-m);color:#fff}

/* ---------- 6. Row: Logo carousels ---------- */
/* A row holds what is published in it, which is not always what the design
   drew. An empty column is a hole in the page, so the columns follow the
   children rather than a fixed count. */
.iw-logos-row{display:grid;gap:var(--iw-gap);grid-template-columns:minmax(0,1fr)}
.iw-logos-row:has(>:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
.iw-logos-row:has(>:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.iw-lc{padding:12px 14px}
.iw-lc h2{font-size:16px;color:var(--iw-green-d);margin-bottom:8px}
.iw-lc-body{display:flex;align-items:center;gap:8px}
.iw-lc-arrow{width:28px;height:28px;flex:none;border-radius:6px;border:1px solid var(--iw-line);background:#fff;color:var(--iw-ink);display:grid;place-items:center;font-size:14px}
.iw-lc-arrow:hover{background:var(--iw-green);color:#fff;border-color:var(--iw-green)}
.iw-lc-track{flex:1;display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.iw-lc-track::-webkit-scrollbar{display:none}
.iw-lc-track>*{flex:0 0 calc(25% - 8px);height:52px;display:grid;place-items:center;scroll-snap-align:start}
.iw-lc-track img{max-height:44px;width:auto;object-fit:contain}
.iw-lc-track .iw-seal{width:44px;height:44px;margin:0}

/* ---------- The logos row, sliding along on its own ----------
   The client's choice per section, not the theme's: five accreditation
   seals want to stand still and be read, twenty recruiters are a thing to
   glance at.

   The track holds the set twice and travels exactly half its own width, so
   when the first copy has gone by the second is standing where the first
   began and the join cannot be seen.

   `width:max-content` is what makes that work: the track has to be as wide
   as its contents, not as wide as the box. The standing-still row is the
   opposite -- it fills the box and scrolls inside it -- so every one of
   those rules has to be undone here, not merely added to.

   The speed is per logo, not per row: a fixed duration would crawl with
   four logos and race with twenty. 3.5s each means each logo is on screen
   for about the same time however many there are.

   Arrows are hidden while it drifts. Two things moving the same row fight
   each other, and the reader loses.

   It stops while the pointer is on it, so a logo can be read or clicked.
   And somebody who has told their computer they want less movement gets
   none: the row simply wraps onto lines and stands still. */
.iw-lc--drift{overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}

/* Two copies, and the track is never narrower than twice the row. That
   `min-width` is the whole trick: with `width:max-content` alone, five
   logos came to 724px in a 1384px row, so the lap -- half the track -- was
   724px and the row stood two thirds empty before it looped. Held to twice
   the row, each copy is at least a rowful whatever is in it, and the logos
   simply spread out when there are few.

   Either way the two copies are the same width, because they hold the same
   logos and share the track equally. So half the track is exactly one copy
   and the join is always invisible -- with four logos or with twenty-four.

   `gap:0` on the track, and only on the track, is part of that arithmetic.
   The row's own 10px gap would sit BETWEEN the two copies, so half the
   track was a copy plus five pixels and the row jumped five pixels every
   lap. The space between the logos comes from inside each copy instead. */
.iw-lc--drift .iw-lc-track{
  width:max-content;min-width:200%;flex:none;gap:0;
  overflow:visible;scroll-snap-type:none;
  animation:iw-logos-drift calc(var(--iw-logos, 8) * 3.5s) linear infinite}
.iw-lc-set{flex:1 1 0;min-width:0;display:flex;align-items:center;
  gap:34px;justify-content:space-around}
.iw-lc-set>*{flex:0 0 auto;height:52px;display:grid;place-items:center}

.iw-lc--drift:hover .iw-lc-track,
.iw-lc--drift:focus-within .iw-lc-track,
/* Off the screen, or not yet reached: widgets.js puts this on, and takes
   it off when the strip comes into view. A 926px track sliding every
   frame of every second the page is open costs a phone's one compositor
   whether anybody can see it or not, and what that feels like is the
   rest of the page stuttering as you scroll past it. */
.iw-lc--drift[data-still] .iw-lc-track{animation-play-state:paused}
.iw-lc--drift .iw-lc-arrow{display:none}

@keyframes iw-logos-drift{to{transform:translateX(-50%)}}

/* Asked for less movement: it stands still and wraps onto lines. */
@media (prefers-reduced-motion: reduce){
  :where(html:not([data-motion="on"])) .iw-lc--drift .iw-lc-track{animation:none;flex-wrap:wrap;width:auto;min-width:0}
  :where(html:not([data-motion="on"])) .iw-lc-set{flex-wrap:wrap;justify-content:flex-start}
  :where(html:not([data-motion="on"])) .iw-lc--drift{-webkit-mask-image:none;mask-image:none}
}

/* ---------- 7. WIDGET: Stats band ---------- */
/* The bar of figures. Its colours are "The numbers band" in Look of
   the site -- it was the darkest shade running into the main colour,
   which on a palette where those two are close reads as one flat
   colour and no gradient at all. The fallback is that pair, so an
   install that never opens the box sees what it always saw. */
.iw-stats{background:var(--iw-grad-stats,linear-gradient(90deg,var(--iw-green-d),var(--iw-green)));border-radius:var(--iw-r);color:#fff;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:14px 6px}
.iw-stats li{display:flex;align-items:center;gap:10px;padding:2px 14px;border-left:1px solid rgba(255,255,255,.2)}
.iw-stats li:first-child{border-left:0}
.iw-stats .iw-ic{font-size:32px;color:var(--iw-gold);stroke-width:1.6}
/* A figure is never broken across two lines.
   ---------------------------------------------------------------------
   At 320px the band is two columns, so a figure's column is 62px wide --
   and "13,000+" at 19px bold is 66px. It wrapped. Which would only be
   ugly, except that the band counts up to it: "0+" is one line and
   "13,000+" is two, so the row grew 21px partway through the count and
   the whole page below it moved. Measured at 320px: the band 218px while
   counting and 238px when it stopped.

   Nowrap alone would push a long figure out of its column, so the band
   gives each one the whole width below 380px -- see the media query. */
.iw-stats b{display:block;font-family:var(--iw-head);font-size:19px;font-weight:700;
  line-height:1.1;white-space:nowrap}
.iw-stats small{font-size:11.5px;color:#CFE2D2;line-height:1.2;display:block}

/* ---------- 7b. WIDGET: A line of notices that travels ----------
   A column of announcements four deep shows four openings, each cut off
   where the column ends. A line that travels shows all of them, whole,
   one after another, in the height of one of them -- which is what the
   college asked for, and it is also the one place on the page where a
   notice added today is read without anybody scrolling to find it.

   The heading stands still at the left while the notices go past it, so
   a reader who looks halfway through a lap is still told what these are.

   The arithmetic is the logo row's, because it is the same problem and
   it was solved there: the set is printed twice, the track slides
   exactly half its own width, and when the first copy has gone by the
   second is standing where the first began. min-width:200% is the part
   that matters -- without it a short set would be a line standing empty
   for most of a lap -- and gap:0 on the track is part of it, since a gap
   between the two copies would make half the track a copy plus a gap and
   the line would jump every lap. The space between notices comes from
   inside each copy.

   The timing is NOT the logo row's. One logo is the width of another, so
   counting them works; a notice of forty characters and one of a hundred
   and forty are the same count and not the same room, so the characters
   are counted instead. The floor under it is for the other end: with one
   short notice the travel is still a windowful of the page, and the
   characters alone put it past at about 200px a second.

   It stops while the pointer is on it or something in it has the focus,
   so a notice can be read or followed; it stops while it is off the
   screen, the same data-still widgets.js puts on the logo rows; and a
   reader who has asked for less movement gets a plain list of links. */
.iw-tick{display:flex;align-items:stretch;gap:0;min-height:46px;
  background:var(--iw-green-l);color:var(--iw-green);
  border-radius:var(--iw-r);overflow:hidden}
.iw-tick-label{flex:none;display:flex;align-items:center;padding:0 18px;
  background:var(--iw-green);color:#fff;font-family:var(--iw-head);
  font-weight:700;font-size:13.5px;letter-spacing:.04em;
  text-transform:uppercase;white-space:nowrap}
.iw-tick-win{flex:1;min-width:0;display:flex;align-items:center;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}
/* flex:none, or the window it sits in shrinks it: the track is a flex
   item here, so width:max-content is only a starting size and a flex
   item gives it back. Shrunk to the min-width, the track was 1916px
   holding 2468px of notices, and the lap -- half the TRACK -- was
   958px while a copy was 1234px, so the line jumped 276px every lap. */
.iw-tick-track{display:flex;flex:none;width:max-content;min-width:200%;gap:0;
  animation:iw-tick-run max(18s,calc(var(--iw-tick-chars,160) * .14s)) linear infinite}
/* flex-shrink 0, unlike the logo row it is copied from. A logo is a
   fixed little box and a notice is a line of words that will not wrap:
   allowed to shrink, each copy was squeezed to half the track while its
   notices stayed their own length, so they ran out of their copy and
   printed over the one behind it. Measured at 1280px: the copy 958px
   wide holding 1234px of notices, and the second copy starting 276px
   inside the first. Growing but never shrinking, each copy is the wider
   of its notices and half the track, which is what the arithmetic above
   needs it to be. */
.iw-tick-set{flex:1 0 auto;display:flex;align-items:center;gap:0;
  justify-content:space-around}
.iw-tick-set a{flex:0 0 auto;white-space:nowrap;color:inherit;
  font-weight:600;font-size:14.5px;line-height:46px}
.iw-tick-set a:hover{text-decoration:underline}
/* The dot between one notice and the next, and between the last of a copy
   and the first of the one behind it -- so the join carries a separator
   like every other gap does. */
.iw-tick-set a::after{content:"\2022";padding:0 20px;font-weight:700;
  /* The notices colour, not a softer one. Measured on the band: the
     softer olive came to 3.4 to 1 where 4.5 is the least that can be
     read, and this is a separator somebody has to see to know one
     notice has ended. In the notices own colour it is 5.76. */
  color:inherit}
.iw-tick-all{flex:none;display:flex;align-items:center;gap:6px;padding:0 16px;
  white-space:nowrap;font-weight:600;font-size:13.5px;color:var(--iw-green-d)}
.iw-tick:hover .iw-tick-track,.iw-tick:focus-within .iw-tick-track,
.iw-tick[data-still] .iw-tick-track{animation-play-state:paused}
@keyframes iw-tick-run{to{transform:translateX(-50%)}}
/* On a phone the line gets a row of its own.
   ---------------------------------------------------------------------
   Side by side, the heading and the View all link took 267px of a 347px
   band and left the notices 80px to travel through -- five or six
   letters at a time, which is not reading. Measured at 375px.

   Two rows instead: the heading and the link on the first, the notices
   across the whole width on the second. 66px tall rather than 46, and
   the window they travel through goes from 80px to 347. */
@media (max-width:600px){
  .iw-tick{flex-wrap:wrap}
  .iw-tick-label{order:1;padding:7px 14px;font-size:12px}
  .iw-tick-all{order:2;margin-left:auto;padding:0 14px;font-size:12.5px}
  .iw-tick-win{order:3;flex:1 1 100%;min-width:0}
  .iw-tick-set a{line-height:40px;font-size:13.5px}
  .iw-tick-set a::after{padding:0 14px}
}

/* Given a background of its own in the Look tab, the band stands down and
   the chosen colour IS the band -- the same as the numbers band, and for
   the same reason: a band inside a band is a frame nobody asked for. */
.iw-w--on-dark .iw-tick,.iw-w--on-green .iw-tick,
.iw-w--on-grad1 .iw-tick,.iw-w--on-grad2 .iw-tick,
.iw-w--on-grad3 .iw-tick{background:none;color:inherit}
.iw-w--on-dark .iw-tick-label,.iw-w--on-green .iw-tick-label,
.iw-w--on-grad1 .iw-tick-label,.iw-w--on-grad2 .iw-tick-label,
.iw-w--on-grad3 .iw-tick-label{background:none;color:inherit}
.iw-w--on-dark .iw-tick-set a::after,.iw-w--on-green .iw-tick-set a::after,
.iw-w--on-grad1 .iw-tick-set a::after,.iw-w--on-grad2 .iw-tick-set a::after,
.iw-w--on-grad3 .iw-tick-set a::after{color:inherit;opacity:.55}
.iw-w--on-dark .iw-tick-all,.iw-w--on-green .iw-tick-all,
.iw-w--on-grad1 .iw-tick-all,.iw-w--on-grad2 .iw-tick-all,
.iw-w--on-grad3 .iw-tick-all{color:inherit}
.iw-w--on-grad1:has(>.iw-tick),.iw-w--on-grad2:has(>.iw-tick),
.iw-w--on-grad3:has(>.iw-tick){padding-block:0}

/* ---------- The badge on a notice put up this week ---------- */
/* Counted, never ticked -- is_new_item() in helpers.php says how, and why.

   It turns over rather than flashing on and off. A hard flash is the
   thing that is dangerous: anything flashing more than three times a
   second can bring on a seizure in somebody with photosensitive
   epilepsy, and anything blinking for more than five seconds has to
   have a way of being stopped. This swaps its two colours once every
   1.2 seconds -- 1.67 changes a second, well under the three -- and the
   word is never dimmed, never hidden and never a colour that was not
   measured, so it is fully readable at every point of the beat and
   there is nothing anyone needs to stop.

   A ring the colour of the other half keeps the pill's outline there
   through both halves, so it does not look like the badge disappears
   on a page the same colour as one of them. */
.iw-new{display:inline-block;vertical-align:middle;margin-left:3px;
  /* Raised with top, not with vertical-align: a raised inline box grows
     the line it sits on, and the line it sits on here is a band whose
     46px is measured and guarded. This moves what is drawn and leaves
     the line alone. */
  position:relative;top:-6px;
  padding:0 6px;border-radius:999px;
  /* The two colours it turns between, named once here. The ring is
     always the first of them, so whichever half is showing, the one
     that is not filling the pill is still drawing its outline -- on a
     band the colour of the other half it would otherwise look as though
     the badge had gone. */
  --iw-new-a:#C8102E;--iw-new-b:#fff;
  background:var(--iw-new-a);color:var(--iw-new-b);
  box-shadow:inset 0 0 0 1px var(--iw-new-a);
  font-family:var(--iw-head);font-weight:800;font-size:9px;line-height:14px;
  letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;
  animation:iw-new-beat 1.2s infinite}
/* The two halves hold their colours and change between them in a
   thousandth of the beat, so it reads as a turn rather than a fade:
   a fade spends its time in the colours in between, which are the ones
   nobody measured. */
@keyframes iw-new-beat{
  0%,49.9%{background:var(--iw-new-a);color:var(--iw-new-b)}
  50%,100%{background:var(--iw-new-b);color:var(--iw-new-a)}}

/* Given a dark background of its own, the pill starts the other way
   round: a red pill on a dark band came to 2.60 against it, which is
   not enough to find a badge by.

   Only the two colours are swapped, and deliberately so. Setting an
   animation of its own here would be a heavier selector than the
   reduce-motion rule below, and would go on beating at somebody who
   asked it not to. */
.iw-w--on-dark .iw-new,.iw-w--on-green .iw-new,
.iw-w--on-grad1 .iw-new,.iw-w--on-grad2 .iw-new,
.iw-w--on-grad3 .iw-new{--iw-new-a:#fff;--iw-new-b:#C8102E}

/* Asked for less movement it simply stays, which is the whole of it: the
   word is what says the notice is new, and the beat only draws the eye
   to a word that is already there. */
@media (prefers-reduced-motion: reduce){
  :where(html:not([data-motion="on"])) .iw-new{animation:none}
}

/* Asked for less movement: a plain wrapped list of links, and the echo
   not drawn at all -- it is the same notices again, and seeing them twice
   is worse than not seeing them travel.

   Every rule the travelling needs has to be undone, not just the lap.
   The track is a flex item told not to shrink and to be as wide as its
   contents, and the window hides what overflows: with the animation
   stopped and nothing else changed, 1234px of notices sat in a 678px
   window and two of the three were cut off, with the band still one line
   high to show for it. */
@media (prefers-reduced-motion: reduce){
  :where(html:not([data-motion="on"])) .iw-tick{align-items:center;flex-wrap:wrap}
  :where(html:not([data-motion="on"])) .iw-tick-win{flex:1 1 100%;min-width:0;overflow:visible;
    -webkit-mask-image:none;mask-image:none}
  :where(html:not([data-motion="on"])) .iw-tick-track{animation:none;flex:1 1 auto;width:auto;min-width:0;flex-wrap:wrap}
  :where(html:not([data-motion="on"])) .iw-tick-set{flex:1 1 auto;flex-wrap:wrap;justify-content:flex-start}
  :where(html:not([data-motion="on"])) .iw-tick-set[aria-hidden]{display:none}
  :where(html:not([data-motion="on"])) .iw-tick-set a{white-space:normal;line-height:1.5;padding:6px 0}
  :where(html:not([data-motion="on"])) .iw-tick-set a:last-child::after{content:none}

  /* Read back from a machine that had asked for less movement: every
     notice was there and none was cut off, and it read as a paragraph
     where a one-line band had been. So the band keeps its line and the
     notice standing in it is changed on a timer -- which widgets.js
     does, and it is widgets.js that puts this class on. The wrapped
     rules above are therefore what a page with no script at all gets,
     where nothing can change a notice and all of them have to show. */
  :where(html:not([data-motion="on"])) .iw-tick--step .iw-tick-win{flex:1 1 auto;min-width:0;overflow:hidden}
  :where(html:not([data-motion="on"])) .iw-tick--step .iw-tick-track{flex:1 1 auto;width:auto;min-width:0;flex-wrap:nowrap}
  :where(html:not([data-motion="on"])) .iw-tick--step .iw-tick-set{position:relative;flex:1 1 auto;min-width:0;flex-wrap:nowrap}
  /* The notice wraps rather than being cut off at the edge of the band.
     Measured at 375px: the band is 347px and the longest of the three
     notices 465px, so one line would have cut it -- which is the fault
     the travelling line was put there to avoid. One notice over two
     lines is still a band; it is three at once that read as a
     paragraph. A notice that fits on one line leaves the band at its
     own height, min-height seeing to that. */
  :where(html:not([data-motion="on"])) .iw-tick--step .iw-tick-set a{flex:1 1 auto;min-width:0;white-space:normal;
    line-height:1.45;padding:12px 0}
  :where(html:not([data-motion="on"])) .iw-tick--step .iw-tick-set a::after{content:none}

  /* A notice waiting its turn is taken out of sight and left in the
     page: a screen reader reads all of them still, because less
     movement is a preference about movement and not about how much
     there is to read. Out of sight is out of the tab order all the
     same -- widgets.js sees to that -- because nobody should tab to a
     link they cannot see. */
  :where(html:not([data-motion="on"])) .iw-tick-away{position:absolute;width:1px;height:1px;padding:0;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* The phone keeps the two rows it has while the line travels: the
   heading and the link on the first, the notice standing in the whole
   width on the second. Without this the one line would hold all three
   at 375px, where measuring showed there is room for five or six
   letters of them. */
@media (prefers-reduced-motion: reduce) and (max-width:600px){
  :where(html:not([data-motion="on"])) .iw-tick--step .iw-tick-win{flex:1 1 100%}
  :where(html:not([data-motion="on"])) .iw-tick--step .iw-tick-set a{line-height:1.4;padding:10px 0}
}

/* ---------- 8. Row: About / Management / Messages ---------- */
.iw-about-row{display:grid;gap:var(--iw-gap);grid-template-columns:minmax(0,1fr)}
.iw-about-row:has(>:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
.iw-about-row:has(>:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.iw-about-row:has(>:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
.iw-ac{position:relative;border-radius:var(--iw-r);overflow:hidden;min-height:250px;
  padding:var(--iw-card-pad);display:flex;flex-direction:column}
.iw-ac h2{display:flex;align-items:center;gap:10px;font-size:23px;line-height:1.2}
/* The icon is drawn at 40px and counts as 24 towards the height of the
   heading's line, so the words keep their own line and the icon hangs
   evenly either side of it. Left to its full height it was the tallest
   thing on that line, and "About the college" sat five pixels lower than
   the three titles beside it in the row. */
.iw-ac h2 .iw-ic{font-size:40px;stroke-width:1.6;margin-block:-8px}
.iw-ac p{font-size:14px;margin:16px 0 18px;line-height:1.5}
.iw-ac .iw-btn{margin-top:auto;align-self:flex-start}
.iw-ac-about{color:#fff;background:var(--iw-green-d)}
.iw-ac-about>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
/* The same wash on a card with a photograph behind it -- About the
   college, Student living. "Shade over a picture card". */
.iw-ac-about::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgb(var(--iw-grad-shade-a,6 42 22) / calc(.92 * var(--iw-grad-shade-fade, 1))) 30%,rgb(var(--iw-grad-shade-c,6 42 22) / calc(.3 * var(--iw-grad-shade-fade, 1))))}
.iw-ac-about>*:not(img){position:relative;z-index:1}
.iw-ac-about h2 .iw-ic{color:var(--iw-gold)}
.iw-ac-about p{color:#E1ECE2;max-width:230px}
.iw-ac-mgmt{background:var(--iw-cream);color:var(--iw-green-d)}
.iw-ac-mgmt>img{position:absolute;right:0;bottom:0;width:62%;height:62%;object-fit:cover;border-top-left-radius:60px;opacity:.95}
.iw-ac-mgmt>*:not(img){position:relative;z-index:1}
.iw-ac-mgmt h2 .iw-ic{color:var(--iw-green-m)}
.iw-ac-mgmt p{color:var(--iw-ink);max-width:250px}
.iw-ac-mgmt .iw-btn{background:var(--iw-cream)}

/* --- when the words stop short, and when they should not ---

   The cap on the paragraph is not decoration: it keeps the words on the dark
   side of the card so the photograph behind shows through on the right,
   where the gradient thins out. It is right on a wide card and wrong on a
   narrow one, and "narrow" is about the card, not the screen -- a 600px
   phone puts these one per row and gives a 572px card, while a 768px tablet
   puts them two per row and gives a 356px one. No media query can say that,
   so the card is asked its own width.

   Below 460px the strip left for the photograph is under about 150px, which
   reads as an odd short column of text rather than as a picture beside it.
   There the photograph goes behind the whole card and the gradient runs top
   to bottom, so the words stay readable over it.

   The card is its own container, not the row it sits in: these cards appear
   in more than one row and the rows are not all laid out the same way.

   :where() keeps these at the specificity of a single class, so a theme or a
   later rule can still override them without a fight. */
.iw-ac{container-type:inline-size}

@container (max-width:460px){
  .iw-ac-about p,.iw-ac-mgmt p{max-width:none}
  /* The words now cross the whole card, including the thin end of the
     gradient where the photograph shows most, so the photograph is turned
     down to keep them readable. It is the photograph that changes and not
     the gradient because the gradient is the card's own ::after, and an
     element cannot be restyled by the container query it is itself the
     container for -- only its descendants can. */
  .iw-ac-about>img{opacity:.14}
  .iw-ac-mgmt>img{width:100%;height:40%;border-top-left-radius:0;opacity:.2}
}

/* A card with no photograph behind it is holding space for nothing. The
   "About the college" card has none, and stopped its words 73px short of
   its own edge for a picture that was never there. */
.iw-ac-about:where(:not(:has(> img))) p,
.iw-ac-mgmt:where(:not(:has(> img))) p{max-width:none}
.iw-ac-about:where(:not(:has(> img)))::after{background:none}
.iw-msg{background:var(--iw-surface-panel,#fff);border:1px solid var(--iw-line);box-shadow:var(--iw-shadow);text-align:center;align-items:center}
.iw-msg h2{font-size:19px;color:var(--iw-green-d);justify-content:center}
.iw-avatar{width:84px;height:84px;border-radius:50%;margin:12px auto 10px;background:linear-gradient(135deg,#F6F1E3,#EDE3C9);display:grid;place-items:center;overflow:hidden;color:#fff;font-size:38px}
.iw-avatar img{width:100%;height:100%;object-fit:cover}
.iw-msg blockquote{position:relative;margin:0;padding-left:28px;text-align:left;font-size:13.5px;line-height:1.5;color:var(--iw-muted)}
.iw-msg blockquote::before{content:"\201C";position:absolute;left:-2px;top:-8px;font-family:Georgia,serif;font-size:52px;line-height:1;color:#E4A8A0}
.iw-msg cite{display:block;margin-top:10px;text-align:left;padding-left:28px;font-style:normal;font-size:13px;color:var(--iw-muted)}
/* The card is a centred column, so a block child still shrinks to its own
   content and is centred with it -- display:block does not stop that. The
   Principal's name only looked left-aligned because it is long enough to
   fill the line; the Secretary's, being short, sat in the middle. Both of
   these are meant to start at the quotation mark, so they take the width. */
.iw-msg blockquote,.iw-msg cite{align-self:stretch}
.iw-msg cite b{display:block;font-family:var(--iw-head);font-size:14px;color:var(--iw-ink)}
.iw-msg:hover h2{color:var(--iw-green)}
/* .iw-ac already puts a button on the floor of its card and against its
   left edge, which is why the four buttons across the About row line up
   without this card asking for anything. All it needs is room between the
   name and the button when the card happens to be full. */
.iw-msg cite{margin-bottom:14px}

/* ---------- 9. WIDGET: Explore bar ---------- */
.iw-explore{display:grid;grid-template-columns:220px repeat(3,minmax(0,1fr));background:var(--iw-cream);border-radius:var(--iw-r);padding:14px 0}
.iw-explore>*{padding:6px 22px;border-left:1px solid var(--iw-cream-d)}
.iw-explore>*:first-child{border-left:0}
.iw-ex-title{display:flex;align-items:center;justify-content:space-between;color:var(--iw-ink)}
.iw-ex-title span{font-family:var(--iw-head);font-weight:600;font-size:17px;line-height:1}
.iw-ex-title b{display:block;font-family:var(--iw-head);font-weight:800;font-size:38px;line-height:1;margin-top:2px}
.iw-ex-title .iw-ic{font-size:22px}
.iw-ex{display:flex;gap:14px;align-items:flex-start}
.iw-ex .iw-ic{font-size:40px;color:var(--iw-green);stroke-width:1.6}
.iw-ex h3{font-size:16px;color:var(--iw-ink);margin-bottom:3px}
.iw-ex p{margin:0;font-size:13px;color:var(--iw-muted);line-height:1.4}
.iw-ex:hover h3{color:var(--iw-green)}

/* ---------- 10. WIDGET: Departments strip ---------- */
.iw-depts{display:flex;align-items:center;gap:8px}
.iw-depts-label{flex:none;background:var(--iw-green-d);color:#fff;font-family:var(--iw-head);font-weight:600;font-size:18px;border-radius:8px;padding:8px 18px}
/* The label is a dark green chip, which is the one colour it cannot be when
   the section itself is dark green: the chip disappears into the band and
   what is left reads as a stray heading rather than a label. Gold is what
   this theme already uses to pick something out against green -- the links
   in an on-dark section do the same. */
.iw-w--on-dark .iw-depts-label,.iw-w--on-green .iw-depts-label{
  /* Pale highlight, not Highlight. The chip has to be seen against
     the band behind it, and a palette whose Highlight is itself a mid
     green leaves 3.43 where 4.5 is the least that reads -- the chip
     all but disappeared. Pale highlight gives 6.47 on the darker
     shade and 8.16 on the main one, and is one of the college's own
     colours rather than one invented here. */
  background:var(--iw-gold-l);color:var(--iw-green-d)}

/* The chips keep their own ink. A section on dark green turns every link
   inside it pale gold, which is right for a link written straight onto the
   band and wrong for one sitting on a white chip of its own -- pale gold on
   white is the same fault the other way round. */
.iw-w--on-dark .iw-chips a:not(.on),.iw-w--on-green .iw-chips a:not(.on){
  color:var(--iw-ink)}
.iw-chips{flex:1;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.iw-chips::-webkit-scrollbar{display:none}
.iw-chips a{flex:none;background:#fff;border:1px solid var(--iw-line);border-radius:6px;padding:8px 22px;font-size:13px;color:var(--iw-ink);transition:.2s}
.iw-chips a:hover{border-color:var(--iw-green);color:var(--iw-green)}
.iw-chips a.on{background:var(--iw-olive);border-color:var(--iw-olive);color:#fff;box-shadow:inset 0 0 0 1px var(--iw-gold)}
.iw-chip-next{flex:none;width:32px;height:38px;border-radius:6px;border:1px solid var(--iw-line);background:#fff;display:grid;place-items:center;font-size:16px}
.iw-chip-next:hover{background:var(--iw-green);color:#fff}

/* ---------- 11. Row: Student living + Gallery ---------- */
.iw-bottom-row{display:grid;gap:var(--iw-gap);grid-template-columns:minmax(0,1fr)}
.iw-bottom-row:has(>:nth-child(2)){grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}
.iw-living{position:relative;border-radius:var(--iw-r);overflow:hidden;color:#fff;background:var(--iw-green-d);padding:24px 24px 20px;display:flex;flex-direction:column;min-height:440px}
.iw-living>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.iw-living::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,42,22,.92) 0%,rgba(6,42,22,.6) 50%,rgba(6,42,22,.15) 100%),linear-gradient(0deg,rgba(6,42,22,.9) 0%,transparent 45%)}
.iw-living>*:not(img){position:relative;z-index:1}
.iw-living h2{font-size:clamp(24px,2.3vw,32px);max-width:360px}
.iw-living p{max-width:380px;font-size:14.5px;color:#E1ECE2;margin:12px 0 16px}
.iw-living .iw-btn{align-self:flex-start}
.iw-feat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:auto;padding-top:24px}
/* a or div: linked when it goes somewhere, plain when it does not. Colour
   and underline are left to the :where(.iw) a reset at the top. */
.iw-feat>*{text-align:center;padding:0 8px;border-left:1px solid rgba(255,255,255,.25)}
.iw-feat>*:first-child{border-left:0}
.iw-feat .iw-fi{width:50px;height:50px;border-radius:50%;margin:0 auto 6px;background:var(--iw-gold-l);color:var(--iw-green);display:grid;place-items:center;font-size:24px;transition:transform .2s}
.iw-feat a:hover .iw-fi{transform:scale(1.08)}
.iw-feat small{margin-top:2px}
.iw-feat b{display:block;font-family:var(--iw-head);font-size:14.5px}
.iw-feat small{font-size:11.5px;color:#D7E5D8;line-height:1.3;display:block}
.iw-gallery{padding:14px}
.iw-gal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;height:calc(100% - 36px);min-height:360px}
.iw-gal a{position:relative;border-radius:8px;overflow:hidden;background:var(--iw-green-l);display:flex;flex-direction:column}
.iw-gal a img{flex:1;width:100%;min-height:0;aspect-ratio:3/2;object-fit:cover;transition:transform .4s}
.iw-gal a:hover img{transform:scale(1.05)}
.iw-gal .lbl{font-family:var(--iw-head);font-weight:600;font-size:13px;padding:5px 9px;background:#fff;color:var(--iw-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iw-gal .big .lbl{white-space:normal;overflow:visible}
.iw-gal .big{grid-column:1/3;grid-row:1/3}
.iw-gal .big .lbl{position:absolute;left:0;bottom:0;background:none;color:#fff;display:flex;align-items:center;gap:6px;padding:8px 12px;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.iw-gal .big::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.45),transparent 40%);pointer-events:none}
.iw-play{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;border:3px solid #fff;background:rgba(0,0,0,.25);color:#fff;display:grid;place-items:center;font-size:24px;z-index:1;transition:.2s}
.iw-gal .big:hover .iw-play{background:var(--iw-gold);border-color:var(--iw-gold);color:var(--iw-green-d)}

/* ---------- 12. WIDGET: Footer ---------- */
.iw-foot{margin-top:24px;background:var(--iw-grad-footer,var(--iw-green-d));color:#D3E2D5;position:relative;overflow:hidden}
.iw-foot::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 0% 100%,rgba(92,122,46,.35),transparent 30%),radial-gradient(circle at 100% 100%,rgba(92,122,46,.35),transparent 30%);pointer-events:none}
/* The footer sizes itself to however many columns the client has made.
   It was fixed at six tracks for five link columns and a wide Contact; with
   four link columns the Contact landed in a narrow track and the wide one
   meant for it sat empty, so the map was squeezed into 175px while 239px of
   the footer went spare. Now the last track is always the wide one, whether
   there are four link columns or none.

   The :has() is wrapped in :where() so it counts for nothing in the
   specificity. That matters more than it sounds: a bare :has() rule beats a
   plain rule inside a media query, so the footer stayed five columns wide at
   every width and the breakpoints below did nothing at all. Repeating each
   variant in every breakpoint would also work, and was tried -- but only one
   of the five was repeated, which is exactly the sort of thing that gets
   missed. :where() makes it impossible to miss. */
.iw-foot .iw-wrap{position:relative;display:grid;padding-top:20px;padding-bottom:20px;
  grid-template-columns:minmax(0,1.3fr)}
.iw-foot .iw-wrap:where(:has(>:nth-child(2))){grid-template-columns:repeat(1,minmax(0,1fr)) minmax(0,1.3fr)}
.iw-foot .iw-wrap:where(:has(>:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.3fr)}
.iw-foot .iw-wrap:where(:has(>:nth-child(4))){grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.3fr)}
.iw-foot .iw-wrap:where(:has(>:nth-child(5))){grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.3fr)}
.iw-foot .iw-wrap:where(:has(>:nth-child(6))){grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,1.15fr)}
.iw-fcol{padding:0 16px;border-left:1px solid rgba(255,255,255,.14)}
.iw-fcol:first-child{border-left:0;padding-left:0}
.iw-fcol h4{font-size:12.5px;color:#fff;text-transform:uppercase;letter-spacing:.3px;margin-bottom:10px}
.iw-fcol li a{display:flex;align-items:center;gap:6px;font-size:12.5px;padding:2px 0;transition:color .2s}
.iw-fcol li a::before{content:"\203A";font-size:15px;line-height:1;color:var(--iw-gold)}
.iw-fcol li a:hover{color:var(--iw-gold-l)}
/* The map takes its height from its own width rather than a fixed number of
   pixels, so it is a strip in a narrow footer column and a proper square-ish
   map once the column is the whole screen. The iframe carries width and
   height attributes of its own when pasted from Google; width:100% and a
   height of 100% of the ratio box override both. */
.iw-map{border-radius:8px;overflow:hidden;background:#cfd8cf;aspect-ratio:16/7}
.iw-map iframe{width:100%;height:100%;border:0;display:block}
.iw-addr{display:flex;gap:6px;font-size:12.5px;margin:10px 0;line-height:1.4}
/* A client types their own address, and theirs may hold a 43-character
   website name with nowhere to break. Left alone it cannot wrap and pushes
   the footer past the edge of a narrow phone, taking the whole page with
   it. Breaking mid-word is ugly; a page that scrolls sideways is worse. */
.iw-addr>span,.iw-addr a{min-width:0;overflow-wrap:anywhere}
.iw-addr .iw-ic{color:var(--iw-gold);font-size:16px;margin-top:2px}
.iw-copy{background:#fff}
.iw-copy .iw-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;font-size:13px;color:var(--iw-muted)}
.iw-copy nav{display:flex;align-items:center;gap:0;margin-left:auto}
.iw-copy nav a{padding:0 14px;border-left:1px solid var(--iw-line)}
.iw-copy nav a:first-child{border-left:0}
.iw-copy nav a:hover{color:var(--iw-green)}
.iw-copy .iw-soc a{border-radius:6px}

/* ---------- 13. WIDGET: Mobile bottom bar ---------- */
.iw-mbar{display:none}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1280px){
  .iw-acc li{width:66px;font-size:10px}
  .iw-menu>li>a{padding:8px 8px;font-size:13px}
  .iw-brand-t b{font-size:19px}
}
@media (max-width:1240px){
  /* The menu items will not wrap, so from here down the nav row needs more
     than there is: this college's menu alone wants 987px and the phone
     button another 176px. The button was the part hanging off the right of
     the screen and making the whole page scroll sideways, and it is the one
     piece also printed in the header and in the footer, so it is the one
     that goes. Below 1024px the menu becomes the drawer and both come back.

     The pixel figure only suits this college's menu, so the wrap rule by
     .iw-nav is the one that has to hold for a college with a longer one. */
  .iw-contact{display:none}
}
@media (max-width:1180px){
  .iw-acc{display:none}
  .iw-hero:has(>:nth-child(3)){grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  /* The quick cards drop under the other two and lie flat across the width. */
  .iw-hero>*:nth-child(3){grid-column:1/-1}
  /* With four, the stacking above has to be undone: two rows of two, and
     nothing spanning. Left in place, the first two would still be told to
     cover rows 1 and 2 of a grid that no longer has the same shape. */
  .iw-hero:has(>:nth-child(4)){grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
    grid-template-rows:none}
  .iw-hero:has(>:nth-child(4))>*:nth-child(1),
  .iw-hero:has(>:nth-child(4))>*:nth-child(2),
  .iw-hero:has(>:nth-child(4))>*:nth-child(3),
  .iw-hero:has(>:nth-child(4))>*:nth-child(4){grid-row:auto;grid-column:auto}
  .iw-hero:has(>:nth-child(4))>*:nth-child(3),
  .iw-hero:has(>:nth-child(4))>*:nth-child(4){grid-column:span 1}
  /* And with five or six, the same undoing: two across, filling down. The
     spanning above would otherwise still point at rows this grid no longer
     has, and the third column at a column that is no longer there.

     Each child is named, as the four-box rule above names its own. A media
     query adds no weight of its own, so `>*` here would lose to the
     `>*:nth-child(3)` up in the desktop rules -- which is how this came out
     as a 93px slider beside a 920px notice board: the boxes that still
     carried `grid-column:3` made a third column in a grid that had been
     told to have two. */
  .iw-hero:has(>:nth-child(5)),
  .iw-hero:has(>:nth-child(6)){grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
    grid-template-rows:none}
  .iw-hero:has(>:nth-child(5))>*:nth-child(1),
  .iw-hero:has(>:nth-child(5))>*:nth-child(2),
  .iw-hero:has(>:nth-child(5))>*:nth-child(3),
  .iw-hero:has(>:nth-child(5))>*:nth-child(4),
  .iw-hero:has(>:nth-child(5))>*:nth-child(5),
  .iw-hero:has(>:nth-child(6))>*:nth-child(1),
  .iw-hero:has(>:nth-child(6))>*:nth-child(2),
  .iw-hero:has(>:nth-child(6))>*:nth-child(3),
  .iw-hero:has(>:nth-child(6))>*:nth-child(4),
  .iw-hero:has(>:nth-child(6))>*:nth-child(5),
  .iw-hero:has(>:nth-child(6))>*:nth-child(6){grid-row:auto;grid-column:auto}
  /* Lying flat across the width: columns, and no automatic rows left
     over from the stacked case above. */
  .iw-qcards{grid-auto-rows:auto;grid-template-columns:repeat(3,minmax(0,1fr))}
  .iw-stats{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:16px}
  .iw-stats li:nth-child(4){border-left:0}
  .iw-about-row,.iw-about-row:has(>:nth-child(2)),.iw-about-row:has(>:nth-child(3)),.iw-about-row:has(>:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
  .iw-foot .iw-wrap{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:22px}
  .iw-fcol:nth-child(4){border-left:0;padding-left:0}
}
@media (max-width:1024px){
  /* nav becomes drawer */
  .iw-burger{display:grid}
  /* The heading and the social icons go, but not the block itself: the
     magnifier is in there too, and from here down it is the only way
     into the site that is not behind the button beside it. Its size at
     this width is set in "Search where the menu is a button", below. */
  .iw-connect p,.iw-soc a{display:none}
  .iw-nav{position:static;box-shadow:none}
  .iw-nav .iw-wrap{min-height:0;padding:0}
  .iw-menu,.iw-contact{display:none}
  .iw-nav.open{position:fixed;inset:0;z-index:100;background:rgba(6,42,22,.5)}
  .iw-nav.open .iw-wrap{position:absolute;top:0;right:0;bottom:0;width:min(340px,88vw);background:var(--iw-surface-panel,#fff);flex-direction:column;align-items:stretch;padding:70px 16px 24px;overflow:auto}
  .iw-nav.open .iw-menu{display:flex;flex-direction:column;align-items:stretch}
  .iw-nav.open .iw-menu>li>a{color:var(--iw-ink);justify-content:space-between;padding:12px;border-bottom:1px solid var(--iw-line);border-radius:0;font-size:15px}
  .iw-nav.open .iw-menu>li.active>a{background:var(--iw-green);color:#fff;border-radius:8px}
  .iw-nav.open .iw-sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border-top:0;display:none;padding:4px 0 8px 12px}
  .iw-nav.open li.exp>.iw-sub{display:block}
  .iw-nav.open .iw-contact{display:inline-flex;justify-content:center;margin-top:16px;color:var(--iw-green);border-color:var(--iw-green)}
  .iw-nav.open .iw-nav-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:10px;background:var(--iw-green-l);color:var(--iw-green);font-size:20px;display:grid;place-items:center}
  .iw-hdr{position:sticky;top:0;z-index:60;box-shadow:0 2px 10px rgba(0,0,0,.06)}
  .iw-logos-row,.iw-logos-row:has(>:nth-child(2)),.iw-logos-row:has(>:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}
  .iw-logos-row>*:last-child{grid-column:1/-1}
  .iw-explore{grid-template-columns:repeat(3,minmax(0,1fr))}
  .iw-ex-title{grid-column:1/-1;border-bottom:1px solid var(--iw-cream-d);padding-bottom:12px;margin-bottom:8px}
  .iw-ex-title b{display:inline;margin-left:6px}
  .iw-explore>*:nth-child(2){border-left:0}
  .iw-bottom-row,.iw-bottom-row:has(>:nth-child(2)){grid-template-columns:minmax(0,1fr)}
}
@media (max-width:860px){
  .iw-years{display:none}
  .iw-hero,.iw-hero:has(>:nth-child(2)),.iw-hero:has(>:nth-child(3)),
  .iw-hero:has(>:nth-child(4)){grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .iw-hero:has(>:nth-child(4))>*{grid-row:auto;grid-column:auto}
  /* Stacked, the slider is a band again rather than a panel. */
  .iw-hero:has(>:nth-child(2)) .iw-slider{aspect-ratio:4/3}
  /* A 12:5 band on a narrow screen is a letterbox strip with nothing
     readable in it, so a phone has a shape of its own. */
  .iw-slider{aspect-ratio:4/3;min-height:320px}
  .iw-cap{left:22px;right:22px;bottom:50px}
  /* Narrow: everything stacks at the bottom whatever was chosen, because
     there is no left or right worth having at this width. The choice is
     about a wide photograph. */
  .iw-slide--right .iw-cap,.iw-slide--top .iw-cap,.iw-slide--centre .iw-cap{
    left:22px;right:22px;top:auto;bottom:50px;transform:none;text-align:left}
  .iw-slide--right::after,.iw-slide--top::after,.iw-slide--centre::after{
    background:linear-gradient(0deg,rgba(6,42,22,.92) 15%,rgba(6,42,22,.4) 70%,rgba(6,42,22,.15))}
  .iw-slide--centre .iw-cap-btns{justify-content:flex-start}
  .iw-slide::after{background:linear-gradient(0deg,rgb(var(--iw-grad-slide-a,6 42 22) / calc(.92 * var(--iw-grad-slide-fade, 1))) 15%,rgb(var(--iw-grad-slide-b,6 42 22) / calc(.4 * var(--iw-grad-slide-fade, 1))) 70%,rgb(var(--iw-grad-slide-c,6 42 22) / calc(.15 * var(--iw-grad-slide-fade, 1))))}
  .iw-sl-arrow{display:none}
  .iw-qcards{grid-template-columns:minmax(0,1fr)}
  .iw-logos-row,.iw-logos-row:has(>:nth-child(2)),.iw-logos-row:has(>:nth-child(3)){grid-template-columns:minmax(0,1fr)}
  .iw-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iw-stats li:nth-child(odd){border-left:0}
  .iw-stats li:nth-child(4){border-left:1px solid rgba(255,255,255,.2)}
  .iw-explore{grid-template-columns:minmax(0,1fr)}
  .iw-explore>*{border-left:0;border-top:1px solid var(--iw-cream-d);padding:12px 20px}
  .iw-explore>*:first-child{border-top:0}
  .iw-ex-title{border-bottom:0;margin:0}
  .iw-depts-label{font-size:15px;padding:8px 12px}
  .iw-feat{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}
  .iw-feat a:nth-child(3){border-left:0}
  .iw-foot .iw-wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iw-fcol{border-left:0;padding-left:0}
  .iw-copy nav{margin-left:0}
  /* As many columns as there are buttons, not four. A college with no
     phone number or no map link gets three, or two, and a fixed four left
     an empty cell at the end of the bar. */
  .iw-mbar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:90;background:#fff;border-top:1px solid var(--iw-line);padding-bottom:env(safe-area-inset-bottom,0px)}
  .iw-mbar a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0;font-size:11.5px;font-weight:600;color:var(--iw-green-d)}
  .iw-mbar a .iw-ic{font-size:20px}
  .iw-mbar a.pri{background:var(--iw-green);color:#fff}
  body.iw{padding-bottom:62px}
}
/* The icon over the figure on the narrowest phones.
   ---------------------------------------------------------------------
   Two columns still -- six figures in a column is a long list to scroll
   past for six numbers. The room comes from the other direction.
   Measured at 320px: a column is 160px, and the icon, the gap and the
   padding beside it took 98 of them, leaving the figure 62px. "9.9
   Acres" needs 85 and "13,000+" needs 66, so both wrapped -- and the
   band counts up to them, so the row grew partway through the count and
   the page below it moved.

   Stacked, the figure has the column: 140px instead of 62. It is the
   same arrangement the other theme uses at every width. */
@media (max-width:380px){
  .iw-stats li{flex-direction:column;align-items:center;text-align:center;
    gap:2px;padding:6px 6px}
  .iw-stats li,.iw-stats li:nth-child(4){border-left:0}
}

@media (max-width:600px){
  body.iw{font-size:14.5px}
  .iw-wrap{padding:0 14px}
  /* On a phone there is no room for words beside a picture: three or four
     to a line is not reading. The picture takes the width and the words go
     under it. !important because the float is written on the tag itself,
     and a stylesheet cannot otherwise reach it. */
  .iw-rt-body img[style*="float: left"],.iw-rt-body img[style*="float:left"],
  .iw-rt-body img[style*="float: right"],.iw-rt-body img[style*="float:right"]{
    float:none!important;display:block;margin:10px 0}
  .iw-brand-t b{font-size:14.5px}
  .iw-brand-t small{font-size:11px}
  /* On a phone the logo takes the width of the row, which is what the
     college asked for: there is nothing beside it to push out, and at
     its own size it left half the row empty.

     height:auto with it, or the width is the only thing that follows
     the row and the height stays at the 68px set above -- which drew
     this college's 400x78 file at 283x68, a shape 23% too tall for its
     width, and the lettering with it. The row is 86px, so the 55px this
     comes to sits in it comfortably. */
  .iw-brand img{width:100%;height:auto}
  .iw-about-row,.iw-about-row:has(>:nth-child(2)),.iw-about-row:has(>:nth-child(3)),.iw-about-row:has(>:nth-child(4)){grid-template-columns:minmax(0,1fr)}
  .iw-ac{min-height:220px}
  .iw-lc-track>*{flex-basis:calc(33.33% - 7px)}
  /* One column each, stacked. Four narrow columns of links on a phone is
     four words a line and nothing readable. */
  .iw-foot .iw-wrap{grid-template-columns:minmax(0,1fr)}
  .iw-fcol{border-left:0;padding-left:0;padding-right:0}
  .iw-fcol + .iw-fcol{border-top:1px solid rgba(255,255,255,.14);padding-top:16px}
  /* A thumb is about 9mm across. Stacked one per line these links were
     23px tall and 4px apart, so the one above was as easy to hit as the one
     meant. Nothing moves sideways: only the line each one stands on grows. */
  .iw-fcol li a{padding:9px 0;font-size:13.5px}
  /* The phone number is the one thing on a college website somebody taps
     on a phone, and it was a 15px line of text. Inline-block so the padding
     actually makes the link taller, and two numbers stay two lines. */
  .iw-addr a{display:inline-block;padding:7px 0;font-size:13.5px}
  .iw-addr{font-size:13.5px}
  /* Centred, because there is only the one line in it: left-aligned in a
     space-between row it sat against one edge with the rest of the bar
     empty beside it. */
  .iw-copy .iw-wrap{flex-direction:column;align-items:center;justify-content:center;
    text-align:center;gap:8px}
  /* A paragraph brings its own margin, which here sits on top of the row's
     own padding and doubles the height of a one-line strip. */
  .iw-copy p{margin:0}
  .iw-copy nav a{padding:0 10px}
  .iw-copy nav a:first-child{padding-left:0}
  .iw-gal{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;height:auto;min-height:0;grid-auto-rows:120px}
  .iw-gal .big{grid-column:1/-1;grid-row:span 2}
}
@media (prefers-reduced-motion:reduce){
  :where(html:not([data-motion="on"])) .iw *{transition:none!important;animation:none!important}
  html:not([data-motion="on"]){scroll-behavior:auto}
}

/* =====================================================================
   Inner pages: breadcrumb and the section list.

   The prototype covers the home page only, so these are written here.
   The section list follows SPEC §3:
     laptop and up  a sticky column down the side
     tablet         a row of tabs that scrolls sideways
     phone          an "In this section" list above the content
   ===================================================================== */

/* ---------- breadcrumb ---------- */
.iw-crumb{margin:0 0 14px}
.iw-crumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:2px;list-style:none;margin:0;padding:0;font-size:13px;color:var(--iw-muted)}
.iw-crumb li{display:flex;align-items:center}
.iw-crumb li+li::before{content:"\203A";margin:0 8px;color:var(--iw-gold);font-size:16px;line-height:1}
.iw-crumb a{color:var(--iw-muted);border-bottom:1px solid transparent}
.iw-crumb a:hover{color:var(--iw-green);border-bottom-color:currentColor}

/* ---------- section list ---------- */
.iw-rail{position:sticky;top:66px}
.iw-rail-title{font-size:17px;color:var(--iw-green-d);padding:0 0 10px;margin:0 0 10px;border-bottom:2px solid var(--iw-gold)}
.iw-rail ul{list-style:none;margin:0;padding:0}
.iw-rail li+li{border-top:1px solid var(--iw-line)}
.iw-rail a{display:block;padding:2px 12px;font-size:14px;color:var(--iw-ink);border-radius:8px;transition:background .2s,color .2s}
.iw-rail a:hover{background:var(--iw-green-l);color:var(--iw-green)}
.iw-rail a.on{background:var(--iw-green);color:#fff;font-weight:600}

.iw-body{min-width:0}

/* tablet: the list becomes a row of tabs above the content */
@media (max-width:1023px) and (min-width:601px){
  .iw-rail{position:static;margin-bottom:18px}
  .iw-rail-title{border-bottom:0;padding-bottom:4px;margin-bottom:6px}
  .iw-rail ul{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
  .iw-rail li+li{border-top:0}
  .iw-rail a{white-space:nowrap;border:1px solid var(--iw-line);border-radius:999px;padding:7px 15px}
  .iw-rail a.on{border-color:var(--iw-green)}
}

/* phone: a plain list above the content, kept short */
@media (max-width:600px){
  .iw-rail{position:static;margin-bottom:16px;border:1px solid var(--iw-line);border-radius:var(--iw-r);padding:12px;background:var(--iw-surface-panel,#fff)}
  .iw-rail-title{font-size:15px;border-bottom:1px solid var(--iw-line);padding-bottom:8px;margin-bottom:6px}
  .iw-page-title{font-size:24px}
  .iw-main{padding:16px 0 24px}
}

/* =====================================================================
   The college name is content now, not markup.

   In the prototype the name was typed with a <br> in the middle, so the
   brand block could be flex:none and never needed to shrink. The name now
   comes from Settings and may be any length, so the brand has to be
   allowed to shrink and wrap, or a long name pushes the menu button off
   the side of a phone screen.
   ===================================================================== */

.iw-brand{flex:1 1 auto;min-width:0}

/* The shares the college chose, where there are four things to share.
   ---------------------------------------------------------------------
   30 for the logo, 20 for the badge, 30 for the seals, 20 for the
   connect block -- of the content, not of the row. The row also carries
   18px between each pair and 20px down each side, 94px of 1320, and that
   is nobody's share. Against the 1226px left: 368 / 246 / 367 / 245,
   which is 30.0 / 20.1 / 30.0 / 20.0.

   Only above 1180px, because that is the only width where all four are
   on the screen at once. Below it the seals go, then the connect block
   at 1024, then the badge at 860 -- and a share of a row that is mostly
   empty is not a share of anything. Written at every width it took the
   logo on a phone from 283px of 375 down to 159px, and handed 20 per
   cent to a WhatsApp button that had been taking only the room it
   needed. Below this width they go back to taking what they are.

   After .iw-brand above, not before: these carry no more weight than it
   does, so the later one is the one that wins. */
@media (min-width:1181px){
  .iw-brand{flex:1 1 30%}
  .iw-years{flex:1 1 20%}
  .iw-acc{flex:1 1 30%}
  .iw-connect{flex:1 1 20%}
}
.iw-brand-t{min-width:0}
.iw-brand-t b{overflow-wrap:break-word}
.iw-burger{flex:none}

/* ---------------------------------------------------------------------
   Why the seals are flex:0 0 auto and the brand is the one that gives way.

   Making the brand shrinkable also made it grow, and the seal strip was
   written flex:1 — basis zero. When a flex row runs out of room it takes
   the space back in proportion to each basis, so a basis of zero loses
   every time: the strip was given a box 0px wide while its five seals
   stayed 406px, and they painted straight over "Connect with us".

   The row does fit. Measured at the 1320px the wrap is capped to, the
   four blocks need 1087px of the 1192px available. The seals and the
   social icons are fixed-size things, so they say so; the college name
   and the years badge are the two that can wrap, so they are the two
   that give way.
   --------------------------------------------------------------------- */

/* Nothing may stick out sideways at any width (CLAUDE.md). */
.iw-mbar{max-width:100vw}

@media (max-width:600px){
  .iw-hdr .iw-wrap{gap:10px}
  .iw-brand{gap:10px}
  .iw-brand-t b{font-size:14px;line-height:1.15}
  /* No room is left under the bottom bar here: body.iw already leaves it,
     once, for the whole page. Leaving it twice put 124px of white under a
     57px bar, and because the strip, the gap and the bar are all white it
     read as one empty block with the copyright stranded at the top of it. */
  /* Room to read it on a phone, where the column is the full width. */
  .iw-map{aspect-ratio:16/10}
}

/* =====================================================================
   Search where the menu is a button.

   This has been moved twice, so here is the whole of it.

   The prototype hid the magnifier under 600px, which left a phone with no
   way to search at all - the worst place to lose it, since that is where
   students look for a notice or a result. It was put back. Then it went
   again wherever the bar along the bottom was carrying a Search of its
   own, on the reasoning that this was the same offer twice in the tightest
   row on the page; the college looked at it on a phone and asked for it
   back, the bar being at the foot of the screen and this the top of it.

   And then the width itself turned out to be the wrong question. The menu
   becomes a button at 1024px. Between there and 600 the header carried the
   logo, the badge and that button and nothing else -- 424px of room, and
   no way into the site that was not behind the one button. The magnifier
   now simply follows the burger: the same 1024 in both places, which the
   suite reads out of this file and insists on, so neither can be moved
   without the other.

   What is left here is what the magnifier does without them. Showing it
   is the base rule's job, and the block above has already put the heading
   and the social icons away; the gap and the hairline it wears to end
   that row have nothing to end from here down, so they come off.

   The logo gives up the room on a phone, and gives it up by itself: it is
   set to the width of its block there, so the block shrinking is the whole
   of the adjustment. Measured at 375px it goes from 283x55 to 245x48, and
   at 320px to 190x37, with nothing over the edge at either.
   ===================================================================== */

@media (max-width:1024px){
  .iw-search-btn{margin-left:0}
  .iw-search-btn::before{content:none}
}

/* ---------- Search results ---------- */
.iw-search-again{display:flex;gap:8px;margin:0 0 18px;max-width:34rem}
.iw-search-again input{flex:1;border:1px solid var(--iw-line);border-radius:999px;padding:10px 18px;font:inherit}
.iw-search-note{color:var(--iw-muted);margin:0 0 18px}
.iw-search-count{color:var(--iw-muted);font-size:13px;margin:0 0 14px}
.iw-results{list-style:none;margin:0;padding:0;display:grid;gap:16px;max-width:46rem}
.iw-results li{padding-bottom:16px;border-bottom:1px solid var(--iw-line)}
.iw-results li:last-child{border-bottom:0}
.iw-results a{font-family:var(--iw-head);font-weight:600;font-size:17px;color:var(--iw-green)}
.iw-results a:hover{text-decoration:underline}
.iw-results p{margin:4px 0;color:var(--iw-ink);font-size:14px}
.iw-results mark{background:var(--iw-gold-l);color:inherit;padding:0 2px;border-radius:3px}
.iw-result-path{font-size:12.5px;color:var(--iw-muted)}
.iw-pager{display:flex;align-items:center;gap:16px;margin-top:22px;font-size:14px}
.iw-pager a{color:var(--iw-green);font-weight:600}
.iw-pager a:hover{text-decoration:underline}

/* ---------- Lists of items: events, news, notices, documents ---------- */
.iw-lead{color:var(--iw-muted);margin:0 0 18px;max-width:46rem}
.iw-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px}
.iw-filter{border:1px solid var(--iw-line);border-radius:999px;padding:6px 15px;font-size:13.5px;color:var(--iw-ink)}
.iw-filter:hover{border-color:var(--iw-green);color:var(--iw-green)}
.iw-filter.on{background:var(--iw-green);border-color:var(--iw-green);color:#fff;font-weight:600}

.iw-items{list-style:none;margin:0;padding:0;display:grid;gap:2px;max-width:52rem}
.iw-item{display:flex;align-items:flex-start;gap:16px;padding:16px 4px;border-bottom:1px solid var(--iw-line)}
.iw-item:last-child{border-bottom:0}
.iw-item-pic{flex:none;width:140px;border-radius:10px;overflow:hidden}
.iw-item-pic img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.iw-item-body{flex:1 1 auto;min-width:0}
.iw-item-body h2{font-size:17px;margin:0 0 3px}
.iw-item-body h2 a{color:var(--iw-green-d)}
.iw-item-body h2 a:hover{color:var(--iw-green);text-decoration:underline}
.iw-item-body h2 .iw-ic{font-size:14px;color:var(--iw-gold);vertical-align:middle}
/* ---------------------------------------------------------------
   Has this happened? -- the chip and the line under an event's title.

   They carry the date and the venue, which the meta line below used to
   carry, so on an event the template shows one or the other and never
   both. The department chips are links: the item page had no way
   through to a department's own page before.
   --------------------------------------------------------------- */
.iw-item-when{display:flex;flex-wrap:wrap;align-items:baseline;gap:9px;margin:0 0 9px}
.iw-when-chip{flex:none;border:1px solid var(--iw-line);border-radius:999px;
  padding:3px 11px;font-size:11.5px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--iw-ink);white-space:nowrap}
.iw-when-said{min-width:0;font-size:14px;color:var(--iw-muted)}

/* Still to come: the gold button's own pairing. */
.iw-when--before .iw-when-chip{background:var(--iw-gold-l,var(--iw-gold));
  border-color:var(--iw-gold-l,var(--iw-gold));color:var(--iw-btn-ink,var(--iw-green-d))}

/* Today: the loudest of the three, and the same green and white the
   chosen filter pill already uses. */
.iw-when--during .iw-when-chip{background:var(--iw-green);border-color:var(--iw-green);color:#fff}

/* Over with: quiet. Most events on a college site are in this state for
   ever, and a page of shouting badges helps nobody. */
.iw-when--after .iw-when-chip{background:transparent;border-color:var(--iw-line);color:var(--iw-muted)}

.iw-item-depts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.iw-dept-chip{border:1px solid var(--iw-line);border-radius:999px;padding:3px 11px;
  font-size:12.5px;color:var(--iw-ink);text-decoration:none}
.iw-dept-chip:hover{border-color:var(--iw-green);color:var(--iw-green)}

.iw-item-meta{margin:0 0 5px;font-size:12.5px;color:var(--iw-muted)}
.iw-item-body p{margin:0;font-size:14px}
.iw-item-arrow{flex:none;color:var(--iw-muted);margin-top:14px}

.iw-article{max-width:52rem}
.iw-article-cover{margin:0 0 18px}
.iw-article-cover img{width:100%;height:auto;border-radius:var(--iw-r)}
.iw-article-cover figcaption{font-size:12.5px;color:var(--iw-muted);margin-top:6px}
.iw-rt-body{font-size:15.5px;line-height:1.7}
.iw-rt-body h2,.iw-rt-body h3{margin:22px 0 8px}
.iw-rt-body p{margin:0 0 14px}
.iw-rt-body ul,.iw-rt-body ol{margin:0 0 14px;padding-left:22px;list-style:revert}
.iw-rt-body img{border-radius:10px;margin:10px 0}

/* A picture the editor has floated: the words run up beside it from the top
   and close over underneath, which is what somebody means by "photo on the
   left". The gap is on the inside edge only, so the picture still lines up
   with the edge of the text column. The stored spelling is always
   "float: left" -- Html::cleanStyle writes it, nothing else can. */
.iw-rt-body img[style*="float: left"],.iw-rt-body img[style*="float:left"]{margin:4px 20px 12px 0}
.iw-rt-body img[style*="float: right"],.iw-rt-body img[style*="float:right"]{margin:4px 0 12px 20px}
/* The body has to close over the float, or the next section rides up into it. */
.iw-rt-body::after{content:"";display:block;clear:both}
.iw-rt-body table{border-collapse:collapse;width:100%;margin:0 0 14px}
.iw-rt-body th,.iw-rt-body td{border:1px solid var(--iw-line);padding:8px 10px;text-align:left}
.iw-rt-body th{background:var(--iw-green-l)}
.iw-rt-head{font-size:22px;color:var(--iw-green-d);margin:0 0 10px}
.iw-rt{margin-bottom:var(--iw-gap)}

@media (max-width:600px){
  .iw-item{gap:12px;padding:14px 0}
  .iw-item-pic{width:92px}
  .iw-item-arrow{display:none}
}

/* ---------- News and events as cards ---------- */
.iw-itemcards{margin-bottom:var(--iw-gap)}
.iw-itemcards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:14px}
.iw-itemcard{display:flex;flex-direction:column;background:var(--iw-surface-panel,#fff);border:1px solid var(--iw-line);border-radius:var(--iw-r);overflow:hidden;box-shadow:var(--iw-shadow);transition:transform .2s,box-shadow .2s}
.iw-itemcard:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(10,58,31,.14)}
.iw-itemcard-pic{aspect-ratio:16/10;background:var(--iw-green-l);display:grid;place-items:center;overflow:hidden}
.iw-itemcard-pic img{width:100%;height:100%;object-fit:cover}
.iw-itemcard-body{padding:12px 14px 16px;display:flex;flex-direction:column;gap:4px}
.iw-itemcard-body h3{font-size:15.5px;color:var(--iw-green-d);margin:0}
.iw-itemcard-body p{margin:0;font-size:13.5px;color:var(--iw-ink)}
.iw-result-kind{display:inline-block;background:var(--iw-green-l);color:var(--iw-green);border-radius:999px;padding:1px 9px;font-size:11.5px;font-weight:600;margin-right:7px}

/* =====================================================================
   Hubs: the list of departments, and the pages a department gets.

   Added with Phase 5. The cards reuse the same shapes as the item cards
   above, so a department card and an event card sit together without
   looking like two different websites.
   ===================================================================== */

/* a heading inside the side list, for a two-level rail */
.iw-rail-group{
  font-size:14px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;
  color:var(--iw-muted);margin:5px 0 4px;padding:0 12px
}
.iw-rail-group:first-of-type{margin-top:6px}

/* the hub list */
.iw-hub-group{margin:0 0 28px}
.iw-hub-head{
  font-size:18px;color:var(--iw-green-d);margin:0 0 12px;padding-bottom:8px;
  border-bottom:2px solid var(--iw-gold)
}
.iw-hub-grid{
  display:grid;gap:var(--iw-gap);
  grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))
}
.iw-hub-card{
  display:flex;flex-direction:column;overflow:hidden;background:var(--iw-surface-panel,#fff);
  border:1px solid var(--iw-line);border-radius:var(--iw-r);
  box-shadow:var(--iw-shadow);transition:transform .2s,box-shadow .2s,border-color .2s
}
.iw-hub-card:hover{transform:translateY(-3px);border-color:var(--iw-green);box-shadow:0 10px 24px rgba(20,60,40,.12)}
.iw-hub-pic{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--iw-green-l)}
.iw-hub-pic img{width:100%;height:100%;object-fit:cover;display:block}
.iw-hub-body{display:block;padding:14px 16px 16px}
.iw-hub-body h3{margin:0 0 6px;font-size:16px;color:var(--iw-green-d)}
.iw-hub-body p{margin:0 0 10px;font-size:14px;color:var(--iw-muted)}
.iw-hub-more{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:600;color:var(--iw-green)
}
.iw-hub-card:hover .iw-hub-more{gap:9px}

/* the courses a department teaches */
.iw-prog-group{margin:0 0 26px}
.iw-prog-group .iw-items{margin-top:0}

@media (max-width:600px){
  .iw-hub-head{font-size:16px}
  .iw-hub-grid{grid-template-columns:1fr}
}

/* =====================================================================
   The floating WhatsApp button.

   Only drawn when it is switched on and a number is set (shell/whatsapp.php).
   It sits above the bottom bar on a phone so it never covers the Call button.
   ===================================================================== */
.iw-wa{
  position:fixed;right:16px;bottom:16px;z-index:60;
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 16px;border-radius:999px;
  background:#25d366;color:#fff;font-weight:600;font-size:14px;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
  transition:transform .18s,box-shadow .18s
}
.iw-wa:hover,.iw-wa:focus-visible{color:#fff;transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.28)}
.iw-wa-ic{width:22px;height:22px;flex:none}

/* On a phone the bottom bar is already there, so the button moves up and
   keeps only its icon — a floating pill would cover half the screen. */
@media (max-width:600px){
  .iw-wa{bottom:calc(var(--iw-mbar-h,58px) + 14px);right:14px;padding:13px}
  .iw-wa-words{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){ :where(html:not([data-motion="on"])) .iw-wa{transition:none} :where(html:not([data-motion="on"])) .iw-wa:hover{transform:none} }

/* --- Departments ---------------------------------------------------
   The cards shrink to fit rather than wrapping to a fixed count, so
   eighteen departments look right at every width without a breakpoint
   per number. minmax(0,1fr) because a long department name would
   otherwise push the grid wider than the phone it is on. */
.iw-deptlist-intro{margin:0 0 14px;color:var(--iw-ink-soft);max-width:48rem}
.iw-deptlist-group{margin:18px 0 10px;font-size:1rem;color:var(--iw-green-d)}
.iw-deptlist-group:first-of-type{margin-top:0}

.iw-dept-cards{list-style:none;margin:0;padding:0;display:grid;gap:var(--iw-gap);
  grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr))}
.iw-dept-cards>li>a,.iw-dept-cards>li>span{display:flex;flex-direction:column;gap:6px;
  height:100%;padding:12px;background:var(--iw-surface-panel,#fff);border:1px solid var(--iw-line);
  border-radius:var(--iw-r);color:inherit;text-decoration:none}
.iw-dept-cards>li>a:hover,.iw-dept-cards>li>a:focus-visible{border-color:var(--iw-green);
  box-shadow:0 2px 14px rgba(20,60,40,.1)}
/* A department with no page of its own is shown, not linked: a card that
   goes nowhere is worse than one that plainly does not. */
.iw-dept-cards>li>span{opacity:.72}
.iw-dept-cards b{font-size:.98rem;line-height:1.35}
.iw-dept-cards small{color:var(--iw-ink-soft);font-size:.84rem;line-height:1.45}

.iw-dept-pic{display:block;aspect-ratio:3/2;border-radius:calc(var(--iw-r) - 2px);
  overflow:hidden;background:var(--iw-green-l);display:grid;place-items:center}
.iw-dept-pic img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.iw-dept-mark{font-weight:700;font-size:1.3rem;color:var(--iw-green);letter-spacing:.04em}

.iw-dept-names{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:4px;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr))}
.iw-dept-names a{color:inherit;text-decoration:none;display:block;padding:5px 0;
  border-bottom:1px solid var(--iw-line)}
.iw-dept-names a:hover,.iw-dept-names a:focus-visible{color:var(--iw-green)}
.iw-dept-names span{display:block;padding:5px 0;color:var(--iw-ink-soft);
  border-bottom:1px solid var(--iw-line)}

/* --- The pop-up notice ---------------------------------------------
   A <dialog>, so the browser handles the keyboard, Escape and focus.
   Only the look is here. */
.iw-popup{border:0;border-radius:var(--iw-r);padding:0;max-width:min(28rem,90vw);
  width:100%;background:var(--iw-surface-panel,#fff);color:var(--iw-ink);box-shadow:0 10px 40px rgba(10,30,20,.3);
  overflow:hidden}
.iw-popup::backdrop{background:rgba(10,25,18,.55)}
.iw-popup-close-form{margin:0}
.iw-popup-close{position:absolute;inset-block-start:8px;inset-inline-end:8px;
  width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.9);
  color:var(--iw-ink);font-size:22px;line-height:1;cursor:pointer;display:grid;
  place-items:center}
.iw-popup-close:hover,.iw-popup-close:focus-visible{background:#fff;color:var(--iw-green)}
.iw-popup-pic{display:block}
.iw-popup-pic img{width:100%;height:auto;display:block}
.iw-popup-body{padding:18px}
.iw-popup-body h2{margin:0 0 8px;font-size:1.15rem}
.iw-popup-body p{margin:0 0 14px;color:var(--iw-ink-soft)}
.iw-popup-body .iw-btn{display:inline-block}

@media (max-width:599px){
  .iw-popup{max-width:92vw}
  .iw-popup-body{padding:14px}
}

/* --- An album's photographs, and the viewer they open in ------------
   The album page used to borrow the home page gallery's grid, which is
   three by three with a fixed height — right for a widget in a row,
   wrong for an album that might hold forty photographs. This one grows
   with however many there are. */
/* ---------- A gallery drawn as photographs ----------
   The tile IS the album: it holds every photograph on the item, the
   first one showing and the rest hidden for the viewer to step
   through, so one press opens the slideshow where you are standing.

   --one is that same grid holding a single tile, so a card borrows the
   shape and the hover the album on an item page already has rather
   than restating it. */
.iw-albums{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:22px 18px;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr))}
.iw-album--one{grid-template-columns:minmax(0,1fr);margin-top:0}
.iw-album-name{margin:10px 0 0;font-size:15.5px;line-height:1.35}
.iw-album-name a{color:var(--iw-green-d);text-decoration:none}
.iw-album-name a:hover,.iw-album-name a:focus-visible{text-decoration:underline}

.iw-album{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));margin-top:18px}
/* The rest of an album's photographs are in the tile for the viewer to
   step through, not to look at. `hidden` alone does not do it: the rule
   below sets display:block, which beats the browser's own [hidden], so
   they came out as a column of empty boxes under the first one. */
/* Two ways back, side by side: the page before, and the list. */
.iw-backs{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

.iw-album a[hidden]{display:none}
.iw-album a{display:block;position:relative;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--iw-green-l);cursor:zoom-in}
.iw-album a img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.iw-album a:hover img,.iw-album a:focus-visible img{transform:scale(1.05)}
.iw-album a:focus-visible{outline:3px solid var(--iw-green);outline-offset:2px}

/* The viewer. A <dialog>, so the browser keeps the keyboard inside it,
   closes it on Escape and puts focus back where it was. */
.iw-lightbox{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100%;height:100%;overflow:hidden}
.iw-lightbox::backdrop{background:rgba(6,20,13,.92)}
.iw-lightbox-frame{position:relative;width:100%;height:100%;display:grid;grid-template-rows:1fr auto;align-items:center;justify-items:center;gap:8px;padding:48px 16px 16px}
.iw-lightbox img{max-width:min(100%,1400px);max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:6px;display:block}
.iw-lightbox-foot{color:#fff;text-align:center;max-width:46rem;font-size:.95rem;line-height:1.5}
.iw-lightbox-count{display:block;font-size:.8rem;opacity:.72;margin-top:4px}

.iw-lightbox button{position:absolute;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;display:grid;place-items:center;backdrop-filter:blur(4px)}
.iw-lightbox button:hover,.iw-lightbox button:focus-visible{background:rgba(255,255,255,.3)}
.iw-lightbox-close{inset-block-start:10px;inset-inline-end:12px;width:44px;height:44px;font-size:26px;line-height:1}
.iw-lightbox-prev,.iw-lightbox-next{inset-block-start:50%;transform:translateY(-50%);width:48px;height:48px;font-size:26px;line-height:1}
.iw-lightbox-prev{inset-inline-start:10px}
.iw-lightbox-next{inset-inline-end:10px}
.iw-lightbox[data-single] .iw-lightbox-prev,
.iw-lightbox[data-single] .iw-lightbox-next{display:none}

@media (max-width:599px){
  .iw-album{grid-template-columns:repeat(auto-fill,minmax(min(100%,8.5rem),1fr));gap:8px}
  .iw-lightbox-frame{padding:44px 8px 12px}
  .iw-lightbox-prev,.iw-lightbox-next{width:40px;height:40px}
}

/* --- A mega menu: one dropdown in columns ---------------------------
   Eighteen departments in a single list is a column so long it runs off
   the bottom of the screen. Under their own headings they are three
   short lists somebody can read at a glance.

   The columns follow how many headings there are rather than a fixed
   count, so a college with two groups or five gets a panel that fits. */
.iw-sub--mega{
  min-width:min(48rem,94vw);
  display:grid;
  /* Narrow enough that four headings still sit on one row: a group that
     wraps to a second row starts below the tallest column above it, which
     leaves a hole the width of the panel. */
  grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5rem),1fr));
  align-items:start;
  gap:4px 18px;
  padding:14px 16px 16px;
}
/* A panel this wide cannot hang off its own menu item: 48rem starting from
   "Departments" in the middle of the bar ran 69px past the right of a
   1026px screen and made the whole page scroll sideways.

   So it hangs off the bar, not off the item — the item is made position:
   static, which leaves the bar as the nearest positioned thing for the
   panel to measure from. The bar is never wider than the screen, so the
   panel can never be off it, whatever the menu is called or however many
   items a college puts in front of it. The trigger still sits above the
   panel, because a panel starting at the left of the bar covers the first
   several items of any menu. */
.iw-nav .iw-wrap{position:relative}
.iw-menu>li:has(>.iw-sub--mega){position:static}
/* Near the end of the bar it lines up with the right instead, so the panel
   stays under the item rather than way off to its left. */
.iw-menu>li:nth-last-child(-n+4):has(>.iw-sub--mega) .iw-sub--mega{left:auto;right:0}

.iw-mega-col{min-width:0}
.iw-mega-head{
  display:block;
  padding:6px 12px 4px;
  font-family:var(--iw-head);
  font-weight:700;
  font-size:12.5px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--iw-gold-d,#8a6412);
}
.iw-sub--mega a{padding:6px 12px}

@media (max-width:1023px){
  /* In the mobile drawer the dropdown is already a plain stacked list,
     so the panel becomes one column and the headings still separate it. */
  .iw-sub--mega{min-width:0;grid-template-columns:1fr;padding:4px 0}
  .iw-mega-head{padding-left:0}
}

/* =====================================================================
   The archive down the side of a list
   ===================================================================== */
.iw-wrap--withside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,260px);
  gap:36px;align-items:start}
.iw-side{min-width:0}

.iw-showing{margin:-8px 0 18px;font-size:14px;color:var(--iw-muted)}

.iw-archive{position:sticky;top:76px;background:var(--iw-cream);border-radius:var(--iw-r);
  padding:16px 18px}
.iw-archive-title{font-size:17px;color:var(--iw-green-d);padding-bottom:10px;margin:0 0 8px;
  border-bottom:2px solid var(--iw-gold)}
.iw-archive ul{list-style:none;margin:0;padding:0}
.iw-archive a{display:flex;justify-content:space-between;gap:10px;align-items:baseline;
  padding:7px 10px;border-radius:8px;font-size:14.5px;transition:background .2s}
.iw-archive a:hover{background:var(--iw-green-l);color:var(--iw-green)}
.iw-archive a small{color:var(--iw-muted);font-size:12.5px}
.iw-archive-year{font-weight:600;color:var(--iw-green-d)}
.iw-archive [aria-current="page"]{background:var(--iw-green);color:#fff}
.iw-archive [aria-current="page"] small{color:#D7E5D8}
.iw-archive-months{margin:2px 0 8px;padding-inline-start:10px;
  border-inline-start:1px solid var(--iw-line)}
.iw-archive-months a{font-size:13.5px;padding:5px 10px}
.iw-archive-all{display:inline-block;margin-top:10px;font-size:13.5px;color:var(--iw-green);
  text-decoration:underline}

@media (max-width:860px){
  /* The list is what somebody came for; the archive follows it. */
  .iw-wrap--withside{grid-template-columns:minmax(0,1fr)}
  .iw-archive{position:static}
}

/* A slide may carry two buttons; the design shows two on the first one. */
.iw-cap-btns{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.iw-btn-white{border-color:rgba(255,255,255,.75);color:#fff;background:transparent}
.iw-btn-white:hover{background:#fff;color:var(--iw-btn-ink,var(--iw-green-d))}

/* --- arrows on a row of chips ---
   Shown by the script only when the row really has more than fits, so a
   college with five departments sees none and one with eighteen sees both.
   The row is the flexible part, so the arrows keep their size. */
.iw-depts{position:relative}
.iw-chips-arrow{flex:none;width:30px;height:30px;border-radius:50%;
  border:1px solid var(--iw-line);background:#fff;color:var(--iw-green-d);
  display:grid;place-items:center;font-size:14px;align-self:center}
.iw-chips-arrow[hidden]{display:none}
.iw-chips-arrow:hover{background:var(--iw-green);border-color:var(--iw-green);color:#fff}
/* No scroll-behavior on the rows that the script slides: it would animate
   them for everyone, including somebody who has asked their system for less
   movement. widgets.js does the sliding and asks first. */

/* =====================================================================
   What a section's Look choices mean in this theme

   Core says only what the client meant -- cream, large, spacious -- and
   never what it looks like. This says what it looks like here, in this
   theme's colours and this theme's scale. Horizon answers the same three
   questions with its own numbers, which is why switching themes keeps
   every choice instead of carrying one theme's pixels into the other.

   Spacing is the clearest case: this theme separates sections with a 25px
   margin, Horizon with 72px of padding. A fixed figure in core could not
   have been right for both.
   ===================================================================== */
:root{--iw-space-compact:10px;--iw-space-spacious:62px}

/* A section given a background in the Look tab is a box, so its inside is
   a card's inside -- the same one number, not another 22 typed here. */
.iw-w--on-cream,.iw-w--on-dark,.iw-w--on-green{
  /*padding:var(--iw-card-pad);*/border-radius:var(--iw-r)}
.iw-w--on-light{background:none}
.iw-w--on-cream{background:var(--iw-cream)}
.iw-w--on-dark{background:var(--iw-green-d);color:#fff}
.iw-w--on-green{background:var(--iw-green);color:#fff}
/* Headings carry their own colour, so a dark band has to say so or the
   heading stays dark green on dark green and reads as a blank space. */
.iw-w--on-dark :is(h1,h2,h3,h4),.iw-w--on-green :is(h1,h2,h3,h4){color:#fff}

/* The three gradients a section may stand on.
   ---------------------------------------------------------------------
   A section says which of them it is on -- Look tab, Background -- and
   what each one is, is set once in Look of the site. That is the same
   arrangement Cream and Green already have, and it is what keeps a site
   from ending up with a different colour on every inner page.

   The words on them are "Words on a gradient", one colour for all three:
   a gradient can be dark at one end and bright at the other, so the
   writing cannot be worked out from it. White unless somebody says
   otherwise, as it is on the dark and green backgrounds. */
.iw-w--on-grad1,.iw-w--on-grad2,.iw-w--on-grad3{
  color:var(--iw-grad-ink,#fff);
  padding-block:var(--iw-gap);
  border-radius:var(--iw-r)}
.iw-w--on-grad1{background:var(--iw-grad-band1)}
.iw-w--on-grad2{background:var(--iw-grad-band2)}
.iw-w--on-grad3{background:var(--iw-grad-band3)}
.iw-w--on-grad1 :is(h1,h2,h3,h4),.iw-w--on-grad2 :is(h1,h2,h3,h4),
.iw-w--on-grad3 :is(h1,h2,h3,h4){color:var(--iw-grad-ink,#fff)}

.iw-w--on-dark a:not(.iw-btn),.iw-w--on-green a:not(.iw-btn){color:var(--iw-gold-l)}
/* A section that has been put on a colour has been put on it.
   ---------------------------------------------------------------------
   The numbers band paints a gradient of its own, which is right while
   the section is standing on the page's own background -- the band IS
   the colour there. The moment somebody picks a background for that
   section, it is wrong: the band sat inside the chosen one as a second,
   different bar, with a frame of the first showing round it.

   So on a background dark enough to carry the band's white writing, the
   band stands down and the section's colour is the band. On Plain and
   Cream it keeps its own, because white on cream is not readable and a
   band that disappeared would take its figures with it. */
.iw-w--on-dark .iw-stats,.iw-w--on-green .iw-stats,
.iw-w--on-grad1 .iw-stats,.iw-w--on-grad2 .iw-stats,
.iw-w--on-grad3 .iw-stats{background:none}

/* And the section does not pad a band that is already padded: the frame
   the college is seeing is this padding with the chosen colour in it. */
.iw-w--on-grad1:has(>.iw-stats),.iw-w--on-grad2:has(>.iw-stats),
.iw-w--on-grad3:has(>.iw-stats){padding-block:0}

/* A message card on a chosen background is the background.
   ---------------------------------------------------------------------
   A card paints its own panel, which is right while the section stands
   on the page's own background. Pick a background for that section and
   the panel floats inside it: a band of the chosen colour above and
   below, and the row taller by the padding holding it there. Measured
   on the Principal's Message over Gradient 1 -- the card 1741px, the
   section 1791px, 25px of gradient showing at each end.

   Only the message card. About and Management choose their own writing
   colour, which means they chose a background to read it against: the
   About card is dark green with white words, and taking that away put
   white on Gradient 3, which this college has set pale. Measured: 10.40
   before, 1.37 after -- readable to invisible. A card that picked its
   own ink keeps its own panel.

   The message card picks no colour of its own, so it can take the
   section's -- "Words on a gradient", which the college sets to suit
   the gradient it chose. */
.iw-w--on-dark>.iw-msg,.iw-w--on-green>.iw-msg,
.iw-w--on-grad1>.iw-msg,.iw-w--on-grad2>.iw-msg,.iw-w--on-grad3>.iw-msg{
  background:none;border-color:transparent;box-shadow:none;color:inherit}

/* Everything written in it, too. The heading already takes the
   gradient's ink from a rule above; the quote, the name and the role
   were coloured to be read on the white panel that has just gone --
   1.00 against the dark end of Gradient 1, which is invisible. */
.iw-w--on-dark>.iw-msg :is(p,blockquote,cite,b,strong,em,small,span:not(.iw-ic)),
.iw-w--on-green>.iw-msg :is(p,blockquote,cite,b,strong,em,small,span:not(.iw-ic)),
.iw-w--on-grad1>.iw-msg :is(p,blockquote,cite,b,strong,em,small,span:not(.iw-ic)),
.iw-w--on-grad2>.iw-msg :is(p,blockquote,cite,b,strong,em,small,span:not(.iw-ic)),
.iw-w--on-grad3>.iw-msg :is(p,blockquote,cite,b,strong,em,small,span:not(.iw-ic)){
  color:inherit}

/* The outline button was a green edge with green writing, to be read
   against the panel that has gone. */
.iw-w--on-dark>.iw-msg .iw-btn-line,.iw-w--on-green>.iw-msg .iw-btn-line,
.iw-w--on-grad1>.iw-msg .iw-btn-line,.iw-w--on-grad2>.iw-msg .iw-btn-line,
.iw-w--on-grad3>.iw-msg .iw-btn-line{
  border-color:currentColor;color:inherit;background:none}

/* And the section does not pad a card it is no longer framing. */
.iw-w--on-dark:has(>.iw-msg),.iw-w--on-green:has(>.iw-msg),
.iw-w--on-grad1:has(>.iw-msg),.iw-w--on-grad2:has(>.iw-msg),
.iw-w--on-grad3:has(>.iw-msg){padding-block:0}

/* Relative, so Large stays large after the body size is changed in the
   admin rather than becoming the same as Normal. */
.iw-w--text-s{font-size:.92em}
.iw-w--text-l{font-size:1.12em}

.iw-w--space-compact>.iw-sec{margin-top:var(--iw-space-compact)}
.iw-w--space-spacious>.iw-sec{margin-top:var(--iw-space-spacious)}

/* =====================================================================
   The staff on a department's Faculty page

   A card each, grouped under the designation they share. The card is the
   same shape whether or not there is a photograph: a letter in a circle
   stands in for one, so a department that has not collected photographs yet
   still reads as a list of people rather than a list of gaps.
   ===================================================================== */
.iw-staff-group + .iw-staff-group{margin-top:34px}

.iw-staff{list-style:none;margin:0;padding:0;display:grid;gap:var(--iw-gap);
  grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}

.iw-person{display:flex;gap:14px;align-items:flex-start;
  background:var(--iw-surface-panel,#fff);border:1px solid var(--iw-line);border-radius:var(--iw-r);
  padding:16px;min-width:0}

.iw-person-pic{flex:0 0 72px;width:72px;height:72px;border-radius:50%;
  overflow:hidden;background:var(--iw-green-l);display:grid;place-items:center}
.iw-person-pic img{width:100%;height:100%;object-fit:cover;display:block}
.iw-person-letter{font-family:var(--iw-head);font-size:28px;color:var(--iw-green);line-height:1}

.iw-person-body{min-width:0}
.iw-person-name{font-family:var(--iw-head);font-size:17px;line-height:1.25;
  color:var(--iw-green-d);margin:2px 0 0}
.iw-person-role{display:block;font-size:13px;color:var(--iw-muted);margin-top:3px}
/* The note wraps anywhere: a client types what they like into it, and one
   long word is not a reason for a card to push the page sideways. */
.iw-person-note{display:block;font-size:13.5px;line-height:1.5;margin-top:7px;
  color:var(--iw-ink);overflow-wrap:anywhere}


/* --- the card leads somewhere ---------------------------------------- */

/* The whole card is the target, but there is one link in it. A link per
   element -- name, photo, counts -- reads out as three links to the same
   place to anybody using a screen reader, and is three tab stops to get
   past for anybody using a keyboard. */
.iw-person{position:relative;transition:border-color .15s,box-shadow .15s}
.iw-person:hover{border-color:var(--iw-green);box-shadow:0 2px 10px rgb(0 0 0 / .06)}
.iw-person:focus-within{outline:2px solid var(--iw-green);outline-offset:2px}

.iw-person-link{color:inherit;text-decoration:none}
.iw-person-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.iw-person-link:focus-visible{outline:none}
.iw-person:hover .iw-person-link{text-decoration:underline}

/* How much is on their page, without any of it: who is worth opening,
   decided without opening thirty pages to find out. */
.iw-person-has{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:9px;
  font-size:12.5px;color:var(--iw-muted)}
/* The college types its own short names and may type them in any case; a
   tally reads better starting with a capital. Only the first letter, so a
   name of several words is not retitled on its behalf. */
.iw-person-has span::first-letter{text-transform:uppercase}
.iw-person-has strong{color:var(--iw-green-d);font-variant-numeric:tabular-nums}

@media (max-width:600px){
  .iw-person{gap:12px;padding:14px}
  .iw-person-pic{flex-basis:58px;width:58px;height:58px}
  .iw-person-letter{font-size:23px}
}

/* =====================================================================
   One member of staff, at /faculty/<their-slug>

   The page is kept after somebody leaves, because an address printed in a
   prospectus three years ago still has to resolve. iw-profile-gone is the
   line that says so, and it has to read as a statement of fact rather than
   as a warning about something being wrong.
   ===================================================================== */
.iw-profile{max-width:860px}

.iw-profile-top{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap;
  padding-bottom:22px;border-bottom:1px solid var(--iw-line)}

.iw-profile-pic{flex:0 0 150px;width:150px;height:150px;border-radius:50%;
  overflow:hidden;background:var(--iw-green-l);display:grid;place-items:center}
.iw-profile-pic img{width:100%;height:100%;object-fit:cover;display:block}
.iw-profile-pic .iw-person-letter{font-size:56px}

.iw-profile-who{flex:1 1 260px;min-width:0}
.iw-profile-name{margin:0;line-height:1.15}
.iw-profile-role{margin:6px 0 0;color:var(--iw-green);font-weight:600}
.iw-profile-dept{margin:3px 0 0;color:var(--iw-muted)}
.iw-profile-bio{margin:14px 0 0;line-height:1.6;overflow-wrap:anywhere}

.iw-profile-gone{margin:12px 0 0;display:inline-block;
  padding:5px 12px;border-radius:999px;
  background:var(--iw-cream-d);color:var(--iw-ink);font-size:14px}

.iw-profile-part{margin-top:34px}
.iw-profile-head{margin:0 0 14px}

/* What is on this page, and how much of it. A long career makes a long page,
   which is fine -- whoever opened it chose this person. Having to scroll past
   the publications to find out whether there are any awards is not fine. */
.iw-profile-jump{margin-top:26px}
.iw-profile-jump ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.iw-profile-jump a{display:inline-flex;align-items:center;gap:8px;
  padding:7px 14px;border-radius:999px;background:var(--iw-cream-d);
  color:var(--iw-ink);font-size:14px;font-weight:600;text-decoration:none}
.iw-profile-jump a:hover,.iw-profile-jump a:focus-visible{background:var(--iw-green);color:#fff}
.iw-profile-jump a span{font-size:12.5px;font-weight:700;opacity:.75;
  font-variant-numeric:tabular-nums}

/* A section jumped to must not land under the header that is sitting on it. */
.iw-profile-part{scroll-margin-top:96px}

.iw-profile-sub{margin:24px 0 10px;font-size:13.5px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--iw-muted)}
.iw-profile-part>.iw-records+.iw-profile-sub{margin-top:26px}

/* Numbered, because this is a list people cite from, and "the twelfth one
   down" is not a reference anybody can use. A counter rather than the
   browser marker, so the number stays level with the title instead of
   pushing the whole entry sideways. */
.iw-records{list-style:none;margin:0;padding:0;display:grid;gap:16px;counter-reset:iw-rec}
.iw-record{position:relative;padding-inline-start:46px;
  border-inline-start:3px solid var(--iw-gold);counter-increment:iw-rec}
.iw-record::before{content:"[" counter(iw-rec) "]";position:absolute;
  inset-inline-start:14px;top:2px;font-size:13px;font-weight:700;
  color:var(--iw-muted);font-variant-numeric:tabular-nums}
.iw-record-title{margin:0;font-size:16.5px;line-height:1.35;overflow-wrap:anywhere}
.iw-record-authors{margin:4px 0 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.iw-record-about{margin:4px 0 0;font-size:14px;color:var(--iw-muted);overflow-wrap:anywhere}
.iw-record-more{margin:6px 0 0;font-size:14.5px;line-height:1.55;overflow-wrap:anywhere}

/* The abstract is the one genuinely secondary thing here, so it is the one
   thing folded away -- and folded with a details element, not a script, so
   the words are in the page either way: they print, the browser find bar
   reaches them, and a search engine reads them. */
.iw-record-abstract{margin:6px 0 0}
.iw-record-abstract summary{width:fit-content;cursor:pointer;
  font-size:13.5px;font-weight:700;color:var(--iw-green)}
.iw-record-abstract p{margin:6px 0 0;font-size:14.5px;line-height:1.55;overflow-wrap:anywhere}

.iw-record-links{margin:6px 0 0;display:flex;flex-wrap:wrap;gap:4px 18px;font-size:14px}

@media print{
  .iw-profile-jump{display:none}
  .iw-record-abstract summary{display:none}
  .iw-record-abstract>p{display:block}
}

@media (max-width:600px){
  .iw-profile-top{gap:16px}
  .iw-profile-pic{flex-basis:96px;width:96px;height:96px}
  .iw-profile-pic .iw-person-letter{font-size:38px}
  .iw-profile-part{margin-top:26px}
}

/* --- a Staff section placed on a page ---
   The cards are the same ones a department's Faculty page uses, so only the
   wrapper and the plain-names variant need saying here. */
.iw-staffw .iw-staff-group + .iw-staff-group{margin-top:28px}
.iw-stafflist{list-style:none;margin:0;padding:0;display:grid;gap:4px;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.iw-stafflist li{padding:7px 0;border-bottom:1px solid var(--iw-line);min-width:0}
.iw-stafflist-role{display:block;font-size:13px;color:var(--iw-muted)}

/* The section being read, named in the row of links above it. */
.iw-profile-jump a[aria-current] { background: var(--iw-green); color: #fff; }

/* A printed faculty profile with three of its four sections missing is
   worse than a long one. */
@media print {
  .iw-profile-part[hidden] { display: block !important; }
}

/* The letters after somebody's name. Quieter than the designation on a
   card, because a column of them down a department page is a wall of
   full stops otherwise. */
.iw-profile-qual{margin:4px 0 0;color:var(--iw-muted);font-size:14px}
.iw-person-qual{display:block;font-size:12.5px;color:var(--iw-muted);margin-top:2px}

/* ---------- WIDGET: Buttons ----------
   A few links as buttons. They wrap rather than squeeze, so the same
   section reads in the narrow third column of the home page and across the
   full width of a page without anybody choosing which.

   The one setting is for a column too narrow for two to sit together: then
   each takes the whole line. justify-content:center on a stretched button
   would put the words in the middle of a very wide pill on a wide screen,
   so the fill case says so explicitly and the ordinary case does not. */
/* Sharing a grid row, it has to be allowed to shrink. */
.iw-btns{min-width:0}
.iw-btns-row{display:flex;flex-wrap:wrap;gap:10px}
.iw-btns-row--fill{flex-direction:column;align-items:stretch}
.iw-btns-row--fill .iw-btn{justify-content:center}

/* ---------- WIDGET: a list as plain text ----------
   A title and the words under it, nothing else: no date block, no picture,
   no arrow. For a column of announcements where the date is already in the
   words -- "From 30 Oct 2026, ODD Semester Examinations begin" -- and a
   calendar block beside it is the same fact twice. */
.iw-plainlist{padding:18px 20px}

/* In the top row this card is what sets the height of the whole row: the
   slider spans both rows, so it is stretched to whatever the announcements
   and the quick links under them come to. Measured at 1440 wide the row was
   512px, and not one of those pixels was the slider's idea -- it asked for
   498 and was pulled taller.

   So the row is shortened here, where the height actually comes from, and
   the slider follows it down. Only in the top row: the same card further
   down the page has the room and should keep its spacing. */
.iw-hero .iw-plainlist{padding:14px 18px}
.iw-hero .iw-plainlist .iw-head-row{margin-bottom:8px}
.iw-hero .iw-head-row h2{font-size:19px}
.iw-hero .iw-plainlist-items a{padding:8px 2px}
.iw-plainlist-items{list-style:none;margin:0;padding:0}
.iw-plainlist-items li+li{border-top:1px solid var(--iw-line)}

/* The row: words, then the arrow that says the whole row opens something.
   Same shape as the dated list, which is the point -- two lists side by
   side on one page should not behave like two different things. */
.iw-plainlist-items a{display:grid;grid-template-columns:minmax(0,1fr) 14px;gap:12px;
  align-items:center;padding:10px 2px}
.iw-plainlist-items a:hover h3{color:var(--iw-green)}
.iw-plainlist-items a .iw-ic{color:var(--iw-muted)}

/* One line for the title, two for the words under it, and an ellipsis
   where it stops. A list is a column of things to choose between; a
   three-line title pushes the next one off the bottom and the choosing
   gets harder the more there is to choose from. */
.iw-plainlist-items h3{font-size:14.5px;font-weight:600;color:var(--iw-green-d);
  margin:0 0 2px;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.iw-plainlist-items p{margin:0;font-size:12.5px;color:var(--iw-muted);line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- WIDGET: Slider, where the words sit ----------
   A photograph has its subject wherever the photographer put it, and the
   CMS cannot know. Default is bottom left, which is what the design does,
   so a slide nobody touches is unchanged.

   The shading moves with the words rather than staying where it was: dark
   behind the words so they can be read, clear everywhere else so the
   picture can be seen. A fixed gradient with the words moved out of it
   gives white text on a bright sky. */

.iw-slide--right::after{background:linear-gradient(270deg,rgb(var(--iw-grad-slide-a,6 42 22) / calc(.85 * var(--iw-grad-slide-fade, 1))) 0%,rgb(var(--iw-grad-slide-b,6 42 22) / calc(.55 * var(--iw-grad-slide-fade, 1))) 45%,rgb(var(--iw-grad-slide-c,6 42 22) / calc(.05 * var(--iw-grad-slide-fade, 1))) 80%)}
.iw-slide--right .iw-cap{left:40%;right:52px}

.iw-slide--bottom::after{background:linear-gradient(0deg,rgb(var(--iw-grad-slide-a,6 42 22) / calc(.9 * var(--iw-grad-slide-fade, 1))) 0%,rgb(var(--iw-grad-slide-b,6 42 22) / calc(.45 * var(--iw-grad-slide-fade, 1))) 45%,rgb(var(--iw-grad-slide-c,6 42 22) / calc(.05 * var(--iw-grad-slide-fade, 1))) 75%)}
.iw-slide--bottom .iw-cap{left:52px;right:52px}
.iw-slide--bottom .iw-cap p{max-width:640px}

.iw-slide--top::after{background:linear-gradient(180deg,rgb(var(--iw-grad-slide-a,6 42 22) / calc(.9 * var(--iw-grad-slide-fade, 1))) 0%,rgb(var(--iw-grad-slide-b,6 42 22) / calc(.45 * var(--iw-grad-slide-fade, 1))) 45%,rgb(var(--iw-grad-slide-c,6 42 22) / calc(.05 * var(--iw-grad-slide-fade, 1))) 75%)}
.iw-slide--top .iw-cap{top:46px;bottom:auto;right:40%}

/* In the middle: an even wash rather than a gradient, because there is no
   edge for it to run from. */
.iw-slide--centre::after{background:rgba(6,42,22,.6)}
.iw-slide--centre .iw-cap{left:10%;right:10%;top:50%;bottom:auto;transform:translateY(-50%);text-align:center}
.iw-slide--centre .iw-cap p{max-width:none}
.iw-slide--centre .iw-cap-btns{justify-content:center}

/* Arrived at from somewhere else.
   ---------------------------------------------------------------------
   Photos and files links a file to the section that uses it, which is an
   address ending `#w-<id>`. Landing on a twenty-section page with no
   sign of which one was meant is the same as landing at the top of it.

   The ring fades after a few seconds: it is an answer to a question that
   has now been answered, not a state the page is in. scroll-margin-top
   keeps it clear of the menu bar, which is sticky and would otherwise
   sit over the thing being pointed at. */
.iw-w{scroll-margin-top:96px}
.iw-w:target{animation:iw-found 3s ease-out 1}
@keyframes iw-found{
  0%,55%{outline:3px solid var(--iw-gold);outline-offset:4px}
  100%{outline:3px solid rgba(0,0,0,0);outline-offset:4px}}

/* Asked for less movement: the ring is simply there, and stays. */
@media (prefers-reduced-motion: reduce){
  :where(html:not([data-motion="on"])) .iw-w:target{animation:none;outline:3px solid var(--iw-gold);outline-offset:4px}
}
