/*
Theme Name: 10 Feet Traveling
Theme URI: https://10feettraveling.com/
Author: Matt Sampson
Description: The 10 Feet Traveling theme, built in October 2026 to replace Responsive Brix Premium. Header, footer and home page come from the site's mu-plugins; this theme handles layouts, reading typography, photos and lists.
Version: 1.0.2
Requires PHP: 7.4
Text Domain: tenft
*/

/* ---------- Base ---------- */
:root {
	--tft-deep: #154A52;
	--tft-teal: #3998A3;
	--tft-teal-d: #2b7a84;
	--tft-link: #1f6f78;
	--tft-amber: #F2A33A;
	--tft-ink: #262b2d;
	--tft-ink-2: #3d4649;
	--tft-soft: #4a5558;
	--tft-line: #dde8ea;
	--tft-tint: #f2f8f9;
	--tft-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--tft-w: 960px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--tft-ink); font: 17px/1.65 var(--tft-font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; }
a { color: var(--tft-link); }
a:hover { color: var(--tft-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--tft-font); font-weight: 700; line-height: 1.25; color: var(--tft-deep); }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--tft-amber); outline-offset: 2px; }
::selection { background: #cfe9ec; color: var(--tft-deep); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; clip: auto; margin: 0; padding: 12px 18px; background: #fff; color: var(--tft-deep); font-weight: 700; }

/* ---------- Layout widths: the title band and the body share one width per page type ---------- */
body.tft-w-read { --tft-w: 790px; }
body.tft-w-page { --tft-w: 960px; }
body.tft-w-wide { --tft-w: 1170px; }
body.tft-w-list { --tft-w: 1230px; }
.tft-body { max-width: var(--tft-w); margin: 0 auto; padding: 40px 15px 60px; }
#loop-meta .grid { max-width: var(--tft-w); margin: 0 auto; padding: 0; }
body #loop-meta .loop-meta { padding-left: 15px !important; padding-right: 15px !important; }
.tft-band-intro, .tft-band-intro p { font-size: 18px; line-height: 1.55; color: var(--tft-ink-2); max-width: 780px; margin: 8px 0 0; }

/* ---------- Reading typography ---------- */
.entry-content { font-size: 18px; line-height: 1.75; color: var(--tft-ink); }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin: .3em 0; }
.entry-content h2 { font-size: 27px; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 21px; margin: 1.4em 0 .4em; color: #1d2a2e; }
.entry-content h4 { font-size: 18px; margin: 1.2em 0 .3em; color: #1d2a2e; }
.entry-content :is(p, li, td, dd, figcaption) a:not(.tft-go):not(.tfh-btn):not(.tft-btn) { color: var(--tft-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content :is(p, li, td, dd, figcaption) a:not(.tft-go):not(.tfh-btn):not(.tft-btn):hover { color: var(--tft-deep); text-decoration-thickness: 2px; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--tft-teal); color: var(--tft-ink-2); font-size: 19px; }
.entry-content hr { border: 0; border-top: 1px solid var(--tft-line); margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 16px; }
.entry-content :is(td, th) { padding: 10px 12px; border-bottom: 1px solid var(--tft-line); text-align: left; vertical-align: top; line-height: 1.5; }
.entry-content th { background: var(--tft-deep); color: #fff; }
@media (max-width: 767px) {
	.entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
	.entry-content :is(td, th) { min-width: 140px; }
}
/* The guide pages link back up in the title band, so the old in-text "Back to the Guide" line is not needed. */
.entry-the-content p:has(> strong:only-child > a[href="/guide-to-tamarindo/"]:only-child) { display: none; }

/* ---------- Photos ---------- */
.entry-content img { border-radius: 0; }
.alignleft { float: left; margin: .35em 26px 14px 0; }
.alignright { float: right; margin: .35em 0 14px 26px; }
.aligncenter { display: block; margin: 1.2em auto; }
.alignnone { margin: 1.2em 0; }
.entry-content .wp-caption { max-width: 100%; margin-bottom: 18px; }
.entry-content .wp-caption img { display: block; margin: 0; }
.entry-content :is(.wp-caption-text, .gallery-caption, figcaption) { font-size: 14px; line-height: 1.45; color: var(--tft-soft); text-align: left; padding: 6px 0 0; margin: 0; }
@media (max-width: 600px) {
	.entry-content :is(.alignleft, .alignright) { float: none; display: block; margin: 1em auto; }
	.entry-content .wp-caption.alignleft, .entry-content .wp-caption.alignright { width: auto !important; }
}
.entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 26px 0; }
.entry-content .gallery br { display: none; }
.entry-content .gallery .gallery-item { margin: 0; padding: 0; width: auto; max-width: none; }
.entry-content .gallery .gallery-icon { margin: 0; }
.entry-content .gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; transition: opacity .15s; }
.entry-content .gallery a:hover img { opacity: .88; }
@media (max-width: 640px) { .entry-content .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.entry-content :is(iframe[src*="youtube"], iframe[src*="vimeo"]) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 1.2em 0; border: 0; }
.wp-embed-responsive .wp-has-aspect-ratio iframe { position: static; }

/* ---------- Post byline, author note, previous and next ---------- */
.tfd-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 0; font-size: 16px; color: var(--tft-ink-2); }
.tfd-meta span + span::before { content: "\00B7"; margin: 0 10px; color: #7c8a8d; }
.tfd-meta a { color: var(--tft-link); text-decoration: none; }
.tfd-meta a:hover { text-decoration: underline; }
@media (max-width: 640px) { .tfd-meta span:nth-child(3) { flex-basis: 100%; } .tfd-meta span:nth-child(3)::before { content: none; } }
.tft-author { display: flex; gap: 18px; align-items: flex-start; margin: 44px 0 0; padding: 22px 24px; background: var(--tft-tint); border-top: 4px solid var(--tft-teal); }
.tft-author img { flex: 0 0 auto; width: 64px; height: 64px; }
.tft-author p { margin: 0; }
.tft-author-k { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tft-teal-d); }
.tft-author-n { font-size: 20px; font-weight: 700; margin: 2px 0 6px !important; }
.tft-author-n a { color: var(--tft-deep); text-decoration: none; }
.tft-author-b { font-size: 16px; line-height: 1.6; color: var(--tft-ink-2); }
.tfd-pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 0; }
.tfd-pn { display: block; border: 1px solid var(--tft-line); border-top: 4px solid var(--tft-teal); padding: 16px 18px; text-decoration: none; background: #fff; transition: background .15s; }
.tfd-pn:hover { background: var(--tft-tint); }
.tfd-next { text-align: right; grid-column: 2; }
.tfd-pn small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tft-teal-d); margin: 0 0 4px; }
.tfd-pn strong { display: block; font-size: 18px; line-height: 1.35; color: var(--tft-deep); }
@media (max-width: 640px) { .tfd-pnav { grid-template-columns: 1fr; } .tfd-next { grid-column: auto; text-align: left; } .tft-author { flex-direction: column; } }

