<?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_ac66d7ff-0594-4077-aced-a2311a168524">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_b676e90b-4419-4e56-9ea1-1b36429a490f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_73c0206f-45e7-477c-b0cb-8601a6eb29ce">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_93fec8fd-f511-49f2-995f-df1e3954d5f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_4f3fe7b7-99aa-48e2-ab02-6f45510b855e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_46b18bb6-4499-44c8-a5d9-690cc7852c93">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_2d91acbc-5f37-45ac-a9e9-4f30ac8bf757">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_e906d0e4-75cb-4c56-883d-0709eebd888a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_56efd32d-26c7-41de-907c-2441d6aae2f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_c4fe20a6-25f8-4a81-9de8-ef6f251c9fdd">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ac66d7ff-0594-4077-aced-a2311a168524"
      id="F_48c56e49-77c8-4c02-9244-b6b5d2d31b69">&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,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_ac66d7ff-0594-4077-aced-a2311a168524"
      decimals="0"
      id="F_a10650f5-f7ce-495f-b3d8-b3657011b661"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
