/*
  Barnsley College eduroam Guide

  EDITING THE SITE
  - Replace college-logo.svg to change the header and footer logo.
  - The main colours are listed under :root below.
  - Put FSMeWeb-Regular.woff beside index.html and site.css.
*/

@font-face {
  font-family: "FS Me";
  src: url("FSMeWeb-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

:root {
  --red: #b20b32;
  --red-dark: #7d0826;
  --red-soft: #f8e9ed;
  --navy: #162a3b;
  --ink: #1c2732;
  --muted: #5d6872;
  --line: #dfe3e5;
  --paper: #ffffff;
  --canvas: #f5f5f2;
  --blue: #0b67b2;
  --blue-soft: #eaf4fb;
  --green-soft: #e8f5ee;
  --amber: #9b5a00;
  --amber-soft: #fff4dc;
  --shadow: 0 18px 48px rgb(22 42 59 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "FS Me", Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.58; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 4px solid #f2bd29; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
p:last-child { margin-bottom: 0; }

.site-header { width: min(1180px, calc(100% - 40px)); min-height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 178px; height: auto; }
.header-help { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); font-size: 13px; text-decoration: none; }
.header-help strong { color: var(--red); font-size: 18px; }

.hero { width: min(1180px, calc(100% - 40px)); min-height: 460px; margin: 0 auto 26px; padding: clamp(42px, 7vw, 82px); border-radius: 26px; background: linear-gradient(135deg, var(--navy), #25465d); color: white; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 70px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; width: 390px; height: 390px; right: -140px; top: -180px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; box-shadow: 0 0 0 58px rgb(255 255 255 / 4%), 0 0 0 116px rgb(255 255 255 / 3%); }
.hero-copy { position: relative; z-index: 1; }
.hero-kicker, .eyebrow { display: block; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker { color: #f1c5d0; }
.hero h1 { max-width: 720px; margin: 14px 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 660px; color: #dbe5eb; font-size: 20px; line-height: 1.55; }
.primary-button, .secondary-button, .inline-button { display: inline-flex; align-items: center; gap: 14px; border-radius: 9px; font-weight: 800; text-decoration: none; }
.primary-button { margin-top: 22px; padding: 15px 20px; background: var(--red); color: white; }
.primary-button:hover { background: #ca1642; }
.wifi-card { min-height: 260px; padding: 32px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 24px; background: rgb(255 255 255 / 8%); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; }
.wifi-card strong { margin-top: 18px; font-size: 30px; }
.wifi-card span { color: #c7d6df; }
.wifi-symbol { width: 112px; height: 82px; position: relative; }
.wifi-symbol i { position: absolute; left: 50%; border: 8px solid transparent; border-top-color: #7cd2dc; border-radius: 50%; transform: translateX(-50%); }
.wifi-symbol i:nth-child(1) { width: 112px; height: 112px; top: 0; }
.wifi-symbol i:nth-child(2) { width: 76px; height: 76px; top: 20px; }
.wifi-symbol i:nth-child(3) { width: 38px; height: 38px; top: 42px; background: #7cd2dc; border: 0; }

.quick-start, .device-picker, .guides, .cat-section, .support-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.quick-start { padding: 64px 0 72px; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2, .section-heading-row h2, .cat-section h2, .support-section h2 { margin: 7px 0 10px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p, .section-heading-row > p { color: var(--muted); }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.credentials > div { min-height: 170px; padding: 26px; background: var(--paper); display: flex; flex-direction: column; }
.credentials span { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credentials strong { margin: 12px 0 8px; font-size: 19px; overflow-wrap: anywhere; }
.credentials small { color: var(--muted); line-height: 1.45; }
.important-row { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.notice { padding: 20px; border: 1px solid #c7deeb; border-radius: 13px; background: var(--blue-soft); display: grid; grid-template-columns: 28px 1fr; gap: 13px; }
.notice-warning { border-color: #efd5a5; background: var(--amber-soft); }
.notice-success { border-color: #bee0cc; background: var(--green-soft); }
.notice-icon { width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 50%; display: grid; place-items: center; color: var(--blue); font-size: 14px; font-weight: 900; }
.notice-warning .notice-icon { color: var(--amber); }
.notice strong { display: block; margin-bottom: 3px; }
.notice p { color: var(--muted); font-size: 15px; }

.device-picker { padding: 68px 0; border-top: 1px solid var(--line); }
.section-heading-row { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.device-card { min-height: 225px; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.device-card:hover { transform: translateY(-3px); border-color: #b6bec3; box-shadow: var(--shadow); }
.device-card.is-selected { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.device-index { color: #a7afb5; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.device-label { margin-top: 24px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.device-card strong { margin: 6px 0; font-size: 21px; line-height: 1.2; }
.device-card > span:nth-of-type(3) { color: var(--muted); font-size: 15px; }
.device-card i { margin-top: auto; padding-top: 20px; color: var(--blue); font-size: 14px; font-style: normal; font-weight: 800; }

.guides { padding-bottom: 70px; }
.guide-section { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); overflow: hidden; scroll-margin-top: 20px; }
.guide-section.is-open { border-color: #b7c2c8; box-shadow: var(--shadow); }
.guide-heading { width: 100%; padding: 23px 27px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.guide-heading-copy { display: flex; flex-direction: column; }
.guide-heading .eyebrow { font-size: 11px; }
.guide-title { margin: 5px 0 1px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.guide-summary { color: var(--muted); font-size: 15px; }
.guide-toggle { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 25px; }
.guide-content { padding: 0 28px 32px; border-top: 1px solid var(--line); }
.guide-content[hidden] { display: none; }
.steps { max-width: 1040px; margin: 0 auto; }
.step { padding: 42px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 54px; align-items: start; }
.step:last-child { border-bottom: 0; }
.step-copy { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 17px; }
.step-number { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: white; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 3px 0 10px; font-size: 25px; line-height: 1.22; }
.step-text { color: var(--muted); }
.step-text strong { color: var(--ink); }
.step-text .notice { margin-top: 20px; }
.screenshot { margin: 0; }
.screenshot-frame { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f0f1f2; display: grid; place-items: center; }
.screenshot img { display: block; width: auto; max-width: 100%; max-height: 560px; border-radius: 5px; }
.screenshot-narrow { max-width: 330px; margin-inline: auto; }
.screenshot figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.inline-button { margin-top: 12px; padding: 10px 14px; background: var(--blue); color: white; font-size: 14px; }
.segmented-wrap { max-width: 780px; margin: 28px auto 0; padding: 18px; border-radius: 13px; background: #f0f1f2; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.segmented-wrap > span { font-weight: 800; }
.segmented { padding: 4px; border-radius: 9px; background: white; display: flex; }
.segmented button { padding: 10px 15px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.segmented button.is-active { background: var(--navy); color: white; }
.settings-list { margin: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.settings-list div { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.settings-list div:last-child { border-bottom: 0; }
.settings-list dt { color: var(--ink); font-weight: 800; }
.settings-list dd { margin: 1px 0 0; }
.help-grid { padding-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-grid article { padding: 27px; border: 1px solid var(--line); border-radius: 13px; background: #fafafa; }
.help-grid article > span { color: var(--red); font-size: 13px; font-weight: 800; }
.help-grid h3 { margin: 13px 0 8px; }
.help-grid p { color: var(--muted); }

.cat-section { margin-bottom: 70px; padding: 38px; border-radius: 18px; background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cat-section > div { max-width: 760px; }
.cat-section .eyebrow { color: #f1c5d0; }
.cat-section h2 { margin-bottom: 10px; }
.cat-section p { color: #d2dde4; }
.secondary-button { flex: 0 0 auto; padding: 14px 18px; background: white; color: var(--navy); }
.support-section { margin-bottom: 40px; padding: 55px; border-radius: 18px; background: var(--red-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.support-section > div:first-child p { color: var(--muted); }
.support-options { display: grid; gap: 12px; }
.support-options a { padding: 17px 19px; border: 1px solid #e3c1ca; border-radius: 11px; background: white; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.support-options span { color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.support-options strong { overflow-wrap: anywhere; }
footer { width: min(1180px, calc(100% - 40px)); min-height: 120px; margin: 0 auto; padding: 30px 0 48px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
footer p { color: var(--muted); font-size: 14px; text-align: right; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .wifi-card { min-height: 210px; }
  .credentials, .device-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 28px; }
  .step-media { padding-left: 59px; }
  .cat-section, .support-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { min-height: 72px; }
  .brand img { width: 145px; }
  .header-help span { display: none; }
  .header-help strong { font-size: 15px; }
  .hero { width: calc(100% - 24px); min-height: 0; margin-bottom: 10px; padding: 38px 24px; border-radius: 17px; }
  .hero h1 { font-size: 43px; }
  .hero p { font-size: 17px; }
  .wifi-card { display: none; }
  .quick-start, .device-picker, .guides, .cat-section, .support-section { width: calc(100% - 24px); }
  .quick-start, .device-picker { padding: 48px 0; }
  .credentials, .important-row, .device-grid, .help-grid { grid-template-columns: 1fr; }
  .credentials > div { min-height: 0; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .device-card { min-height: 195px; }
  .guide-heading { padding: 20px; }
  .guide-content { padding: 0 18px 24px; }
  .guide-title { font-size: 21px; }
  .guide-summary { display: none; }
  .step { padding: 30px 0; }
  .step-copy { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .step-number { width: 36px; height: 36px; }
  .step h3 { font-size: 21px; }
  .step-media { padding-left: 0; }
  .segmented-wrap { align-items: stretch; flex-direction: column; }
  .segmented { display: grid; grid-template-columns: 1fr; }
  .cat-section, .support-section { margin-bottom: 24px; padding: 27px 23px; }
  .secondary-button { align-self: flex-start; }
  footer { flex-direction: column; align-items: flex-start; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device-card { transition: none; }
}
