/*
Theme Name: Boracay Practical Guide
Theme URI: https://boracay.biz/
Author: Webhaus LLC
Description: The bespoke theme for boracay.biz. Phone first: a search box over the instant-answers index in the header, map tiles, questions as tap-to-open items, long sections folded. System fonts, no images in the chrome. Styles the markup written by niche-sites/tools/publish.py.
Version: 0.1.4
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: boracay
*/

/* tokens: dark mode swaps these and nothing else */
:root { --sea: #0b7a8a; --deep: #0d2b3a; --sand: #f6f1e7; --ink: #1c2a31; --mute: #5d6d75; --line: #e2dccd; --card: #fff; --sun: #e8742c; --tld: #7fd6df; --link: #0b7a8a; --r: 12px; --col: 68ch; }
@media (prefers-color-scheme: dark) {
  :root { --sand: #0e1b22; --ink: #e4ecef; --mute: #9fb2ba; --line: #2b3d47; --card: #172831; --link: #6fd0db; }
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(66px + env(safe-area-inset-bottom)); overflow-wrap: break-word; }
a { color: var(--link); }
img, svg, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.4em 0 .5em; }
h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; } h4 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; } li { margin: 0 0 .4em; }
[hidden] { display: none !important; }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #b94d0e; color: #fff; padding: 8px; z-index: 99; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.sec-label, .entry-content h2#faq, .entry-content h2#related { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 24px 0 8px; }
.btn { display: inline-block; background: var(--sea); color: #fff; border-radius: 8px; padding: 9px 14px; font-weight: 700; font-size: .92rem; text-decoration: none; }

/* header: wordmark and the search box, always visible */
.site-head { background: var(--deep); color: #fff; padding: 12px 0 14px; position: sticky; top: 0; z-index: 5; }
.head-row { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; text-decoration: none; }
.brand span, .foot-brand span { color: var(--tld); }
.head-nav { display: none; }
.ask { margin: 10px 0 0; }
.ask-box { display: block; position: relative; }
.ask-box::before { content: ""; position: absolute; left: 15px; top: 15px; width: 14px; height: 14px; border: 2px solid #5d6d75; border-radius: 50%; }
.ask-box::after { content: ""; position: absolute; left: 28px; top: 31px; width: 7px; height: 2px; background: #5d6d75; transform: rotate(45deg); }
.ask input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px 12px 42px; border: 0; border-radius: var(--r); background: #fff; color: #1c2a31; -webkit-appearance: none; appearance: none; }
.ask input:focus { outline: 3px solid var(--tld); outline-offset: 1px; }

/* tap-to-open items: search answers, the article's questions, the folded sections */
details.qa, details.faq-item, details.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 8px; }
details.qa > summary, details.faq-item > summary, details.fold > summary { list-style: none; cursor: pointer; padding: 13px 42px 13px 14px; font-weight: 600; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
details.qa > summary::after, details.faq-item > summary::after, details.fold > summary::after { content: "+"; position: absolute; right: 14px; top: 8px; font-size: 1.4rem; font-weight: 400; color: var(--link); }
details[open].qa > summary::after, details[open].faq-item > summary::after, details[open].fold > summary::after { content: "\2212"; }
summary h2, summary h3 { display: inline; font: inherit; margin: 0; }
details.qa > p, .faq-answer, .fold-body { padding: 0 14px 4px; }
details.qa > p { margin: 0; padding-bottom: 12px; }
.fold-body > :first-child, .faq-answer > :first-child { margin-top: 0; }
.qa .more { display: block; padding: 0 14px 14px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.answers { padding-top: 12px; padding-bottom: 24px; }
.answers-count, .answers-none, .answers-more { font-size: .85rem; color: var(--mute); margin: 0 0 8px; }
.answers-more { margin-top: 14px; }
.searching #main > :not(#answers) { display: none; }

/* home */
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map { display: block; text-decoration: none; color: #fff; border-radius: var(--r); padding: 14px; min-height: 84px; background: linear-gradient(135deg, #0b7a8a, #12a3a8); position: relative; overflow: hidden; }
.map b { display: block; font-size: 1rem; line-height: 1.25; } .map small { display: block; font-size: .8rem; line-height: 1.3; margin-top: 3px; opacity: .95; }
.map::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 70px; height: 70px; border-radius: 50%; border: 10px solid rgba(255, 255, 255, .18); }
.map-hotel { background: linear-gradient(135deg, #d9622a, #e8a12c); }
.book { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: var(--r); padding: 12px 14px; margin: 14px 0 6px; text-decoration: none; color: var(--ink); }
.book b { display: block; line-height: 1.3; } .book small { color: var(--mute); font-size: .82rem; }
.book-go, .booking-btn { flex: none; background: #b94d0e; color: #fff; border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: .88rem; }
.book-note { font-size: .8rem; color: var(--mute); margin: 0 0 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: .92rem; color: var(--ink); text-decoration: none; }
.chip.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.topic h3 { margin: 14px 0 6px; } .chips-on .topic h3 { display: none; }
.guides { list-style: none; padding: 0; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.guides li { margin: 0; border-top: 1px solid var(--line); } .guides li:first-child { border-top: 0; }
.guides a { display: block; padding: 12px 14px; font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.35; }
.guides small { display: block; padding: 0 14px 12px; margin-top: -6px; color: var(--mute); font-size: .85rem; }
.empty { color: var(--mute); margin-top: 24px; }

/* article */
.entry-title { font-size: 1.45rem; line-height: 1.2; margin: 18px 0 6px; }
.entry-meta { color: var(--mute); font-size: .8rem; margin: 0 0 12px; } .entry-meta a { color: inherit; }
.key-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 2px; margin: 0 0 12px; }
.key-facts-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--link); margin: 0 0 6px; }
.aff-note { font-size: .8rem; color: var(--mute); margin: 0 0 12px; }
sup.cite { font-size: .68em; line-height: 0; margin-left: 1px; color: var(--mute); } sup.cite + sup.cite { margin-left: 3px; } sup.cite a { text-decoration: none; color: var(--mute); }
.callout { margin: 0 0 1em; padding: 10px 14px; border-left: 4px solid var(--sea); background: var(--card); border-radius: 0 var(--r) var(--r) 0; }
.fold-body .callout, .faq-answer .callout { background: var(--sand); }
.callout p { margin: 0; } .callout p + p { margin-top: .6em; }
.callout-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--link); margin-bottom: 4px; }
.callout-disagree { border-color: var(--sun); } .callout-heard { border-color: var(--mute); }
.callout-booking { border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: var(--r); padding: 12px 14px; margin: 0 0 12px; }
.callout-booking .callout-label { color: var(--mute); }
.booking-btn { display: inline-block; text-decoration: none; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
table.decision thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.decision tr, table.decision td { display: block; border: 0; padding: 0; }
table.decision tr { padding: 8px 0 8px 12px; border-left: 4px solid var(--sea); margin: 0 0 8px; }
table.decision td:first-child { font-weight: 700; }
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps li { position: relative; padding: 0 0 8px 34px; counter-increment: step; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--sea); color: #fff; font-size: .8rem; font-weight: 700; text-align: center; line-height: 24px; }
.related-articles ul { list-style: none; padding: 0; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.related-articles li { margin: 0; border-top: 1px solid var(--line); } .related-articles li:first-child { border-top: 0; }
.related-articles a { display: block; padding: 12px 14px; font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.35; }
.sources { font-size: .85rem; } .sources a { word-break: break-word; }
.sources li:target { background: var(--sand); }
figure { margin: 0 0 1em; } figcaption { font-size: .8rem; color: var(--mute); }

/* a page that holds a map: the wide column, the map edge to edge on phones */
.has-map .entry { max-width: 1100px; }
.has-map .niche-map-wrap { margin: 0 -16px 1em; }

/* listings */
.listing-intro { color: var(--mute); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--sea); border-color: var(--sea); color: #fff; }

/* footer and the phone tab bar */
.site-foot { margin-top: 32px; padding: 20px 0 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mute); }
.foot-brand { font-weight: 700; color: var(--ink); margin: 0 0 8px; } .foot-brand span { color: var(--link); }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; } .foot-links li { margin: 0; }
.foot-links a { color: var(--ink); }
.foot-legal { font-size: .78rem; margin: 0; } .foot-legal a { color: inherit; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: space-around; background: var(--deep); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; min-width: 56px; text-align: center; color: #b9cbd3; font-size: .72rem; text-decoration: none; padding: 4px 2px; }
.tabbar i { display: block; font-style: normal; font-size: 1.1rem; line-height: 1.2; }
.tabbar .is-current { color: #fff; font-weight: 700; }

/* wide screens: one header row with the five links, no tab bar, the same narrow column */
@media (min-width: 800px) {
  html { scroll-padding-top: 90px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .head-row { max-width: 1100px; display: flex; align-items: center; gap: 24px; }
  .head-nav { display: flex; gap: 18px; }
  .head-nav a { color: #b9cbd3; text-decoration: none; font-size: .95rem; } .head-nav a:hover, .head-nav .is-current { color: #fff; }
  .ask { margin: 0 0 0 auto; flex: 0 1 380px; }
  .maps { grid-template-columns: 1fr 1fr 1fr; }
  .entry-title { font-size: 1.8rem; margin-top: 28px; }
  .has-map .niche-map-wrap { margin: 0 0 1em; }
}

@media print {
  .site-head, .tabbar, .skip, .related-articles, .pagination, .book, .callout-booking { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* The sun in the corner, and the sheet it opens */
.sun-btn { position: absolute; top: 0; right: 0; width: 56px; height: 56px; padding: 0; border: 0; cursor: pointer; background: url(assets/sun.svg) no-repeat 0 -56px / 112px 112px; }
.sun-btn:focus-visible { outline: 3px solid var(--tld); outline-offset: -3px; }
@media (min-width: 800px) { .head-row { padding-right: 72px; } }
@media print { .sun-btn, .install { display: none !important; } }
.install { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--card); border-top: 3px solid #f2a71b; box-shadow: 0 -8px 24px rgb(0 0 0 / .18); padding: 16px 0 calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.install-title { margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; }
.install-btn { font: inherit; font-weight: 700; color: #fff; background: var(--sea); border: 0; border-radius: var(--r); padding: 12px 18px; min-height: 48px; cursor: pointer; }
.install-how { margin: 10px 0 0; font-weight: 600; }
.install-note { margin: 8px auto 0; max-width: 34em; font-size: .88rem; color: var(--mute); }
.install-acts { margin: 12px 0 0; display: flex; gap: 10px; justify-content: center; }
.install-alt { font: inherit; font-weight: 600; color: var(--link); background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 16px; min-height: 44px; cursor: pointer; }

/* In brief: the bullets carry the answer, so they come first; the sentences follow, quieter (owner, 2026-10-03) */
.key-facts { display: flex; flex-direction: column; }
.key-facts > ul { order: 1; margin-top: 0; }
.key-facts > p:not(.key-facts-label) { order: 2; font-size: .92rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 10px; }

/* The b.b mark in a small icon-like box before the wordmark (owner, 2026-10-03) */
.brand { display: inline-flex; align-items: center; }
.brand-ico { display: inline-flex; align-items: baseline; justify-content: center; font-style: normal; font-weight: 700; font-size: .95rem; line-height: 1; letter-spacing: 0; color: #fff; background: #17475a; border: 1px solid rgb(255 255 255 / .28); border-radius: 7px; padding: 5px 6px 6px; margin-right: 8px; }
.brand-ico i { display: inline-block; width: .3em; height: .3em; margin: 0 .06em; border-radius: 50%; background: var(--tld); }
