<?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_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_7f4cdf4e-e477-4318-abc8-a85ca8118ec7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_5975492d-067c-4902-a26b-b90809c6ef2a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_83528d53-604a-4b07-9bc9-a3d36d584423">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_91d182ad-813a-4dab-ae97-cfb7942f3f12">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_15fbbc24-6fbf-434c-aa82-5d7c56c9deb1">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_199dd0cb-c981-4d18-834f-105822d9efeb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_268d1bb9-ae97-464a-a4f4-f1841b677136">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_0fcb219d-6cee-4c2c-9b78-23b015315b5c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_2d8276b7-5156-4820-b36a-f8daf005ff0c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      id="F_76186cb5-4106-44e2-908c-7c717d5e229b">&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:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The amended prospectus to which this Exhibit is attached is an amendment of the final prospectus for the related offering.  This amendment decreases the maximum aggregate offering price for such offering by $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;100,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_2401b7e1-b157-4f1f-b2ff-9d00e549fbb9"
      decimals="-3"
      id="F_c6932f78-52df-4019-804a-76c6e919d7d0"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
