<?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_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_0c4b9321-11c4-402b-9ea2-4094701cd8b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_9cc0cbf2-03ca-40a2-a742-0274337292e4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_6f4b9809-fb82-4f7e-9f49-1bcc9a43ee27">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_b5e90432-1c5e-4a6a-9154-1c71cb495a19">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_bb786ea9-45bc-4c7a-8f14-a48650807b75">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_a7aff484-3904-4f2e-a353-a786a11391e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_5ca46f39-d308-4b49-9f6d-161c640890c6">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_037d9ae5-0f5f-4424-92be-a29754b552a4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_f3b7f63d-6371-4a33-94c9-e81ca31d8180">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      id="F_60b82f35-7ae9-4741-8023-33782026f0cf">&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;5,356,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_d4999ccf-64b9-4b73-8ec9-3ce355ab3f0b"
      decimals="-3"
      id="F_1b595984-71e6-4887-930f-e9cd537af131"
      unitRef="U_USD">5356000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
