/* HomePictures Premium WebApp UI layer for HomePictures Studio Fast.
 * Does not alter, relocate, refresh or visually disguise AdSense units.
 */
:root {
  --hpwa-green: #287a2b;
  --hpwa-orange: #e88927;
  --hpwa-ink: #18231b;
  --hpwa-muted: #707970;
  --hpwa-paper: #fff;
  --hpwa-soft: #f7f5f0;
}

/* Editorial article typography and reading comfort */
.hpwa-article-page .hp-single-post {
  color: var(--hpwa-ink);
}

.hpwa-article-page .hp-post-heading {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(18px, 4vw, 34px) 16px 18px;
}

.hpwa-article-page .hp-post-kicker {
  color: var(--hpwa-green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.5;
}

.hpwa-article-page .hp-post-heading .entry-title {
  color: var(--hpwa-ink);
  font-size: clamp(1.75rem, 5.2vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 12px 0;
  text-wrap: balance;
}

.hpwa-article-page .hp-post-heading .entry-meta {
  color: var(--hpwa-muted);
  font-size: .84rem;
}

.hpwa-article-page .hp-featured-image {
  max-width: 1120px;
  margin: 0 auto 22px;
  padding-inline: 12px;
}

.hpwa-article-page .hp-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.hpwa-article-page .hp-post-intro,
.hpwa-article-page .hp-house-facts,
.hpwa-article-page .hp-post-quicklinks,
.hpwa-article-page .hp-video-section,
.hpwa-article-page .hp-article-content {
  max-width: 760px;
  margin-inline: auto;
}

.hpwa-article-page .hp-post-intro {
  display: flex;
  gap: 12px;
  margin-block: 20px;
  padding: 16px;
  border: 1px solid #e9ece6;
  border-radius: 14px;
  background: var(--hpwa-soft);
}

.hpwa-article-page .hp-post-intro p {
  margin: 5px 0 0;
  color: var(--hpwa-muted);
  line-height: 1.6;
}

.hpwa-article-page .hp-intro-mark {
  color: var(--hpwa-green);
  font-size: 1.6rem;
  line-height: 1;
}

.hpwa-article-page .hp-house-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-block: 18px;
  padding-inline: 12px;
}

.hpwa-article-page .hp-fact {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 3px 8px;
  align-content: center;
  padding: 13px;
  border: 1px solid #e8ebe5;
  border-radius: 12px;
  background: #fff;
}

.hpwa-article-page .hp-fact-icon {
  grid-row: span 2;
  color: var(--hpwa-green);
  font-size: 1.1rem;
}

.hpwa-article-page .hp-fact-value {
  font-weight: 700;
  line-height: 1.3;
}

.hpwa-article-page .hp-fact-label {
  color: var(--hpwa-muted);
  font-size: .76rem;
}

.hpwa-article-page .hp-fact-wide {
  grid-column: 1 / -1;
}

.hpwa-article-page .hp-post-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-inline: 12px;
  margin-block: 18px 28px;
}

.hpwa-article-page .hp-post-quicklinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #edf5ec;
  color: var(--hpwa-green);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}

.hpwa-article-page .hp-video-section {
  padding-inline: 12px;
  margin-block: 28px;
}

