<?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_48308560-7bd8-4cb1-89c8-49e8dddf1193">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_e59dde6e-f501-44a0-8652-a4df9975e113">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_76363f87-dd5a-4190-80bf-f20d1723bd93">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_9c04f949-619b-48d0-b507-b9d217659f4a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_1476e316-9f16-4955-87f7-f4ebcd2e6918">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_4b46fa47-3654-4476-95bc-004b8c82dc5b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_55cf5479-2f8c-4726-8bf2-4cbb1fa691bb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_e5e2ad6a-b6d1-4556-9462-396eaad3b970">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_8d4c7ea7-d0ea-4180-851e-285db9a1f175">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_f3a80a1c-ae82-4fb1-99e8-6907fbd4ecf1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      id="F_f83c326c-cb20-41be-85e4-3be953e77f0c">&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;2,000,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_48308560-7bd8-4cb1-89c8-49e8dddf1193"
      decimals="-6"
      id="F_f917376b-3103-4ae1-9042-b03a700af341"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
