/* Screen styles for the Luskiewnik edition of FreshLooks. */
:root {
  --ink: #23342b;
  --muted: #4c6155;
  --green: #164a37;
  --link: #15543f;
  --paper: #f7f7f0;
  --surface: #fffefa;
  --sage: #e8eee3;
  --edge: #cdd8cc;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --measure: 74rem;
  --gutter: clamp(.8rem, 3vw, 2.25rem);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.52 var(--sans);
}
body, td, th, tr { color: var(--ink); }
a:link, a:visited, a.new_win:link, a.new_win:visited { color: var(--link); }
a:hover { color: #0a3c28; text-decoration: underline; text-underline-offset: .16em; }
:focus-visible { outline: 3px solid #9a540c; outline-offset: 2px; }
.skip-forum { position: absolute; left: 1rem; top: -12rem; z-index: 200; }
.skip-forum:focus { top: .4rem; padding: .65rem 1rem; background: white; color: var(--green); }
#header.f_center, #top_section.f_center, #main_menu, div#wrapper, #footer_section > .frame {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--gutter)) !important;
  min-width: 0;
  max-width: var(--measure);
  margin-inline: auto;
}
input, select, button, textarea { box-sizing: border-box; max-width: 100%; font: inherit; }
input.input_text, input.input_password, input[type="search"], textarea, select {
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid #788d7f;
  border-radius: .35rem;
  padding: .38rem .55rem;
}
input.button_submit, input.button_reset, button.button_submit {
  border: 1px solid var(--green);
  border-radius: .35rem;
  padding: .38rem .75rem;
  background: var(--green);
  color: white;
  font: 600 .92rem/1.45 var(--sans);
  cursor: pointer;
}
input.button_reset { background: var(--surface); color: var(--green); }
input.button_submit:hover, button.button_submit:hover { background: #0d3425; color: white; }
.smalltext, .smalltext a, .middletext { font-family: var(--sans); }
.smalltext { font-size: .85rem; }

/* The guest form stays available with its original action and hidden fields. */
#f_header { height: auto; background: var(--sage); color: var(--ink); font-weight: 400; }
#f_header a:link, #f_header a:visited, #f_header a:hover { color: var(--link); }
div#upper_section {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .25rem 1rem; flex-wrap: wrap; padding: .35rem 0; overflow: visible;
  font-size: .87rem; line-height: 1.45;
}
div#upper_section div.user, div#upper_section div.news {
  float: none; width: auto; min-width: 0; max-width: 100%; overflow: visible; color: var(--muted);
}
#upper_section > br { display: none; }
#upper_section .news h2 { display: inline; margin: 0 .25rem 0 0; color: var(--green); font: 600 .87rem/1.45 var(--sans); }
#upper_section .news p { margin: 0; }
#guest_form { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; overflow: visible; }
#guest_form > .info { padding: .25rem 0; }
#guest_form .quick-login summary { color: var(--link); font-weight: 600; cursor: pointer; padding: .25rem 0; }
#guest_form .quick-login[open] { flex-basis: 100%; }
.quick-login .login-fields { display: flex; align-items: end; flex-wrap: wrap; gap: .45rem .6rem; padding: .35rem 0 .6rem; }
.quick-login .login-fields label { display: grid; gap: .15rem; font-size: .83rem; color: var(--ink); }
.quick-login .login-fields input, .quick-login .login-fields select { height: 2.4rem; font-size: 1rem; }
#guest_form .login-fields .info, #guest_form .login-fields > br { display: none; }
#f_upshrink { background: var(--sage); line-height: 0; }
#f_upshrink input#upshrink {
  box-sizing: border-box; width: 3.5rem; height: 1.5rem; margin: 0; padding: 0;
  border: 0; border-radius: .5rem; cursor: pointer; vertical-align: middle; object-position: -999px -999px;
  background:
    linear-gradient(135deg, transparent 40%, #486349 43% 62%, transparent 65%) calc(50% - 3px) 50% / 6px 6px no-repeat,
    linear-gradient(45deg, transparent 40%, #486349 43% 62%, transparent 65%) calc(50% + 3px) 50% / 6px 6px no-repeat;
}
#f_upshrink input#upshrink[src*="upshrink2"] { transform: rotate(180deg); }

/* Original botanical photograph and forum identity. */
#f_sitename { background: #153f30; color: #fffdf0; overflow: visible; }
#top_section.f_center {
  min-height: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; overflow: visible; padding-block: clamp(1.1rem, 2.5vw, 2.2rem);
}
h1.forumtitle { order: -1; min-width: 0; margin: 0; padding: 0; background: none; line-height: 1; }
h1.forumtitle a { display: flex; gap: clamp(.7rem, 1.65vw, 1.35rem); align-items: center; text-decoration: none; }
h1.forumtitle .forum-photo {
  flex: none; display: block; width: clamp(4rem, 6.8vw, 6rem); height: clamp(4rem, 6.8vw, 6rem);
  object-fit: cover; object-position: 55% center; border-radius: 50%; outline: 1px solid #9dae85; outline-offset: 4px;
}
.forum-brand { display: grid; gap: .34rem; min-width: 0; }
.forum-name { color: #fffdf0; font: 500 clamp(2.7rem, 4.5vw, 4.2rem)/.98 var(--serif); letter-spacing: -.035em; }
.forum-subtitle { color: #dce9d4; font: 400 clamp(.94rem, 1.28vw, 1.12rem)/1.35 var(--sans); }
#f_sitename #top_section .news {
  box-sizing: border-box; float: none; width: auto; min-width: 0; max-width: 100%;
  height: auto; margin: 0; padding: 0; background: none;
}
#search_form { display: flex; align-items: stretch; gap: .35rem; margin: 0; white-space: normal; }
#search_form > img { display: none; }
#search_form .input_text { width: clamp(9.4rem, 18vw, 15rem); min-width: 0; height: 2.75rem; padding: .5rem .7rem; background: #fffefa; border-color: #ced9c4; }
#search_form .button_submit { min-height: 2.75rem; padding-inline: 1rem; background: #e4eccf; color: #173b2b; border-color: #e4eccf; }
#search_form .button_submit:hover { background: white; }

.f_double { height: auto; background: var(--surface); border: 0; border-bottom: 1px solid var(--edge); }
#f_sitename + br.clear, .f_double + br.clear { display: none; }
#main_menu { padding: 0; }
#menu_nav { display: flex; align-items: stretch; flex-wrap: wrap; padding: 0; gap: 0 .28rem; }
#menu_nav > li { float: none; }
#menu_nav > li > a.firstlevel, #menu_nav > li:hover > a.firstlevel {
  display: flex; align-items: center; min-height: 2.85rem; box-sizing: border-box;
  margin: 0; padding: .25rem .65rem; color: var(--green); background: transparent; border-block: 3px solid transparent;
}
#menu_nav > li > a.firstlevel > span.firstlevel,
#menu_nav > li:hover > a.firstlevel > span.firstlevel {
  left: 0; height: auto; padding: 0; background: none; color: inherit;
  font: 600 .94rem/1.3 var(--sans); white-space: normal;
}
#menu_nav > li > a.active, #menu_nav > li > a.firstlevel:hover { border-bottom-color: #547344; background: #f1f5eb; }
#menu_nav li ul { background: var(--surface); border: 1px solid var(--edge); padding: .25rem; box-shadow: 0 4px 14px #203b2920; }
#menu_nav li li a { color: var(--link); }
#menu_nav li li a:hover, #menu_nav li li:hover > a { background: var(--sage); color: var(--ink); border: 0; }
#menu_nav li:focus-within > ul { display: block; top: auto; }
#menu_nav > li.site-link-start { margin-inline-start: auto; }
#menu_nav > li.site-link > a.firstlevel {
  gap: .4rem; padding-inline: .6rem; color: #274a32;
}
#menu_nav > li.site-link > a::before {
  content: ""; display: block; flex: 0 0 auto;
  width: 1.95rem; height: 1.95rem; border-radius: 50%;
  background: #e7eddb url(../images/luskiewnik-galazka-v1.png) center / 1.55rem no-repeat;
  box-shadow: inset 0 0 0 1px #c9d6b8;
}
#menu_nav > li.site-bio > a.firstlevel { color: #573e60; }
#menu_nav > li.site-bio > a::before {
  background-color: #f1eaf1; background-image: url(../images/luskiewnik-kolba-v1.png);
  box-shadow: inset 0 0 0 1px #ddcfdf;
}
#menu_nav > li.site-bio > a:hover { background: #f5f0f5; border-bottom-color: #796082; }
@media (max-width: 62rem) {
  #menu_nav > li.site-link-start { margin-inline-start: 0; }
}

