/* Instant Weightloss Now redesign CSS
   Loaded from /wp-content/uploads/2026/11/iwln-custom.css
   Also imported from Additional CSS. Works with the Kadence child theme.
   Headlines are bold. Body text is large and dark so it is easy to read.
*/

:root {
  --iwln-teal: #0E4A46;
  --iwln-teal-deep: #0A3532;
  --iwln-teal-mid: #14625C;
  --iwln-accent: #C2410C;
  --iwln-accent-dark: #9A3412;
  --iwln-cream: #F6F1E8;
  --iwln-card: #FFFdf8;
  --iwln-text: #1A1714;
  --iwln-muted: #4A453F;
  --iwln-link: #0F5C4C;
  --iwln-line: #E4D9C9;
  --iwln-content: 800px;
  --iwln-wide: 1120px;
  --iwln-radius: 14px;
  --iwln-shadow: 0 10px 28px rgba(14, 40, 36, 0.12);
}

/* Page background and readable type */
body,
.site,
.wp-site-blocks,
#wrapper,
#page {
  background-color: var(--iwln-cream) !important;
  color: var(--iwln-text);
}

body,
body p,
.entry-content,
.entry-content p,
.wp-block-post-content,
.wp-block-post-content p {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--iwln-text);
}

h1, h2, h3, h4, h5, h6,
.entry-hero h1,
.entry-title,
.wp-block-post-title,
.site-title,
.site-title a,
.loop-entry h2,
.loop-entry h2 a {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 800 !important;
  color: var(--iwln-text) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1, .entry-hero h1, .entry-title, .wp-block-post-title, .single-content .entry-title {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem) !important;
}

h3 {
  font-size: 1.3rem !important;
}

a {
  color: var(--iwln-link);
}

a:hover {
  color: var(--iwln-accent-dark);
}

/* Header */
.site-header,
#masthead,
.kadence-header-row,
.header-desktop,
.header-mobile,
#main-header,
.kadence-header-main,
.header-row,
header#masthead,
.site-header-inner,
[class*="header-desktop-inner"],
[class*="header-mobile-inner"] {
  background: var(--iwln-teal) !important;
  color: #fff !important;
}

.kadence-header-top,
.kadence-header-main,
.kadence-header-bottom,
#main-header .site-header-row,
.site-main-header-wrap,
.site-header .site-header-wrap,
.site-header .header-row-item,
header .header-inner,
.site-main-header-inner-wrap {
  background: var(--iwln-teal) !important;
}

.site-header,
#masthead {
  border-bottom: 3px solid var(--iwln-accent);
}

.site-header a,
#masthead a,
.header-navigation a,
.header-menu-container a,
.menu-item a,
.site-title,
.site-title a,
.site-branding a,
.branding a,
.header-mobile a,
.mobile-toggle-button,
.menu-toggle-open,
.header-toggle {
  color: #fff !important;
  font-weight: 700;
}

.site-title,
.site-title a,
.branding .site-title,
.branding .site-title a {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
}

.site-description,
.site-header .site-description {
  color: #F3EDE3 !important;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header a:hover,
.header-navigation a:hover,
.menu-item a:hover {
  color: #FFD7B8 !important;
}

/* Current menu item */
.header-navigation .current-menu-item > a,
.header-navigation .current_page_item > a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Dropdowns */
.header-navigation ul ul,
.header-navigation .sub-menu,
.header-menu-container .sub-menu {
  background: var(--iwln-teal-deep) !important;
  border-radius: 8px;
  padding: 0.4rem 0;
}

.header-navigation .sub-menu a,
.header-menu-container .sub-menu a {
  color: #fff !important;
  font-weight: 650;
  white-space: nowrap;
}

/* Content width on posts and pages (not the designed home sections) */
.entry-content,
.wp-block-post-content,
.single-content .content-wrap,
.content-area .entry-content,
#primary .entry-content {
  max-width: var(--iwln-content);
  margin-left: auto;
  margin-right: auto;
}

/* No leftover default sidebar on this design */
body.single #secondary,
body.page #secondary,
body.blog #secondary,
body.archive #secondary,
.sidebar-right #secondary,
.sidebar-left #secondary,
#secondary.primary-sidebar,
aside#secondary {
  display: none !important;
}