/* ---------- Story lists ---------- */
.tft-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tft-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tft-line); transition: box-shadow .15s, transform .15s; }
.tft-pcard:hover { box-shadow: 0 10px 26px rgba(21, 74, 82, .14); transform: translateY(-2px); }
.tft-pcard-pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #dfe8ea; }
.tft-pcard-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tft-pcard-blank { background: var(--tft-deep) url(https://10feettraveling.com/wp-content/uploads/sites/7/2026/10/brand/r3-mark-white.svg) center / 84px no-repeat; }
.tft-pcard-b { padding: 16px 18px 18px; }
.tft-pcard-t { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.tft-pcard-t a { color: var(--tft-deep); text-decoration: none; }
.tft-pcard-t a:hover { text-decoration: underline; }
.tft-pcard-b p { font-size: 15.5px; line-height: 1.55; color: var(--tft-ink-2); margin: 0; }
.tfd-date { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tft-teal-d); margin: 0 0 6px; }
.tft-pcard .more-link { display: block; margin: 10px 0 0; font-weight: 700; color: var(--tft-link); text-decoration: none; }
.tft-pcard .more-link + .more-link { display: none; }
.navigation.pagination { margin: 40px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-block; min-width: 44px; height: 44px; line-height: 44px; padding: 0 14px; text-align: center; border: 1px solid #c9d8da; color: var(--tft-deep); font-weight: 700; font-size: 16px; text-decoration: none; background: #fff; }
.pagination .page-numbers.current { background: var(--tft-deep); border-color: var(--tft-deep); color: #fff; }
.pagination a.page-numbers:hover { background: #eef6f7; }
.pagination .dots { border: 0; background: none; }
@media (max-width: 1000px) { .tft-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tft-cards { grid-template-columns: 1fr; gap: 16px; } .tft-body { padding: 26px 16px 44px; } }

/* ---------- Forms (Gravity Forms: the shuttle and photo requests) ---------- */
.gform_wrapper { font-family: var(--tft-font); }
.gform_wrapper .gfield_label, .gform_wrapper legend.gfield_label { font-size: 16px !important; font-weight: 700 !important; color: #1d2a2e; margin: 0 0 6px; }
.gform_wrapper :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=date], select) { height: 48px; border: 1px solid #b9cdd0; border-radius: 6px; padding: 0 12px; font: 17px var(--tft-font); background: #fff; color: #1d2a2e; box-shadow: none; }
.gform_wrapper textarea { border: 1px solid #b9cdd0; border-radius: 6px; padding: 12px; font: 17px/1.5 var(--tft-font); }
.gform_wrapper :is(input, select, textarea):focus { outline: none; border-color: var(--tft-teal); box-shadow: 0 0 0 3px rgba(57, 152, 163, .25); }
.gform_wrapper :is(.gfield_description, .ginput_complex label) { font-size: 14px !important; color: var(--tft-soft); }
.gform_wrapper :is(.gfield_checkbox, .gfield_radio) label { font-size: 16px !important; color: var(--tft-ink); }
.gform_wrapper :is(input[type=checkbox], input[type=radio]) { width: 19px; height: 19px; accent-color: var(--tft-teal); }
.gform_wrapper :is(.gform_button, input[type=submit]) { height: 52px; padding: 0 32px; border: 0; border-radius: 26px; background: var(--tft-deep); color: #fff; font: 700 16px var(--tft-font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.gform_wrapper :is(.gform_button, input[type=submit]):hover { background: var(--tft-teal); }
.gform_wrapper .gfield_required, .gform_wrapper .validation_message { color: #b3412e; }

/* ---------- Pages with sticky parts: keep them clear of the sticky header ---------- */
.tft-split-map { top: 104px !important; }
.tft-card { scroll-margin-top: 112px !important; }
body.admin-bar .tft-split-map { top: 136px !important; }
.tft-storyphoto img { width: 100%; max-height: 620px; object-fit: cover; object-position: 50% 40%; }

/* ---------- Back to top ---------- */
.tft-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--tft-deep); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .92; }
.tft-top[hidden] { display: none; }
.tft-top:hover { background: var(--tft-teal); }
.tft-top svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Lightbox for photos in posts ---------- */
.tft-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(8, 24, 27, .94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 56px 64px 20px; }
.tft-lb[hidden] { display: none; }
.tft-lb img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.tft-lb p { color: #e6f0f1; font-size: 15px; margin: 12px 0 0; text-align: center; max-width: 760px; min-height: 1.4em; }
.tft-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 48px; cursor: pointer; }
.tft-lb button:hover { background: rgba(255, 255, 255, .25); }
.tft-lb-x { top: 14px; right: 14px; }
.tft-lb-p { left: 14px; top: 50%; margin-top: -24px; }
.tft-lb-n { right: 14px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) { .tft-lb { padding: 56px 10px 20px; } .tft-lb-p, .tft-lb-n { top: auto; bottom: 14px; margin: 0; } }

/* ---------- Fallbacks if a mu-plugin is ever missing ---------- */
.tft-fallback-header, .tft-fallback-footer { background: var(--tft-deep); color: #fff; padding: 18px 24px; }
.tft-fallback-header a, .tft-fallback-footer a { color: #fff; }

@media print {
	.tfn-top, .tfn, #footer, .tft-top, .tenft-su, .tfd-pnav { display: none !important; }
	body { font-size: 12pt; }
}
