<?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_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_e51af218-9f83-4fb2-8ad1-954633561556">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_585377e4-6a66-4378-9966-e4b9a86d3003">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_75381324-d421-443a-988d-1090ca123458">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_765e51ed-2028-45e1-a69f-c54379f5c357">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_f102a4c8-2d11-4530-9e16-f5d81154dcf3">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_69de1f1b-d7ce-442f-bca9-b4679101bf3b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_6664827a-93fd-4db8-a88a-5822cab91d04">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_3e6b747b-8de4-4b6d-b480-f224a6ebfe4e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_a9b7a07e-d329-4479-9b5d-e103a14fc327">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      id="F_32943309-b90b-4645-a821-b70f590634bb">&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;82,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_9bd4b122-f30a-44a2-80f6-ed0e4b4f7525"
      decimals="-3"
      id="F_27b8d9bd-6bf1-4b0d-bcb1-96b6588679df"
      unitRef="U_USD">82000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
