<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_3dbd7fea-d20a-429e-84b6-a847709ab959">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_6bda5dfc-bc36-4649-8e96-f215eadd1850">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_81270b74-cdf7-48ee-af78-28e436fab1f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_12f2cc73-9d86-4fc3-98cb-4334e5ba38d3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_9944be2d-e628-4b2a-9d82-2051fbd0dd31">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_04a3d57b-3b35-4dbe-b26b-d2eae8c3c384">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_8cfe680e-d5bf-4e80-8e5b-2a3f943fb4bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_d5848e6d-66ed-49fa-8de1-8012d97c29fd">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_d3e6a342-153b-4b8e-bf3a-bbb77eea65b5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      id="F_7e6fd748-73b8-44ec-b0c1-720396108b2d">&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;996,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_4a0a3d07-2b9d-4210-b3d1-2538f196b767"
      decimals="0"
      id="F_fd34a3df-f70b-441a-9c94-0c7c11c9a2de"
      unitRef="U_USD">996000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
