/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://example.com/
Author: Your Name
Template: twentytwentyfive
Text Domain: twentytwentyfive-child
Description: Child theme for Twenty Twenty-Five.
Version: 1.0.3
*/


/* Ensure the header is transparent and sticky */
header.wp-block-template-part {
    /*background-color: transparent !important;*/
    position: absolute;
    top: 0;
    z-index: 10;
    width: 100%;
}
header.wp-block-template-part > div {
    background: rgba(0,0,0,0) !important;
}

/*a:hover {
    cursor: pointer;
}*/

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.5px;
}


.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:hover {
    text-decoration: none;
    color: #dddddd;
}

.masthead-heading-h1 {
    font-size: 6em;
    font-weight: 400;
    /*letter-spacing: 5px;*/
}

.masthead-heading-h2 {
    font-size: 4em;
    font-weight: 200;
    letter-spacing: 5px;
}

.wp-block-cover h1 {
/*    font-size: 3em !important;
    font-weight: 400;*/
    /*letter-spacing: 8px;*/
}
.wp-block-cover h3 {
/*    font-size: 3em !important;
    font-weight: 400;*/
    letter-spacing: 5px;
}

h1 {
    margin-top: 0 !important;
}

:root :where(.wp-element-button, .wp-block-button__link) {
	/*border-radius: 2px;*/
	text-transform: uppercase;
}

:root :where(.wp-element-button:hover, .wp-block-button__link:hover) {
	background-color: #59B42D;
}

.wp-site-blocks {
    padding-bottom: 0 !important;
}

.wp-block-template-part {
	margin:0 !important;
}

/*.icon-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icon-card img {
  width: 48px;
  height: 48px;
}

.icon-card h3 {
  margin: 0;
}

.icon-card p {
  margin: 0;
  opacity: 0.85;
}
*/

/*.wp-block-table table.has-fixed-layout {
    background: 0 0 !important;
    border: none !important;
}
table.has-fixed-layout {
    color: grey;
    font-size: 16px;
    border-collapse: collapse !important;
    border: 1px solid #e5e5e5;
}

.wp-block-table table.has-fixed-layout thead tr {
    border-top: none;
    border-left: none;
    border-right: none;
}
table.has-fixed-layout tr {
    background-color: transparent !important;
}

.has-fixed-layout tr {
    background-color: #F0F0F0 !important;
}
table.has-fixed-layout tbody tr {
    border: 1px solid #e5e5e5;
}
*/


/* ===============================
   Timetable – Desktop Base
================================ */

.wp-block-table {
  width: 100%;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  /*background: #fff;*/
  font-size: 0.95rem;
}

/* Header row */
.wp-block-table tr:first-child td {
  background: #f3f4f6; /* light grey */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

/* Cells */
.wp-block-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* Time column */
.wp-block-table td:first-child {
  background: #fafafa;
  font-weight: 600;
  white-space: nowrap;
}

/* Center content */
.wp-block-table td.has-text-align-center {
  text-align: center;
}

/* Empty / dash cells */
.wp-block-table td:where(:contains("—"), :contains("_")) {
  color: #c4c4c4;
}

/* Subtle hover for scannability */
@media (hover: hover) {
  .wp-block-table tr:hover td {
    background: #f9fafb;
  }
}

/* ===============================
   Mobile Optimisation
   (Stacked rows, readable)
================================ */

@media (max-width: 900px) {

  .wp-block-table table,
  .wp-block-table tbody,
  .wp-block-table tr,
  .wp-block-table td {
    display: block;
    width: 100%;
  }

  /* Hide original header row */
  .wp-block-table tr:first-child {
    display: none;
  }

  /* Each time slot becomes a card */
  .wp-block-table tr {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  /* Time label */
  .wp-block-table td:first-child {
    background: #f3f4f6;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Day rows */
  .wp-block-table td:not(:first-child) {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px dashed #e5e7eb;
    text-align: left;
  }

  .wp-block-table td:not(:first-child)::before {
    content: attr(data-day);
    font-weight: 600;
    color: #6b7280;
    font-size: 0.8rem;
  }

  /* Last row cleanup */
  .wp-block-table td:last-child {
    border-bottom: none;
  }
}