div#wrapper { padding-block: .65rem 2rem; }
#main_content_section { min-width: 0; }
.navigate_section { padding: 0; margin: .45rem 0 1rem; }
.navigate_section ul { box-sizing: border-box; font-size: .88rem; line-height: 1.5; padding: .25rem 0; }
.navigate_section ul li { font-size: 1em; }
.navigate_section ul li a { white-space: normal; overflow-wrap: anywhere; }
.windowbg, .windowbg2, .roundframe, .table_frame, .windowbg3 { color: var(--ink); background: var(--surface); }
.description, .description_board, .information, .plainbox { background: #eef3e9; color: var(--ink); border-color: var(--edge); }
div.cat_bar, div.title_bar, div.title_barIC {
  box-sizing: border-box; height: auto; min-height: 0; margin: 0;
  padding: .55rem 1rem; border: 0; border-left: 3px solid #66804c;
  background: #e1e9da; color: #193e2b;
}
h3.catbg, h3.catbg2, h3.titlebg, h4.catbg, h4.catbg2, h4.titlebg,
div.cat_bar h3, div.title_bar h3, div.title_barIC h4 {
  margin: 0; padding: 0; height: auto; min-height: 0; color: #193e2b;
  font: 650 1.18rem/1.4 var(--sans); overflow: visible; overflow-wrap: anywhere;
}
.cat_bar a:link, .cat_bar a:visited { color: var(--green); }
#boardindex_table table.table_list, #messageindex table.table_grid, #childboards table.table_list {
  width: 100%; border-collapse: collapse; background: var(--surface);
}
.table_list tbody.content td, #messageindex td {
  box-sizing: border-box; padding: .8rem .85rem; border: 0; border-bottom: 1px solid var(--edge); vertical-align: middle;
}
.table_list tbody.content td.info, #messageindex td.subject { background: var(--surface); }
.table_list tbody.content td.info p { color: #3e5145; font-size: .95rem; line-height: 1.5; }
.table_list tbody.content td.info a.subject, #messageindex td.subject span[id^="msg_"] > a {
  color: var(--link); font: 650 1.12rem/1.35 var(--sans); text-underline-offset: .15em;
}
.table_list tbody.content td.stats, .table_list tbody.content td.lastpost, #messageindex td.stats, #messageindex td.lastpost {
  background: var(--surface); color: var(--muted); font-size: .86rem; line-height: 1.48; font-variant-numeric: tabular-nums;
}
.table_list tbody.content td.icon { width: 3.3rem; padding-inline: .6rem; background: var(--surface); }
.table_list tbody.content td.icon a { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2.25rem; }
.table_list tbody.content td.icon img { max-width: 1.8rem; height: auto; }
.table_list tbody.content td.stats { width: 13%; }
.table_list tbody.content td.lastpost { width: 23%; }
.table_list tbody.content td.children { padding: .55rem .85rem; color: var(--muted); background: #f1f5ed; font-size: .9rem; line-height: 1.78; }
.table_list td.children a, .lastpost a, .post .inner a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
#messageindex .table_grid tr.catbg { background: #e1e9da; }
#messageindex .table_grid th { padding: .65rem .75rem; color: var(--green); font-size: .9rem; }
#messageindex .table_grid th a { color: var(--green); }
.pagesection { height: auto; min-height: 0; }
.pagelinks a, #pagelinks a { display: inline-block; min-width: 1.35rem; text-align: center; }
#forumposts .cat_bar { margin-bottom: 0; }
#forumposts .post_wrapper {
  float: none; width: auto; display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  gap: 0 clamp(1rem, 2vw, 2rem); padding: 1.1rem clamp(.8rem, 2vw, 1.6rem); background: var(--surface);
}
#forumposts .poster { grid-column: 1; grid-row: 1 / span 2; float: none; width: auto; min-width: 0; border: 0; border-right: 1px solid var(--edge); padding-right: 1rem; background: none; }
#forumposts .poster h4, #forumposts .poster > ul { margin-left: 0; }
#forumposts .poster h4, #forumposts .poster h4 a { color: var(--green); }
#forumposts .postarea, #forumposts .moderatorbar { grid-column: 2; margin: 0; clear: none; min-width: 0; }
#forumposts .keyinfo { width: auto; max-width: 100%; }
#forumposts .keyinfo h5 { font: 650 1.12rem/1.4 var(--sans); }
#forumposts .post .inner { max-width: 72ch; margin-inline: 0; font: 400 1.065rem/1.68 var(--sans); overflow-wrap: anywhere; }
#forumposts .post .inner img, #forumposts .signature img, .poster img { max-width: 100%; height: auto; }
#forumposts .post .inner pre, #forumposts .post .inner .bbc_code { overflow-x: auto; max-width: 100%; }
blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote {
  background: #f0f3e9; color: #304438; border: 0; border-left: 3px solid #82956b; padding: .7rem 1rem;
}
#forumposts .post_separator { border: 0; height: 1px; margin: .4rem 0; background: var(--edge); }
#main_content_section .login { width: min(100%, 35rem); box-sizing: border-box; }
#searchform, #frmLogin, fieldset, #search_term_input { min-width: 0; }
#searchform input.input_text { max-width: 100%; }
#advanced_search dl#search_options { box-sizing: border-box; width: min(100%, 40rem); }
#footer_section { background: #e2eadd; color: var(--ink); border-top: 1px solid var(--edge); }
#footer_section div.frame { min-height: 0; padding: 1rem 0; }
#footer_section span.copyright, #footer_section .smalltext { font-size: .82rem; }
#f_copy { padding: .75rem var(--gutter); color: var(--muted); font-size: .85rem; }
#f_copy a:link, #f_copy a:visited { color: var(--link); }

