<?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_94d4f5cc-af39-4812-ac53-f027450e3714">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_8f844be2-da6e-4c3b-a9c1-9fa869c18e6f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_47218a08-b161-426d-ab61-6d3e4ac6dc6b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_d79bcfc1-fbf4-4c30-bbe3-696f26ad970e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_38f19310-3118-4bb6-ac7a-3ddcc8a15d33">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_8ceadb0c-5a15-4c10-8288-9ee30d888431">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_b0fbfda3-8c94-4c00-87c3-f7b76dfe050c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_6861937c-78b5-408d-9859-9f6dd77f26a2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_2c638d17-671e-46d9-856b-d6e32913581e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_b6118a8c-e63d-49f8-bd59-0a0d7cb2ac70">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_94d4f5cc-af39-4812-ac53-f027450e3714"
      id="F_c64e58bb-0b9b-483d-9ca3-227c8981f311">&lt;p style="tab-size:26.66px;font-size:12pt;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,341,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_94d4f5cc-af39-4812-ac53-f027450e3714"
      decimals="-3"
      id="F_e9927535-eb55-499c-8e59-1db52b0b68d9"
      unitRef="U_USD">1341000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
