<?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_5712ae22-88df-43b1-bbe8-7549f97233d2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_a035ab68-fcf3-4fbc-a182-73c4a15e93e7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_c2e603e7-dd3e-4790-a31b-fa895ea859e6">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_ad338cc6-11ff-45fc-a779-e11ddc78f585">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_e2edeb50-fc2f-4abd-b959-1a19eaf5fb90">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_fb6ad43b-6f3d-47ab-bc94-f53e86dae11a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_48b8942e-5ee6-4df5-b0f1-358d4f0b9660">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_afe8597e-6bac-4201-8c44-d65ef9422726">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_88c8cbd0-e2fe-4f90-961b-d608104071e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_8af9a047-7666-4395-bb3c-eeef488e7ef4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5712ae22-88df-43b1-bbe8-7549f97233d2"
      id="F_a464c786-7ddc-4a85-8816-2e680b73d22b">&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;9,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_5712ae22-88df-43b1-bbe8-7549f97233d2"
      decimals="-6"
      id="F_58a1691d-7522-4088-9c82-00af35717dab"
      unitRef="U_USD">9000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