body.single #primary,
body.page #primary,
body.blog #primary,
body.archive #primary,
.content-container,
.site-container {
  width: 100%;
  max-width: none;
}

/* Buttons */
.iwln-btn,
.wp-block-button__link,
button.button {
  display: inline-block;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  border: 2px solid transparent;
  line-height: 1.2;
  font-size: 1.05rem;
}

.iwln-btn-primary,
.wp-block-button__link {
  background: var(--iwln-accent) !important;
  color: #fff !important;
  border-color: var(--iwln-accent) !important;
}

.iwln-btn-primary:hover,
.wp-block-button__link:hover {
  background: var(--iwln-accent-dark) !important;
  border-color: var(--iwln-accent-dark) !important;
  color: #fff !important;
}

.iwln-btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
}

.iwln-btn-ghost:hover {
  background: #fff !important;
  color: var(--iwln-teal) !important;
}

.iwln-wrap {
  width: min(100% - 2rem, var(--iwln-wide));
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.iwln-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--iwln-teal-deep);
}

.iwln-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.iwln-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 28, 0.25) 0%, rgba(10, 30, 28, 0.55) 45%, rgba(8, 22, 20, 0.82) 100%);
}

.iwln-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 800px);
  margin: 0 auto;
  padding: 4.5rem 0 3.2rem;
}

.iwln-eyebrow {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  margin: 0 0 0.7rem;
  color: #FFE4C8;
}

.iwln-hero h1 {
  color: #fff !important;
  font-size: clamp(2.3rem, 5vw, 3.3rem) !important;
  font-weight: 800 !important;
  margin: 0 0 0.9rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.iwln-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
  color: #F6F1E8;
  font-weight: 500;
  max-width: 40rem;
}

.iwln-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Facts */
.iwln-facts {
  background: var(--iwln-teal);
  color: #fff;
  padding: 2.4rem 0;
}

.iwln-facts h2 {
  color: #fff !important;
  margin: 0 0 1.2rem;
}

.iwln-fact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.iwln-fact-grid li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--iwln-radius);
  padding: 1.1rem 1.15rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #F3EDE3;
}

.iwln-fact-grid strong {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

/* Cards */
.iwln-cards-section,
.iwln-band,
.iwln-credits,
.iwln-latest-wrap {
  padding: 2.8rem 0;
}

.iwln-cards-section h2,
.iwln-band h2,
.iwln-latest-title {
  margin: 0 0 0.5rem;
}

.iwln-section-lead {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: var(--iwln-muted);
  max-width: 40rem;
}

.iwln-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.iwln-card {
  display: flex;
  flex-direction: column;
  background: var(--iwln-card);
  border-radius: var(--iwln-radius);
  overflow: hidden;
  box-shadow: var(--iwln-shadow);
  text-decoration: none !important;
  color: var(--iwln-text) !important;
  border: 1px solid var(--iwln-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.iwln-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14, 40, 36, 0.16);
  color: var(--iwln-text) !important;
}

.iwln-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.iwln-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.iwln-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

.iwln-card-body p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--iwln-muted);
}

/* Photo band */
.iwln-band {
  background: #efe7d9;
}

.iwln-band-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.iwln-band-photos figure {
  margin: 0;
  background: var(--iwln-card);
  border-radius: var(--iwln-radius);
  overflow: hidden;
  box-shadow: var(--iwln-shadow);
}

.iwln-band-photos img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.iwln-band-photos figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.98rem;
  color: var(--iwln-muted);
  font-weight: 500;
}

/* Credits */
.iwln-credits {
  padding-top: 0.5rem;
  padding-bottom: 1.2rem;
}

.iwln-credits p {
  font-size: 0.95rem;
  color: var(--iwln-muted);
  line-height: 1.55;
  margin: 0;
}

/* Latest posts on the home page */
.iwln-latest-wrap {
  background: var(--iwln-cream);
}

.iwln-latest-title {
  margin-bottom: 1.2rem;
}

