@charset "utf-8";

/*
 * DaveKane.net modern visual refresh
 * Existing PHP, content, navigation, and links are preserved.
 */

:root {
  --navy: #17324d;
  --navy-dark: #0e2438;
  --navy-soft: #254d70;
  --gold: #d99a35;
  --gold-light: #f5dfb8;
  --green: #35745a;
  --wine: #7d2e35;
  --ink: #26323d;
  --muted: #63717c;
  --paper: #ffffff;
  --canvas: #f5f1e9;
  --canvas-warm: #fbf8f2;
  --line: #dfe4e7;
  --shadow: 0 18px 50px rgba(21, 43, 61, 0.14);
  --shadow-soft: 0 8px 24px rgba(21, 43, 61, 0.10);
  --radius: 14px;
  --radius-small: 9px;
  --content-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 34px 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 154, 53, 0.16), transparent 30rem),
    linear-gradient(145deg, #efe7da 0%, var(--canvas) 48%, #e8eef1 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

#container {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(23, 50, 77, 0.13);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.header {
  position: relative;
  z-index: 1;
  min-height: 170px;
  background-color: var(--navy-dark);
  /*background-image:
    linear-gradient(100deg, rgba(14, 36, 56, 0.95), rgba(40, 75, 100, 0.76)),
    url(../images/davekanelogo2.png);*/
  background-image: url(../images/davekanelogo2.png);
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: contain;
  border-bottom: 4px solid var(--gold);
}

#box-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
}

/* Navigation */
.art-nav {
  position: relative;
  z-index: 100;
  min-height: 58px;
  margin: 0;
  padding: 0 18px;
  text-align: center;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.art-nav-l,
.art-nav-r {
  display: none;
}

.art-nav-outer {
  position: relative;
  width: 100%;
  text-align: center;
}

#navmenu,
#navmenu ul {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

#navmenu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 58px;
  font-size: 0.95rem;
}

#navmenu::after,
#navmenu ul::after {
  content: none;
}

#navmenu li {
  position: relative;
  z-index: 5;
  float: none;
  display: block;
  margin: 0;
  padding: 0;
}

#navmenu li:hover {
  z-index: 1000;
}

#navmenu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  height: auto;
  padding: 0 15px;
  overflow: visible;
  color: #f6f8fa;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 160ms ease, color 160ms ease;
}

#navmenu > li > a:hover,
#navmenu > li:hover > a,
#navmenu > li > a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

#navmenu a .l,
#navmenu a .r {
  display: none;
}

#navmenu a .t {
  display: block;
  margin: 0;
  padding: 0;
  color: inherit;
  line-height: 1.25;
  text-align: center;
}

#navmenu a .t img {
  display: block;
  width: auto;
  max-width: 116px;
  height: auto;
  max-height: 28px;
  filter: brightness(0) invert(1);
}

#navmenu a .j img {
  display: block;
  width: auto;
  max-width: 116px;
  height: auto;
  max-height: 28px;
  //filter: brightness(0) invert(1);
}

#navmenu ul {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

#navmenu li:hover > ul,
#navmenu li:focus-within > ul {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#navmenu ul li {
  float: none;
  clear: both;
  width: 100%;
}

#navmenu ul a,
#navmenu ul a:link,
#navmenu ul a:visited {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px 12px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 7px;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: left;
  text-indent: 0;
  text-decoration: none;
  white-space: nowrap;
}

#navmenu ul li a:hover,
#navmenu ul li:hover > a,
#navmenu ul a:focus-visible {
  color: var(--navy-dark);
  background: #eef3f6;
  outline: none;
}

#navmenu ul #jokes a {
  width: auto;
}

/* Main content */
.content {
  min-height: 430px;
  padding: clamp(32px, 5vw, 62px) clamp(24px, 7vw, 76px) 58px;
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas-warm);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.content > :first-child {
  margin-top: 0;
}

.content p {
  margin: 0 0 1.15em;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  text-wrap: balance;
}

.content h1 {
  margin: 0 0 0.7em;
  font-size: clamp(2rem, 5vw, 3rem);
}

.content h2,
h2.art-postheader {
  margin: 0 0 1em;
  color: var(--navy-dark);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  text-align: center;
}

.content h3 {
  margin: 1.5em 0 0.6em;
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
}

.content h4 {
  margin: 1.45em 0 0.55em;
  font-size: 1.17rem;
}

