/* Every page except the home page: a solid header and a light, readable page area. */
.top{background:var(--red);box-shadow:0 1px 0 rgba(255,255,255,.18)}
.page{background:var(--mist);color:var(--ink);padding:calc(96px + 3vw) var(--pad) 80px;min-height:70vh}
.page>*{max-width:760px;margin-left:auto;margin-right:auto}
.page>.wide{max-width:1100px}
.page h1{font-size:clamp(34px,5vw,56px);margin-top:0;margin-bottom:20px;color:var(--ink)}
.page h2{font-size:clamp(24px,3vw,32px);margin-top:40px;margin-bottom:12px}
.page h3{font-size:20px;margin-top:28px;margin-bottom:8px}
.page p,.page li{font-size:18px;line-height:1.65}
.page a{color:var(--red-deep);font-weight:600}
.page a.btn{color:#fff;background:var(--red);border-color:var(--red);font-size:18px;padding:15px 26px}
.page a.btn:hover{background:var(--ink);border-color:var(--ink)}
.page img{border-radius:var(--r);height:auto}
.page table{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--r);overflow:hidden}
/* On a phone a wide table (the timetable) scrolls sideways inside its own box instead of being cut off at the screen edge */
@media (max-width:700px){.page table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}
.page th,.page td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);font-size:17px}
.page th{font-family:var(--display)}
.page .card{background:#fff;border-radius:var(--r);padding:24px;box-shadow:0 1px 0 var(--line)}
.page .muted{opacity:.75}
.page .post-list{list-style:none;padding:0;display:grid;gap:16px}
.page .post-list a{font-size:21px;text-decoration:none}
.page .post-list a:hover{text-decoration:underline}
/* Forms: big type, big targets, one clear button. */
.page .narrow{max-width:520px}
.page .narrow h1{font-size:clamp(30px,4vw,42px)}
.page label{display:block;font-weight:700;font-size:18px;margin-top:18px;margin-bottom:6px}
.page input[type=email],.page input[type=password],.page input[type=text],.page input[type=tel],.page input[type=number],.page select,.page textarea{width:100%;font:inherit;font-size:19px;padding:14px 16px;border:2px solid var(--ink-2);border-radius:12px;background:#fff;color:var(--ink)}
.page input:focus,.page select:focus,.page textarea:focus,.page button:focus-visible,.page a:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.page .btn-big{display:block;width:100%;margin-top:22px;font:inherit;font-size:20px;font-weight:700;padding:17px 24px;border:0;border-radius:999px;background:var(--red);color:#fff;cursor:pointer;text-align:center;text-decoration:none}
.page .btn-big:hover{background:var(--ink)}
.page .btn-plain{font:inherit;font-size:17px;font-weight:600;background:none;border:0;color:var(--red-deep);text-decoration:underline;cursor:pointer;padding:10px 0}
.page .alert{background:#fff;border-left:6px solid var(--red);padding:14px 16px;border-radius:10px;font-weight:600}
.page .ok{background:#fff;border-left:6px solid #1E8E5A;padding:14px 16px;border-radius:10px;font-weight:600}
/* Booking and basket */
.page .when{font-family:var(--display);font-weight:700;font-size:24px;margin-top:0}
.page .when small{font-family:var(--body);font-weight:400;font-size:17px}
.page .dates{list-style:none;padding:0;display:grid;gap:14px}
.page .dates li{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
.page .dates li:last-child{border-bottom:0;padding-bottom:0}
/* The list as its own white panel (the online classes page): keep the panel's padding, which .dates would otherwise zero */
.page .dates.card{padding:22px clamp(16px,4vw,28px)}
.page .dates .when{font-size:19px;margin-bottom:0}
.page .dates .btn-big{margin-top:0;width:auto;font-size:17px;padding:13px 20px;white-space:nowrap}
.page .lines{list-style:none;padding:0;margin-top:0}
.page .lines li{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:14px 0;border-bottom:1px solid var(--line)}
.page .line-name{font-weight:600}
.page .line-price{font-weight:700;text-align:right}
.page form.inline{display:inline}
.page .totals{display:grid;grid-template-columns:1fr auto;gap:8px 16px;font-size:18px;margin-top:18px;margin-bottom:0}
.page .totals dd{margin:0;text-align:right}
.page .totals .total{font-family:var(--display);font-weight:800;font-size:24px}
.page details.card{margin-top:20px}
.page summary{font-weight:700;font-size:18px;cursor:pointer;padding:6px 0}
.page>.card+.card,.page>h1+.card{margin-top:20px}
/* Checkout */
.page .testpay{border:2px dashed var(--sun);border-radius:12px;padding:14px 16px;margin-top:8px}
.page .testpay legend{font-weight:700;padding:0 6px}
.page .testpay label,.page label.tick{display:flex;gap:10px;align-items:center;font-weight:600;margin-top:12px}
.page input[type=radio],.page input[type=checkbox]{width:24px;height:24px;accent-color:var(--red)}
.page .gp-field{min-height:58px}
.page .gp-field iframe,.page .gp-submit iframe{width:100%;border:0}
.page .gp-submit{margin-top:22px;min-height:64px}
.page .challenge{position:fixed;inset:0;z-index:100;background:rgba(25,29,48,.7);display:grid;place-items:center;padding:16px}
.page .challenge iframe{width:min(500px,100%);height:min(600px,90vh);border:0;border-radius:var(--r);background:#fff}
/* Account */
.page .classes{list-style:none;padding:0;display:grid;gap:22px}
.page .classes li{padding-bottom:22px;border-bottom:1px solid var(--line)}
.page .classes .when{margin-bottom:10px}
.page .classes .btn-big{margin-top:0}
.page .btn-big.off{background:#e9e4e2;color:var(--ink-2);cursor:default;font-size:18px;margin-bottom:0}
.page .btn-big.second{background:#fff;color:var(--red);border:2px solid var(--red)}
.page .btn-big.second:hover{background:var(--ink);border-color:var(--ink);color:#fff}
/* Admin */
.page .admin-nav{display:flex;flex-wrap:wrap;gap:8px 22px;padding-bottom:18px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.page .admin-nav a{text-decoration:none;font-size:18px}
.page .admin table{margin-top:16px}
.page .admin td{vertical-align:top}
.page .admin .card{margin-top:20px;max-width:760px}
.page .admin form.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.page .admin form.row input,.page .admin form.row select{width:auto;max-width:150px;font-size:16px;padding:8px 10px}
.page textarea{font-family:inherit}
.page .admin textarea#html{font-family:ui-monospace,Consolas,monospace;font-size:15px}

/* social login buttons */
.page .social{margin-top:26px}
.page .social-or{text-align:center;color:var(--ink-2);margin:0 0 4px}
/* Same height, logo and words lined up on the left, one line wherever it fits; on very small phones the rows stay equal */
.page .social-list{display:grid;grid-auto-rows:1fr;row-gap:12px;margin-top:8px}
.page .social-list>form{display:flex;margin:0}
.page .social-btn{display:flex;align-items:center;justify-content:flex-start;gap:16px;width:100%;min-height:66px;box-sizing:border-box;margin:0;font:inherit;font-size:clamp(16px,4.4vw,19px);font-weight:700;line-height:1.2;text-align:left;padding:10px 22px 10px 26px;border:2px solid #747775;border-radius:999px;background:#fff;color:#1f1f1f;cursor:pointer}
.page .social-btn span{flex:1}
.page .social-btn:hover{background:#f6f6f6}
.page .social-btn:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.page .social-btn svg{width:24px;height:24px;flex:none}
/* admin: holiday dates calendar */
.page .hol-cal{margin-top:18px}
.page .hol-head,.page .hol-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.page .hol-head span{font-weight:700;font-size:15px;padding:0 6px 6px}
.page .hol-week{margin-bottom:6px}
.page .hol-day{background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 8px 8px;margin:0;min-width:0;min-height:76px}
.page .hol-day legend{float:left;width:100%;font-weight:700;font-size:15px;padding:0 0 4px}
.page .hol-day.past{opacity:.45}
.page .hol-day.empty{background:transparent}
.page .hol-day label{display:flex;gap:6px;align-items:flex-start;font-size:14px;line-height:1.3;padding:5px 0;cursor:pointer;clear:both}
.page .hol-day input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--red)}
.page .hol-all{font-weight:700;border-bottom:1px dashed var(--line)}
.page .hol-class.off{font-size:14px;line-height:1.3;margin:5px 0;opacity:.6;clear:both}
.page .hol-class.gone{text-decoration:line-through}
.page .hol-class em{font-style:normal;opacity:.75}
@media (max-width:900px){
  .page .hol-head{display:none}
  .page .hol-week{grid-template-columns:1fr;gap:6px}
  .page .hol-day.empty,.page .hol-day.past{display:none}
  .page .hol-day{min-height:0;padding:10px 14px}
  .page .hol-day legend{font-size:17px}
  .page .hol-day label,.page .hol-class.off{font-size:17px;padding:8px 0}
  .page .hol-day input{width:26px;height:26px}
}
/* admin: lists of things to pick (Pages) */
.page .admin-list{list-style:none;margin:16px 0 0;padding:4px 0;max-width:760px}
.page .admin-list li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;padding:14px 24px;border-bottom:1px solid var(--line)}
.page .admin-list li:last-child{border-bottom:0}
.page .admin-list a{font-size:19px;text-decoration:none}
.page .admin-list a:hover{text-decoration:underline}
.page .admin-list .muted{font-size:15px}
.page .admin-list li.current{background:#FBF3F1;box-shadow:inset 4px 0 0 var(--red)}
.page .admin form.card{max-width:760px}
