<?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_d3ced2dc-9545-466d-93b6-b78271810488">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_6038eafd-a09c-4d45-9a8f-9b65da9f99e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_569f102b-4d8b-4aba-bcde-7605b1c027ed">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_9ee4a265-841c-4b04-b39a-984ac22f8c65">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_f568279a-3b3e-4001-a88c-87c4b2eddcbd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_cee71da7-891f-48f0-80f5-7d86a339d088">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_7375e4e3-c5b4-46ea-9c3d-2374afac1c30">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_1597bbfe-b542-48ae-966a-e28e97374c38">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_e5251ac1-1da1-4ce8-b280-571f5fbca988">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_bf6c7712-4a46-4a62-be0a-3cbe01e36c8e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d3ced2dc-9545-466d-93b6-b78271810488"
      id="F_8bf74b24-86ae-48e0-83b5-471fc7e3cb7c">&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;4,750,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_d3ced2dc-9545-466d-93b6-b78271810488"
      decimals="-3"
      id="F_2889fe17-9c08-41ff-9e84-6225fac5c3a9"
      unitRef="U_USD">4750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
