<?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_d82d50db-86e9-4f3c-968e-91b456b8e684">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_70c04ccb-6a30-4aea-aa57-48cf07fe4a98">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_2d5884cd-8701-4127-9a95-92a4e7c53dc0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_99840a09-3581-4f4a-9feb-3ea93de749c5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_10ec4af1-ff40-48a1-b856-34814fecb222">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_2f404695-e802-48a6-a901-3c491c44594a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_bf09f2aa-ab8a-4170-a7f3-fac410b97477">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_9b62cbbb-8f9a-48c2-8553-c637155fea7b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_bd115cbd-8ef4-4a77-984d-0a6a07c3d1ea">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_0e1019ed-7d02-4f0a-bc0c-f98d49eeba91">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d82d50db-86e9-4f3c-968e-91b456b8e684"
      id="F_fb6cb641-99b3-4cfb-b93a-2365a33f2f5c">&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,029,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_d82d50db-86e9-4f3c-968e-91b456b8e684"
      decimals="-3"
      id="F_7cd00527-cc32-4166-87f5-b0d8b8f4ceb0"
      unitRef="U_USD">1029000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
