<?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_fbec0757-5d35-43f9-8087-d26177cfa8ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_d4c5024f-2801-408d-a639-d13d55e075cb">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_108efbf8-98e2-4391-a7d0-995069f54cda">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_d60c76df-1551-4955-82ec-6cedfb5d8e3c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_7028b508-89cd-49d1-9be7-c2eec0efde02">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_5be4167a-850b-4925-8d5c-04cd114d62ac">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_4183eba9-250e-4c38-b8fd-7a80a2cd7b69">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_b221be95-d015-415e-83de-ef4510e8823c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_9d87086e-0075-4641-a728-2557e15da0a9">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_f52f3404-f869-4d78-b435-aca1ec3f26c8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      id="F_c77c0dd8-80f1-483f-91a7-066e2e6b10a0">&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,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_fbec0757-5d35-43f9-8087-d26177cfa8ca"
      decimals="-6"
      id="F_7b1e17ce-09fe-4fc5-9104-287e99f2d80e"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
