/* Westlyn Core — styles for the dynamic blocks (values taken from the original site). */

/* ---------- Enquiry form ---------- */
.wl-f { position: relative; background: #fff; border: 1px solid transparent; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px;
	box-shadow: 0 1px 0 rgba(12,27,51,0.04), 0 22px 44px -30px rgba(12,27,51,0.3); font-family: var(--wp--preset--font-family--sans); }
.wl-f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.wl-f-field { display: flex; flex-direction: column; gap: 8px; }
.wl-f-field > label { font-weight: 600; font-size: 13px; color: #0C1B33; }
.wl-f-optional { font-weight: 500; color: #667085; }
.wl-f-input { width: 100%; height: 50px; padding: 0 14px; background: #fff; border: 1px solid #D5D1C8; border-radius: 2px; font-family: inherit; font-size: 16px; color: #0C1B33; }
.wl-f-select { padding: 0 12px; }
.wl-f-textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.wl-f-input:focus-visible { outline: none; border-color: #0C1B33; box-shadow: 0 0 0 3px rgba(201,181,138,0.45); }
.wl-f-input.is-invalid { border-color: #A33A2B; }
.wl-f-err { font-size: 13px; line-height: 1.5; color: #A33A2B; }
.wl-f-err-indent { padding-left: 32px; }
.wl-f-consent { display: flex; flex-direction: column; gap: 12px; }
.wl-f-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: #4B5565; cursor: pointer; }
.wl-f-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #0C1B33; }
.wl-f-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 4px; }
.wl-f-btn { height: 54px; padding: 0 28px; background: var(--wp--preset--color--night, #0A1428); color: #fff; border: 0; border-radius: 2px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--gold, #BF9B5F); transition: transform .22s ease, background-color .2s ease; }
.wl-f-btn:hover { background: #14223D; transform: translateY(-2px); }
.wl-f-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.wl-f-btn:focus-visible { outline: 2px solid #C9B58A; outline-offset: 3px; }
.wl-f-senderr { font-size: 13.5px; line-height: 1.5; color: #A33A2B; max-width: 340px; display: block; }
.wl-f-sent { background: #fff; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 0 rgba(12,27,51,0.04), 0 22px 44px -30px rgba(12,27,51,0.3); }
.wl-f-sent-bar { width: 28px; height: 2px; background: var(--wp--preset--color--gold, #BF9B5F); }
.wl-f-sent-title { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 26px; line-height: 1.15; color: #0C1B33; }
.wl-f-sent-text { margin: 0; font-size: 16px; line-height: 1.6; color: #4B5565; }
.wl-f-sent-text strong { color: #0C1B33; font-weight: 600; }
.wl-f-btn-outline { height: 46px; padding: 0 20px; background: transparent; color: #0C1B33; border: 1px solid #0C1B33; border-radius: 2px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.wl-f-btn-outline:hover { background: #0C1B33; color: #fff; }
.wl-req { color: #A33A2B; font-weight: 700; }
.wl-req-note { margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: #4B5565; }
.wl-rating { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #0C1B33; text-decoration: none; }
.wl-rating-sm { font-size: 13px; }
.wl-rating-stars { color: var(--wp--preset--color--gold, #BF9B5F); font-size: 16px; letter-spacing: 2px; }
.wl-rating-count { font-weight: 500; }

/* "I'm not a robot" */
.wl-cap { display: flex; flex-direction: column; gap: 6px; }
.wl-cap-box { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; min-height: 56px; padding: 0 18px 0 14px; border: 1px solid #D5D1C8; border-radius: 2px; background: #F7F5F0; cursor: pointer; font-size: 15px; font-weight: 600; color: #0C1B33; }
.wl-cap-box input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #0C1B33; cursor: pointer; }
.wl-cap-state { width: 18px; height: 18px; flex: none; }
.wl-cap[data-state="busy"] .wl-cap-state { border: 2px solid #D5D1C8; border-top-color: #0C1B33; border-radius: 50%; animation: wl-cap-spin .7s linear infinite; }
.wl-cap[data-state="ok"] .wl-cap-state { background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%231F7A4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wl-cap[data-state="ok"] .wl-cap-box { border-color: #1F7A4D; cursor: default; }
.wl-cap-msg { font-size: 13px; line-height: 1.5; color: #4B5565; }
.wl-cap-msg:empty { display: none; }
.wl-cap-msg.is-bad { color: #A33A2B; }
@keyframes wl-cap-spin { to { transform: rotate(360deg); } }

/* ---------- Prospectus band ---------- */
.wl-pros { background: var(--wp--preset--color--night, #0A1428); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.wl-pros-in { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.wl-pros-cover img { display: block; width: 100%; height: auto; box-shadow: 0 28px 50px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(201,181,138,.35); transform: rotate(-2deg); transition: transform .4s ease; filter: none; }
.wl-pros-cover:hover img { transform: rotate(0deg) translateY(-4px); }
.wl-pros-text { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.wl-pros-eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #D9C9A3; }
.wl-pros-eyebrow span { width: 28px; height: 1px; background: #C9B58A; }
.wl-pros h2 { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; color: #fff; text-wrap: balance; }
.wl-pros p { margin: 0; font-size: 16.5px; line-height: 1.7; color: #C8CFDB; }
.wl-pros-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.wl-pros-actions > span { font-size: 13px; color: #A9B3C4; }
.wl-pros-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 2px; background: var(--wp--preset--color--gold, #BF9B5F); color: #0C1B33; font-family: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.wl-pros-btn:hover { background: #D9C9A3; color: #0C1B33; }
.wl-pros-dl { align-self: flex-start; margin-top: 4px; background: #0C1B33; color: #fff; }
@media (max-width: 720px) { .wl-pros-in { grid-template-columns: 1fr; } .wl-pros-cover { max-width: 190px; } .wl-pros-btn { width: 100%; } }

/* ---------- Program facts ---------- */
.wl-hero-facts { margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(50%, 180px), 1fr)); border-top: 1px solid rgba(255,255,255,0.16); }
.wl-hero-facts > div { padding: 22px 16px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.wl-hero-facts dt { font-size: 13px; color: #AEB7C7; }
.wl-hero-facts dd { margin: 0; font-weight: 600; font-size: 22px; color: #fff; }
.wl-glance { flex: 0 1 340px; min-width: 280px; display: flex; flex-direction: column; background: #fff; border: 1px solid #E4E1DA; }
.wl-glance-head { padding: 24px 24px 8px; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--gold-text, #8A6A35); }
.wl-glance-list { margin: 0; padding: 0 24px; }
.wl-glance-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEEBE5; }
.wl-glance-list > div:last-child { border-bottom: 0; }
.wl-glance-list dt { font-size: 14px; color: #667085; }
.wl-glance-list dd { margin: 0; font-weight: 600; font-size: 14px; color: #0C1B33; text-align: right; }
.wl-glance-actions { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.wl-glance-btn, .wl-glance-call { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 2px; font-weight: 600; font-size: 14px; text-decoration: none; }
.wl-glance-btn { background: var(--wp--preset--color--night, #0A1428); color: #fff; box-shadow: inset 0 -2px 0 var(--wp--preset--color--gold, #BF9B5F); }
.wl-glance-call { border: 1px solid #0C1B33; color: #0C1B33; }

/* ---------- Program cards: homepage ---------- */
.wl-pc-home { display: flex; flex-wrap: wrap; gap: 24px; }
.wl-pc-feature { flex: 2 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); background: #fff; box-shadow: 0 1px 0 rgba(12,27,51,0.04), 0 22px 44px -30px rgba(12,27,51,0.3); }
.wl-pc-feature-media { position: relative; min-height: 280px; overflow: hidden; background: repeating-linear-gradient(135deg, #ECE9E2 0 1px, #F1EEE8 1px 12px); }
.wl-pc-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.wl-pc-feature-media:hover img { transform: scale(1.04); }
.wl-pc-feature-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.wl-pc-feature-text { display: flex; flex-direction: column; gap: 14px; }
.wl-pc-feature h3 { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 28px; color: #0C1B33; }
.wl-pc-feature p { margin: 0; font-size: 16px; line-height: 1.6; color: #4B5565; }
.wl-pc-pill { align-self: flex-start; padding: 6px 10px; background: #F6F5F2; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #0C1B33; }
.wl-pc-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--wp--preset--color--night, #0A1428); color: #fff !important; border-radius: 2px; font-weight: 600; font-size: 14px; text-decoration: none !important;
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--gold, #BF9B5F); background-image: none !important; }
.wl-pc-btn:hover { background: #14223D; }
.wl-pc-btn span { color: var(--wp--preset--color--gold-light, #D9BE8C); }
.wl-pc-also { flex: 1 1 300px; min-width: 0; border: 1px solid #D5D1C8; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.wl-pc-also-list { display: flex; flex-direction: column; gap: 14px; }
.wl-pc-also-label { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #667085; }
.wl-pc-also-item { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #E4E1DA; padding: 16px 18px; text-decoration: none !important; background-image: none !important; }
.wl-pc-also-item:hover { border-color: #0C1B33; }
.wl-pc-also-title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 21px; color: #0C1B33; }
.wl-pc-also-meta { font-size: 13.5px; line-height: 1.5; color: #4B5565; }
.wl-pc-compare { align-self: flex-start; padding: 6px 0; border-bottom: 1px solid #0C1B33; font-weight: 600; font-size: 14px; color: #0C1B33; text-decoration: none; background-image: none !important; }

/* ---------- Program directory ---------- */
.wl-pd { display: flex; flex-direction: column; gap: 28px; }
.wl-pd-filters { background: #fff; border: 1px solid #E4E1DA; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.wl-pd-field { display: flex; flex-direction: column; gap: 8px; }
.wl-pd-field label { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #667085; }
.wl-pd-input { height: 48px; }
.wl-pd-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.wl-pd-count { font-weight: 600; font-size: 14px; color: #0C1B33; }
.wl-pd-clear { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; font-size: 14px; color: #0C1B33; text-decoration: underline; cursor: pointer; }
.wl-pd-card { background: #fff; box-shadow: 0 1px 0 rgba(12,27,51,0.04), 0 22px 44px -30px rgba(12,27,51,0.3); }
.wl-pd-card-in { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.wl-pd-card h2 { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); color: #0C1B33; }
.wl-pd-card p { margin: 0; font-size: 16px; line-height: 1.6; color: #4B5565; }
.wl-pd-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: #E4E1DA; border: 1px solid #E4E1DA; }
.wl-pd-facts > div { background: #fff; padding: 12px 14px; }
.wl-pd-facts dt { font-size: 12px; color: #667085; }
.wl-pd-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; color: #0C1B33; }
.wl-pd-roles { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; color: #4B5565; }
.wl-pd-roles strong { font-weight: 600; color: #0C1B33; }
.wl-pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wl-pd-enquire { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: transparent; color: #0C1B33; border: 1px solid #0C1B33; border-radius: 2px; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none !important; cursor: pointer; background-image: none !important; }
.wl-pd-enquire:hover { background: #0C1B33; color: #fff; }
.wl-pd-empty { border: 1px dashed #C9C3B6; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 16px; }
.wl-pd-empty h2 { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 24px; }
.wl-pd-empty p { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.6; color: #4B5565; }

/* ---------- Insights cards ---------- */
.wl-ic { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.wl-ic-card { display: flex; flex-direction: column; gap: 14px; background: #fff; padding: clamp(24px, 3vw, 32px); color: #0C1B33; text-decoration: none !important; background-image: none !important;
	box-shadow: 0 1px 0 rgba(12,27,51,0.04), 0 22px 44px -30px rgba(12,27,51,0.3); border: 1px solid transparent; transition: border-color .2s ease; }
.wl-ic-card:hover { border-color: #0C1B33; }
.wl-ic-label { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--gold-text, #8A6A35); }
.wl-ic-title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; color: #0C1B33; }
.wl-ic-excerpt { font-size: 15.5px; line-height: 1.6; color: #4B5565; }
.wl-ic-more { margin-top: auto; font-weight: 600; font-size: 14px; color: #0C1B33; }

/* ---------- Article meta / editor notes ---------- */
.wl-post-meta { margin: 0; font-size: 14px; color: var(--wp--preset--color--mist, #C8CFDB); }
.wl-editor-note { padding: 12px 14px; background: #F7F4EE; border: 1px dashed #BF9B5F; font: 13px/1.5 system-ui, sans-serif; color: #4B5565; }

/* Serif text uses the same optical size adjustment as the original premium theme */
.wl-ic-title, .wl-pc-also-title, .wl-pc-feature h3, .wl-pd-card h2, .wl-pd-empty h2, .wl-f-sent-title, .wl-pros h2 { font-size-adjust: 0.43; font-variant-numeric: lining-nums; }
:root .wl-hero-facts { margin-top: 24px; }   /* beats the theme's flow-layout margin reset */
@media (max-width: 767px) { .wl-pc-feature-media { min-height: 200px; } }
