/* R39: source news layout with real filters, posts and galleries. */
body.htc5-r34 .r36-news:not(.gpc5-news-compact) .r36-news-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,26%);gap:16px;align-items:start}
body.htc5-r34 .r36-news .r36-news-main,body.htc5-r34 .r36-news .r36-news-sidebar{min-width:0}
body.htc5-r34 .r36-news .r36-news-feature{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:16px;padding:12px;align-items:center}
body.htc5-r34 .r36-news .r36-news-feature-label{display:none}
body.htc5-r34 .r36-news [hidden]{display:none!important}
body.htc5-r34 .r36-news .gpc5-news-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto;gap:9px;align-items:end;padding:14px;margin:16px 0;background:rgba(255,250,237,.91);border:1px solid #d6c39c;border-radius:10px}
body.htc5-r34 .r36-news .gpc5-news-controls>label{display:flex;position:relative;min-width:0;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#594b37}
body.htc5-r34 .r36-news .gpc5-news-controls input,body.htc5-r34 .r36-news .gpc5-news-controls select{width:100%;min-width:0;height:42px;border:1px solid #c9b17d;border-radius:8.4px;background:#fffaf0;color:#594b37;padding:8px}
body.htc5-r34 .r36-news .gpc5-news-search-label>svg{display:none!important}
body.htc5-r34 .r36-news .r39-native-filters{grid-column:1/-1}body.htc5-r34 .r36-news[data-r39-ready="1"] .r39-native-filters{display:none!important}
body.htc5-r34 .r36-news:not([data-r39-ready="1"]) .r39-category-field{display:none}
body.htc5-r34 .r36-news .r39-news-search-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:9px 14px;border:1px solid #765020;border-radius:8.4px;background:#765020;color:#fff9ed;font:700 14px 'Nunito Sans',sans-serif;cursor:pointer}
body.htc5-r34 .r36-news .gpc5-news-feed{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.htc5-r34 .r36-news .r36-news-card{min-width:0;overflow:hidden;background:rgba(255,250,237,.91);border:1px solid #d6c39c;border-radius:12px}
body.htc5-r34 .r36-news .r36-news-card .r36-news-media{min-width:0}
body.htc5-r34 .r36-news .r36-news-mini{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:10px;border-bottom:1px solid #e0cfad;text-decoration:none;color:#67431e;padding:8px 0}
body.htc5-r34 .r36-news .r36-news-mini small{display:block;font-size:12px;color:#70604a}body.htc5-r34 .r36-news .r36-news-mini img{width:100%;height:58px;object-fit:cover;border-radius:8px}
body.htc5-r34 .r39-albums{margin:22px 0;padding:18px;background:rgba(255,250,237,.91);border:1px solid #d6c39c;border-radius:13px}
body.htc5-r34 .r39-albums>h2{font:700 25px/1.3 Charm,Georgia,serif;margin:0 0 14px;color:#67431e}
body.htc5-r34 .r39-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}body.htc5-r34 .r39-album-grid>a{display:flex;flex-direction:column;gap:5px;border:1px solid #d6c39c;border-radius:12px;overflow:hidden;background:#fffaf0;color:#67431e;text-decoration:none}body.htc5-r34 .r39-album-grid>a>img{width:100%;aspect-ratio:16/9;object-fit:cover}body.htc5-r34 .r39-album-grid strong,body.htc5-r34 .r39-album-grid small{margin:0 10px}body.htc5-r34 .r39-album-grid small{margin-bottom:10px;color:#70604a}body.htc5-r34 .r39-album-grid>.gpc5-content-empty{grid-column:1/-1;margin:0}
body.htc5-r34 .r36-news.gpc5-news-compact .gpc5-news-feed{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:1050px){body.htc5-r34 .r36-news .gpc5-news-feed{grid-template-columns:repeat(2,minmax(0,1fr))}body.htc5-r34 .r36-news .gpc5-news-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.htc5-r34 .r36-news:not(.gpc5-news-compact) .r36-news-layout{grid-template-columns:minmax(0,1fr)}body.htc5-r34 .r36-news .r36-news-feature{grid-template-columns:minmax(0,1fr);gap:9px}body.htc5-r34 .r36-news .gpc5-news-feed,body.htc5-r34 .r36-news.gpc5-news-compact .gpc5-news-feed{grid-template-columns:minmax(0,1fr)}body.htc5-r34 .r36-news .gpc5-news-controls{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}body.htc5-r34 .r36-news .r39-news-search-button{font-size:12px;padding:8px 5px}body.htc5-r34 .r39-albums{padding:12px}body.htc5-r34 .r39-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
/* Remove the old search-pill wrapper; all four controls share a baseline. */
body.htc5-r34 .gpc5-content.r36-news .gpc5-news-controls{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto;align-items:end!important;margin:16px 0 12px!important}
body.htc5-r34 .gpc5-content.r36-news .gpc5-news-controls .gpc5-news-search-label{display:flex!important;align-items:stretch!important;text-align:left!important;border:0!important;background:transparent!important;padding:0!important;margin:0!important;box-shadow:none!important;border-radius:0!important;gap:5px!important}
body.htc5-r34 .gpc5-content.r36-news .gpc5-news-controls .gpc5-news-search-label input.gpc5-news-search{width:100%!important;height:42px!important;min-height:42px!important;border:1px solid #c9b17d!important;border-radius:8.4px!important;background:#fffaf0!important;padding:8px!important;color:#594b37!important}
@media(max-width:1050px){body.htc5-r34 .gpc5-content.r36-news .gpc5-news-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