@media (max-width: 48rem) {
  #top_section.f_center { flex-wrap: wrap; gap: .85rem 1.4rem; }
  #top_section .news { flex: 1 1 16rem; }
  #search_form .input_text { flex: 1; width: 0; }
  .forum-name { font-size: clamp(2.5rem, 8.4vw, 3.5rem); }
  #menu_nav { gap: 0; }
  #menu_nav > li > a.firstlevel { padding-inline: .55rem; }
  #menu_nav li ul { width: min(16rem, 78vw); }
  #menu_nav li li { width: 100%; }
  #menu_nav li ul ul { position: static; margin: 0 0 0 .6rem; width: auto; }
  #menu_nav > li:nth-child(n+4) > ul { right: 0; }
  #boardindex_table .table_list, #childboards .table_list, #messageindex .table_grid,
  .table_list > tbody.content, .table_list > tbody.header, #messageindex .table_grid > tbody { display: block; }
  .table_list tbody.header tr, .table_list tbody.header td { display: block; width: auto; }
  .table_list tbody.content tr, #messageindex .table_grid tbody tr {
    display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem .45rem;
    padding: .75rem .55rem; border-bottom: 1px solid var(--edge); background: var(--surface);
  }
  .table_list tbody.content td, #messageindex .table_grid tbody td {
    width: auto; padding: 0; border: 0; min-width: 0; text-align: left; background: transparent;
  }
  .table_list tbody.content td.icon, #messageindex td.icon1 { grid-column: 1; grid-row: 1; align-self: start; }
  .table_list tbody.content td.info, .table_list tbody.content td.stats, .table_list tbody.content td.lastpost,
  #messageindex .table_grid tbody td.subject, #messageindex .table_grid tbody td.stats, #messageindex .table_grid tbody td.lastpost {
    width: auto; grid-column: 2; text-align: left; padding: 0;
  }
  .table_list tbody.content td.info, #messageindex .table_grid tbody td.subject { grid-row: 1; }
  .table_list tbody.content td.lastpost:empty { display: none; }
  .table_list tbody.content td.stats, #messageindex .table_grid tbody td.stats { font-size: .82rem; }
  .table_list tbody.content td.stats br, #messageindex td.stats br { display: inline; }
  .table_list tbody.content td.stats br::after, #messageindex td.stats br::after { content: " · "; white-space: pre; }
  .table_list tbody.content tr[id$="_children"] { display: block; padding: .4rem .75rem .6rem; background: #f1f5ed; }
  .table_list tbody.content td.children { display: block; padding: 0; line-height: 1.9; background: transparent; }
  .table_list .divider { display: block; height: .6rem; }
  #messageindex .table_grid thead { display: block; }
  #messageindex .table_grid thead tr { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .75rem; padding: .45rem .65rem; }
  #messageindex .table_grid thead th { display: block; width: auto; padding: .15rem 0; white-space: normal; }
  #messageindex .table_grid thead th a { white-space: normal; }
  #messageindex .table_grid thead th.first_th:empty, #messageindex .table_grid thead th.first_th:not(:has(a, input, img)) { display: none; }
  #messageindex .table_grid tbody td.icon2 { grid-column: 1; grid-row: 2; }
  #forumposts .post_wrapper { display: block; }
  #forumposts .poster { border: 0; border-bottom: 1px solid var(--edge); padding: 0 0 .55rem; margin-bottom: .7rem; }
  #forumposts .poster > ul { display: flex; flex-wrap: wrap; gap: .2rem .75rem; align-items: center; margin: 0; }
  #forumposts .poster > ul > li { margin: 0; }
  #forumposts .poster .avatar img { max-height: 3rem; width: auto; }
  #forumposts .post .inner { margin-inline: 0; padding-inline: 0; }
  #forumposts h3 span#author { margin-right: 1rem; }
  .navigate_section ul li a { white-space: normal; }
  .pagesection { overflow: visible; display: flow-root; }
  .pagesection .pagelinks, .pagesection .buttonlist { float: none; }
}
@media (max-width: 35rem) {
  div#upper_section { display: block; }
  div#upper_section div.news { text-align: left; font-size: .82rem; }
  #guest_form { gap: 0 .75rem; }
  .quick-login .login-fields { align-items: stretch; }
  .quick-login .login-fields label { flex: 1 1 7rem; }
  #top_section.f_center { align-items: stretch; }
  #top_section .news { flex-basis: 100%; }
  #menu_nav { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); }
  #menu_nav > li { grid-column: span 2; min-width: 0; }
  #menu_nav > li.site-link-start { grid-column: 1 / span 3; }
  #menu_nav > li.site-bio { grid-column: span 3; }
  #menu_nav > li.site-link { border-top: 1px solid var(--edge); }
  #menu_nav > li > a.firstlevel, #menu_nav > li:hover > a.firstlevel { padding: .25rem .3rem; min-height: 2.75rem; }
  #menu_nav > li > a.firstlevel > span.firstlevel { font-size: .89rem; }
  #menu_nav > li.site-link > a.firstlevel { min-height: 3.25rem; padding: .25rem .15rem; gap: .3rem; }
  #menu_nav > li.site-link > a::before { width: 1.7rem; height: 1.7rem; background-size: 1.4rem; }
  #menu_nav > li:nth-child(n) > ul { left: 0; right: auto; }
  #menu_nav > li:nth-child(3n) > ul { left: auto; right: 0; }
  #menu_nav > li:nth-child(3n+2) > ul { left: 50%; transform: translateX(-50%); }
  #main_content_section .login dt, #main_content_section .login dd,
  #advanced_search dt, #advanced_search dd { float: none; width: auto; text-align: left; margin: .3rem 0; }
  #search_term_input input, #searchform fieldset { max-width: 100%; box-sizing: border-box; }
  #footer_section div.floatright, #footer_section div.floatleft { float: none; padding: .25rem 0; }
  #footer_section span.copyright { text-align: left; }
}
