<?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_97b74213-2441-4d8c-a3f5-7a46c2c8f465">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_374e8f6e-799d-42b3-8db3-46e1a047a30a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_2f3b9a1a-6c01-4163-9cb6-1486047be83f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_edb2adf5-665f-41e0-aa5a-39e2d31e854a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_73a42a42-54fd-4d04-b4bd-a08eeece1989">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_077ac4a8-d6d9-4d98-8185-0a7eb4bea6a4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_41f8ff09-3f50-4589-831d-49b86f2c6ce2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_c9a165b6-df23-461e-be2e-2524c2104542">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_5d9361c9-01cc-45c9-a6b4-055bc350ea2c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_46f94e6a-3639-4461-96ff-f216cee63687">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      id="F_d3cfebd0-6508-48de-9711-68006c0b9dd3">&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;1,074,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_97b74213-2441-4d8c-a3f5-7a46c2c8f465"
      decimals="0"
      id="F_f1a9fe16-e68c-48bb-a392-c707426b7667"
      unitRef="U_USD">1074000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
