<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_a90841ff-0843-403e-9c33-4ac4518c4103">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_1075a581-2b25-470b-8887-c8732f1af674">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_d7ff6fe5-233a-4ce5-8ae6-29c589749518">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_6f68ccc0-55c4-42b6-af2b-dcc309301103">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_67200f0b-81b9-42cd-85bd-4702ce7acc69">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_fed5f6d7-596e-41fd-9d45-5cbbacb72bec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_92f0a6fb-106b-4cba-92f1-1462d739e01f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_b6c4067a-ba49-4442-8485-55ea57c161c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_80e255f9-a3a2-4f2f-b920-d34ee63413ac">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_1570645c-5eb3-471b-bcc2-1d2fda1c9b0a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      id="F_665e08ac-c9e1-4375-82df-8b6cd58c1e85">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;14,615,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_a90841ff-0843-403e-9c33-4ac4518c4103"
      decimals="-3"
      id="F_bcb1c61e-d4dc-4611-b330-08d3610d304f"
      unitRef="U_USD">14615000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
