<?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_64ada7ff-1246-4428-a389-e4063fe28562">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_200f76c6-d98d-4287-8b90-4a683a5ddd90">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_7a42719f-8ab3-4c19-9096-1cff767ba750">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_e06282c5-6939-4615-a4ed-75c9f0496ff3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_f4690667-129d-46ad-b6bf-9a140bd50bc2">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_a81528c7-2667-4c35-980c-9ffb855dca8f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_c5f6a063-e978-4a06-809f-62887991c4d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_5ac6538a-736d-4459-b4a4-4cf12408e707">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_6829860c-047a-4920-8899-540e208d5466">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_46977112-d9f4-443a-904b-4e59dd159635">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_64ada7ff-1246-4428-a389-e4063fe28562"
      id="F_cf47ff02-e0b5-43a9-977b-716e8ed26079">&lt;p style="font-size:10pt;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;20,010,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_64ada7ff-1246-4428-a389-e4063fe28562"
      decimals="-3"
      id="F_e7f424e3-d38b-4819-9385-6e4dc1a214ce"
      unitRef="U_USD">20010000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
