<?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_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_5ce7884e-8439-45d9-b381-38922c146d97">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_b30a1a63-6a7f-4296-abab-c22a806c28f1">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_a01f174e-66b8-46e1-8664-7cd78a9c8009">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_16b2acc5-5ed1-4b55-972e-4c252f7ac8a3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_6685056d-594b-43c8-82f8-c3509b573fe2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_7e494443-da6e-431c-8338-dffac08d3f81">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_e280c067-7b1d-4df0-822e-abf649b43d70">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_50713a3c-4970-4981-9267-e2bbac5e4b20">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_d7e30678-abc6-454e-b35d-73ca6180dee0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      id="F_9b298759-a94c-46fb-a83a-1571c0468a8e">&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;9,403,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_4d70ae4d-6bfb-48d3-ab60-f9cd5169e351"
      decimals="-3"
      id="F_149acdf3-3c32-4afe-80a5-5877bbe2bd9a"
      unitRef="U_USD">9403000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
