<?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_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_920eb996-e7b8-4552-a8d5-13ab29126ad7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_709aa0b3-d6c8-451e-9b25-f9168f3fa421">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_751ce6fd-6ac3-4202-9d85-200a43fd88c3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_32231900-7f65-4979-a72b-903a69ae1b4b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_354f60a6-0eb3-4599-a3f8-0560743a18a3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_cd8370fa-3412-4654-b47c-d61442bcb33d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_951e58d8-e915-4ec4-91bf-f3ebc765614a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_27f8ba1f-3d46-4d7a-a0cb-d11ed0b1d96d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_73a3c253-217d-45fc-9499-f5975d2c7fa3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      id="F_2626ce0f-244d-49f3-9ad8-ccd01a75e186">&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;500,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_1aa6c159-3f0a-4953-bd4e-38e607b0dfd0"
      decimals="-3"
      id="F_7b1a0503-835c-49c8-99f5-927d01d64f24"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
