/* Waterfront Karachi guide styles on top of theme.json.
   Colours, fonts and sizes live in theme.json (Appearance > Editor > Styles);
   this file only lays out the guide's named parts. House rules from the SYNQ
   playbook: no eyebrow labels, no letter-spaced capitals, no gradient accents,
   no rows of icon cards, solid accent rules. */
:root { --wk-radius: 12px; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 2px solid var(--wp--preset--color--sea); outline-offset: 2px; }

/* ---------- Masthead ---------- */
.wk-mast { border-bottom: 1px solid var(--wp--preset--color--line); background: #fff; }
.wk-mast__bar { min-height: 76px; gap: 24px; }
.wk-mast .wp-block-site-logo { flex-shrink: 0; line-height: 0; }
.wk-mast .wp-block-site-logo img { height: 40px; width: auto !important; max-width: none; }
.wk-mast__actions { gap: 22px; }
.wk-nav a { text-decoration: none; color: var(--wp--preset--color--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.wk-nav a:hover, .wk-nav .current-menu-item > a, .wk-nav [aria-current="page"] { color: var(--wp--preset--color--ink); border-bottom-color: var(--wp--preset--color--sea); }
.wk-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.wk-nav .wp-block-navigation__responsive-container.is-menu-open a { font-size: 19px; border-bottom: 0; }
@media (max-width: 860px) { .wk-mast__bar { min-height: 64px; } .wk-mast .wp-block-site-logo img { height: 30px; } }
@media (max-width: 600px) { .wk-mast .wp-block-site-logo img { height: 24px; } .wk-mast .wk-mast__advice { display: none !important; } }

/* ---------- Buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.wp-block-buttons .wp-block-button.is-style-sky .wp-block-button__link { background: var(--wp--preset--color--sky); color: #0b3340; }
.wp-block-buttons .wp-block-button.is-style-whatsapp .wp-block-button__link { background: var(--wp--preset--color--whatsapp); color: #fff; }
.wp-block-buttons .wp-block-button.is-style-ghost .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--line); }
.wk-mast__advice .wp-block-button__link { padding: 8px 14px; font-size: 14px; }

/* ---------- Article ---------- */
.wk-article-head { padding-top: 34px; }
.wk-article-head > * { margin-block-start: 0; }
.wk-article-head .wp-block-post-title { margin-bottom: 16px; text-wrap: balance; }
.yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs { font-size: 14px; color: var(--wp--preset--color--muted); margin-bottom: 18px; }
.yoast-breadcrumbs a, .wp-block-yoast-seo-breadcrumbs a { color: var(--wp--preset--color--muted); text-decoration: none; }
.yoast-breadcrumbs a:hover { color: var(--wp--preset--color--sea); }
.wk-standfirst p, p.wk-standfirst { font: 400 20px/1.55 var(--wp--preset--font-family--serif); color: #3a464c; margin: 0 0 22px; }
.wk-standfirst .wp-block-post-excerpt__more-text { display: none; }
.wk-byline { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 14px 0; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); font-size: 14px; color: var(--wp--preset--color--muted); }
.wk-byline strong { color: var(--wp--preset--color--ink); font-weight: 600; }
.wk-status { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: #e3f2f6; color: var(--wp--preset--color--sea-dark); }
.wk-status--quiet { background: #f1f1f1; color: #5a5a5a; }
.wk-figure { margin-top: 30px !important; }
.wk-figure__img, .wk-figure .wp-block-post-featured-image { border-radius: var(--wk-radius); overflow: hidden; margin: 0; background: var(--wp--preset--color--mist); }
.wk-figure .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.wk-caption { font-size: 13.5px; color: var(--wp--preset--color--muted); margin: 10px 0 0 !important; }
.wk-caption:empty { display: none; }

.wk-article-body { padding: 40px 0 20px; gap: 56px !important; align-items: flex-start !important; }
.wk-article-body > .wk-main { min-width: 0; flex: 1 1 0 !important; }
.wk-article-body > .wk-main > .wp-block-post-content { max-width: 720px; }
.wk-article-body > .wk-rail { flex: 0 0 320px !important; align-self: stretch !important; display: flex; flex-direction: column; gap: 20px; }
/* Only the adviser card stays in view while the article scrolls. */
.wk-rail__adviser { position: sticky; top: 24px; z-index: 2; }
/* White strip above the stuck card, so boxes scrolling under it never peek out. */
.wk-rail__adviser::before { content: ""; position: absolute; left: -12px; right: -12px; bottom: 100%; height: 80px; background: var(--wp--preset--color--paper); }
.admin-bar .wk-rail__adviser { top: 56px; }
.wk-rail > * { margin: 0 !important; }
@media (max-width: 960px) {
	.wk-article-body { flex-direction: column; gap: 32px !important; }
	.wk-article-body > .wk-main, .wk-article-body > .wk-rail { flex-basis: auto !important; width: 100%; }
	.wk-article-body > .wk-rail { align-self: auto !important; }
	.wk-rail__adviser { position: static; }
	.wk-rail__adviser::before { display: none; }
	.wk-figure .wp-block-post-featured-image { aspect-ratio: 16 / 9 !important; }
}

/* Prose inside the article */
.wp-block-post-content > * + * { margin-block-start: 0; }
.wp-block-post-content p { margin: 0 0 18px; }
.wp-block-post-content h2 { margin: 44px 0 14px; scroll-margin-top: 24px; }
.wp-block-post-content h3 { margin: 30px 0 10px; scroll-margin-top: 24px; }
.wp-block-post-content ul, .wp-block-post-content ol { margin: 0 0 20px; padding-left: 22px; }
.wp-block-post-content li { margin-bottom: 8px; }
.wp-block-post-content a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wp-block-post-content strong { color: var(--wp--preset--color--ink); }
.wp-block-table { margin: 8px 0 24px; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table thead th { background: var(--wp--preset--color--mist); font-weight: 600; color: var(--wp--preset--color--ink); }

/* Short answer box */
.wk-answer { background: var(--wp--preset--color--mist); border-left: 3px solid var(--wp--preset--color--sea); border-radius: 0 10px 10px 0; padding: 18px 22px !important; margin: 0 0 32px !important; }
.wk-answer > * { margin: 0 !important; }
.wk-answer > * + * { margin-top: 8px !important; }
.wk-answer .wk-answer__label { font: 600 16px/1.3 var(--wp--preset--font-family--sans); color: var(--wp--preset--color--sea); }
.wk-answer p:not(.wk-answer__label) { font-size: 17.5px; color: var(--wp--preset--color--ink); }

/* Questions (FAQ): a group of Details blocks */
.wk-faq { margin: 48px 0 0 !important; }
.wk-faq > h2 { margin: 0 0 16px !important; }
.wk-faq .wp-block-details { border-top: 1px solid var(--wp--preset--color--line); margin: 0 !important; padding: 0; }
.wk-faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.wk-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font: 600 17px/1.4 var(--wp--preset--font-family--sans); color: var(--wp--preset--color--ink); position: relative; }
.wk-faq summary::-webkit-details-marker { display: none; }
.wk-faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 24px; font-weight: 400; color: var(--wp--preset--color--sea); }
.wk-faq details[open] summary::after { content: "\2212"; }
.wk-faq .wp-block-details > p { margin: 0 0 18px; }

/* Sources */
.wk-sources { margin: 44px 0 0 !important; font-size: 14.5px; color: var(--wp--preset--color--muted); }
.wk-sources h2 { font-size: 20px !important; margin: 0 0 10px !important; }
.wk-sources ol { padding-left: 20px; margin: 0; }
.wk-sources li { margin-bottom: 6px; }
.wk-sources a { color: var(--wp--preset--color--muted); }

/* Living near here (coast pages) */
.wk-near { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wk-radius); padding: 22px 24px !important; margin: 36px 0 !important; }
.wk-near > * { margin: 0 0 8px !important; }
.wk-near h2 { font-size: 20px !important; }

/* Rail boxes */
.wk-box { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wk-radius); padding: 20px 22px; background: #fff; }
.wk-box h2 { font: 600 17px/1.3 var(--wp--preset--font-family--serif); margin: 0 0 14px; }
.wk-glance { margin: 0; display: grid; gap: 12px; }
.wk-glance dt { font-size: 13px; color: var(--wp--preset--color--muted); }
.wk-glance dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--wp--preset--color--ink); line-height: 1.4; }
.wk-toc ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.wk-toc li { margin-bottom: 8px; }
.wk-toc a { color: var(--wp--preset--color--text); text-decoration: none; }
.wk-toc a:hover { color: var(--wp--preset--color--sea); }

/* Adviser card (rail) and the person row it shares with the contact panel */
.wk-adviser { background: var(--wp--preset--color--night); color: #e6edf0; border-radius: var(--wk-radius); padding: 22px !important; }
.wk-adviser > * { margin: 0 !important; }
.wk-adviser > * + * { margin-top: 14px !important; }
.wk-adviser h2 { color: #fff; font: 600 18px/1.3 var(--wp--preset--font-family--serif) !important; }
.wk-adviser p { font-size: 14.5px; color: #c3cfd4; line-height: 1.55; }
.wk-person { gap: 14px !important; align-items: center !important; flex-wrap: nowrap !important; }
.wk-person .wp-block-image { flex: none; margin: 0; }
.wk-person .wp-block-image img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; }
.wk-person__text > * { margin: 0 !important; line-height: 1.4; }
.wk-person__name { font-weight: 600; font-size: 16px; color: var(--wp--preset--color--ink); }
.wk-person__role { font-size: 13.5px; color: var(--wp--preset--color--muted); }
.wk-person__phone a { font-weight: 600; font-size: 14.5px; text-decoration: none; }
.wk-adviser .wk-person__name { color: #fff; }
.wk-adviser .wk-person__role { color: #a9b8bf; }
.wk-adviser .wk-person__phone a { color: var(--wp--preset--color--sky); }
.wk-adviser .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 8px; }
.wk-adviser .wp-block-button, .wk-adviser .wp-block-button__link { width: 100%; justify-content: center; }

/* Contact panel */
.wk-contact { background: var(--wp--preset--color--mist); border-top: 1px solid var(--wp--preset--color--line); padding-top: 64px !important; padding-bottom: 64px !important; margin: 0 !important; }
.wk-contact__grid { gap: 56px !important; align-items: flex-start !important; }
.wk-contact__grid > .wp-block-column { min-width: 0; }
.wk-contact h2 { font-size: 30px; margin: 0 0 12px; }
.wk-contact__lede { font-size: 17.5px; max-width: 54ch; }
.wk-contact .wk-person .wp-block-image img { width: 72px; height: 72px; }
.wk-contact .wk-person__name { font-size: 18px; }
.wk-contact .wk-person__phone a { color: var(--wp--preset--color--sea); }
.wk-formcard { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 28px; }
.wk-formcard h3 { font-size: 22px; margin: 0 0 6px; }
.wk-formcard > p { font-size: 15px; color: var(--wp--preset--color--muted); margin: 0 0 18px; }
.wk-form { display: grid; gap: 12px; }
.wk-form label { display: block; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink); margin-bottom: 5px; }
.wk-form input, .wk-form select, .wk-form textarea { width: 100%; box-sizing: border-box; font: 16px var(--wp--preset--font-family--sans); color: var(--wp--preset--color--ink); background: #fff; border: 1.5px solid var(--wp--preset--color--line); border-radius: 10px; padding: 11px 13px; min-height: 46px; }
.wk-form input:focus, .wk-form select:focus { border-color: var(--wp--preset--color--sea); outline: none; }
.wk-form .wk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 15px/1.2 var(--wp--preset--font-family--sans); border: 0; cursor: pointer; }
.wk-btn--sea { background: var(--wp--preset--color--sea); color: #fff; width: 100%; margin-top: 6px; }
.wk-btn--sea:hover { background: var(--wp--preset--color--sea-dark); }
.wk-btn[disabled] { opacity: .7; cursor: wait; }
.wk-small { font-size: 13px; color: var(--wp--preset--color--muted); margin: 6px 0 0; }
.wk-form-note { min-height: 1.2em; margin: 6px 0 0; font-weight: 600; font-size: 15px; }
.wk-form-note.is-ok { color: #1f6b3a; } .wk-form-note.is-error { color: #a12a2a; }
.wk-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 900px) { .wk-contact__grid { flex-direction: column; gap: 36px !important; } .wk-contact__grid > .wp-block-column { flex-basis: auto !important; width: 100%; } }
@media (max-width: 480px) { .wk-form .wk-row2 { grid-template-columns: 1fr; } .wk-formcard { padding: 22px; } }

/* Cards: related towers, hub tower grid, story lists */
.wk-related { padding: 40px 0 56px; border-top: 1px solid var(--wp--preset--color--line); margin-top: 20px; }
.wk-related h2 { font-size: 28px; margin: 0 0 26px; }
.wk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wk-card { display: flex; flex-direction: column; text-decoration: none; }
.wk-card__img { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--wp--preset--color--mist); }
.wk-card__img img { width: 100%; height: 100%; object-fit: cover; }
.wk-card strong { font: 600 19px/1.3 var(--wp--preset--font-family--serif); color: var(--wp--preset--color--ink); margin: 14px 0 4px; }
.wk-card:hover strong { color: var(--wp--preset--color--sea); }
.wk-card span, .wk-card__line { font-size: 14.5px; color: var(--wp--preset--color--muted); margin: 0; }
@media (max-width: 900px) { .wk-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wk-cards { grid-template-columns: 1fr; } }

.wk-towers .wp-block-post-template { gap: 24px; }
.wk-towers .wp-block-post-template > li > * { margin: 0; }
.wk-towers .wp-block-post-featured-image { border-radius: 10px; overflow: hidden; margin-bottom: 14px !important; }
.wk-towers .wp-block-post-featured-image img { object-fit: cover; }
.wk-towers .wp-block-post-title { font-size: 19px; margin: 0 0 4px; }
.wk-towers .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.wk-towers .wp-block-post-title a:hover { color: var(--wp--preset--color--sea); }

/* ---------- Home ---------- */
.wk-band { padding-top: 56px !important; padding-bottom: 56px !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.wk-band + .wk-band { border-top: 1px solid var(--wp--preset--color--line); }
.wk-band--mist { background: var(--wp--preset--color--mist); }
.wk-band > .wp-block-heading:first-child { margin-bottom: 26px; }
.wk-lead { gap: 44px !important; }
.wk-lead .wp-block-image img { border-radius: var(--wk-radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.wk-lead h1 { font-size: clamp(28px, 3.2vw, 38px) !important; line-height: 1.18; margin: 22px 0 12px; }
.wk-lead h1 a { text-decoration: none; color: inherit; }
.wk-lead h1 a:hover { color: var(--wp--preset--color--sea); }
.wk-lead p { font-size: 18px; }
.wk-meta { font-size: 14px !important; color: var(--wp--preset--color--muted); }
.wk-latest h2 { font-size: 20px; margin: 0 0 6px; }
.wk-latest .wp-block-post-template > li { padding: 16px 0; border-top: 1px solid var(--wp--preset--color--line); margin: 0; }
.wk-latest .wp-block-post-title { font-size: 18px; line-height: 1.35; margin: 0 0 4px; }
.wk-latest .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.wk-latest .wp-block-post-title a:hover { color: var(--wp--preset--color--sea); }
.wk-latest .wp-block-post-date { font-size: 13.5px; color: var(--wp--preset--color--muted); }
@media (max-width: 900px) { .wk-lead { flex-direction: column; } .wk-lead > .wp-block-column { flex-basis: auto !important; width: 100%; } }

.wk-hubcards { gap: 24px !important; }
.wk-hubcard { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wk-radius); overflow: hidden; padding: 0 !important; }
.wk-hubcard > * { margin: 0 !important; }
.wk-hubcard .wp-block-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.wk-hubcard > :not(.wp-block-image) { padding-left: 22px !important; padding-right: 22px !important; }
.wk-hubcard h3 { font-size: 22px; padding-top: 20px !important; }
.wk-hubcard h3 a { text-decoration: none; color: inherit; }
.wk-hubcard h3 a:hover { color: var(--wp--preset--color--sea); }
.wk-hubcard p { font-size: 15px; color: var(--wp--preset--color--muted); padding-top: 6px !important; }
.wk-hubcard .wp-block-table { padding-bottom: 22px !important; margin-top: 14px !important; }
.wk-hubcard .wp-block-table td { padding: 8px 0; font-size: 14.5px; }
.wk-hubcard .wp-block-table td:first-child { color: var(--wp--preset--color--muted); width: 45%; }
.wk-hubcard .wp-block-table td:last-child { font-weight: 600; color: var(--wp--preset--color--ink); }
@media (max-width: 900px) { .wk-hubcards { flex-direction: column; } .wk-hubcards > .wp-block-column { flex-basis: auto !important; } }

.wk-numbers { background: var(--wp--preset--color--night); color: #fff; }
.wk-numbers h2 { color: #fff !important; font-size: 24px; }
.wk-numbers__row { gap: 32px !important; }
.wk-numbers__row > .wp-block-column { border-top: 2px solid var(--wp--preset--color--sea); padding-top: 16px; }
.wk-numbers__row > .wp-block-column > * { margin: 0 !important; }
.wk-numbers__value { font: 600 26px/1.2 var(--wp--preset--font-family--serif) !important; color: #fff; }
.wk-numbers__label { margin-top: 8px !important; font-size: 15px; color: #c3cfd4; line-height: 1.5; }
.wk-numbers .wk-meta { color: #8c9ca3; margin-top: 30px !important; }
@media (max-width: 900px) { .wk-numbers__row { flex-wrap: wrap !important; } .wk-numbers__row > .wp-block-column { flex-basis: calc(50% - 16px) !important; } }
@media (max-width: 520px) { .wk-numbers__row > .wp-block-column { flex-basis: 100% !important; } }

.wk-stories .wp-block-post-featured-image { border-radius: 10px; overflow: hidden; }
.wk-stories .wp-block-post-title { font-size: 18px; line-height: 1.35; margin: 14px 0 6px; }
.wk-stories .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }

/* ---------- Footer ---------- */
.wk-foot { background: #000; color: #cdd5d9; padding-top: 56px !important; padding-bottom: 28px !important; font-size: 15px; margin: 0 !important; }
.wk-foot h2 { font: 600 16px/1.3 var(--wp--preset--font-family--sans) !important; color: #fff; margin: 0 0 14px; }
.wk-foot a { color: #cdd5d9; text-decoration: none; }
.wk-foot a:hover { color: #fff; }
.wk-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.wk-foot .wp-block-image img { height: 38px; width: auto; }
.wk-foot__grid { gap: 36px !important; }
.wk-foot__legal { margin-top: 40px !important; padding-top: 22px; border-top: 1px solid #262c2f; font-size: 13.5px; color: #8e9ba1; gap: 10px 40px !important; }
.wk-foot__legal p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) { .wk-foot__grid { flex-wrap: wrap !important; } .wk-foot__grid > .wp-block-column { flex-basis: calc(50% - 18px) !important; } }
@media (max-width: 520px) { .wk-foot__grid > .wp-block-column { flex-basis: 100% !important; } }

/* Floating Call back and WhatsApp (a bottom bar on phones) */
.wk-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 40; flex-direction: column; gap: 10px !important; margin: 0 !important; }
.wk-float .wp-block-button__link { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
@media (max-width: 860px) {
	.wk-float { left: 0; right: 0; bottom: 0; flex-direction: row; flex-wrap: nowrap !important; gap: 8px !important; background: #fff; border-top: 1px solid var(--wp--preset--color--line); padding: 10px max(12px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-bottom, 0px)); }
	.wk-float .wp-block-button { flex: 1; }
	.wk-float .wp-block-button__link { width: 100%; justify-content: center; box-shadow: none; border-radius: 10px; }
	body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
