<?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_a677c314-c408-4786-9f1d-4b636b052a14">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-13</startDate>
            <endDate>2026-04-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_9465e20f-5dc7-41d2-a0a4-c17757e5725f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_88cfe76b-de18-4ff5-a83a-918273b002f3">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_c55c92d5-3e4b-4ebd-9ebc-4afe65c4e3f2">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_8ced4352-2a12-4bd0-b789-5efccc0521c0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_1f6c29b6-bc02-4c79-8076-dfbf4512321d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_202e620e-9891-4d2a-879a-c38361ce5c05">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_b4ba403f-a05c-4e39-96c8-9133bb03d754">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_d0e38588-9bf7-4122-9c07-f10770f0bbb8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_885f23c9-ce20-4fd1-9b24-bc2404173d1c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a677c314-c408-4786-9f1d-4b636b052a14"
      id="F_29565743-e503-4498-b2d7-e64e217a9492">&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;502,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_a677c314-c408-4786-9f1d-4b636b052a14"
      decimals="0"
      id="F_91c848ab-34e2-4138-b796-16e3b87a4b6a"
      unitRef="U_USD">502000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