body.home .entry-archive-hero,
body.home .archive-hero,
body.home .entry-hero.loop-entry-hero,
body.home .hero-section,
body.home #inner-wrap > .entry-hero,
body.blog.home .page-title,
body.home .archive-title-wrap,
body.home .entry-archive-wrap > .entry-header {
  display: none !important;
}

/* Loop posts look like cards */
body.home .loop-entry,
body.home article.entry,
body.home .entry.loop-entry,
body.home .content-wrap .loop-entry.content-bg {
  background: var(--iwln-card);
  border-radius: var(--iwln-radius);
  box-shadow: var(--iwln-shadow);
  border: 1px solid var(--iwln-line);
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding: 0;
}

body.home .loop-entry img,
body.home .post-thumbnail img,
body.home .entry-loop-thumb img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

body.home .loop-entry .entry-content-wrap,
body.home .loop-entry .entry-inner,
body.home .loop-entry header,
body.home .loop-entry .entry-summary {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

body.home .loop-entry h2,
body.home .loop-entry .entry-title,
body.home .loop-entry .entry-title a {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
}

body.home .pagination,
body.home .nav-links {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 0 2rem;
}

/* Footer */
#colophon,
footer#colophon,
.site-footer,
.site-footer-wrap,
.kadence-footer,
.site-bottom-footer-wrap,
.site-footer .site-footer-row,
.site-footer .site-header-row-container-inner {
  background: var(--iwln-teal-deep) !important;
  color: #F3EDE3 !important;
}

.site-footer a,
#colophon a,
.site-footer .site-title,
.footer-html,
.footer-copyright,
.site-footer p {
  color: #F3EDE3 !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: #FFD7B8 !important;
}

.site-disclaimer {
  background: var(--iwln-cream);
  color: var(--iwln-text);
  font-size: 1.02rem !important;
  line-height: 1.65 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 1.4rem 1rem 2rem !important;
  text-align: left !important;
}

.site-disclaimer a {
  color: var(--iwln-link);
  font-weight: 700;
}

/* Single posts and pages */
.single .entry-content img,
.page .entry-content img {
  height: auto;
  border-radius: 8px;
}

/* Amazon notice already in post body stays readable */
.entry-content em,
.entry-content strong {
  color: var(--iwln-text);
}

/* Mobile */
@media (max-width: 900px) {
  .iwln-fact-grid,
  .iwln-card-grid,
  .iwln-band-photos {
    grid-template-columns: 1fr 1fr;
  }

  .iwln-hero {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  body,
  body p,
  .entry-content,
  .entry-content p {
    font-size: 1.12rem;
  }

  .iwln-fact-grid,
  .iwln-card-grid,
  .iwln-band-photos {
    grid-template-columns: 1fr;
  }

  .iwln-hero {
    min-height: 520px;
  }

  .iwln-hero-inner {
    padding: 3.4rem 0 2.4rem;
  }

  .iwln-card img,
  .iwln-band-photos img {
    height: 210px;
  }

  .iwln-btn {
    width: 100%;
    text-align: center;
  }
}

/* Hide the single Uncategorized label. It does not help readers. */
.loop-entry .entry-taxonomies,
.loop-entry .entry-loop-taxonomies,
.entry-taxonomies,
.loop-entry-taxonomies,
.taxonomy-category,
span.category-uncategorized,
.entry-loop-taxonomies {
  /* keep screen reader text if present; hide visual uncategorized chips */
}

.loop-entry a[rel="category tag"],
.entry-meta a[rel="category"],
.loop-entry .loop-entry-taxonomies,
article.entry .entry-taxonomies,
.loop-entry .entry-loop-taxonomies {
  display: none !important;
}

/* Keep images and galleries inside the content column */
.entry-content img,
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-columns,
.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100% !important;
  height: auto;
}

.entry-content .wp-block-gallery,
.entry-content .wp-block-columns {
  box-sizing: border-box;
}

/* Make post featured title graphics crop neatly in the latest tips grid */
body.home .loop-entry .post-thumbnail,
body.home .loop-entry .entry-loop-thumbnail {
  margin: 0;
}

body.home .loop-entry .post-thumbnail img,
body.home .loop-entry .entry-loop-thumbnail img,
body.home .loop-entry .thumbnail-inner img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--iwln-radius) var(--iwln-radius) 0 0;
}
