<?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_95d92dc2-31ca-4068-9cac-286ca14ee106">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_ec49f03b-6dc0-4207-b449-37683cd7daae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_dfd260bd-eebf-41ec-a51f-5b3b74d1b940">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_e9ce3b44-795b-469d-9694-bd5a015479bb">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_a253e9aa-72cc-4bcc-8b2c-43d9a074e8b5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_abfb56b1-2e93-48e0-9117-e0a5d67915f6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_3d1cd7af-3b9e-4681-a83a-143616a500fd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_bd43cbec-e2cb-484f-8a88-a4e6a417095a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_6f6c2d54-08b8-4df4-a035-70455e1ac2d1">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_1b24ae62-2dd1-401b-86e2-4974665c4cd0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_95d92dc2-31ca-4068-9cac-286ca14ee106"
      id="F_92267f48-ec56-4905-aa6d-3b22034c183c">&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;4,464,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_95d92dc2-31ca-4068-9cac-286ca14ee106"
      decimals="-3"
      id="F_cad88df2-99ee-448d-bd4e-f1eb8dbe0873"
      unitRef="U_USD">4464000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