.content a,
.content a:link,
.content a:visited {
  color: #175b8c;
  font-family: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(23, 91, 140, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content a:hover,
.content a:focus-visible {
  color: #a44b13;
  text-decoration-color: currentColor;
  outline: none;
}

.content img {
  max-width: 100%;
  height: auto;
}

img.centered,
IMG.centered {
  display: block;
  margin: 0 auto 1.25rem;
}

.content iframe,
.content video,
.content embed {
  display: block;
  width: min(100%, 720px);
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  margin: 1.25rem auto 2.25rem;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.content hr {
  height: 1px;
  margin: 2.2rem 0;
  background: var(--line);
  border: 0;
}

.content ul,
.content ol {
  padding-left: 1.4rem;
}

.content li {
  padding: 0.25rem 0;
}

.center {
  text-align: center;
}

.cleared {
  display: block;
  clear: both;
  float: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.numfont{
    margin: 1.45em 0 0.55em;
    font-size: 1.3rem;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Sans-Serif;    
    text-align: center;
}

/* Reusable legacy content boxes, visually refreshed */
.textbox,
.textbox2,
.textbox3,
#doublebox,
#jokesbox,
#yourstories1,
#yourstories2,
#justforfunds1,
#justforfunds2,
#radioad {
  width: min(100%, 820px);
  margin: 1.5rem auto;
  padding: clamp(20px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.textbox {
  width: min(100%, 420px);
  margin-left: auto;
}

.textbox3 {
  color: var(--ink);
}

#jokesbox .textbox {
  margin: 1rem auto;
}

#yourstories2,
#radioad {
  color: #fff;
  background: linear-gradient(135deg, var(--wine), #541d25);
  border-color: transparent;
}

#radioad {
  width: 100%;
  padding: 18px 22px;
  text-align: center;
}

#radioad a,
#yourstories2 a,
.plainlink a:link,
.plainlink a:visited {
  color: #ffe3a6;
}

#radioad a:hover,
#yourstories2 a:hover,
.plainlink a:hover {
  color: #fff;
}

#justforfunds1,
#justforfunds2 {
  padding: 0;
  overflow: hidden;
}

#justforfunds1 {
  border-top: 0px solid var(--navy-soft);
}

#justforfunds2 {
  border-top: 0px solid var(--green);
}

#atten_head,
#atten_head2 {
  width: 100%;
  padding: 20px clamp(18px, 4vw, 34px);
  color: #fff;
  text-align: center;
  border: 0;
  border-radius: 0;
}

#atten_head {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

#atten_head2 {
  background: linear-gradient(135deg, #286148, var(--green));
}

#atten_head h1,
#atten_head2 h1 {
  margin: 0 !important;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: 0.025em;
}

#jff_pad {
  padding: clamp(24px, 5vw, 48px);
}

#addressfoot {
  padding: 16px 24px 22px;
  color: color:#0018ff;
  font-color: color:#0018ff;
  font-size: 1.2rem;
  font-weight: 650;
  text-align: center;
  //background: #eef3f6;
  border-top: 1px solid var(--line);
}

#attnbox {
  width: 100%;
  padding: 1px 0;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
}

#yourstorieshead a:link,
#yourstorieshead a:visited {
  color: #bde8ff;
  text-decoration: none;
}

#yourstorieshead a:hover {
  color: #fff;
}

.comic {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.7;
}

.heading {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
}

.logoJFF5,
.logoJFF2,
.logos,
.shrinersLogo {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.logoJFF5,
.logoJFF2 {
  float: none;
  width: auto;
  height: auto;
  padding: 0;
  text-align: center;
}

.shrinersLogo {
  width: min(100%, 700px);
  color: var(--navy);
  font-size: 1.1rem;
  text-align: center;
}

.shrinersLogo .black {
  color: var(--ink);
  font-size: 1.2rem;
}

.shrinersText {
  margin-top: 10px;
}

#stationbar {
  width: 100%;
  min-height: 61px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

#leftribbon,
#rightribbon {
  width: 75px;
  height: 59px;
  background-repeat: no-repeat;
  background-size: contain;
}

#leftribbon {
  float: left;
  margin-left: 1.5em;
  background-image: url(../images/black-ribbon-left.png);
}

#rightribbon {
  float: right;
  margin-right: 1.5em;
  background-image: url(../images/black-ribbon-right.png);
}

.reset-box {
  display: table;
  overflow: hidden;
}

/* Footer */
#footer {
  position: relative;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 19px 24px;
  overflow: visible;
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-dark);
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}

/* Responsive adjustments while preserving the same page content */
@media (max-width: 860px) {
  body {
    padding: 0;
    background: var(--canvas-warm);
  }

  #container {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .header {
    min-height: 142px;
    background-position: center;
    background-size: contain;
  }

  .art-nav {
    padding: 6px 10px;
  }

  #navmenu {
    min-height: 0;
  }

  #navmenu > li {
    flex: 1 1 auto;
  }

  #navmenu > li > a {
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 7px;
  }

  #navmenu ul {
    left: 50%;
    transform: translate(-50%, -5px);
  }

  #navmenu li:hover > ul,
  #navmenu li:focus-within > ul {
    transform: translate(-50%, 0);
  }

  .content img[style*="float:left"],
  .content img[style*="float: left"],
  .content img[style*="float:right"],
  .content img[style*="float: right"] {
    float: none !important;
    display: block;
    margin: 0 auto 1.5rem !important;
    padding: 0 !important;
  }

  .content div[style*="margin-right"] {
    margin-right: 0 !important;
  }
}