.hpwa-article-page .hp-video-heading span,
.hpwa-article-page .hp-article-label {
  color: var(--hpwa-green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.hpwa-article-page .hp-video-heading h2 {
  margin: 6px 0;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.25;
}

.hpwa-article-page .hp-video-heading p {
  color: var(--hpwa-muted);
  margin: 0 0 14px;
}

.hpwa-article-page .recipe-video button,
.hpwa-article-page .hp-video-section button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.hpwa-article-page .recipe-video button span,
.hpwa-article-page .hp-video-section button span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(24,35,27,.92);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.hpwa-article-page .recipe-video iframe,
.hpwa-article-page .hp-video-section iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 16px;
}

.hpwa-article-page .hp-article-content {
  padding: 0 16px;
  color: #263129;
  font-size: clamp(1.02rem, 2.8vw, 1.13rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.hpwa-article-page .hp-article-content .hp-article-label {
  margin-bottom: 16px;
}

.hpwa-article-page .hp-article-content p {
  margin-block: 0 1.35em;
}

.hpwa-article-page .hp-article-content h2,
.hpwa-article-page .hp-article-content h3 {
  color: var(--hpwa-ink);
  line-height: 1.3;
  margin-top: 1.7em;
}

.hpwa-article-page .hp-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.hpwa-article-page .hp-article-content figure {
  margin: 1.5em 0;
}

.hpwa-article-page .hp-article-content blockquote {
  margin: 1.5em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--hpwa-green);
  background: var(--hpwa-soft);
  border-radius: 0 12px 12px 0;
}

/* Install prompt is shown only after browser signals installability.
   It is never injected near or into ad elements. */
.hpwa-install-prompt {
  position: fixed;
  z-index: 9000;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 520px;
  margin-inline: auto;
  padding: 15px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
  color: var(--hpwa-ink);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
  font: inherit;
}

.hpwa-install-prompt[hidden] { display: none !important; }
.hpwa-install-message { display: grid; gap: 4px; margin-bottom: 12px; }
.hpwa-install-message span { color: var(--hpwa-muted); font-size: .88rem; line-height: 1.45; }
.hpwa-install-actions { display: flex; justify-content: flex-end; gap: 8px; }
.hpwa-install-actions button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-weight: 650; cursor: pointer; }
#hpwa-install-later { background: #f1f2ef; color: var(--hpwa-ink); }
#hpwa-install-now { background: var(--hpwa-green); color: #fff; }

@media (min-width: 768px) {
  .hpwa-article-page .hp-post-intro,
  .hpwa-article-page .hp-house-facts,
  .hpwa-article-page .hp-post-quicklinks,
  .hpwa-article-page .hp-video-section,
  .hpwa-article-page .hp-article-content { max-width: 760px; }
  .hpwa-install-prompt { left: auto; right: 24px; bottom: 24px; }
}

@media (max-width: 480px) {
  .hpwa-article-page .hp-featured-image { padding-inline: 0; }
  .hpwa-article-page .hp-featured-image img { border-radius: 0; }
  .hpwa-article-page .hp-house-facts { gap: 8px; }
  .hpwa-article-page .hp-fact { padding: 11px; }
}

/* 0.3.0: actual plugin-owned article template styling (not just legacy selectors). */
.hpwa-article-area { width:100%; max-width:100%; margin:0 auto; }
.hpwa-article-main { width:100%; max-width:100%; }
.hpwa-article { color:var(--hpwa-ink); background:#fff; margin:0 auto 28px; }
.hpwa-article-header { max-width:820px; margin:0 auto; padding:12px 18px 20px; }
.hpwa-topline { display:grid; grid-template-columns:40px 1fr 40px; align-items:center; min-height:44px; gap:8px; margin-bottom:22px; }
.hpwa-back,.hpwa-share { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border:0; border-radius:50%; background:#f4f6f3; color:#17231a; font-size:25px; text-decoration:none; cursor:pointer; }
.hpwa-brand { display:flex; justify-content:center; align-items:center; gap:7px; font-size:17px; font-weight:800; letter-spacing:-.035em; color:#17231a; white-space:nowrap; }
.hpwa-brand-mark { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:7px; color:#fff; background:#25832d; font-size:17px; }
.hpwa-article-category { margin-bottom:10px; color:var(--hpwa-green); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.hpwa-article-category .category-list a { display:inline-block; padding:5px 10px; background:#eaf4e9; color:#257b2b; border-radius:30px; text-decoration:none; }
.hpwa-article-title { margin:0 0 12px; font-size:clamp(26px,6.2vw,40px); font-weight:800; line-height:1.16; letter-spacing:-.04em; color:#17231a; text-wrap:balance; }
.hpwa-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:#6d756e; font-size:13px; }
.hpwa-hero-image { width:100%; max-width:1100px; margin:0 auto 20px; padding:0 12px; box-sizing:border-box; }
.hpwa-hero-image img { display:block; width:100%; height:auto; max-height:620px; aspect-ratio:16/10; object-fit:cover; border-radius:18px; }
.hpwa-intro { max-width:760px; margin:0 auto 18px; padding:0 20px; font-size:17px; line-height:1.7; color:#343c35; }
.hpwa-intro p { margin:0; }
.hpwa-home-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; max-width:760px; margin:18px auto 24px; padding:0 18px; }
.hpwa-fact { min-width:0; padding:13px 14px; border:1px solid #e8ece6; border-radius:13px; background:#f8faf7; }
.hpwa-fact strong { display:block; overflow-wrap:anywhere; color:#1c7027; font-size:16px; line-height:1.3; }
.hpwa-fact span { display:block; margin-top:4px; color:#747c75; font-size:12px; }
.hpwa-fact-wide { grid-column:1/-1; }
.hpwa-video-block { max-width:760px; margin:24px auto; padding:0 18px; }
.hpwa-section-eyebrow { color:#27812c; font-size:11px; font-weight:800; letter-spacing:.12em; }
.hpwa-video-block h2 { margin:5px 0 12px; font-size:24px; font-weight:800; color:#1b251c; }
.hpwa-video-block .recipe-video { margin:0; }
.hpwa-video-block .recipe-video button { width:100%; min-height:220px; border:0; border-radius:16px; background-position:center; background-size:cover; position:relative; cursor:pointer; }
.hpwa-video-block .recipe-video button span { display:inline-block; padding:10px 17px; border-radius:30px; background:#fff; color:#17231a; font-weight:700; }
.hpwa-video-block iframe { width:100%; aspect-ratio:16/9; height:auto; border:0; border-radius:16px; }
.hpwa-story { max-width:760px; margin:26px auto 0; padding:0 20px; color:#262d27; font-size:18px; line-height:1.8; overflow-wrap:anywhere; }
.hpwa-story-label { margin-bottom:16px; padding-left:12px; border-left:4px solid #27812c; color:#1d7027; font-size:12px; font-weight:800; letter-spacing:.09em; }
.hpwa-story h2,.hpwa-story h3 { margin:1.45em 0 .65em; color:#17231a; font-weight:800; line-height:1.25; }
.hpwa-story img { max-width:100%; height:auto; border-radius:12px; }
.hpwa-story figure { margin:24px 0; }
.hpwa-story .wp-block-gallery { gap:10px; }
.hpwa-story .wp-block-gallery img { border-radius:10px; }
.hpwa-story .wp-block-embed iframe,.hpwa-story iframe { max-width:100%; }
.hpwa-entry-footer { max-width:760px; margin:24px auto; padding:0 20px; }
.hpwa-install-prompt { position:fixed; z-index:9999; left:12px; right:12px; bottom:12px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; padding:14px; border:1px solid #e5e8e3; border-radius:18px; background:#fff; box-shadow:0 8px 30px rgba(0,0,0,.16); color:#17231a; }
.hpwa-install-prompt[hidden] { display:none!important; }
.hpwa-install-message { display:flex; flex-direction:column; gap:3px; flex:1 1 180px; font-size:13px; }
.hpwa-install-message strong { font-size:16px; }
.hpwa-install-actions { display:flex; gap:8px; }
.hpwa-install-actions button { padding:9px 16px; border:0; border-radius:10px; background:#eef1ed; color:#17231a; font-weight:700; }
.hpwa-install-actions #hpwa-install-now { background:#27812c; color:#fff; }
@media(min-width:782px){
 .hpwa-article-area { max-width:1160px; }
 .hpwa-article { border-radius:20px; }
 .hpwa-hero-image { padding:0 22px; }
 .hpwa-hero-image img { border-radius:22px; }
}
@media(max-width:480px){
 .hpwa-article-header { padding:8px 16px 18px; }
 .hpwa-topline { margin-bottom:18px; }
 .hpwa-article-title { font-size:28px; }
 .hpwa-hero-image { padding:0 10px; }
 .hpwa-hero-image img { aspect-ratio:4/3; border-radius:14px; }
 .hpwa-intro { font-size:16px; padding:0 18px; }
 .hpwa-story { font-size:17px; line-height:1.75; padding:0 18px; }
 .hpwa-home-facts { padding:0 14px; }
}
