/*
Theme Name: KTF Magazine
Theme URI: https://www.keepingtropicalfish.co.uk/
Author: Graham Reed
Description: Magazine-style block theme for Keeping Tropical Fish. Child of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ktf-magazine
*/

/* Card polish */
.ktf-card { background: var(--wp--preset--color--base); border-radius: 14px; overflow: hidden; height: 100%; box-shadow: 0 1px 2px rgba(14,46,56,.06), 0 6px 24px rgba(14,46,56,.06); transition: transform .2s ease, box-shadow .2s ease; }
.ktf-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(14,46,56,.08), 0 12px 32px rgba(14,46,56,.12); }
.ktf-card .wp-block-post-featured-image { margin: 0; }
.ktf-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.ktf-card .ktf-card-body { padding: 1rem 1.15rem 1.25rem; }
.ktf-card .wp-block-post-title a { text-decoration: none; }
.ktf-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }

/* Section kicker (category label) */
.ktf-kicker, .ktf-kicker a { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--wp--preset--color--accent); text-decoration: none; }

/* Section heading rule */
.ktf-section-head { border-bottom: 3px solid var(--wp--preset--color--primary); padding-bottom: .35rem; }
.ktf-section-head a { text-decoration: none; }

/* Hero */
.ktf-hero .wp-block-cover__inner-container { max-width: 760px; }
.ktf-hero h1, .ktf-hero h2 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }

/* Header */
.ktf-masthead .wp-block-site-title a { text-decoration: none; }
.ktf-nav .wp-block-navigation-item__content { font-weight: 600; font-size: .95rem; }
.ktf-topbar { font-size: .8rem; }

/* Author box */
.ktf-author-box { border-left: 4px solid var(--wp--preset--color--accent); }

/* Ad slots: give AdSense room without layout shift */
.ktf-ad { min-height: 280px; display: flex; align-items: center; justify-content: center; }
.ktf-ad:empty { min-height: 0; }

/* Readable article body */
.single .wp-block-post-content > p:first-of-type { font-size: 1.2rem; line-height: 1.6; }
.single .wp-block-post-content img { border-radius: 10px; }
.single .wp-block-post-content table { font-size: .95rem; }

@media (max-width: 781px) {
  .ktf-hero { min-height: 360px !important; }
}