@media (max-width: 560px) {
  .header {
    min-height: clamp(132px, 40vw, 165px);
    background-position: center;
    background-size: contain;
  }

  .art-nav {
    padding: 8px;
  }

  #navmenu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  #navmenu > li,
  #navmenu > li > a {
    width: 100%;
  }

  #navmenu > li > a {
    min-height: 46px;
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  #navmenu a .t img {
    max-width: 105px;
  }

  #navmenu ul {
    position: static;
    display: none;
    visibility: visible;
    opacity: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
    box-shadow: none;
  }

  #navmenu li:hover > ul,
  #navmenu li:focus-within > ul {
    display: block;
    transform: none;
  }

  .content {
    padding: 32px 20px 44px;
    font-size: 0.98rem;
  }

  .textbox,
  .textbox2,
  .textbox3,
  #doublebox,
  #jokesbox,
  #yourstories1,
  #yourstories2,
  #radioad {
    padding: 20px;
  }

  #jff_pad {
    padding: 24px 18px;
  }

  #leftribbon,
  #rightribbon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   Full-width, open-layout revision
   Removes the centered card shell and legacy boxed panels.
   ========================================================== */

body {
  padding: 0;
  background: var(--canvas-warm);
}

#container {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.header,
.art-nav,
.content,
#footer {
  width: 100%;
}

.header {
  border-radius: 0;
}

.content {
  min-height: 430px;
  padding: clamp(38px, 5vw, 76px) clamp(24px, 6vw, 96px) clamp(52px, 7vw, 92px);
  overflow: visible;
  background: var(--canvas-warm);
}

/* Open up legacy panels instead of presenting them as cards. */
.textbox,
.textbox2,
.textbox3,
#doublebox,
#jokesbox,
#yourstories1,
#yourstories2,
#justforfunds1,
#justforfunds2,
#radioad,
#attnbox {
  width: 100%;
  max-width: none;
  margin: clamp(24px, 4vw, 52px) 0;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.textbox {
  width: 100%;
  margin-left: 0;
}

#jokesbox .textbox {
  margin: 1.5rem 0;
}

/* Preserve visual emphasis without enclosing content in boxes. */
#yourstories2,
#radioad {
  padding: clamp(22px, 3vw, 38px) clamp(24px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(135deg, var(--wine), #541d25);
}

#radioad {
  margin-right: calc(clamp(24px, 6vw, 96px) * -1);
  margin-left: calc(clamp(24px, 6vw, 96px) * -1);
  width: auto;
}

#justforfunds1,
#justforfunds2 {
  border-top: 0;
}

#justforfunds1 {
    margin-top: 0;
}

#atten_head,
#atten_head2 {
  width: auto;
  margin-right: calc(clamp(24px, 6vw, 96px) * -1);
  margin-left: calc(clamp(24px, 6vw, 96px) * -1);
  padding: clamp(22px, 3vw, 36px) clamp(24px, 6vw, 96px);
}

#jff_pad {
  padding: clamp(30px, 4vw, 54px) 0;
}

#addressfoot {
  margin-right: calc(clamp(24px, 6vw, 96px) * -1);
  margin-left: calc(clamp(24px, 6vw, 96px) * -1);
  padding: 20px clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.content iframe,
.content video,
.content embed {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 860px) {
  .content {
    padding: 38px clamp(20px, 5vw, 42px) 54px;
  }

  #atten_head,
  #atten_head2,
  #addressfoot,
  #radioad {
    margin-right: calc(clamp(20px, 5vw, 42px) * -1);
    margin-left: calc(clamp(20px, 5vw, 42px) * -1);
  }
}

@media (max-width: 560px) {
  .content {
    padding: 32px 18px 46px;
  }

  .textbox,
  .textbox2,
  .textbox3,
  #doublebox,
  #jokesbox,
  #yourstories1,
  #yourstories2,
  #justforfunds1,
  #justforfunds2,
  #radioad,
  #attnbox {
    padding: 0;
  }

  #yourstories2,
  #radioad {
    padding: 22px 18px;
  }

  #atten_head,
  #atten_head2,
  #addressfoot,
  #radioad {
    margin-right: -18px;
    margin-left: -18px;
  }
}
