/* NT Business Calendar · Clickstarter palette */
:root {
  --red: #fe475a;
  --yellow: #ffc82c;
  --blue: #2431fd;
  --light-blue: #1285fe;
  --purple: #b65fff;
  --teal: #00eee1;
  --ink: #111326;
  --muted: #5b5f76;
  --line: #e3e5ef;
  --soft: #f5f6fb;
  --radius: 14px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* filters hide cards with the hidden attribute */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: #fff; }
a { color: var(--blue); }
a:hover { color: var(--light-blue); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: 1.3rem; }
h3 { font-weight: 700; font-size: 1.08rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 28px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.05rem; padding-left: 12px; border-left: 2px solid var(--line); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
@media (max-width: 720px) { .site-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin: 0 -8px; padding-bottom: 6px; } .site-nav a { white-space: nowrap; } .brand-logo { height: 22px; } }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--soft); color: var(--blue); }

/* Hero */
.hero { background: var(--blue); color: #fff; padding: 56px 0 48px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero p { font-size: 1.1rem; max-width: 60ch; margin: 0; opacity: .95; }
.hero a { color: var(--yellow); }
.hero-small { padding: 40px 0 32px; }
.hero-small h1 { max-width: none; }

/* Filters */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: -28px 0 20px; position: relative; box-shadow: 0 8px 24px rgba(17, 19, 38, .08); }
.filters input[type="search"], .filters select { width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.f-check { font-size: .95rem; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.f-clear, .linkish { font: inherit; font-size: .95rem; background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 6px; }
.filters .f-cats { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filters .f-search { min-width: 0; }
.filters .f-clear { justify-self: start; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .f-search { grid-column: 1 / -1; } }

.view-toggle { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; }
.view-toggle button { font: inherit; font-weight: 600; padding: 8px 18px; border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 999px; cursor: pointer; }
.view-toggle button[aria-selected="true"] { background: var(--blue); color: #fff; }
.count { margin-left: auto; color: var(--muted); font-size: .92rem; }

/* Event list */
.week { margin: 0 0 28px; }
.week h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.event-list { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.event:hover { border-color: var(--light-blue); box-shadow: 0 4px 16px rgba(36, 49, 253, .08); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--soft); border-radius: 12px; padding: 8px 0; height: max-content; }
.d-wd, .d-m { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.d-n { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--blue); }
.event h3 { margin: 0 0 4px; }
.event h3 a { color: var(--ink); text-decoration: none; }
.event h3 a:hover { color: var(--blue); text-decoration: underline; }
.meta { margin: 0 0 4px; font-size: .94rem; color: var(--muted); }
.org { color: var(--ink); font-weight: 600; }
.chips { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.chip-type-networking { background: #ffe3e6; }
.chip-type-workshop { background: #dcebff; }
.chip-type-webinar { background: #f0e1ff; }
.chip-type-training { background: #ccfbf8; }
.chip-type-conference { background: #dfe1ff; }
.chip-type-awards { background: #fff2c8; }
.chip-type-program { background: #e3fbf9; }
.is-cancelled { opacity: .65; }
.cancelled { color: var(--red); }
.empty { padding: 24px; text-align: center; color: var(--muted); }

/* Calendar */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head h2 { margin: 0 auto 0 0; font-size: 1.4rem; }
.cal-head button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.cal-head button:hover { border-color: var(--blue); color: var(--blue); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 8px; background: var(--soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.cal-day.other { background: #fbfbfd; color: #a5a8bb; }
.cal-day.today .cal-num { background: var(--yellow); color: var(--ink); }
.cal-day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-num { font-weight: 700; font-size: .85rem; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-ev { display: block; font-size: .76rem; line-height: 1.25; padding: 3px 6px; border-radius: 6px; background: #dcebff; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-ev.t-networking { background: #ffe3e6; } .cal-ev.t-webinar { background: #f0e1ff; } .cal-ev.t-training { background: #ccfbf8; }
.cal-ev.t-conference { background: #dfe1ff; } .cal-ev.t-awards { background: #fff2c8; } .cal-ev.t-program { background: #e3fbf9; }
.cal-more { font-size: .74rem; color: var(--muted); padding-left: 4px; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.cal-daylist { margin-top: 20px; }
@media (max-width: 720px) {
  .cal-day { min-height: 56px; align-items: center; }
  .cal-ev, .cal-more { display: none; }
  .cal-dots { display: flex; justify-content: center; }
  .cal-dow { text-align: center; padding: 6px 2px; }
}

/* Event page */
.event-hero { background: var(--blue); color: #fff; padding: 36px 0 32px; }
.event-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.event-hero a { color: var(--yellow); }
.crumbs { font-size: .9rem; margin: 0 0 10px; opacity: .9; }
.event-when { font-size: 1.1rem; font-weight: 600; margin: 0; color: var(--yellow); }
.event-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
@media (max-width: 820px) { .event-detail { grid-template-columns: 1fr; } }
.lead { font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--blue); color: var(--blue); background: #fff; cursor: pointer; }
.btn:hover { background: var(--soft); color: var(--blue); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--light-blue); border-color: var(--light-blue); color: #fff; }
.event-facts { background: var(--soft); border-radius: var(--radius); padding: 20px; height: max-content; }
.event-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.event-facts dt { font-weight: 700; }
.event-facts dd { margin: 0; }
.related { padding-bottom: 40px; }

/* Tables, prose, forms */
.table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prose { padding-top: 28px; padding-bottom: 40px; }
.prose h2 { margin-top: 1.6em; }
.form { display: grid; gap: 16px; padding: 28px 0 48px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form label.check { display: flex; align-items: center; gap: 8px; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #c9ccdb; border-radius: 10px; width: 100%; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.status { font-weight: 600; }
.status.ok { color: #0a7a52; } .status.err { color: #c2182b; }

/* Footer */
.site-footer { background: var(--ink); color: #d7d9e6; padding: 36px 0; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: var(--yellow); }
.site-footer p { margin: 0 0 8px; max-width: 70ch; }

/* Find a date */
.plan-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; display: grid; gap: 14px; }
.plan-form legend { font-weight: 800; font-size: 1.1rem; padding: 0 6px; }
.plan-form .label { margin: 4px 0 -6px; font-weight: 600; }
.radios { display: grid; gap: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; user-select: none; }
.pill small { font-weight: 400; color: var(--muted); }
.pill input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.pill input:checked + span small { color: #dfe1ff; }
.pill input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.plan-results { padding: 8px 0 24px; scroll-margin-top: 90px; }
.plan-results h2 { margin-top: 1.4em; }
.suggestions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.suggestion { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.s-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.s-head h3 { margin: 0; }
.s-time { margin: 2px 0 0; color: var(--blue); font-weight: 700; }
.badge { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-perfect { background: var(--teal); color: var(--ink); }
.badge-close { background: #fff2c8; color: var(--ink); }
.s-reasons { list-style: none; padding: 0; margin: 12px 0; font-size: .92rem; display: grid; gap: 4px; }
.s-reasons li { padding-left: 22px; position: relative; }
.s-reasons li::before { position: absolute; left: 0; font-weight: 800; }
.s-reasons .good::before { content: "\2713"; color: #0a7a52; }
.s-reasons .bad::before { content: "!"; color: var(--red); left: 5px; }
.s-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.btn-small { padding: 7px 14px; font-size: .88rem; }
.key-dates-box { margin: 28px 0 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.key-dates-box summary { font-weight: 700; cursor: pointer; }
.key-dates td:first-child { white-space: nowrap; }

/* Categories */
.f-cats { grid-column: 1 / -1; }
.pill-small span { padding: 6px 14px; font-size: .9rem; }
.chip-cat-major { background: var(--yellow); }
.chip-cat-community { background: #ccfbf8; }
.event.cat-major { border-left: 5px solid var(--yellow); }
.event.cat-community { border-left: 5px solid var(--teal); }
.chip-type-festival, .chip-type-market { background: #fff2c8; }
.chip-type-sport { background: #ffe3e6; }
.chip-type-arts { background: #f0e1ff; }
.chip-type-community { background: #ccfbf8; }
.cal-ev.c-major { background: var(--yellow); font-weight: 700; }
.cal-ev.c-community { background: #e3fbf9; }
