/*
Theme Name: Wright County DFL
Theme URI: https://www.wrightcountydfl.com
Author: Dan Fiskum Law
Description: Custom blog theme for Dan Fiskum Law, Wright County. Simple homepage with recent posts and an older-posts list, plus a single post template. No menus, no extra pages.
Version: 2.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wrightcountydfl
*/

:root{
  --navy:        #0B2A4D;
  --navy-deep:   #06214B;
  --red:         #9E1414;
  --paper:       #FAF8F4;
  --ink:         #21242B;
  --muted:       #6B665C;
  --line:        #DCD6C8;
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a{ color: var(--navy); text-decoration: none; }
a:hover{ color: var(--red); }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

h1, h2, h3{
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

img{ max-width: 100%; }

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


/*Start Code By CBN */

.custom_header{margin-bottom: 30px;}
.custom_header h1{text-align: center; background: #eee; padding: 16px 0px;}
.single-post__title{text-align: center; background: #eee; padding: 16px 0px;}
.view_more_link{display:block;width:fit-content;margin:30px auto 0;background:#042148;color:#fff;padding:10px 25px;border-radius:6px;border:2px solid #042148;text-decoration:none;}
.view_more_link:hover{background-color: transparent; color:#042148;}

/* Account Menu */
.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  z-index: 1000;float: right;
}

.account-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.account-menu__toggle:hover,
.account-menu__toggle:focus-visible,
.account-menu.is-active .account-menu__toggle {
  background: #03204A;
  color: #fff;
  outline: none;
}

.account-menu__icon {
  flex-shrink: 0;
}

.account-menu__arrow {
  flex-shrink: 0;
  transition: transform .2s ease;
}

.account-menu.is-active .account-menu__arrow {
  transform: rotate(180deg);
}

.account-menu__dropdown {
  position: absolute;
  top: calc(100%);
  right: 0;
  min-width: 200px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  z-index: 9999;
}

.account-menu__dropdown[hidden] {
  display: none !important;
}

.account-menu__dropdown a {
  display: block;
  padding: 11px 16px;
  color: #222;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color .2s ease, color .2s ease;
}

.account-menu__dropdown a:hover,
.account-menu__dropdown a:focus-visible {
  background: #03204A;
  color: #fff;
  outline: none;
}

.account-menu__dropdown a:focus-visible {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 767px) {
  .account-menu {
    margin-left: 8px;
  }

  .account-menu__toggle {
    gap: 6px;
    padding: 9px 8px;
    font-size: 14px;
  }

  .account-menu__dropdown {
    min-width: 180px;
  }
}


 
/* Navigation layout: centered menu + account on right */
.masthead__nav {
    display: block;
    width: 100%;
}

.masthead__nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 54px;
}

/* Center navigation */
.masthead__nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    float: none;
    margin: 0 auto;
    padding: 10px 150px;
}

/* Account stays on the right */
.account-menu {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    float: none;
    margin-left: 0;
    z-index: 1000;
}

/* Desktop */
@media (min-width: 641px) {
    .masthead__toggle {
        display: none;
    }

    .masthead__nav-list {
        display: flex;
    }
}

/* Mobile navigation */
@media (max-width: 640px) {
    .masthead__nav-inner {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 0 16px;
    }

    /* Hamburger on left */
    .masthead__toggle {
        display: flex;
        align-items: center;
        width: auto;
        padding: 14px 0;
        margin: 0;
        flex: 0 0 auto;
    }

    /* Account icon on right */
    .account-menu {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .account-menu__toggle {
        padding: 9px 0 9px 8px;
        gap: 5px;
        font-size: 13px;
    }

    /* Menu links appear below the top bar */
    .masthead__nav-list {
        display: none;
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 4px 0 14px;
        margin: 0;
    }

    .masthead__nav.is-open .masthead__nav-list {
        display: flex;
    }

    .masthead__nav-list li {
        width: 100%;
    }

    .masthead__nav-list a {
        display: block;
        padding: 10px 0;
        border-top: 1px solid var(--line);
    }

    .account-menu__dropdown {
        right: 0;
        min-width: 180px;
    }
}
 









.intro__website{margin-top: 10px !important;}

.blog-pagination {
    margin: 40px 0px;
    display: flex;
    justify-content: center;
}

.blog-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination li {
    margin: 0;
    padding: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #03204A;
    background: #fff;
    color: #03204A;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Hover */
.blog-pagination a:hover {
    background: #03204A;
    color: #fff;
    border-color: #03204A;
}

/* Active page */
.blog-pagination .current {
    background: #03204A;
    color: #fff;
    border-color: #03204A;
}

/* Disabled Previous / Next */
.blog-pagination .dots {
    border: none;
    background: transparent;
    color: #03204A;
    min-width: auto;
}

.blog-pagination .prev,
.blog-pagination .next {
    padding-left: 16px;
    padding-right: 16px;
}

/* Mobile */
@media (max-width: 600px) {
    .blog-pagination {
        margin-top: 30px;
    }

    .blog-pagination ul {
        gap: 5px;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        font-size: 14px;
    }
}

/*End Code by CBN*/


/* ---------- Masthead ---------- */

.masthead{
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.masthead__inner{
  padding: 28px 24px 22px;
  display: flex;
  justify-content: center;
}

.masthead__logo{
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

.masthead__rule{
  height: 3px;
  background: var(--red);
}

/* ---------- Masthead disclaimer (top copy — footer has its own) ---------- */

.masthead__disclaimer{
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.masthead__disclaimer-text{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.masthead__disclaimer-text strong{ color: var(--navy); }

/* ---------- Masthead nav (Home, About Dan, etc.) ---------- */

.masthead__nav{
  border-top: 1px solid var(--line);
  background: var(--paper);
	width: 100%;
  display: inline-block;
}

.masthead__nav-inner{
  padding: 0 24px;
  position: relative;
}

.masthead__nav-list{
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 28px;float: left;
}

.masthead__nav-list li{ margin: 0; }

.masthead__nav-list a{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--navy);
  text-transform: uppercase;
}
.masthead__nav-list a:hover{ color: var(--red); }
.masthead__nav-list .current-menu-item a,
.masthead__nav-list .current_page_item a{ color: var(--red); }

.masthead__toggle{
  display: none;
  align-items: center;
  gap: 10px;
  width: 50%;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--navy);
}

.masthead__toggle-bars,
.masthead__toggle-bars::before,
.masthead__toggle-bars::after{
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform .15s ease, opacity .15s ease;
}
.masthead__toggle-bars{ position: relative; }
.masthead__toggle-bars::before{ position: absolute; top: -6px; left: 0; }
.masthead__toggle-bars::after{ position: absolute; top: 6px; left: 0; }

.masthead__nav.is-open .masthead__toggle-bars{ background: transparent; }
.masthead__nav.is-open .masthead__toggle-bars::before{ transform: translateY(6px) rotate(45deg); }
.masthead__nav.is-open .masthead__toggle-bars::after{ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px){
  .masthead__toggle{ display: flex; }

  .masthead__nav-list{
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 4px 0 14px;
  }

  .masthead__nav-list li{ width: 100%; }

  .masthead__nav-list a{
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
  }

  .masthead__nav.is-open .masthead__nav-list{ display: flex; }
}

/* ---------- Intro row (photo + byline) ---------- */

.intro{
  padding: 40px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.intro__photo{
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 3px solid var(--navy);
}

.intro__text p{ margin: 0; }

.intro__kicker{
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 5px;
}

.intro__name{
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 25px;
  color: var(--navy);
  font-weight: 600;
}

.intro__role{
  color: var(--muted);
  font-size: 15px;
  margin-top: 2px !important;
}

.intro__phone{
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  margin-top: 9px !important;
}
.intro__phone-icon{
  display: inline-flex;
  flex: none;
  color: var(--red);
}
.intro__phone-icon svg{
  display: block;
  width: 15px;
  height: 15px;
}

.intro__offices{
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px !important;
}

/* ---------- Blog introduction (homepage only) ---------- */

.blog-intro{
  padding: 34px 0 6px;
}

.blog-intro__body p{
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink);
}
.blog-intro__body p:last-child{ margin-bottom: 0; }

.blog-intro__body strong{ color: var(--navy); }
.blog-intro__body em{ color: var(--muted); font-style: italic; }

/* ---------- Homepage layout: About column (left) + Posts column (right) ---------- */

.layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
}

.layout__intro{ min-width: 0; }

.layout__posts{ min-width: 0; }

@media (max-width: 860px){
  .layout{
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- Page content ---------- */

.content{
  padding: 28px 0 64px;
}

.main{ min-width: 0; }

.content .sidebar{
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ---------- Section labels ---------- */

.section-label{
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .03em;
  padding-bottom: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Post entries (main column) ---------- */

.post{
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.post:last-child{
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post--featured .post__title{ font-size: 30px; }

.post__thumb{
  display: block;
  margin-bottom: 16px;
}
.post__thumb img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.post__title{
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.post__title a{ color: var(--navy); }
.post__title a:hover{ color: var(--red); }

.post__meta{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.post__meta .dot{ margin: 0 6px; }

.post__excerpt{
  color: var(--ink);
  margin-bottom: 12px;
}

.post__more{
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}
.post__more:hover{ color: var(--navy); }

/* ---------- Sidebar: previous posts ---------- */

.sidebar__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar__item{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sidebar__item:first-child{ padding-top: 0; }
.sidebar__item:last-child{ border-bottom: none; }

.sidebar__title{
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.sidebar__title:hover{ color: var(--red); }

.sidebar__date{
  font-size: 12px;
  color: var(--muted);
}

.sidebar__empty{
  font-size: 14px;
  color: var(--muted);
}

/* ---------- About Dan page ---------- */

.about{
  padding: 40px 0 64px;
  max-width: 760px;
}

.about__kicker{
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 6px;
}

.about__title{
  font-size: 30px;
  margin-bottom: 24px;
}

.about__content{ overflow: hidden; } /* clears the float */

.about__photo{
  float: left;
  width: 340px;
  height: 340px;
  object-fit: cover;
  border: 2px solid var(--navy);
  margin: 0 30px 16px 0;
}

.about__content p{
  margin: 0 0 18px;
  font-size: 16px;
}
.about__content p:last-child{ margin-bottom: 0; }

@media (max-width: 640px){
  .about__photo{
    float: none;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 0 20px;
  }
}

/* ---------- Single post (detail page) ---------- */

.single-post__back{
  display: inline-block;
  padding-top: 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.single-post__back:hover{ color: var(--red); }

/* Full page-width hero image */
.single-post__hero{
  margin: 22px 0 36px;
}
.single-post__hero img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.single-post{
  padding: 0 0 64px;
  max-width: 720px;
}

.single-post__title{
  font-size: 34px;
  margin-bottom: 10px;
}

.single-post__meta{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.single-post__meta .dot{ margin: 0 6px; }

.single-post__body{ font-size: 17px; }
.single-post__body p{ margin: 0 0 20px; }
.single-post__body h2,
.single-post__body h3{ margin: 32px 0 14px; }
.single-post__body blockquote{
  margin: 24px 0;
  padding-left: 18px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  font-style: italic;
}
.single-post__body img{ height: auto; margin: 8px 0; }

/* ---------- Comments ---------- */

.comments-area{
  max-width: 720px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.comments-title{
  font-size: 22px;
  margin-bottom: 24px;
}

.comment-list{
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.comment-list .comment{
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.comment-list .comment:first-child{ padding-top: 0; }

.comment-list ol.children{
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
}

.comment-author{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.comment-author .avatar{
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  display: block;
}

.comment-author .fn{
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}

.comment-metadata{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.comment-metadata a{ color: var(--muted); }
.comment-metadata a:hover{ color: var(--red); }

.comment-content p{
  margin: 0 0 12px;
  font-size: 15px;
}
.comment-content p:last-child{ margin-bottom: 0; }

.comment-reply-link{
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--red);
}
.comment-reply-link:hover{ color: var(--navy); }

.no-comments{
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Comment form */

.comment-respond{
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comment-reply-title{
  font-size: 20px;
  margin: 0 0 6px;
}
.comment-reply-title small{
  margin-left: 10px;
}
.comment-reply-title small a{
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
}
.comment-reply-title small a:hover{ color: var(--red); }

.logged-in-as{
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.logged-in-as a{ color: var(--navy); }
.logged-in-as a:hover{ color: var(--red); }

.required-field-message{
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.required{ color: var(--red); text-decoration: none; }

.comment-form p{ margin: 0 0 18px; }

.comment-form label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}

.comment-form textarea{ resize: vertical; }

.comment-form input:focus,
.comment-form textarea:focus{
  outline: none;
  border-color: var(--navy);
}

.form-submit{ margin-top: 4px; }

#submit{
  padding: 11px 26px;
  background: var(--navy);
  color: #fff;
  border: none;
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}
#submit:hover{ background: var(--red); }

.akismet-fields-container{ display: none !important; }

@media (max-width: 640px){
  .comments-title{ font-size: 19px; }
  .comment-reply-title{ font-size: 18px; }
}

/* ---------- Footer / disclaimer ---------- */

.site-footer{
  background: var(--navy-deep);
  color: #C9D2DE;
  border-top: 3px solid var(--red);
}

.site-footer .wrap{ padding: 26px 24px; }

.disclaimer{
  font-size: 12.5px;
  line-height: 1.7;
  color: #AEB9CA;
  max-width: 760px;
}

.disclaimer strong{ color: #E4E9F1; }

.copyright{
  font-size: 12px;
  color: #7C8AA0;
  margin-top: 12px;
}
.blog_post_list{ padding-bottom: 85px; }
/* ---------- Responsive ---------- */

@media (max-width: 720px){
  .post--featured .post__title{ font-size: 24px; }
  .intro{ padding-top: 30px; }
  .single-post__title{ font-size: 26px; }
}
